create-pmos 0.584.0 → 0.586.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 -33
- 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/state/discoveries.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/guide/programs.md +2 -1
- package/workspace/lib/headless.js +6 -4
- package/workspace/lib/routes-proposals.js +10 -0
- package/workspace/lib/routes-ready-reports.js +3 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/dash-view.js +5 -3
- package/workspace/server.js +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.586.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.586.0",
|
|
38
|
+
"at": "2026-11-17T09:31:31.443Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1321,
|
|
43
|
+
"t": "A headless prototype run may write in a folder whose path has a space",
|
|
44
|
+
"s": "A headless prototype run may write in a folder whose path has a space",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.585.0",
|
|
51
|
+
"at": "2026-11-17T08:31:27.900Z",
|
|
52
|
+
"f": 4,
|
|
53
|
+
"prs": [
|
|
54
|
+
{
|
|
55
|
+
"n": 1320,
|
|
56
|
+
"t": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
57
|
+
"s": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
58
|
+
"k": "fix"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
36
62
|
{
|
|
37
63
|
"v": "0.584.0",
|
|
38
64
|
"at": "2026-11-17T06:55:14.683Z",
|
|
@@ -272,38 +298,6 @@
|
|
|
272
298
|
"k": "new"
|
|
273
299
|
}
|
|
274
300
|
]
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"v": "0.566.0",
|
|
278
|
-
"at": "2026-11-12T04:39:13.320Z",
|
|
279
|
-
"f": 4,
|
|
280
|
-
"prs": [
|
|
281
|
-
{
|
|
282
|
-
"n": 1299,
|
|
283
|
-
"t": "Let experiments and analytics feed PMOS",
|
|
284
|
-
"s": "Let experiments and analytics feed PMOS",
|
|
285
|
-
"k": "new"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"n": 1297,
|
|
289
|
-
"t": "Full SDLC says PMOS builds only where a factory runs",
|
|
290
|
-
"s": "Full SDLC says PMOS builds only where a factory runs",
|
|
291
|
-
"k": "fix"
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"v": "0.565.0",
|
|
297
|
-
"at": "2026-11-12T04:27:46.732Z",
|
|
298
|
-
"f": 4,
|
|
299
|
-
"prs": [
|
|
300
|
-
{
|
|
301
|
-
"n": 1296,
|
|
302
|
-
"t": "Every surface shows the one stage; pmos workflow check finds a disagreement",
|
|
303
|
-
"s": "Every surface shows the one stage; pmos workflow check finds a disagreement",
|
|
304
|
-
"k": "fix"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
301
|
}
|
|
308
302
|
]
|
|
309
303
|
}
|
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-17T09:31:28Z"}
|
|
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-17T09:31:28Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -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-17T09:31:28Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.586.0",
|
|
4
|
+
"at": "2026-11-17T09:31:31.443Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1321,
|
|
9
|
+
"t": "A headless prototype run may write in a folder whose path has a space",
|
|
10
|
+
"s": "A headless prototype run may write in a folder whose path has a space",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.585.0",
|
|
17
|
+
"at": "2026-11-17T08:31:27.900Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1320,
|
|
22
|
+
"t": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
23
|
+
"s": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
24
|
+
"k": "fix"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.584.0",
|
|
4
30
|
"at": "2026-11-17T06:55:14.683Z",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The Board: programs, views, published boards and core documents"
|
|
4
4
|
description: "The Board's views and programs, milestones, a read-only published copy of a Board, and the core documents of each level."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-17
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The Board
|
|
@@ -89,6 +89,7 @@ The Viewer of a program, and the product page, are one page. There is no Work an
|
|
|
89
89
|
- To clear a part of the Intent, press the pencil, empty that box and press ✓. An emptied part leaves the card. When every part is empty, the card says it is not written yet.
|
|
90
90
|
- Each goal row shows the KR as a chip, then a short title, then one grey line on how it reads. The KR id alone is never the title.
|
|
91
91
|
- When PMOS proposes changes, a folded row under the goal card counts them. Only the owner sees this row. Press it to open every proposal, each with PMOS's pick: ✕ drops it, ✎ opens it to change, ✓ keeps the pick.
|
|
92
|
+
- The same row also shows the first open proposal of each initiative on this page, named with its initiative, for example "Weather microsite revamp · PMOS will show 3 ways: prototype this". ✓ keeps it on that initiative's board and ✕ drops it, the same as on the initiative page.
|
|
92
93
|
- On the product page, the same row also holds **Goals I would change**: a KR whose wording reads badly, with the old words struck through, the new words, one reason and a test read (its source and number). PMOS lists a goal only when its test read returned a number.
|
|
93
94
|
- The tabs are **Tasks**, **Initiatives** (the default), **Reports** and **Documents**.
|
|
94
95
|
- The product page also shows a **Programs** card and a **Health budgets** card. Its **Initiatives** tab lists the product's own initiatives, then one card for each program that holds some of them.
|
|
@@ -467,10 +467,10 @@ function argsFor(kind, { modelArgs = [], addDirs = [], writePaths = [], budgetUs
|
|
|
467
467
|
const mode = team.mode === 'auto' ? 'auto' : 'propose';
|
|
468
468
|
tools = AT.toolsOf(team.role, { mode }).tools;
|
|
469
469
|
// the Builder (W7): Write and Edit in its worktree folder only, whatever the caller passes
|
|
470
|
-
if (team.role === 'build') for (const p of AT.toolsOf('build', { mode }).writePaths) { const b = p.replace(/\/+$/, ''); if (b.startsWith('/') && !/[\
|
|
470
|
+
if (team.role === 'build') for (const p of AT.toolsOf('build', { mode }).writePaths) { const b = p.replace(/\/+$/, ''); if (b.startsWith('/') && !/[\n\r\t\v\f,*?()\[\]{}]/.test(b) && !b.includes('..')) tools.push(`Write(/${b}/**)`, `Edit(/${b}/**)`); }
|
|
471
471
|
else if (mode === 'auto') for (const p of Array.isArray(writePaths) ? writePaths : []) {
|
|
472
472
|
const s = String(p || ''), dir = s.endsWith('/'), b = s.replace(/\/+$/, '');
|
|
473
|
-
if (!b.startsWith('/') || /[\
|
|
473
|
+
if (!b.startsWith('/') || /[\n\r\t\v\f,*?()\[\]{}]/.test(b) || b.includes('..')) continue;
|
|
474
474
|
// only a path that IS one of the role's own artifacts, whatever the caller passes
|
|
475
475
|
if (!AT.roleOf(team.role).owns.paths.some((o) => (o.endsWith('/') === dir) && (b + (dir ? '/' : '')).endsWith('/' + o))) continue;
|
|
476
476
|
tools.push(dir ? `Write(/${b}/**)` : `Write(/${b})`, dir ? `Edit(/${b}/**)` : `Edit(/${b})`);
|
|
@@ -483,15 +483,17 @@ function argsFor(kind, { modelArgs = [], addDirs = [], writePaths = [], budgetUs
|
|
|
483
483
|
if (WRITE_PATH_KINDS.includes(kind)) {
|
|
484
484
|
for (const p of Array.isArray(writePaths) ? writePaths : []) {
|
|
485
485
|
const s = String(p || '');
|
|
486
|
-
if (!s.startsWith('/') || /[\
|
|
486
|
+
if (!s.startsWith('/') || /[\n\r\t\v\f,*?()\[\]{}]/.test(s) || s.includes('..')) continue;
|
|
487
487
|
tools.push(`Write(/${s})`, `Edit(/${s})`);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
// A background skill run may write in the folders the server names (its scratch folder, its skill's state folders) and nowhere else: absolute paths, no wildcard of their own.
|
|
491
|
+
// A plain space is allowed (the Mac state folder is under ~/Library/Application Support; argv goes to spawn, not a shell): 2026-11-17 every live-round and idle-lab
|
|
492
|
+
// prototype on a Mac ran without Write and ended with nothing made. A comma would split the --allowedTools list; a glob or bracket would widen the rule.
|
|
491
493
|
if (WRITE_DIR_KINDS.includes(kind)) {
|
|
492
494
|
for (const p of Array.isArray(writePaths) ? writePaths : []) {
|
|
493
495
|
const s = String(p || '').replace(/\/+$/, '');
|
|
494
|
-
if (!s.startsWith('/') || /[\
|
|
496
|
+
if (!s.startsWith('/') || /[\n\r\t\v\f,*?()\[\]{}]/.test(s) || s.includes('..')) continue;
|
|
495
497
|
tools.push(`Write(/${s}/**)`, `Edit(/${s}/**)`);
|
|
496
498
|
}
|
|
497
499
|
}
|
|
@@ -502,6 +502,16 @@ module.exports = {
|
|
|
502
502
|
if (!got.ok || !isObj(got.body)) return fail(ctx, res, 400, 'the body must be a JSON object');
|
|
503
503
|
const body = got.body, g = guard.requirePagePress(req, body);
|
|
504
504
|
if (!g.ok) return fail(ctx, res, g.status, g.error);
|
|
505
|
+
// a press that names the initiative but no board (a ✦ filed from a chat or the CLI carried board '' until 2026-11-17): the board the
|
|
506
|
+
// initiative sits on stands in, so the product page's ✓ is never answered "board is required"
|
|
507
|
+
if (!(typeof body.board === 'string' && body.board) && typeof body.initiative === 'string' && body.initiative) {
|
|
508
|
+
try {
|
|
509
|
+
const w = ctx.getWs(typeof body.ws === 'string' && body.ws ? body.ws : null) || null;
|
|
510
|
+
const fr = w ? RB.frameFor(ctx, w) : null, b = w ? RB.baseRows(w, ctx) : null;
|
|
511
|
+
const row = b && b.ok ? (b.rows || []).find((r) => r && r.id === body.initiative) : null;
|
|
512
|
+
if (row && fr) body.board = RB.boardIdOf(row, fr.boards, fr.folded, w);
|
|
513
|
+
} catch { /* postFrame says what is missing */ }
|
|
514
|
+
}
|
|
505
515
|
const p = RB.postFrame(ctx, res, body);
|
|
506
516
|
if (!p) return true;
|
|
507
517
|
if (!p.file || !dirOf(ctx, p.w)) return fail(ctx, res, 409, NO_STATE);
|
|
@@ -84,7 +84,7 @@ function openInis(ctx, w) {
|
|
|
84
84
|
* "✦ My pick: ✦ My pick: [object Object]"). */
|
|
85
85
|
const pickOf = (x) => (x && typeof x.to === 'string' && x.to.trim() ? x.to.trim().slice(0, 120) : '');
|
|
86
86
|
const MAX_VIEWS = 5; // the Needs you block shows one decision: at most 5 initiatives' proposal views are built for it
|
|
87
|
-
function needsOf(ctx, w, boardId, ids) {
|
|
87
|
+
function needsOf(ctx, w, boardId, ids, titles = {}) {
|
|
88
88
|
const out = [];
|
|
89
89
|
let RP; try { RP = require('./routes-proposals.js'); } catch { return out; }
|
|
90
90
|
const open = ids.length > 1 ? openInis(ctx, w) : null;
|
|
@@ -94,7 +94,7 @@ function needsOf(ctx, w, boardId, ids) {
|
|
|
94
94
|
const ps = v.groups.flatMap((g) => g.props || []).sort((a, b) => (a.group === 'dates' ? -1 : 0) - (b.group === 'dates' ? -1 : 0));
|
|
95
95
|
const p = ps[0]; if (!p) continue;
|
|
96
96
|
const first = (p.items || [])[0] || null;
|
|
97
|
-
out.push({ id: p.id, q: String(p.title || (first && first.title) || 'A change PMOS proposes').slice(0, 160), sub: String(p.why || '').slice(0, 200), pick: pickOf(first), from: ini, ini, board: boardId, group: p.group,
|
|
97
|
+
out.push({ id: p.id, q: String(p.title || (first && first.title) || 'A change PMOS proposes').slice(0, 160), sub: String(p.why || '').slice(0, 200), pick: pickOf(first), from: ini, ini, iniTitle: String(titles[ini] || '').slice(0, 120), board: boardId, group: p.group,
|
|
98
98
|
keep: { ids: [p.id] }, drop: { sig: p.sig } });
|
|
99
99
|
}
|
|
100
100
|
return out.sort((a, b) => (a.group === 'dates' ? -1 : 0) - (b.group === 'dates' ? -1 : 0));
|
|
@@ -158,7 +158,7 @@ async function factsFor(req, ctx, w, scope, { from, now = Date.now(), cache = nu
|
|
|
158
158
|
const rst = RS.stateOf(w.root);
|
|
159
159
|
const setups = [...rst.setups.values()];
|
|
160
160
|
const inScope = P.level === 'initiative' ? [row] : rows;
|
|
161
|
-
const needs = B && !lite ? needsOf(ctx, w, B.board.id, inScope.map((r) => r.id)) : []; // lite: the tick reads the decisions only for a weekly that is due
|
|
161
|
+
const needs = B && !lite ? needsOf(ctx, w, B.board.id, inScope.map((r) => r.id), Object.fromEntries(inScope.map((r) => [r.id, r.title || '']))) : []; // lite: the tick reads the decisions only for a weekly that is due
|
|
162
162
|
// a source is stale when Jira has not been read for two days for work in Build or Deliver (PbG2)
|
|
163
163
|
let stale = null;
|
|
164
164
|
for (const r of inScope) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.586.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.586.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -155,8 +155,10 @@ export const needsOf = (d) => (d && Array.isArray(d.needsList) && d.needsList.le
|
|
|
155
155
|
export function needsHtml(d) {
|
|
156
156
|
const L = needsOf(d); if (!L.length) return '';
|
|
157
157
|
const pickOf = (n) => (typeof n.pick === 'string' ? n.pick.replace(/^✦\s*My pick:\s*/, '') : ''); // an older server sent the prefix
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
// above the initiative (a product or program page) the row names the initiative it belongs to, so a ✦ never reads as the product's own
|
|
159
|
+
const who = (n) => (d.level !== 'initiative' && n.iniTitle ? n.iniTitle + (n.sub ? ' · ' : '') : '') + (n.sub || '');
|
|
160
|
+
return sec('Needs you', L.map((n, i) => { const pk = pickOf(n), sub = who(n);
|
|
161
|
+
return `<div class="db-card db-need"><div class="db-nq">${SV(I.flag, 16)}<span class="db-rt"><b>${esc(n.q)}</b>${sub ? `<small>${esc(sub)}</small>` : ''}${pk ? `<span class="db-pick">✦ My pick: ${esc(pk)}</span>` : ''}</span></div>`
|
|
160
162
|
+ `<div class="db-acts">${ib('needs', 'Not now', I.x, { k: 'drop', i, off: !n.drop })}${ib('needs-edit', 'Change it first', I.pen, { i })}${ib('needs', 'Keep my pick' + (pk ? ': ' + pk : ''), I.chk, { solid: true, k: 'keep', i, off: !n.keep })}</div></div>`; }).join(''));
|
|
161
163
|
}
|
|
162
164
|
/** "Goals I would change": the old wording struck through, the new one, one reason and the test read with its source and number; ✎ ✕ per goal and one ✓.
|
|
@@ -256,7 +258,7 @@ export function wireDash(body, h0) {
|
|
|
256
258
|
if (a === 'report') { const r = row(k); if (r && h.openReport) h.openReport(r, d); return; }
|
|
257
259
|
b.disabled = true;
|
|
258
260
|
if (a === 'needs') {
|
|
259
|
-
const n = need() || {}, w = { ws: h.ws || undefined, board: h.board || undefined, initiative: n.ini || undefined };
|
|
261
|
+
const n = need() || {}, w = { ws: h.ws || undefined, board: h.board || n.board || undefined, initiative: n.ini || undefined };
|
|
260
262
|
if (k === 'keep') return done(await post('/api/proposals/keep', { ...w, ids: (n.keep && n.keep.ids) || [] }), 'Kept your pick.');
|
|
261
263
|
return done(await post('/api/proposals/drop', { ...w, sig: n.drop && n.drop.sig }), 'Not now. It stays in PMOS proposes.');
|
|
262
264
|
}
|
package/workspace/server.js
CHANGED
|
@@ -3415,9 +3415,13 @@ const liveRound = require('./lib/live-round.js').install({
|
|
|
3415
3415
|
product: (ws) => { const w = workspaces.get(ws) || null; if (!w) return null; const dir = stateDirFor(w); return dir ? { w, dir } : null; },
|
|
3416
3416
|
info: (ws, ini) => {
|
|
3417
3417
|
const w = workspaces.get(ws); if (!w) return null;
|
|
3418
|
-
|
|
3419
|
-
let
|
|
3420
|
-
|
|
3418
|
+
const RB = require('./lib/routes-boards.js');
|
|
3419
|
+
let row = null; try { const b = RB.baseRows(w); if (b && b.ok) row = (b.rows || []).find((r) => r && r.id === ini) || null; } catch { row = null; }
|
|
3420
|
+
// the board the initiative sits on (a base row carries none; 2026-11-17 the ✦ filed with board '' and ✓ on the product page answered
|
|
3421
|
+
// "board is required"): the frame's assignment, the domain folder, or the workspace's own board
|
|
3422
|
+
let board = ''; try { const fr = row ? RB.frameFor({ stateDirFor: () => stateDirFor(w) }, w) : null; board = fr ? RB.boardIdOf(row, fr.boards, fr.folded, w) : ''; } catch { board = ''; }
|
|
3423
|
+
let intent = ''; try { const AF = require('./lib/artefacts.js'), dir = stateDirFor(w); const st = AF.fold(AF.readLines(AF.file(dir))); const it = AF.intentOf(st, [board ? 'board:' + board : null, 'portfolio'].filter(Boolean)); intent = it && it.fields.want ? it.fields.want.text : ''; } catch { intent = ''; }
|
|
3424
|
+
return { title: (row && row.title) || ini, board, description: (row && row.description) || '', intent };
|
|
3421
3425
|
},
|
|
3422
3426
|
spawn: (spec) => spawnSession({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, initiative: spec.initiative,
|
|
3423
3427
|
writePaths: spec.writePaths, addDirs: spec.addDirs, autoDelete: undefined, onDone: spec.onDone }),
|