create-pmos 0.458.0 → 0.460.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 -27
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/guide/initiatives-screen.md +2 -0
- package/workspace/lib/routes-programs.js +33 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/task-card.js +2 -0
- package/workspace/task-card-test.js +39 -1
- package/workspace/test-files.json +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.460.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": {
|
|
@@ -32,6 +32,32 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.460.0",
|
|
37
|
+
"at": "2026-10-31T01:09:44.980Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1112,
|
|
42
|
+
"t": "Read a linked worktree's programs as its main tree's",
|
|
43
|
+
"s": "Read a linked worktree's programs as its main tree's",
|
|
44
|
+
"k": "fix"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"v": "0.459.0",
|
|
50
|
+
"at": "2026-10-30T09:40:09.558Z",
|
|
51
|
+
"f": 3,
|
|
52
|
+
"prs": [
|
|
53
|
+
{
|
|
54
|
+
"n": 1109,
|
|
55
|
+
"t": "Refresh saved task notes on reopen",
|
|
56
|
+
"s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
|
|
57
|
+
"k": "fix"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
35
61
|
{
|
|
36
62
|
"v": "0.458.0",
|
|
37
63
|
"at": "2026-10-30T03:22:27.686Z",
|
|
@@ -271,32 +297,6 @@
|
|
|
271
297
|
"k": "new"
|
|
272
298
|
}
|
|
273
299
|
]
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"v": "0.440.0",
|
|
277
|
-
"at": "2026-10-28T10:07:02.578Z",
|
|
278
|
-
"f": 3,
|
|
279
|
-
"prs": [
|
|
280
|
-
{
|
|
281
|
-
"n": 1084,
|
|
282
|
-
"t": "Your day rows open, honest Intelligence drafting, update reloads in place, Live pill clear of the chat (feedback batch 18 items 3–6)",
|
|
283
|
-
"s": "Your day rows open, honest Intelligence drafting, update reloads in place, Live pill clear of the chat (feedback batch 18 items 3–6)",
|
|
284
|
-
"k": "fix"
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"v": "0.439.0",
|
|
290
|
-
"at": "2026-10-28T08:36:52.065Z",
|
|
291
|
-
"f": 3,
|
|
292
|
-
"prs": [
|
|
293
|
-
{
|
|
294
|
-
"n": 1083,
|
|
295
|
-
"t": "Meeting notes cover the whole meeting when the live transcript stops early",
|
|
296
|
-
"s": "Meeting notes cover the whole meeting when the live transcript stops early",
|
|
297
|
-
"k": "fix"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-10-
|
|
1
|
+
kernel-source: pmos@a1ccd04a
|
|
2
|
+
assembled: 2026-10-31
|
|
3
3
|
mode: vendor
|
|
@@ -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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T01:09:41Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T01:09:41Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T01:09:41Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.460.0",
|
|
4
|
+
"at": "2026-10-31T01:09:44.980Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1112,
|
|
9
|
+
"t": "Read a linked worktree's programs as its main tree's",
|
|
10
|
+
"s": "Read a linked worktree's programs as its main tree's",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.459.0",
|
|
17
|
+
"at": "2026-10-30T09:40:09.558Z",
|
|
18
|
+
"f": 3,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1109,
|
|
22
|
+
"t": "Refresh saved task notes on reopen",
|
|
23
|
+
"s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
|
|
24
|
+
"k": "fix"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.458.0",
|
|
4
30
|
"at": "2026-10-30T03:22:27.686Z",
|
|
@@ -23,6 +23,8 @@ Press the arrow on the telemetry card to hide all three parts. A banner stays: t
|
|
|
23
23
|
|
|
24
24
|
Tasks has no **Full width** icon: use the split panel to make the Viewer wider. On a phone, Tasks is a list only. The workspace keeps a Timeline or Kanban view that you chose on a larger screen, and shows it again there.
|
|
25
25
|
|
|
26
|
+
Open a task to edit its Notes. Leave the box or press Ctrl/Cmd+Enter to save. Closing the viewer also saves the pending edit. After the save succeeds, reopening the task reads the saved notes, even if you opened it while the save was pending. The save toast offers Undo.
|
|
27
|
+
|
|
26
28
|
### Scan repository
|
|
27
29
|
|
|
28
30
|
The workspace reads the stage, the files and the breakdown of each initiative from the repository. It reads them again when an initiative record changes, and at the latest after ten minutes. A change that does not touch a record, for example a new PRD or a pull request merged on the trunk, can show late.
|
|
@@ -33,6 +33,7 @@ const guard = require('./pm-guard.js');
|
|
|
33
33
|
const pmItems = require('./pm-items.js');
|
|
34
34
|
const P = require('./programs.js');
|
|
35
35
|
const MS = require('./milestone-suggest.js');
|
|
36
|
+
const gitInfo = require('./git-info.js');
|
|
36
37
|
|
|
37
38
|
const str = (v, n) => String(v == null ? '' : v).replace(/[\u0000-\u001f]+/g, ' ').trim().slice(0, n);
|
|
38
39
|
const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
@@ -47,10 +48,36 @@ function stateDir(ctx, w, create = true) {
|
|
|
47
48
|
const fileOf = (ctx, w, create = true) => { const d = stateDir(ctx, w, create); return d ? path.join(d, 'programs.jsonl') : null; };
|
|
48
49
|
const read = (f) => { try { return f ? pmItems.readLines(f).filter(Boolean) : []; } catch { return []; } };
|
|
49
50
|
|
|
50
|
-
/**
|
|
51
|
+
/** The registered workspace a linked git worktree stands for: the one at the same place in the repo's main tree. A worktree is its own
|
|
52
|
+
* checkout, so it carries its own copy of programs.jsonl, and registered it is its own "product" (`pmos-idpf ⑂ initiative/x`). Read as
|
|
53
|
+
* such, a charter saved from the worktree puts the program under the worktree product while its members sit under the main one, and a
|
|
54
|
+
* member line that both hold shows twice. So the ledgers of a repo's trees are read as ONE product, the main tree's. Null when the
|
|
55
|
+
* workspace is not a linked worktree, or its main tree is not registered (nothing to fold into). Memoised: all() runs on every poll. */
|
|
56
|
+
const MAIN_TTL_MS = 15000;
|
|
57
|
+
const mainCache = new Map(); // root -> { at, main: root of the repo's main tree | null }
|
|
58
|
+
function mainTreeRoot(w) {
|
|
59
|
+
const hit = mainCache.get(w.root);
|
|
60
|
+
if (hit && Date.now() - hit.at < MAIN_TTL_MS) return hit.main;
|
|
61
|
+
let main = null;
|
|
62
|
+
try {
|
|
63
|
+
const top = gitInfo.repoRoot(w.root), trees = top ? gitInfo.worktrees(w.root) : [];
|
|
64
|
+
if (top && trees.length && trees[0].dir && path.resolve(trees[0].dir) !== path.resolve(top)) main = path.join(path.resolve(trees[0].dir), path.relative(path.resolve(top), path.resolve(w.root)));
|
|
65
|
+
} catch { main = null; }
|
|
66
|
+
mainCache.set(w.root, { at: Date.now(), main });
|
|
67
|
+
return main;
|
|
68
|
+
}
|
|
69
|
+
function foldedInto(list, w) {
|
|
70
|
+
const main = mainTreeRoot(w);
|
|
71
|
+
return main ? list.find((x) => x !== w && path.resolve(x.root) === main) || null : null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Every registered workspace's ledger, merged; each program with Claude's milestone review from its charter's workspace. A linked
|
|
75
|
+
* worktree's ledger counts as its main tree's (foldedInto), read first so the main tree's own lines win where both say the same thing. */
|
|
51
76
|
function all(ctx, now = Date.now()) {
|
|
52
77
|
const list = (ctx.workspaceList ? ctx.workspaceList() : []) || [];
|
|
53
|
-
const
|
|
78
|
+
const of = (w) => foldedInto(list, w);
|
|
79
|
+
const perWs = list.map((w) => ({ ws: (of(w) || w).id, lines: read(fileOf(ctx, w, false)), tree: of(w) ? 0 : 1 })).sort((a, b) => a.tree - b.tree);
|
|
80
|
+
const progs = P.merge(perWs);
|
|
54
81
|
const R = new Map();
|
|
55
82
|
for (const p of progs) {
|
|
56
83
|
if (!R.has(p.home)) { const w = list.find((x) => x.id === p.home), d = w ? stateDir(ctx, w, false) : null; R.set(p.home, MS.fold(read(d ? MS.fileOf(d) : null))); }
|
|
@@ -87,7 +114,10 @@ module.exports = {
|
|
|
87
114
|
if (!g.ok) return bad(g.error, g.status);
|
|
88
115
|
// a check line belongs with the charter, so every workspace's reader applies it to the same milestones
|
|
89
116
|
const home = ['/api/programs/check', '/api/programs/order', '/api/programs/suggestion', '/api/programs/review', '/api/programs/facts'].includes(p) && P.ID_RE.test(String(b.program || '')) ? (all(ctx).find((x) => x.id === b.program) || {}).home : null;
|
|
90
|
-
const
|
|
117
|
+
const asked = ctx.getWs ? ctx.getWs(home || b.ws || null) : null;
|
|
118
|
+
// a press made from a linked worktree writes to its repository's main tree, the product (see foldedInto): a program saved on a
|
|
119
|
+
// branch's own copy of the ledger would go with the branch
|
|
120
|
+
const w = (asked && foldedInto((ctx.workspaceList ? ctx.workspaceList() : []) || [], asked)) || asked;
|
|
91
121
|
if (!w) return bad('that workspace is not registered', 404);
|
|
92
122
|
const file = fileOf(ctx, w);
|
|
93
123
|
if (!file) return bad('this workspace has no state folder', 409);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.460.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.460.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -244,6 +244,8 @@ export function mountCard(el, t, h) {
|
|
|
244
244
|
apply(patch, patch.initiative && h.iniTitleOf ? h.iniTitleOf(patch.initiative) : t.iniTitle); st.msg = ''; draw(); if (h.changed) h.changed(t);
|
|
245
245
|
const r = await h.save(patch).catch(() => null);
|
|
246
246
|
if (!r || r.ok === false) { Object.assign(t, before); st.msg = (r && r.error) || 'Nothing was changed.'; draw(); if (h.changed) h.changed(t); return; }
|
|
247
|
+
// A viewer reopened during the write may have cached the old model. Invalidate again after persistence, even if this card closed.
|
|
248
|
+
if (h.changed) h.changed(t);
|
|
247
249
|
const back = {}; for (const k of Object.keys(patch)) back[k] = k === 'initiative' ? before.ini : before[k] == null ? '' : before[k];
|
|
248
250
|
h.toast(word(kind), async () => {
|
|
249
251
|
const u = await h.save(back).catch(() => null);
|
|
@@ -158,6 +158,10 @@ async function pure() {
|
|
|
158
158
|
});
|
|
159
159
|
for (const p of ['tasks/state', 'tasks/edit', 'tickets/note']) await page.route('**/api/boards/' + p, (r) => {
|
|
160
160
|
const b = JSON.parse(r.request().postData() || '{}'); posts.push({ path: '/api/boards/' + p, body: b });
|
|
161
|
+
if (p === 'tasks/edit' && typeof b.notes === 'string') {
|
|
162
|
+
const row = model.tasks.rows.find((x) => x.uid === b.task);
|
|
163
|
+
if (row) row.notes = b.notes;
|
|
164
|
+
}
|
|
161
165
|
return json(r, { ok: true, from: {}, item: {} });
|
|
162
166
|
});
|
|
163
167
|
await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
@@ -238,7 +242,7 @@ async function pure() {
|
|
|
238
242
|
await p.click(C + ' [data-tkc-notes]');
|
|
239
243
|
await p.keyboard.type('Ask legal before the UAT.');
|
|
240
244
|
await p.keyboard.press('Tab');
|
|
241
|
-
ok('D7 notes save on blur', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Ask legal before the UAT.'
|
|
245
|
+
ok('D7 notes save on blur', await until(async () => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Ask legal before the UAT.' && /Notes saved/.test((await view(p)).toast)));
|
|
242
246
|
// move
|
|
243
247
|
await p.click(C + ' [data-tkc="move"]');
|
|
244
248
|
const mv = await until(() => p.evaluate((c) => [...document.querySelectorAll(c + ' [data-tkc-move]')].map((b) => b.textContent.trim()), C));
|
|
@@ -283,6 +287,40 @@ async function pure() {
|
|
|
283
287
|
await A.ctx.close();
|
|
284
288
|
}
|
|
285
289
|
|
|
290
|
+
/* Notes survive closing, and a read during a pending save cannot poison the cache after success. */
|
|
291
|
+
{
|
|
292
|
+
const A = await open(), p = A.page;
|
|
293
|
+
await openTask(p, 'task:t1');
|
|
294
|
+
await p.fill(C + ' [data-tkc-notes]', 'Keep the UAT findings.');
|
|
295
|
+
await p.keyboard.press('Escape');
|
|
296
|
+
ok('D13 Escape saves the pending notes before closing the task', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Keep the UAT findings.'));
|
|
297
|
+
await openTask(p, 'task:t1');
|
|
298
|
+
ok('D13 reopening reads the saved notes', await until(async () => (await view(p))?.notes === 'Keep the UAT findings.'));
|
|
299
|
+
await p.fill(C + ' [data-tkc-notes]', 'Keep the second edit too.');
|
|
300
|
+
await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
|
|
301
|
+
ok('D13 programmatic close saves focused notes', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Keep the second edit too.'));
|
|
302
|
+
await openTask(p, 'task:t1');
|
|
303
|
+
ok('D13 reopening after navigation retains the second edit', await until(async () => (await view(p))?.notes === 'Keep the second edit too.'));
|
|
304
|
+
let release, saving = false;
|
|
305
|
+
const held = new Promise((resolve) => { release = resolve; });
|
|
306
|
+
await p.route('**/api/boards/tasks/edit', async (r) => { saving = true; await held; await r.fallback(); });
|
|
307
|
+
await p.fill(C + ' [data-tkc-notes]', 'Notes from a slower save.');
|
|
308
|
+
await p.keyboard.press('Tab');
|
|
309
|
+
ok('D13 the save is held while another read opens', await until(() => saving));
|
|
310
|
+
await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
|
|
311
|
+
await openTask(p, 'task:t1');
|
|
312
|
+
ok('D13 the pending read sees the previously saved notes', await until(async () => (await view(p))?.notes === 'Keep the second edit too.'));
|
|
313
|
+
await p.evaluate(() => { document.getElementById('toast').textContent = ''; });
|
|
314
|
+
release();
|
|
315
|
+
await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Notes from a slower save.');
|
|
316
|
+
await until(async () => /Notes saved/.test((await view(p)).toast));
|
|
317
|
+
await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
|
|
318
|
+
await openTask(p, 'task:t1');
|
|
319
|
+
ok('D13 reopening during a save does not leave stale notes cached after it succeeds', await until(async () => (await view(p))?.notes === 'Notes from a slower save.'));
|
|
320
|
+
ok('D13 the page raised no error', A.errors.length === 0, A.errors.join(' | '));
|
|
321
|
+
await A.ctx.close();
|
|
322
|
+
}
|
|
323
|
+
|
|
286
324
|
/* D12 the phone, dark: the same view, full screen */
|
|
287
325
|
{
|
|
288
326
|
const A = await open({ w: 390, h: 844, theme: 'dark' }), p = A.page;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"modules": [
|
|
11
11
|
"find-browser.test.js",
|
|
12
|
+
"program-worktree.test.js",
|
|
12
13
|
"own-profile.test.js",
|
|
13
14
|
"stage-tools.test.js",
|
|
14
15
|
"report-template-cadence.test.js",
|
|
@@ -170,6 +171,7 @@
|
|
|
170
171
|
"briefing-premium-sources.test.js": 1,
|
|
171
172
|
"briefing-premium-drafts.test.js": 1,
|
|
172
173
|
"agent-inbox.test.js": 1,
|
|
174
|
+
"program-worktree.test.js": 1,
|
|
173
175
|
"session-rail.test.js": 1,
|
|
174
176
|
"briefing-premium-metrics.test.js": 1,
|
|
175
177
|
"premium-welcome.test.js": 1,
|