create-pmos 0.756.0 → 0.757.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 -58
- 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/workflow-state.js +3 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/lib/autonomy.js +16 -7
- package/workspace/lib/engine/workflow-state.js +3 -1
- package/workspace/lib/vendor/scripts/workflow-state.js +3 -1
- package/workspace/lib/verify-runs.js +2 -2
- 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.757.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.757.0",
|
|
38
|
+
"at": "2026-11-24T01:28:20.135Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1706,
|
|
43
|
+
"t": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
44
|
+
"s": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.756.0",
|
|
38
51
|
"at": "2026-11-24T01:12:35.636Z",
|
|
@@ -424,63 +437,6 @@
|
|
|
424
437
|
}
|
|
425
438
|
}
|
|
426
439
|
]
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"v": "0.736.0",
|
|
430
|
-
"at": "2026-11-23T06:36:26.214Z",
|
|
431
|
-
"f": 4,
|
|
432
|
-
"prs": [
|
|
433
|
-
{
|
|
434
|
-
"n": 1641,
|
|
435
|
-
"t": "Back after the chat opens a file by itself",
|
|
436
|
-
"s": "Back after the chat opens a file by itself",
|
|
437
|
-
"k": "new",
|
|
438
|
-
"try": {
|
|
439
|
-
"steps": [
|
|
440
|
-
"In a chat, ask it to open a report.",
|
|
441
|
-
"Then press Back."
|
|
442
|
-
],
|
|
443
|
-
"see": "You land on the item you were on, not on Today."
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"n": 1640,
|
|
448
|
-
"t": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
|
|
449
|
-
"s": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
|
|
450
|
-
"k": "new",
|
|
451
|
-
"try": {
|
|
452
|
-
"steps": [
|
|
453
|
-
"Open Today, then the Decide tab."
|
|
454
|
-
],
|
|
455
|
-
"see": "Two groups, waiting on you and waiting on others, oldest first, each with its age.",
|
|
456
|
-
"open": "/today.html"
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"n": 1644,
|
|
461
|
-
"t": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
|
|
462
|
-
"s": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
|
|
463
|
-
"k": "new",
|
|
464
|
-
"try": {
|
|
465
|
-
"steps": [
|
|
466
|
-
"On the phone, open an initiative that has customer signals, then its item panel."
|
|
467
|
-
],
|
|
468
|
-
"see": "A list of signals: who, where, and a link."
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
"n": 1645,
|
|
473
|
-
"t": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
|
|
474
|
-
"s": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
|
|
475
|
-
"k": "new",
|
|
476
|
-
"try": {
|
|
477
|
-
"steps": [
|
|
478
|
-
"In a product's chat, ask it to keep a positioning line you write."
|
|
479
|
-
],
|
|
480
|
-
"see": "The line shows in the product's positioning on Work."
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
]
|
|
484
440
|
}
|
|
485
441
|
]
|
|
486
442
|
}
|
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-24T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T01:28:17Z"}
|
|
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-24T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T01:28:17Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -1324,7 +1324,9 @@ function computeWorkflowDerived(id, opts) {
|
|
|
1324
1324
|
if (by.spec.status === 'done') stage = 'spec';
|
|
1325
1325
|
if (by.contract.status === 'done') stage = 'contract';
|
|
1326
1326
|
if (by.build.status === 'done') stage = 'build';
|
|
1327
|
-
|
|
1327
|
+
// A logged run puts the stage at eval only once the build is done. A run logged during spec or
|
|
1328
|
+
// discovery work used to read as eval too, which skipped Build on every board that reads this.
|
|
1329
|
+
if (evals.length || (runs.length && by.build && by.build.status === 'done')) stage = 'eval';
|
|
1328
1330
|
if (accepted.length) stage = 'accepted';
|
|
1329
1331
|
|
|
1330
1332
|
const blockers = steps.filter((s) => s.status === 'blocked');
|
|
@@ -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-24T01:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T01:28:17Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -586,7 +586,7 @@ const IVREAD = () => {
|
|
|
586
586
|
while (Date.now() - t0 < 90000) { const r = await fetch(BASE + '/api/board-premium'); j = await r.json(); if (j.state === 'ready' || j.state === 'error') break; if (r.status !== 202) break; await sleep(1500); }
|
|
587
587
|
ok('E1 the real route answers "reading" first and then the board of this repository', !!j && j.ok && j.state === 'ready' && j.model.board.name.length > 0, JSON.stringify(j).slice(0, 200));
|
|
588
588
|
const m = j && j.model;
|
|
589
|
-
ok('E2 the real model\'s counts agree with each other (no signal counted apart, workspace grill W2): the header, the dock and the late and at-risk rows', !!m && m.dock.needs === m.initiatives.risk + m.initiatives.late && m.initiatives.on + m.initiatives.risk + m.initiatives.late + m.initiatives.hold + (m.initiatives.none || 0) === m.initiatives.open && m.initiatives.list.rows.slice(0,
|
|
589
|
+
ok('E2 the real model\'s counts agree with each other (no signal counted apart, workspace grill W2): the header, the dock and the late and at-risk rows', !!m && m.dock.needs === m.initiatives.risk + m.initiatives.late && m.initiatives.on + m.initiatives.risk + m.initiatives.late + m.initiatives.hold + (m.initiatives.none || 0) === m.initiatives.open && m.initiatives.list.rows.slice(0, Math.min(5, m.initiatives.risk + m.initiatives.late)).every((r) => r.bad), m ? JSON.stringify(m.initiatives).slice(0, 200) : '');
|
|
590
590
|
ok('E3 the real model draws no sprint and no release without a source, and no demo data', !!m && !m.sprint.name && !m.release.at && !/demo/i.test(JSON.stringify({ h: m.header, s: m.sprint, r: m.release, d: m.docs, b: m.board })));
|
|
591
591
|
ok('E3 the real model has the eight steps and a track on every row', !!m && m.steps.length === 8 && m.initiatives.list.rows.every((r) => r.track && typeof r.track.k === 'number'));
|
|
592
592
|
const post = await fetch(BASE + '/api/board-premium', { method: 'POST', headers: await T.pressHeaders(BASE), body: '{}' }).then((r) => r.status);
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.757.0",
|
|
4
|
+
"at": "2026-11-24T01:28:20.135Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1706,
|
|
9
|
+
"t": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
10
|
+
"s": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.756.0",
|
|
4
17
|
"at": "2026-11-24T01:12:35.636Z",
|
|
@@ -387,17 +387,26 @@ function kindsOf(dirs, { now, settingsDir = null } = {}) {
|
|
|
387
387
|
const VERDICTS = Object.freeze(['PASS', 'FAIL']);
|
|
388
388
|
const CHECK_MIN_AGE = 3600000; // a change settles for an hour before it is checked, so an Undo the PM presses at once is not graded
|
|
389
389
|
|
|
390
|
-
/** The next applied change the check should grade
|
|
391
|
-
*
|
|
390
|
+
/** The next applied change the check should grade. It is a sample, not a queue (product line slice 3 follow-up, 2026-11-24): oldest
|
|
391
|
+
* first let a backlog of one kind of change spend every check of the day while the other kinds were never looked at.
|
|
392
|
+
* Eligible: not undone, not checked, older than an hour and still inside its Undo window, and class B (a judgment), or class A (upkeep
|
|
393
|
+
* with one right answer) of a job that had no check in the last SAMPLE_DAYS, so each kind of upkeep is still looked at once a week.
|
|
394
|
+
* Order: the job with the fewest checks in the last SAMPLE_DAYS first, then class B before A, then the newest (the longest Undo left).
|
|
395
|
+
* skip: refs tried already. → applied entry | null */
|
|
396
|
+
const SAMPLE_DAYS = 7;
|
|
392
397
|
function toCheck(stateDir, { now, skip = [] } = {}) {
|
|
393
398
|
const t = now == null ? Date.now() : now;
|
|
399
|
+
const all = [...fold(read(stateDir)).applied.values()];
|
|
400
|
+
const recent = new Map(); // job and product → checks in the last SAMPLE_DAYS
|
|
401
|
+
for (const a of all) if (a.checked && t - Date.parse(a.checked.at) <= SAMPLE_DAYS * DAY) recent.set(keyOf(a.job, a.product), (recent.get(keyOf(a.job, a.product)) || 0) + 1);
|
|
402
|
+
const seen = (a) => recent.get(keyOf(a.job, a.product)) || 0;
|
|
394
403
|
const out = [];
|
|
395
|
-
for (const a of
|
|
404
|
+
for (const a of all) {
|
|
396
405
|
const age = t - Date.parse(a.at);
|
|
397
|
-
if (a.
|
|
398
|
-
out.push(a);
|
|
406
|
+
if (a.undone || a.checked || !a.ref || skip.includes(a.ref) || !(age >= CHECK_MIN_AGE) || age > UNDO_DAYS * DAY) continue;
|
|
407
|
+
if (a.cls === 'B' || (a.cls === 'A' && !seen(a))) out.push(a);
|
|
399
408
|
}
|
|
400
|
-
out.sort((x, y) => Date.parse(
|
|
409
|
+
out.sort((x, y) => (seen(x) - seen(y)) || ((x.cls === 'B' ? 0 : 1) - (y.cls === 'B' ? 0 : 1)) || (Date.parse(y.at) - Date.parse(x.at)));
|
|
401
410
|
if (!out.length) return null;
|
|
402
411
|
const { rec, ...a } = out[0];
|
|
403
412
|
return a;
|
|
@@ -445,7 +454,7 @@ function restore(stateDir, { job, product }, actor, { now } = {}) {
|
|
|
445
454
|
}
|
|
446
455
|
|
|
447
456
|
module.exports = {
|
|
448
|
-
wayAt, toCheck, recordCheck, fromRuns, VERDICTS, WAYS, SHOW_UNTIL, KIND_LIST, kindOf, waysSet, autoWay, kindsOf,
|
|
457
|
+
wayAt, toCheck, SAMPLE_DAYS, recordCheck, fromRuns, VERDICTS, WAYS, SHOW_UNTIL, KIND_LIST, kindOf, waysSet, autoWay, kindsOf,
|
|
449
458
|
LEDGER, CLASSES, DRIVER_CLASS, PROPOSAL_CLASS, DEMOTE_DAYS, UNDO_DAYS, RATE_LIMIT, RATE_MIN, KINDS,
|
|
450
459
|
classOfDriver, classOfDriverProposal, classOfProposal, NO_SOURCE_WHY, logHeld, srcOf, killed, autoFor, file, read, fold, recordApplied, reasonOf, recordSetback, decide, demotedNow, notices, markSeen, done, undoOpen, restore,
|
|
451
460
|
};
|
|
@@ -1324,7 +1324,9 @@ function computeWorkflowDerived(id, opts) {
|
|
|
1324
1324
|
if (by.spec.status === 'done') stage = 'spec';
|
|
1325
1325
|
if (by.contract.status === 'done') stage = 'contract';
|
|
1326
1326
|
if (by.build.status === 'done') stage = 'build';
|
|
1327
|
-
|
|
1327
|
+
// A logged run puts the stage at eval only once the build is done. A run logged during spec or
|
|
1328
|
+
// discovery work used to read as eval too, which skipped Build on every board that reads this.
|
|
1329
|
+
if (evals.length || (runs.length && by.build && by.build.status === 'done')) stage = 'eval';
|
|
1328
1330
|
if (accepted.length) stage = 'accepted';
|
|
1329
1331
|
|
|
1330
1332
|
const blockers = steps.filter((s) => s.status === 'blocked');
|
|
@@ -1324,7 +1324,9 @@ function computeWorkflowDerived(id, opts) {
|
|
|
1324
1324
|
if (by.spec.status === 'done') stage = 'spec';
|
|
1325
1325
|
if (by.contract.status === 'done') stage = 'contract';
|
|
1326
1326
|
if (by.build.status === 'done') stage = 'build';
|
|
1327
|
-
|
|
1327
|
+
// A logged run puts the stage at eval only once the build is done. A run logged during spec or
|
|
1328
|
+
// discovery work used to read as eval too, which skipped Build on every board that reads this.
|
|
1329
|
+
if (evals.length || (runs.length && by.build && by.build.status === 'done')) stage = 'eval';
|
|
1328
1330
|
if (accepted.length) stage = 'accepted';
|
|
1329
1331
|
|
|
1330
1332
|
const blockers = steps.filter((s) => s.status === 'blocked');
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* Off: PMOS_VERIFY=off, a scratch server (PMOS_STATE_DIR set, unless PMOS_VERIFY=1), PMOS_HEADLESS=off, `pmos ai off verify` (the bg-queue switch). Runs only when deep work may run (open(now)).
|
|
23
23
|
*
|
|
24
24
|
* THE APPLIED-CHANGE CHECK (batch 29 item 9, D106). Jobs that change records by themselves open no pull request, so step 2 never grades
|
|
25
|
-
* them. When no merged run is started, one turn may instead grade ONE change an agent applied by itself (lib/autonomy.js toCheck:
|
|
26
|
-
* an hour old, inside its Undo window): headless kind `verify`, origin `verify:change:<ref>:<token>`, with PMOS_CHECK_REF and PMOS_CHECK_DIR
|
|
25
|
+
* them. When no merged run is started, one turn may instead grade ONE change an agent applied by itself (lib/autonomy.js toCheck: a sample
|
|
26
|
+
* across jobs, the least-checked kind first; class B, and class A once a week per job; an hour old, inside its Undo window): headless kind `verify`, origin `verify:change:<ref>:<token>`, with PMOS_CHECK_REF and PMOS_CHECK_DIR
|
|
27
27
|
* pinned to that change. Its one write is `pmos autonomy check <ref> --verdict PASS|FAIL`; a FAIL sends the job back to asking for 7 days.
|
|
28
28
|
* At most CHECKS_PER_DAY a day; a change tried once is not tried again that day. Off with PMOS_VERIFY_CHANGES=off.
|
|
29
29
|
* PR-BACKED RUNS: an applied line that names its run is a setback when the verifier FAILs that run (evals.jsonl) or its merge is reverted
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.757.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.757.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED