create-pmos 0.756.0 → 0.758.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 +27 -104
- 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 +26 -0
- package/workspace/lib/autonomy.js +16 -7
- package/workspace/lib/cos-chat.js +7 -2
- package/workspace/lib/engine/workflow-state.js +3 -1
- package/workspace/lib/transcript-read.js +15 -2
- 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/workspace/test-lists/transcript-resumed-folder.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.758.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,32 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.758.0",
|
|
38
|
+
"at": "2026-11-24T02:19:59.803Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1708,
|
|
43
|
+
"t": "A resumed chat's answer comes back to the chat panel",
|
|
44
|
+
"s": "A resumed chat's answer comes back to the chat panel",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.757.0",
|
|
51
|
+
"at": "2026-11-24T01:28:20.135Z",
|
|
52
|
+
"f": 4,
|
|
53
|
+
"prs": [
|
|
54
|
+
{
|
|
55
|
+
"n": 1706,
|
|
56
|
+
"t": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
57
|
+
"s": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
58
|
+
"k": "fix"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
36
62
|
{
|
|
37
63
|
"v": "0.756.0",
|
|
38
64
|
"at": "2026-11-24T01:12:35.636Z",
|
|
@@ -378,109 +404,6 @@
|
|
|
378
404
|
}
|
|
379
405
|
}
|
|
380
406
|
]
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"v": "0.737.0",
|
|
384
|
-
"at": "2026-11-23T06:47:33.938Z",
|
|
385
|
-
"f": 4,
|
|
386
|
-
"prs": [
|
|
387
|
-
{
|
|
388
|
-
"n": 1643,
|
|
389
|
-
"t": "Pick a task's start and due on one calendar, like depart and return",
|
|
390
|
-
"s": "Pick a task's start and due on one calendar, like depart and return",
|
|
391
|
-
"k": "new",
|
|
392
|
-
"try": {
|
|
393
|
-
"steps": [
|
|
394
|
-
"Open any task and press its dates.",
|
|
395
|
-
"Tap a start day, then a due day."
|
|
396
|
-
],
|
|
397
|
-
"see": "One calendar with the days between shaded, like booking a trip."
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"n": 1633,
|
|
402
|
-
"t": "Focus mode, one item and its chat (A335)",
|
|
403
|
-
"s": "Focus mode, one item and its chat (A335)",
|
|
404
|
-
"k": "new",
|
|
405
|
-
"try": {
|
|
406
|
-
"steps": [
|
|
407
|
-
"On Today or Work, pick an item and press F."
|
|
408
|
-
],
|
|
409
|
-
"see": "Only that item and its chat show. Press F again to get the page back.",
|
|
410
|
-
"open": "/premium-board.html"
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
"n": 1636,
|
|
415
|
-
"t": "One Overview block on the initiative popup that folds",
|
|
416
|
-
"s": "One Overview block on the initiative popup that folds",
|
|
417
|
-
"k": "new",
|
|
418
|
-
"try": {
|
|
419
|
-
"steps": [
|
|
420
|
-
"Open an initiative's popup on the computer.",
|
|
421
|
-
"Press the Overview head."
|
|
422
|
-
],
|
|
423
|
-
"see": "Where it stands and the case sit in one block on top; folded, it keeps one line."
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
]
|
|
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
407
|
}
|
|
485
408
|
]
|
|
486
409
|
}
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
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,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.758.0",
|
|
4
|
+
"at": "2026-11-24T02:19:59.803Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1708,
|
|
9
|
+
"t": "A resumed chat's answer comes back to the chat panel",
|
|
10
|
+
"s": "A resumed chat's answer comes back to the chat panel",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.757.0",
|
|
17
|
+
"at": "2026-11-24T01:28:20.135Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1706,
|
|
22
|
+
"t": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
23
|
+
"s": "Sample PMOS's landed changes across kinds; a run alone is not eval",
|
|
24
|
+
"k": "fix"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.756.0",
|
|
4
30
|
"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
|
};
|
|
@@ -21,6 +21,9 @@ const KEY = 'chat:main';
|
|
|
21
21
|
const MARK = '[PMOS chief of staff]';
|
|
22
22
|
const SAYS = 'The PM says: ';
|
|
23
23
|
|
|
24
|
+
/** The sources block, said in full on every message that names reads, so a session that never saw RULE still knows the format. */
|
|
25
|
+
const SRC_ASK = 'End with the pmos-src block: one fenced code block with the language tag pmos-src holding one JSON array such as [{"name":"Calendar","fresh":"read now"}], one entry per source you read and how fresh it is.';
|
|
26
|
+
|
|
24
27
|
const isKey = (key) => String(key || '') === KEY;
|
|
25
28
|
|
|
26
29
|
/** Words that point at a `pmos` read, best first. Each entry: the verb, and the words that send a question to it. */
|
|
@@ -63,7 +66,9 @@ function wrap(text, page) {
|
|
|
63
66
|
const t = String(text == null ? '' : text);
|
|
64
67
|
const verbs = routeOf(t);
|
|
65
68
|
const lines = [MARK + (page ? ' The PM is on ' + String(page).replace(/\s+/g, ' ').slice(0, 120) + '; answer about it first.' : '')];
|
|
66
|
-
|
|
69
|
+
// bug 2026-11-24: a session that did not open with RULE (a resumed chat, a session picked in the popup) asked "what pmos-src block format?",
|
|
70
|
+
// so the line names the format itself, not only the block
|
|
71
|
+
if (verbs.length) lines.push('Reads that fit: ' + verbs.map((v) => 'pmos ' + v).join(', ') + '. ' + SRC_ASK);
|
|
67
72
|
return lines.join(' ') + '\n\n' + SAYS + t;
|
|
68
73
|
}
|
|
69
74
|
|
|
@@ -87,4 +92,4 @@ function briefsBlock(lines) {
|
|
|
87
92
|
return ls.length ? [['The unit owners\' newest briefs (pmos units has the rest; a failed run is done work with a reason, not the PM\'s):', ...ls].join('\n')] : [];
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
module.exports = { KEY, MARK, RULE, ROUTES, isKey, routeOf, wrap, parseSources, briefsBlock, unitOfKey };
|
|
95
|
+
module.exports = { KEY, MARK, RULE, SRC_ASK, ROUTES, isKey, routeOf, wrap, parseSources, briefsBlock, unitOfKey };
|
|
@@ -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');
|
|
@@ -156,6 +156,14 @@ function descendants(pid, listChildren, maxDepth = MAX_WALK_DEPTH) {
|
|
|
156
156
|
* written). The cwd-in-root proof here is what makes the child-walk safe: it runs on EVERY pid we
|
|
157
157
|
* consider, pane or descendant, identically.
|
|
158
158
|
*/
|
|
159
|
+
/** <home>/projects/<any>/<sessionId>.jsonl, or null. Only a plain id is looked up (no path parts). */
|
|
160
|
+
function otherProjectFile(home, sessionId) {
|
|
161
|
+
const id = String(sessionId || '');
|
|
162
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(id)) return null;
|
|
163
|
+
let subs = []; try { subs = fs.readdirSync(path.join(home, 'projects')); } catch { return null; }
|
|
164
|
+
for (const p of subs) { const f = path.join(home, 'projects', p, id + '.jsonl'); try { if (fs.statSync(f).isFile()) return f; } catch { /* not here */ } }
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
159
167
|
function resolvePid(pid, root, home) {
|
|
160
168
|
if (Array.isArray(home)) {
|
|
161
169
|
let first = null;
|
|
@@ -176,8 +184,13 @@ function resolvePid(pid, root, home) {
|
|
|
176
184
|
const rel = path.relative(root, reg.cwd);
|
|
177
185
|
if (root && (rel.startsWith('..') || path.isAbsolute(rel))) return { outside: true };
|
|
178
186
|
const file = path.join(home, 'projects', slugFor(reg.cwd), `${reg.sessionId}.jsonl`);
|
|
179
|
-
if (
|
|
180
|
-
|
|
187
|
+
if (fs.existsSync(file)) return { sessionId: reg.sessionId, file, version: reg.version || null };
|
|
188
|
+
// bug 2026-11-24 ("the chat didn't come back to the chat panel"): `claude --resume <id>` started in another folder keeps writing the
|
|
189
|
+
// conversation's file under the project folder it was FIRST started in, while the session record names the new cwd. A PMOS chat resumes
|
|
190
|
+
// its own conversation from whichever workspace the PM is in, so the cwd's folder held no file and the chat waited on "PMOS is working"
|
|
191
|
+
// while the answer sat in the terminal. The session id is unique, so the file of that id in any project folder of this home is the one.
|
|
192
|
+
const moved = otherProjectFile(home, reg.sessionId);
|
|
193
|
+
return moved ? { sessionId: reg.sessionId, file: moved, version: reg.version || null } : { noTranscript: true };
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
/**
|
|
@@ -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.758.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.758.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "A resumed chat's transcript is found in the project folder it was first started in (initiative chat-reply-resumed-folder, done test C1-C2). Pure; no browser, no server.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"transcript-resumed-folder.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"transcript-resumed-folder.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|