create-pmos 0.579.0 → 0.580.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +14 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/scripts/factory-guardrail.js +53 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.580.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.580.0",
|
|
38
|
+
"at": "2026-11-17T02:13:59.003Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1309,
|
|
43
|
+
"t": "Standing rules become checks; the harness joins the trigger list",
|
|
44
|
+
"s": "Standing rules become checks; the harness joins the trigger list",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.579.0",
|
|
38
51
|
"at": "2026-11-17T02:01:31.178Z",
|
|
@@ -291,19 +304,6 @@
|
|
|
291
304
|
"k": "fix"
|
|
292
305
|
}
|
|
293
306
|
]
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"v": "0.560.0",
|
|
297
|
-
"at": "2026-11-11T06:57:01.192Z",
|
|
298
|
-
"f": 4,
|
|
299
|
-
"prs": [
|
|
300
|
-
{
|
|
301
|
-
"n": 1290,
|
|
302
|
-
"t": "Fix three flaky suites from batch 29",
|
|
303
|
-
"s": "Fix three flaky suites from batch 29",
|
|
304
|
-
"k": "fix"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
307
|
}
|
|
308
308
|
]
|
|
309
309
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-17T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-17T02:13:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-17T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-17T02:13:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
* the D11 triggers: the item failed before, a revert on the default branch in the last 14 days, a subsystem untouched 90 days ·
|
|
26
26
|
* the line `PMOS-Merge: human` (PMOS writes it when autonomy is off or the factory is demoted; the PM may add it to stop a merge) ·
|
|
27
27
|
* a pull request from a fork (a branch named pmos/… elsewhere is not PMOS's).
|
|
28
|
+
* D109 (harnessTriggers): held-out cases, the standing-rule registry, the improvement loop's code, evals and done tests, agent rules,
|
|
29
|
+
* skills and decision records, gates and the verifier, a fix that edits its own case (`PMOS-Case: <id>`), a fix from an outside
|
|
30
|
+
* source (`PMOS-Source: outside`).
|
|
28
31
|
* agent-product-lane: a changed prompt or model-id file of a product that is an agent (pmos/factory.json agent.files), unless the item's
|
|
29
32
|
* check names the product's simulation eval set (agent.eval_set).
|
|
30
33
|
*
|
|
@@ -73,6 +76,53 @@ const ADDED = [
|
|
|
73
76
|
{ rule: 'agent-path', re: /(@anthropic-ai\/|\banthropic\b|\bopenai\b|\bclaude\s+-p\b|\blangchain\b|\bllm\b|child_process|\bexecSync\s*\(|\bexecFile(Sync)?\s*\(|\bspawn(Sync)?\s*\(|\beval\s*\(|new\s+Function\s*\(|subprocess\.|os\.system\s*\()/i, why: 'adds a model call or runs a program (a new agent path)' },
|
|
74
77
|
];
|
|
75
78
|
|
|
79
|
+
/* ---- D109: the harness and the judge. A change to the rules agents follow, to what judges a change, or to the improvement loop
|
|
80
|
+
* itself waits for Wawan; so does a fix that came from an outside source, and a fix that edits the case it is fixing. Exported as
|
|
81
|
+
* harnessTriggers(paths, { body, fixingCase }) so the improvement loop asks the same list before it lets a fix merge by itself. ---- */
|
|
82
|
+
const HARNESS = [
|
|
83
|
+
{ rule: 'rule-book', re: /^planning\/improve\/standing-rules\.json$/, why: "is the standing-rule registry (Wawan's rule book): adding, changing or retiring a check" },
|
|
84
|
+
{ rule: 'loop-code', re: /^(workspace\/lib\/improve[-/][^/]*|workspace\/lib\/improve\.js|scripts\/improve(-[^/]*)?\.js)$/, why: "is the improvement loop's own code" },
|
|
85
|
+
{ rule: 'eval-files', re: /^(planning\/evals\/|planning\/done-tests\/|skills\/evals\/|kit\/skills\/evals\/)/, why: 'is an eval, a rubric or a done test (what judges a change)' },
|
|
86
|
+
{ rule: 'harness-rules', re: /(^|\/)(agents|claude|gemini)\.md$|^(decisions|principles)\.md$|^okf\/products\/pmos\/adr\/|^(kit\/|workspace\/)?skills\/|^build-skills\/|^\.claude\//, why: 'is an agent rule, a skill or a decision record' },
|
|
87
|
+
{ rule: 'gate-scripts', re: /^\.github\/|^scripts\/(factory-guardrail|standing-rules|workflow-state|frontmatter_lint|frontmatter_registry|check_[a-z_]+|check-[a-z-]+|verifier|verify-[a-z-]+|brakes|anchor-resolve|lane-defs|md-newlines|run-corrections)\.|^scripts\/git-hooks\/|^workspace\/(run-tests\.js|test-files\.json)$|^workspace\/lib\/(autonomy|verify-runs|factory-review)\.js$|^kit\/templates\/pmos-guardrail/, why: 'is a gate, the guardrail, the verifier or the test runner' },
|
|
88
|
+
];
|
|
89
|
+
const caseIdsOf = (body, fixingCase) => {
|
|
90
|
+
const ids = new Set([].concat(fixingCase || []).map((x) => String(x).trim().toLowerCase()).filter(Boolean));
|
|
91
|
+
for (const m of String(body || '').matchAll(/^PMOS-Case:\s*([A-Za-z0-9_.-]+)\s*$/gmi)) ids.add(m[1].toLowerCase());
|
|
92
|
+
return ids;
|
|
93
|
+
};
|
|
94
|
+
/** changes: changed paths (repo-relative strings), or { path, status: 'A'|'M'|'D'|'R'|'C', from } as git's --name-status gives them.
|
|
95
|
+
* A case PR that only ADDS files under planning/improve/cases/ or heldout/ (plus appends to planning/improve/loop.jsonl) reads clear:
|
|
96
|
+
* the case writer is a separate run from the fixer. Any change to an existing case, any case change in a PR that also changes
|
|
97
|
+
* something outside planning/improve/ (a fix touching its judge), and the case a fix names with PMOS-Case all read human.
|
|
98
|
+
* → [{ rule, detail }]; empty means nothing on the D109 part of the list. */
|
|
99
|
+
function harnessTriggers(changes, { body = '', fixingCase = null } = {}) {
|
|
100
|
+
const out = [];
|
|
101
|
+
const ids = caseIdsOf(body, fixingCase);
|
|
102
|
+
const list = [].concat(changes || []).map((c) => (typeof c === 'string' ? { path: c, status: null, from: null } : { path: String((c && c.path) || ''), status: c && c.status ? String(c.status)[0].toUpperCase() : null, from: (c && c.from) || null }))
|
|
103
|
+
.map((c) => ({ ...c, path: c.path.replace(/^\.\//, '') })).filter((c) => c.path);
|
|
104
|
+
const CASES = /^planning\/improve\/(cases|heldout)\//;
|
|
105
|
+
const LEDGER = 'planning/improve/loop.jsonl';
|
|
106
|
+
const outsideImprove = list.some((c) => !c.path.toLowerCase().startsWith('planning/improve/') || (c.from && !String(c.from).toLowerCase().startsWith('planning/improve/')));
|
|
107
|
+
for (const c of list) {
|
|
108
|
+
const p = c.path, l = p.toLowerCase();
|
|
109
|
+
for (const h of HARNESS) if (h.re.test(l)) out.push({ rule: h.rule, detail: `${p} ${h.why} (D109)` });
|
|
110
|
+
if (CASES.test(l) || (c.from && CASES.test(String(c.from).toLowerCase()))) {
|
|
111
|
+
const kind = /^planning\/improve\/heldout\//.test(l) || (c.from && /^planning\/improve\/heldout\//.test(String(c.from).toLowerCase())) ? 'heldout' : 'case';
|
|
112
|
+
if (c.status !== 'A') out.push({ rule: kind === 'heldout' ? 'heldout' : 'case-edit', detail: `${p} ${c.status ? 'changes' : 'may change'} an existing ${kind === 'heldout' ? 'held-out case' : 'case'}: cases are added, never edited by the loop (D109)` });
|
|
113
|
+
else if (outsideImprove) out.push({ rule: kind === 'heldout' ? 'heldout' : 'case-with-fix', detail: `${p} adds a ${kind === 'heldout' ? 'held-out case' : 'case'} in the same pull request as a fix: the case and the fix come from separate runs (D109)` });
|
|
114
|
+
}
|
|
115
|
+
if (l === LEDGER && c.status && c.status !== 'M' && c.status !== 'A') out.push({ rule: 'loop-ledger', detail: `${p} is the loop's append-only ledger and this pull request ${c.status === 'D' ? 'deletes' : 'moves'} it (D109)` });
|
|
116
|
+
const m = /^planning\/improve\/(?:cases|heldout)\/([^/]+?)(\.[a-z0-9]+)?(\/|$)/.exec(l);
|
|
117
|
+
if (m && ids.has(m[1])) out.push({ rule: 'own-case', detail: `${p} is the case this fix is meant to pass: a fix may not touch its own case (D109)` });
|
|
118
|
+
}
|
|
119
|
+
const src = /^PMOS-Source:\s*(\S+)\s*$/mi.exec(String(body || ''));
|
|
120
|
+
const fam = src ? src[1].toLowerCase() : '';
|
|
121
|
+
if (fam === 'outside') out.push({ rule: 'outside-source', detail: 'the fix came from an outside source (PMOS-Source: outside): outside-sourced fixes never merge by themselves (D109)' });
|
|
122
|
+
if (fam === 'loop') out.push({ rule: 'loop-self', detail: 'the loop changes itself (PMOS-Source: loop): its own changes always wait for Wawan (D109)' });
|
|
123
|
+
return out;
|
|
124
|
+
}
|
|
125
|
+
|
|
76
126
|
function git(cwd, args) {
|
|
77
127
|
const r = cp.spawnSync('git', args, { cwd, encoding: 'utf8', maxBuffer: 256 * 1024 * 1024, env: { ...process.env, GIT_TERMINAL_PROMPT: '0' } });
|
|
78
128
|
return { ok: !r.error && r.status === 0, out: String(r.stdout || ''), err: String(r.stderr || (r.error && r.error.message) || '').trim() };
|
|
@@ -230,6 +280,8 @@ function classify({ cwd = process.cwd(), base, head, branch = '', body = '', led
|
|
|
230
280
|
if (it && it.criterion) for (const r of pathsIn(it.criterion.ref)) if (p === r || p.startsWith(r.replace(/\/?$/, '/'))) human('self-test', `${p} is the item's own check (${it.criterion.ref})`);
|
|
231
281
|
}
|
|
232
282
|
|
|
283
|
+
for (const r of harnessTriggers(files, { body })) human(r.rule, r.detail);
|
|
284
|
+
|
|
233
285
|
// ---- agent-prompt: the agent product's prompts and model ids are code, and only its simulation eval set judges them
|
|
234
286
|
const ag = agentDeclOf(cwd, base, factoryText);
|
|
235
287
|
const agentHit = ag ? files.find((f) => inScope(f.path, ag.files) || (f.from && inScope(f.from, ag.files))) : null;
|
|
@@ -305,5 +357,5 @@ function cliMain(argv, { say = (s) => console.log(s), env = process.env, cwd = p
|
|
|
305
357
|
return 0;
|
|
306
358
|
}
|
|
307
359
|
|
|
308
|
-
module.exports = { classify, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
|
|
360
|
+
module.exports = { classify, harnessTriggers, HARNESS, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
|
|
309
361
|
if (require.main === module) process.exitCode = cliMain(process.argv.slice(2));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-17T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-17T02:13:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.580.0",
|
|
4
|
+
"at": "2026-11-17T02:13:59.003Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1309,
|
|
9
|
+
"t": "Standing rules become checks; the harness joins the trigger list",
|
|
10
|
+
"s": "Standing rules become checks; the harness joins the trigger list",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.579.0",
|
|
4
17
|
"at": "2026-11-17T02:01:31.178Z",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.580.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.580.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED