create-pmos 0.422.0 → 0.424.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 +25 -25
- 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/board-programs-test.js +28 -0
- package/workspace/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +12 -10
- package/workspace/briefing-premium-initiative-test.js +30 -38
- package/workspace/briefing-premium-products-test.js +16 -3
- package/workspace/changelog.json +24 -0
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/guide/claude-proposes.md +37 -0
- package/workspace/guide/home.md +9 -2
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/programs.md +1 -0
- package/workspace/guide/workflows.md +5 -1
- package/workspace/home-pill-test.js +138 -0
- package/workspace/ini-workflow-test.js +4 -4
- package/workspace/lib/board-premium.js +3 -2
- package/workspace/lib/custom-docs.js +65 -3
- package/workspace/lib/engine/boards.js +25 -2
- package/workspace/lib/headless.js +14 -1
- package/workspace/lib/initiative-writer.js +63 -1
- package/workspace/lib/plan-items.js +36 -5
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/programs.js +11 -3
- package/workspace/lib/proposal-runs.js +148 -0
- package/workspace/lib/proposals.js +370 -0
- package/workspace/lib/propose-cli.js +96 -0
- package/workspace/lib/route-modules.js +2 -0
- package/workspace/lib/routes-board-premium.js +33 -0
- package/workspace/lib/routes-boards.js +50 -10
- package/workspace/lib/routes-initiatives.js +12 -0
- package/workspace/lib/routes-proposals.js +325 -0
- package/workspace/lib/routes-task-links.js +336 -0
- package/workspace/lib/split-merge-suggest.js +162 -0
- package/workspace/lib/split-merge.js +379 -0
- package/workspace/lib/task-cli.js +58 -5
- package/workspace/lib/task-items.js +14 -2
- package/workspace/lib/task-links.js +422 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +4 -4
- package/workspace/premium-core-doc-issue-test.js +2 -2
- package/workspace/premium-vw-backlog-test.js +3 -3
- package/workspace/premium-vw-item-test.js +3 -3
- package/workspace/premium-vw-jira-test.js +6 -6
- package/workspace/product-lane-test.js +165 -0
- package/workspace/program-panel-test.js +1 -1
- package/workspace/public/pm/bd-asks.js +3 -0
- package/workspace/public/pm/bd-ini-panel.js +16 -6
- package/workspace/public/pm/bd-prog.js +6 -1
- package/workspace/public/pm/bd-span.js +69 -15
- package/workspace/public/pm/bd-views.js +3 -2
- package/workspace/public/pm/cozy-board.css +10 -0
- package/workspace/public/pm/cozy-today.css +23 -0
- package/workspace/public/pm/cozy-viewer.js +14 -3
- package/workspace/public/pm/cozy-vw-shell.css +8 -0
- package/workspace/public/pm/home-app.js +45 -14
- package/workspace/public/pm/home-ini-model.js +0 -34
- package/workspace/public/pm/home-ini.js +72 -204
- package/workspace/public/pm/home-task.js +2 -1
- package/workspace/public/pm/home-today.js +66 -16
- package/workspace/public/pm/ini-groups.js +253 -0
- package/workspace/public/pm/ini-links.js +519 -0
- package/workspace/public/pm/ini-props.js +218 -0
- package/workspace/public/pm/ini-tasks.js +58 -22
- package/workspace/public/pm/ini-versions.js +14 -9
- package/workspace/public/pm/ini-view-model.js +93 -4
- package/workspace/public/pm/ini-view.css +306 -18
- package/workspace/public/pm/ini-view.js +161 -36
- package/workspace/public/pm/premium-board.js +54 -6
- package/workspace/public/pm/premium-vw-item.js +2 -1
- package/workspace/public/pm/split-merge.css +77 -0
- package/workspace/public/pm/split-merge.js +265 -0
- package/workspace/public/pm/stage-line.js +414 -0
- package/workspace/public/pm/task-card.css +13 -0
- package/workspace/public/pm/task-card.js +42 -5
- package/workspace/public/pm/wf-page.css +2 -0
- package/workspace/public/pm/wf-page.js +2 -0
- package/workspace/public/pm/wf-stage.js +2 -1
- package/workspace/server.js +52 -3
- package/workspace/skills/initiative-propose.skill +45 -0
- package/workspace/split-merge-ui-test.js +175 -0
- package/workspace/stage-card-test.js +13 -12
- package/workspace/task-card-test.js +3 -2
- package/workspace/task-delete-test.js +126 -0
- package/workspace/task-links-test.js +239 -0
- package/workspace/task-milestones-test.js +1 -1
- package/workspace/task-plans-test.js +6 -0
- package/workspace/task-views-test.js +1 -1
- package/workspace/test-lists/bd-ini-panel.json +8 -2
- package/workspace/test-lists/claude-proposes.json +5 -0
- package/workspace/test-lists/home-sessions-pill.json +6 -0
- package/workspace/test-lists/product-lane.json +6 -0
- package/workspace/test-lists/split-merge.json +15 -0
- package/workspace/test-lists/task-delete.json +5 -0
- package/workspace/test-lists/task-links.json +6 -0
- package/workspace/tk-tasks-test.js +186 -57
- package/workspace/workflows-setup-test.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.424.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,30 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.424.0",
|
|
37
|
+
"at": "2026-10-27T00:38:50.632Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1064,
|
|
42
|
+
"t": "Twelfth testing feedback batch",
|
|
43
|
+
"s": "Twelfth testing feedback batch"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"v": "0.423.0",
|
|
49
|
+
"at": "2026-10-26T16:10:21.071Z",
|
|
50
|
+
"f": 2,
|
|
51
|
+
"prs": [
|
|
52
|
+
{
|
|
53
|
+
"n": 1063,
|
|
54
|
+
"t": "Eleventh testing feedback batch, part 2",
|
|
55
|
+
"s": "Eleventh testing feedback batch, part 2"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
35
59
|
{
|
|
36
60
|
"v": "0.422.0",
|
|
37
61
|
"at": "2026-10-26T13:03:41.940Z",
|
|
@@ -247,30 +271,6 @@
|
|
|
247
271
|
"s": "Home session list, program chat, and new initiative sessions"
|
|
248
272
|
}
|
|
249
273
|
]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"v": "0.404.0",
|
|
253
|
-
"at": "2026-10-24T05:07:12.902Z",
|
|
254
|
-
"f": 2,
|
|
255
|
-
"prs": [
|
|
256
|
-
{
|
|
257
|
-
"n": 1034,
|
|
258
|
-
"t": "Chat names the real program press; add Turn into a program to the initiative ⋯",
|
|
259
|
-
"s": "Chat names the real program press; add Turn into a program to the initiative ⋯"
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.403.0",
|
|
265
|
-
"at": "2026-10-24T03:40:15.576Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1033,
|
|
270
|
-
"t": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)",
|
|
271
|
-
"s": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-10-
|
|
1
|
+
kernel-source: pmos@a7084712
|
|
2
|
+
assembled: 2026-10-27
|
|
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-27T00:38:47Z"}
|
|
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-27T00:38:47Z"}
|
|
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-27T00:38:47Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
|
@@ -175,6 +175,16 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
175
175
|
return [...d.querySelectorAll('.tg-r[data-row]')].map((r) => r.dataset.row);
|
|
176
176
|
});
|
|
177
177
|
ok('T By product: a program\'s initiative shows under its product on the timeline (batch 11 item 12)', bpt.includes('board:a') && bpt.includes('board:b'), JSON.stringify(bpt));
|
|
178
|
+
// batch 11 item 22: a timeline reads in time; each group's rows by start then end, undated last, whatever order the Board lists them in
|
|
179
|
+
const ord = await p.evaluate(async () => {
|
|
180
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
181
|
+
const r = (k, s, e, prog) => ({ key: 'board:' + k, id: k, title: 'Row ' + k, start: s, end: e, track: { key: 'build' }, ...(prog ? { inProgram: 'pg' } : {}) });
|
|
182
|
+
const late = r('late', '2026-12-01', '2027-02-01'), early = r('early', '2026-08-01', '2026-11-01'), mid = r('mid', '2026-10-01', '2026-12-15'), nd = r('nd', null, null, true);
|
|
183
|
+
const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [late, nd, mid, early] }];
|
|
184
|
+
const d = document.createElement('div'); d.innerHTML = S.timelineHtml([late, mid, early, nd], { jira: null }, 'quarter', { now, groups }).html;
|
|
185
|
+
return [...d.querySelectorAll('.tg-r[data-row]')].map((x) => x.dataset.row.slice(6)).join();
|
|
186
|
+
});
|
|
187
|
+
ok('T the timeline rows of a group run by start date, an undated one last (batch 11 item 22)', ord === 'early,mid,late,nd', ord);
|
|
178
188
|
const nd = await p.evaluate(async () => {
|
|
179
189
|
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
180
190
|
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
@@ -187,6 +197,24 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
187
197
|
return { member: !!row, nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', loose: [...d.querySelectorAll('.tg-r[data-row]')].some((r) => /Loose undated/.test(r.textContent)), none: T.none.length };
|
|
188
198
|
});
|
|
189
199
|
ok('T an undated initiative in a program keeps its row under the program and says "No dates"; an undated one outside a program is named in the foot only (batch 8 item 4)', nd.member && nd.nd === 'No dates' && !nd.loose && nd.none === 2, JSON.stringify(nd));
|
|
200
|
+
// batch 11 item 19: By product, a program's undated initiative keeps its "No dates" row under its product (it disappeared once grouped by
|
|
201
|
+
// product); an undated one in no program is still named in the foot only
|
|
202
|
+
const bnd = await p.evaluate(async () => {
|
|
203
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
204
|
+
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
205
|
+
const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
|
|
206
|
+
const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
|
|
207
|
+
const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [a, { ...b, inProgram: 'pg' }, c] }];
|
|
208
|
+
for (const phone of [false, true]) {
|
|
209
|
+
const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups, phone });
|
|
210
|
+
const d = document.createElement('div'); d.innerHTML = T.html;
|
|
211
|
+
const rs = [...d.querySelectorAll('[data-row]')], row = rs.find((r) => r.dataset.row === 'board:b');
|
|
212
|
+
const out = { phone, rows: rs.map((r) => r.dataset.row), nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', none: T.none.length };
|
|
213
|
+
if (!(out.nd === 'No dates' && out.rows.join() === 'board:a,board:b' && out.none === 2)) return out;
|
|
214
|
+
}
|
|
215
|
+
return true;
|
|
216
|
+
});
|
|
217
|
+
ok('T By product: a program\'s undated initiative keeps its "No dates" row under its product, desktop and phone; one in no program is in the foot only (batch 11 item 19)', bnd === true, JSON.stringify(bnd));
|
|
190
218
|
ok('T a legend in the chip row names done, planned, the program milestone, Milestone (Deliver, Evaluate and milestone tasks, batch 11 item 3) and today', /Done in Jira/.test(t.lgd) && /To do/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Program milestone.*Milestone/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
191
219
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
192
220
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
@@ -59,7 +59,7 @@ const PAGES = {
|
|
|
59
59
|
await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
|
|
60
60
|
await page.goto(BASE + P.file + P.qs + theme);
|
|
61
61
|
let up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.ready), 20000);
|
|
62
|
-
if (up && kind === 'initiative') {
|
|
62
|
+
if (up && kind === 'initiative') { /* the page holds the Tasks (batch 11 item 20) */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 20000); } // the Overview holds the button
|
|
63
63
|
if (up && P.file === '/premium-board.html') await page.click(w <= 720 ? '#chDocs' : '#tabDocs'); // a phone reaches the documents from its Docs chip // the Agreed design shows the documents on the Documents tab (premium-agreed-design)
|
|
64
64
|
return { ctx, page, errors, posts, up, calls: () => calls, setCustom: (c) => { current = c; }, reply: (a) => { reply = a; } };
|
|
65
65
|
};
|
|
@@ -56,9 +56,11 @@ const IVREAD = () => {
|
|
|
56
56
|
const sc = iv.querySelector('.iv-sc'), c = window.czViewer && window.czViewer.current(), r = v.getBoundingClientRect();
|
|
57
57
|
return { t: tx('.cz-vw-title', v), kind: c && c.kind, line: tx('.iv-s1 b'), right: tx('.iv-s1 .iv-r'), why: tx('.iv-why'), meta: tx('.iv-meta'), wfi: (iv.querySelector('.iv-meta .wfi') || {}).title || null,
|
|
58
58
|
primary: (iv.querySelector('[data-iv-primary]') || {}).dataset ? (iv.querySelector('[data-iv-primary]') || { dataset: {} }).dataset.ivPrimary || null : null,
|
|
59
|
-
stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-scm', sc), no: sc && tx('.iv-sch .iv-no', sc),
|
|
60
|
+
// the stage line (batch 11 item 21): one part a stage, read back as "<done|now|next> [ms]" a stage, as the ladder's bars were
|
|
61
|
+
...(() => { const by = new Map(); for (const x of sc ? sc.querySelectorAll('.iv-tl .iv-tlp') : []) if (!by.has(x.dataset.ivStage)) by.set(x.dataset.ivStage, x);
|
|
62
|
+
const ps = [...by.values()]; return { bars: ps.map((x) => [['done', 'now', 'next'].find((k) => x.classList.contains(k)) || '', /^◆ /.test(x.title) ? 'ms' : ''].filter(Boolean).join(' ')).join('|'), titles: ps.map((x) => x.title) }; })(),
|
|
63
|
+
aria: sc && sc.getAttribute('aria-label'), dates: sc && tx('.iv-tl-dt', sc), next: sc && sc.querySelector('.iv-scgo') ? sc.querySelector('.iv-scgo').getAttribute('aria-label') : null,
|
|
62
64
|
tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket]')].map((e) => e.dataset.ivTicket).join(),
|
|
63
65
|
rows: [...iv.querySelectorAll('.iv-tr')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()), q: [...iv.querySelectorAll('.iv-q')].map((e) => e.textContent), empty: !!iv.querySelector('.iv-empty'),
|
|
64
66
|
folds: [...iv.querySelectorAll('.iv-fr b, .czs-row b')].map((b) => b.textContent), body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '),
|
|
@@ -156,9 +158,9 @@ const IVREAD = () => {
|
|
|
156
158
|
const k = await q.evaluate(() => { const r = document.querySelector('.bt-l[data-row="board:usage-billing"]'); return { cls: r.querySelector('.bt-cells > div').className, n: r.querySelectorAll('.bt-cells > div.k').length }; });
|
|
157
159
|
ok('B1 a step the row was moved past is a hollow "Skipped" ring', /\bk\b/.test(k.cls) && k.n === 1, JSON.stringify(k));
|
|
158
160
|
await q.click('.bt-l[data-row="board:usage-billing"] .bt-nm');
|
|
159
|
-
/* re-pointed (batch
|
|
161
|
+
/* re-pointed (batch 11 item 21, the stage line): as on the Board's timeline, a skipped stage has no part; a » marks it only between two parts */
|
|
160
162
|
const sk = await until(() => q.evaluate(IVREAD));
|
|
161
|
-
ok('B1 the panel
|
|
163
|
+
ok('B1 the panel\'s line has no part for the skipped first step: it starts at Discover, now', !!sk && sk.bars.split('|').length === 7 && sk.bars.split('|')[0] === 'now' && /^Discover · /.test(sk.titles[0]) && !sk.titles.some((x) => /Triage/.test(x)), JSON.stringify(sk && [sk.bars, sk.titles]));
|
|
162
164
|
await R.ctx.close();
|
|
163
165
|
}
|
|
164
166
|
{
|
|
@@ -175,8 +177,8 @@ const IVREAD = () => {
|
|
|
175
177
|
const td = await until(() => q.evaluate(IVREAD));
|
|
176
178
|
ok('XipB a Tender initiative: Late, the one sentence why from the record, the progress said once as typed in by hand, the owner and the Tender workflow', !!td && td.line === 'Late' && /^The plan ended Aug 11(, 2026)?, \d+ days ago, and Tender new CIAM is in Technical POC\.$/.test(td.why) && td.right === '53% done · typed in by hand' && /wawan ?· ?Tender$/.test(td.meta) && td.wfi === 'Tender', JSON.stringify(td));
|
|
177
179
|
ok('XipB the stage card is the Tender stage: "Technical POC", 5 of 7 on the ladder, the seven Tender stages with Technical POC current and ◆ on the last two', !!td && td.stage === 'Technical POC' && td.no === '5' && td.bars === 'done|done|done|done|now|next ms|next ms' && td.aria === 'Stage 5 of 7 of Tender: Technical POC. Next stage: Award decision.' && !/No st(ep|age) on record/.test(td.body), JSON.stringify(td && [td.stage, td.no, td.bars, td.aria]));
|
|
178
|
-
ok('XipB the
|
|
179
|
-
ok('XipB the dates
|
|
180
|
+
ok('XipB the → names the next stage; no breakdown draws the seven Tender sections dashed, with Technical POC marked now', !!td && /^Next: ◆ Award decision/.test(td.next || '') && td.empty && /Technical POC · now/.test(td.body), JSON.stringify(td && [td.next, td.empty]));
|
|
181
|
+
ok('XipB the dates under the line say the plan and the overrun; no Jira date; the progress number is said once', !!td && /^Apr 23 ?Aug 11 ?\d+ days over$/.test(td.dates || '') && !/Jira:/.test(td.dates) && (td.body.match(/53%/g) || []).length === 1 && !td.folds.includes('Dates and trend'), JSON.stringify(td && [td.dates, td.folds]));
|
|
180
182
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-tender-1440.png') });
|
|
181
183
|
await R.ctx.close();
|
|
182
184
|
if (process.env.PMOS_SHOTS) {
|
|
@@ -328,7 +330,7 @@ const IVREAD = () => {
|
|
|
328
330
|
* over the eight; the old Plan card is the dates line (start, plan end, days left; no Jira date without a Jira forecast); the progress says
|
|
329
331
|
* where it comes from; Dates and trend is gone */
|
|
330
332
|
const tp = await until(() => p.evaluate(IVREAD).then((x) => (x && x.kind === 'Initiative' ? x : null)));
|
|
331
|
-
ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)?
|
|
333
|
+
ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)? · \d+ days left$/.test(tp.dates || '') && !/Jira:/.test(tp.dates) && !tp.folds.includes('Dates and trend'), JSON.stringify(tp && [tp.stage, tp.bars, tp.right, tp.dates, tp.folds]));
|
|
332
334
|
await p.click('#czViewer [data-cz-vw="more"]'); await sleep(80);
|
|
333
335
|
const tm = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].map((b) => b.textContent.trim()));
|
|
334
336
|
ok('B6 ⋯ holds the timeline panel\'s actions first (move, hold, cancel or archive; the plan dates), then Open in full, link and copy', tm[0] === 'Move, hold, cancel or archive' && tm[1] === 'Change the plan dates' && tm.includes('Open in full') && tm.includes('Copy link') && tm.includes('Copy as text'), JSON.stringify(tm));
|
|
@@ -442,8 +444,8 @@ const IVREAD = () => {
|
|
|
442
444
|
ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc) && rf.you && rf.line === 'Give your verdict', JSON.stringify(rf));
|
|
443
445
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
444
446
|
/* re-pointed (the one view): the same records, in the stage card's day clock, the ladder, Linked (a fold of the view) and the Board's own rows */
|
|
445
|
-
const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-
|
|
446
|
-
ok('T the stage card says where it stands and the day in the stage of the usual days; the
|
|
447
|
+
const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-scm') || {}).textContent, stage: (v.querySelector('.iv-sch b') || {}).textContent, stt: (v.querySelector('.iv-tl .iv-tlp.now') || {}).title, drafted: sec('drafted'), wt: sec('drift') }; }));
|
|
448
|
+
ok('T the stage card says where it stands and the day in the stage of the usual days; the line marks the stage now', !!pk && pk.stage === 'Build' && /18 of ~14 days$/.test(pk.where || '') && !/day|usually/.test(pk.meta) && /^Build · .*now$/.test(pk.stt || ''), JSON.stringify(pk && [pk.stage, pk.where, pk.meta, pk.stt]));
|
|
447
449
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-build-1280.png') });
|
|
448
450
|
ok('T tickets drafted in PMOS and not in Jira are listed, and go to Jira only through your Commit', !!pk && pk.drafted.n === '1' && /^V\.4 ?Resend the invite after 48 hours ?not in Jira ?They go to Jira only through your Commit\.$/.test(pk.drafted.body), JSON.stringify(pk && pk.drafted));
|
|
449
451
|
ok('T a ticket pushed from an older PRD is flagged as PRD drift', !!pk && !!pk.wt && /^ONB-31 was pushed from an older PRD/.test(pk.wt.body), JSON.stringify(pk && pk.wt));
|
|
@@ -40,7 +40,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
40
40
|
const mk = (o) => IP.build(F.facts(o));
|
|
41
41
|
const BOARD = BP.build(BF.facts());
|
|
42
42
|
const BRIEF = BRP.build(BRF.facts());
|
|
43
|
-
const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-docs\/draft)$/;
|
|
43
|
+
const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-docs\/draft|task-plans\/propose)$/;
|
|
44
44
|
|
|
45
45
|
(async () => {
|
|
46
46
|
const exe = findBrowser();
|
|
@@ -74,14 +74,20 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
74
74
|
// initiative reads, its card from the record (the ladder). Before the record reads, the page says it is reading.
|
|
75
75
|
async function ready(page, full = true) { return until(() => page.evaluate((f) => /·/.test((document.querySelector('#czViewer:not([hidden]) .cz-vw-kind') || {}).textContent || '') && (!f || (!!document.querySelector('#czViewer .iv-sc') && !!((document.querySelector('#czViewer .iv-sch > b') || {}).textContent || '').trim())), full), 30000); }
|
|
76
76
|
const txt = (p, s) => p.evaluate((q) => ((document.querySelector(q) || {}).textContent || '').replace(/\s+/g, ' ').trim(), s);
|
|
77
|
-
//
|
|
78
|
-
|
|
77
|
+
// batch 11 item 20: the page holds the Tasks (the old All tasks panel is gone); its ⋯ holds Move to a stage and its Documents fold opens
|
|
78
|
+
// Documents; the Stage and Documents views hold each other under ⋯; ← goes back to the page. view names the one to show ('tasks' is the page)
|
|
79
|
+
const LABEL = { docs: 'Documents', stage: 'Stage' };
|
|
80
|
+
const onPage = (p) => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V);
|
|
79
81
|
const show = async (p, view) => {
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
+
if (view === 'tasks') { for (let i = 0; i < 4 && !(await onPage(p)); i++) { await p.click('#czViewer [data-cz-vw="back"]'); await sleep(150); } return until(() => onPage(p)); }
|
|
83
|
+
if (await onPage(p) && view === 'docs') await p.click(`${V} [data-iv-docs]`);
|
|
84
|
+
else {
|
|
85
|
+
await p.click('#czViewer [data-cz-vw="more"]'); await until(() => p.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu')));
|
|
86
|
+
await p.click(`#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${(await onPage(p)) ? 'Move to a stage' : LABEL[view]}"))`);
|
|
87
|
+
}
|
|
82
88
|
return until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-v="${a[1]}"]`), [V, view])); };
|
|
83
89
|
const moreLabels = (p) => p.evaluate(async () => { const b = document.querySelector('#czViewer [data-cz-vw="more"]'); if (!b) return []; b.click(); await new Promise((r) => setTimeout(r, 50)); const m = document.querySelector('#czViewer .cz-vw-menu'); const out = m ? [...m.querySelectorAll('[role="menuitem"] span:first-of-type')].map((x) => x.textContent) : []; b.click(); return out; });
|
|
84
|
-
// the initiative's page first (its list row opens it again when something else is shown), then
|
|
90
|
+
// the initiative's page first (its list row opens it again when something else is shown), then the view asked for
|
|
85
91
|
const overview = async (p, view = 'stage') => {
|
|
86
92
|
if (!(await p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V))) {
|
|
87
93
|
if (!(await p.evaluate(() => { const b = document.querySelector('#hmList [data-hm-sel="i:self-serve-v2"]'); return !!b && !!b.offsetParent; }))) await p.click('#hmNeeds');
|
|
@@ -89,8 +95,6 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
89
95
|
}
|
|
90
96
|
const s = await until(() => p.evaluate((v) => { const o = document.querySelector(v); if (!o) return null; if (o.querySelector('[data-hi-v="page"]')) return 'ok'; return /could not be read/.test(o.textContent) ? 'err' : null; }, V), 30000);
|
|
91
97
|
if (s !== 'ok') return !!s;
|
|
92
|
-
await p.click('#czViewer [data-cz-vw="more"]').then(() => p.click('.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("All tasks"))'));
|
|
93
|
-
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="tasks"]'), V));
|
|
94
98
|
if (view && view !== 'tasks') await show(p, view);
|
|
95
99
|
return true; };
|
|
96
100
|
const writes = (X) => X.posts.filter((x) => WRITES.test(x.path));
|
|
@@ -121,12 +125,12 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
121
125
|
|
|
122
126
|
/* I3 header and the ONE view (batch 6 items 1 and 3: the Board's panel draws the same; stage-card-test.js holds the stage card's behaviour) */
|
|
123
127
|
const card = await p.evaluate(() => { const c = document.querySelector('#czViewer .iv-sc'), iv = document.querySelector('#czViewer .iv'); const q = (s, r = c) => ((r.querySelector(s) || {}).textContent || '').replace(/\s+/g, ' ').trim(), d = (s) => ((document.querySelector(s) || {}).textContent || '').trim();
|
|
124
|
-
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b'), where: q('.iv-
|
|
128
|
+
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b'), where: q('.iv-scm'), bars: new Set([...c.querySelectorAll('.iv-tl .iv-tlp')].map((x) => x.dataset.ivStage)).size + c.querySelectorAll('.iv-tl .iv-tl-sk').length, now: new Set([...c.querySelectorAll('.iv-tl .iv-tlp.now')].map((x) => x.dataset.ivStage)).size, tail: (c.querySelector('.iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-scgo[data-ms]'),
|
|
125
129
|
pri: iv.querySelectorAll('[data-iv-primary]').length, cta: !!iv.querySelector('[data-hm-cta]'), tasks: q('.iv-th', iv), empty: !!iv.querySelector('.iv-empty'), secs: [...iv.querySelectorAll('.iv-ws b')].map((b) => b.textContent), meta: q('.iv-meta', iv) }; });
|
|
126
130
|
ok('I3 the page\'s header names the initiative, its workflow and its anchor (D99)', card.title === 'Self-serve onboarding v2' && /^Product feature · \S/.test(card.kind), JSON.stringify(card));
|
|
127
|
-
ok('I3 the card shows the stage the workflow engine derives, with one
|
|
131
|
+
ok('I3 the card shows the stage the workflow engine derives, with one part a stage on its line and the current one marked', card.stage === 'Build' && card.bars === 8 && card.now === 1, JSON.stringify(card));
|
|
128
132
|
ok('I1 the summary leads with at most one primary; the card holds no step list; Tasks is the WBS by stage', card.pri <= 1 && !card.cta && /^Tasks/.test(card.tasks) && (card.secs.length > 0 || card.empty) && !/pull request|builder agent/i.test(card.secs.join(' ')), JSON.stringify(card));
|
|
129
|
-
ok('I1 the card
|
|
133
|
+
ok('I1 the card\'s → names the next stage', /^Next: ◆ Deliver/.test(card.tail), JSON.stringify(card));
|
|
130
134
|
ok('I3 Deliver is a milestone: the next stage carries the ◆ mark (Agreed design AgInitAgents)', card.ms, JSON.stringify(card));
|
|
131
135
|
ok('I1 the card wrote nothing on its own', writes(A).length === 0, JSON.stringify(writes(A)));
|
|
132
136
|
|
|
@@ -138,24 +142,17 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
138
142
|
ok('I7 a file opens as its page in the Viewer, not a dialog', await until(() => p.evaluate((v) => !!document.querySelector(v + ' .obody.vw[data-vw="doc:planning/prd/self-serve-v2-prd.md"]') && !(document.querySelector('#dlg') && !!document.querySelector('#dlg.on')), V), 15000));
|
|
139
143
|
|
|
140
144
|
/* I4 the Overview */
|
|
141
|
-
const i4 = await overview(p, null) && await p.evaluate((v) =>
|
|
142
|
-
|
|
143
|
-
ok('I4 All tasks under ⋯ opens the initiative\'s Tasks, with Documents and Stage under ⋯ on a desktop (XvATasks), and no Waiting for design marker', i4 && ['Group tasks by', 'Documents', 'Stage', 'Open the full record'].every((l) => i4m.includes(l)), JSON.stringify(i4m));
|
|
144
|
-
const tk = await p.evaluate((v) => { const o = document.querySelector(v); return { tasks: [...o.querySelectorAll('[data-ov-tkrow]')].map((r) => r.dataset.ovTkrow).sort(), checks: [...o.querySelectorAll('button[data-hi-chk]')].map((b) => b.dataset.hiChk).sort() }; }, V);
|
|
145
|
-
await p.click('#czViewer [data-cz-vw="back"]');
|
|
146
|
-
ok('I4 ← from Tasks comes back to the page (HbCDrill)', await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V)));
|
|
145
|
+
const i4 = await overview(p, null) && await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-th [data-iv-add]') && !document.querySelector(v + ' [data-hi-view]') && !document.querySelector(v + ' .hx-wait'), V));
|
|
146
|
+
ok('I4 the page holds the Tasks with its +, and no All tasks switch (batch 11 item 20), and no Waiting for design marker', !!i4);
|
|
147
147
|
ok('I4 the card has no Overview tile: the chat box on the page talks about the initiative (stage card D)', await p.evaluate((v) => !document.querySelector(v + ' .iv [data-hm-ov]') && /^Message Claude about Self-serve onboarding v2/.test(document.querySelector('#hmIn').placeholder), V));
|
|
148
148
|
const pm = await moreLabels(p);
|
|
149
|
-
ok('I4 the page\'s ⋯ holds the stage switch, the stakeholder, the program, the Board and the record, then hold and cancel last (HbCMore)', ['
|
|
150
|
-
await p.click('#czViewer [data-cz-vw="more"]').then(() => p.click('.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("All tasks"))'));
|
|
151
|
-
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="tasks"]'), V));
|
|
149
|
+
ok('I4 the page\'s ⋯ holds the stage switch, the stakeholder, the program, the Board and the record, then hold and cancel last (HbCMore)', ['Move to a stage', 'Moves on by itself', 'Add a stakeholder', 'Turn into a program', 'Open on the Board', 'The record', 'Put on hold', 'Cancel the initiative'].every((l) => pm.includes(l)) && !pm.includes('All tasks') && pm[pm.length - 1] === 'Cancel the initiative', JSON.stringify(pm));
|
|
152
150
|
await show(p, 'stage');
|
|
153
151
|
const st = await p.evaluate((v) => { const o = document.querySelector(v); return { moves: [...o.querySelectorAll('[data-ov-move]')].map((b) => b.dataset.ovMove), cur: (o.querySelector('[data-ov-move][aria-pressed="true"]') || {}).textContent, life: [...o.querySelectorAll('[data-ov-life]')].map((b) => b.dataset.ovLife) }; }, V);
|
|
154
152
|
await show(p, 'docs');
|
|
155
153
|
const ov = await p.evaluate((v) => { const o = document.querySelector(v); return { docs: [...o.querySelectorAll('[data-ov-doc]')].map((d) => d.dataset.ovDoc).sort(), draft: [...o.querySelectorAll('[data-ov-draft], [data-czs-act^="draft:"], [data-ov-none]')].map((b) => b.dataset.ovDraft || b.dataset.ovNone || b.dataset.czsAct.slice(6)).sort(), pri: ((o.querySelector('.czs-pri[data-czs-act^="draft:"]') || {}).dataset || {}).czsAct || '', drafting: [...o.querySelectorAll('[data-ov-doc]')].filter((d) => /Drafting/.test(d.textContent)).map((d) => d.dataset.ovDoc), dread: [...o.querySelectorAll('[data-ov-dread]')].map((b) => b.dataset.ovDread), sum: (o.querySelector('[data-ov-dsum]') || {}).textContent || '' }; }, V);
|
|
156
154
|
const M = mk();
|
|
157
155
|
ok('I4 the Stage view lists the board\'s stages with the current one pressed, and the lifecycle presses', JSON.stringify(st.moves) === JSON.stringify(M.acts.stages) && st.cur === 'Build' && st.life.join() === 'on-hold,cancelled', JSON.stringify(st));
|
|
158
|
-
ok('I6 the tasks are the record\'s, and only a PMOS task has a check box it can change', JSON.stringify(tk.tasks) === JSON.stringify(M.tasks.rows.map((t) => t.key).sort()) && JSON.stringify(tk.checks) === JSON.stringify(M.tasks.rows.filter((t) => t.pmos && t.uid).map((t) => t.key).sort()), JSON.stringify(tk));
|
|
159
156
|
ok('I7 the core documents are the non-technical ones, with the engine\'s summary', JSON.stringify(ov.docs) === JSON.stringify(M.docs.rows.filter((d) => !d.tech).map((d) => d.key).sort()) && ov.sum === M.docs.cap, JSON.stringify(ov));
|
|
160
157
|
ok('I7 a document not started offers Draft it (the summary\'s one primary drafts the first, the rest offer it from their row); a running one says Drafting and has no press; a draft offers Read', /^draft:(problem|research)$/.test(ov.pri) && [...new Set(ov.draft)].filter((k) => k === 'problem' || k === 'research').sort().join() === 'problem,research' && ov.drafting.join() === 'launch' && ov.dread.length === M.docs.rows.filter((d) => !d.tech && d.st === 'draft' && d.path && d.slot).length, JSON.stringify(ov));
|
|
161
158
|
|
|
@@ -174,21 +171,16 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
174
171
|
await p.fill(`${V} #ovWhy`, 'Waiting on legal'); await settle(() => p.click(`${V} [data-ov-life-go]`));
|
|
175
172
|
const lf = await until(() => A.posts.find((x) => x.path === '/api/lifecycle'));
|
|
176
173
|
ok('I10 Record posts the state and the reason to the lifecycle route', lf && lf.body.initiative_id === 'self-serve-v2' && lf.body.state === 'on-hold' && lf.body.reason === 'Waiting on legal' && lf.body.ws === 'w1', JSON.stringify(lf && lf.body));
|
|
177
|
-
await show(p, 'tasks');
|
|
178
|
-
await
|
|
179
|
-
await p.
|
|
174
|
+
await show(p, 'tasks'); // the page's + opens the add field in Tasks (batch 11 item 20)
|
|
175
|
+
await p.click(`${V} [data-iv-add]`);
|
|
176
|
+
await until(() => p.evaluate((v) => !!document.querySelector(v + ' #ivAddTask'), V));
|
|
177
|
+
await p.press(`${V} #ivAddTask`, 'Enter'); await sleep(200);
|
|
180
178
|
ok('I6 Add with no title posts nothing', !A.posts.some((x) => x.path === '/api/boards/tasks/add'));
|
|
181
|
-
await p.fill(`${V} #
|
|
182
|
-
const ad = await until(() => A.posts.find((x) => x.path === '/api/
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
await until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-tmore="${a[1]}"]`), [V, pk]));
|
|
187
|
-
await p.click(`${V} [data-hi-tmore="${pk}"]`);
|
|
188
|
-
await until(() => p.evaluate(() => !!document.querySelector('.hi-pop[role="menu"]')));
|
|
189
|
-
await settle(() => p.click('.hi-pop[role="menu"] [role="menuitemradio"]:has(> span:first-child:text-is("In progress"))'));
|
|
190
|
-
const ts = await until(() => A.posts.find((x) => x.path === '/api/boards/tasks/state'));
|
|
191
|
-
ok('I10 a status change posts the board, the task and the state, and nothing else', ts && Object.keys(ts.body).sort().join() === 'board,state,task,ws' && ts.body.state === 'In progress', JSON.stringify(ts && ts.body));
|
|
179
|
+
await p.fill(`${V} #ivAddTask`, 'Release plan'); await settle(() => p.press(`${V} #ivAddTask`, 'Enter'));
|
|
180
|
+
const ad = await until(() => A.posts.find((x) => x.path === '/api/task-plans/propose'));
|
|
181
|
+
// an initiative with no Live task: the page's add starts a proposal (batch 11 item 8), it never writes the board's tasks directly
|
|
182
|
+
ok('I10 Add on a page with no Live task proposes the task: the workspace, this initiative and the title', ad && ad.body.ws === 'w1' && ad.body.initiative === 'self-serve-v2' && ad.body.title === 'Release plan' && !A.posts.some((x) => x.path === '/api/boards/tasks/add'), JSON.stringify(ad && ad.body));
|
|
183
|
+
// a task's quick status on the page is covered by task-views-test.js (batch 9 item 5b); this record's page draws no task rows
|
|
192
184
|
await show(p, 'docs');
|
|
193
185
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' .czs-pri[data-czs-act^="draft:"]'), V));
|
|
194
186
|
const first = await p.evaluate((v) => document.querySelector(v + ' .czs-pri[data-czs-act^="draft:"]').dataset.czsAct.slice(6), V);
|
|
@@ -228,13 +220,13 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
228
220
|
{
|
|
229
221
|
const N = await open({ w: 390, h: 844 });
|
|
230
222
|
await overview(N.page, null);
|
|
231
|
-
ok('I4 a phone
|
|
223
|
+
ok('I4 a phone draws no Tasks, Documents and Stage switch: the Tasks sit on the page (batch 11 item 20)', await until(() => N.page.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-th') && !document.querySelector(v + ' [data-hi-view]'), V)));
|
|
232
224
|
const fls = [];
|
|
233
|
-
for (const view of ['
|
|
225
|
+
for (const view of ['docs', 'stage']) { // the page's own floors (its Tasks too) are the page suites' (tk-tasks-test.js G4)
|
|
234
226
|
await show(N.page, view);
|
|
235
227
|
fls.push(await N.page.evaluate((a) => { const o = document.querySelector(a[0]); const small = [...o.querySelectorAll('button, select, input')].filter((b) => b.offsetParent && b.getBoundingClientRect().height < 44).map((b) => b.textContent.trim().slice(0, 24) || b.id || b.getAttribute('aria-label') || b.tagName); return { view: a[1], over: document.documentElement.scrollWidth - innerWidth, small }; }, [V, view]));
|
|
236
228
|
}
|
|
237
|
-
ok('I12 at 390 px the Overview\'s
|
|
229
|
+
ok('I12 at 390 px the Overview\'s Documents and Stage have no sideways scroll and every target is 44 px', fls.every((fl) => fl.over <= 0 && fl.small.length === 0), JSON.stringify(fls));
|
|
238
230
|
ok('I12 no page error at 390 px', N.errors.length === 0, N.errors.join(' | '));
|
|
239
231
|
await N.ctx.close();
|
|
240
232
|
}
|
|
@@ -97,8 +97,20 @@ const product = (name, cond) => {
|
|
|
97
97
|
const pickText = (page) => page.textContent('#czViewer #hxCount');
|
|
98
98
|
// premium-uncovered-features (canvas HmProducts): another product is a closed group of the one list ("IDPF · 1 your turn"); open it to see its rows
|
|
99
99
|
const openGroups = (page) => page.evaluate(() => { document.querySelectorAll('#hmList [data-hm-pg][aria-expanded="false"]').forEach((b) => b.click()); });
|
|
100
|
-
const rowsOf = async (page) => { await openGroups(page).catch(() => {}); return rowsOf0(page); };
|
|
101
|
-
|
|
100
|
+
const rowsOf = async (page) => { await openGroups(page).catch(() => {}); return rowsOf0(page).then(async (a) => a.concat(await pillRows(page))); };
|
|
101
|
+
// a next step of an initiative sits in the pill on its row (batch 12 item 6): open each pill in turn and read the rows behind it
|
|
102
|
+
const pillRows = (page) => page.evaluate(async () => {
|
|
103
|
+
const out = [], wait = () => new Promise((r) => setTimeout(r, 60));
|
|
104
|
+
for (const id of [...document.querySelectorAll('#hmList [data-hm-ses]')].map((b) => b.dataset.hmSes)) {
|
|
105
|
+
const b = document.querySelector(`#hmList [data-hm-ses="${CSS.escape(id)}"]`); if (!b) continue;
|
|
106
|
+
const tag = (b.closest('section.hm-pg') || b).getAttribute('aria-label') || '';
|
|
107
|
+
b.click(); await wait();
|
|
108
|
+
for (const e of document.querySelectorAll('#hmList .hv-spp .hm-r[data-id^="n:decision:"]')) if (!out.some((x) => x.key === e.dataset.id.slice(2))) out.push({ key: e.dataset.id.slice(2), tag, title: e.querySelector('.hm-rt b').textContent, ses: id });
|
|
109
|
+
const c = document.querySelector(`#hmList [data-hm-ses="${CSS.escape(id)}"]`); if (c && c.getAttribute('aria-expanded') === 'true') { c.click(); await wait(); }
|
|
110
|
+
}
|
|
111
|
+
return out;
|
|
112
|
+
});
|
|
113
|
+
const rowsOf0 = (page) => page.$$eval('#hmList .hm-r[data-id^="n:decision:"]:not(.hv-spp .hm-r)', (els) => els.map((e) => ({ key: e.dataset.id.slice(2), tag: (e.closest('section.hm-pg') || e).getAttribute('aria-label') || '', title: e.querySelector('.hm-rt b').textContent })));
|
|
102
114
|
|
|
103
115
|
{
|
|
104
116
|
const { ctx, page, errors } = await open();
|
|
@@ -141,7 +153,8 @@ const product = (name, cond) => {
|
|
|
141
153
|
// P9 decide a row of IDPF, from the page
|
|
142
154
|
const { ctx, page } = await open();
|
|
143
155
|
await until(async () => (await rowsOf(page)).length === 2, 20000);
|
|
144
|
-
const
|
|
156
|
+
const row = (await rowsOf(page)).find((r) => r.tag === 'IDPF'), key = row.key;
|
|
157
|
+
if (row.ses) await page.click(`#hmList [data-hm-ses="${row.ses}"]`); // the row sits behind its initiative's pill (batch 12 item 6)
|
|
145
158
|
await page.click(`#hmList [data-hm-sel="n:${key}"]`);
|
|
146
159
|
await page.waitForSelector('#hmLog [data-dc-opt]'); // the decision card in the chat (canvas HmDecide)
|
|
147
160
|
await page.click('#hmLog [data-dc-opt="extend"]');
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.424.0",
|
|
4
|
+
"at": "2026-10-27T00:38:50.632Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1064,
|
|
9
|
+
"t": "Twelfth testing feedback batch",
|
|
10
|
+
"s": "Twelfth testing feedback batch"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"v": "0.423.0",
|
|
16
|
+
"at": "2026-10-26T16:10:21.071Z",
|
|
17
|
+
"f": 2,
|
|
18
|
+
"prs": [
|
|
19
|
+
{
|
|
20
|
+
"n": 1063,
|
|
21
|
+
"t": "Eleventh testing feedback batch, part 2",
|
|
22
|
+
"s": "Eleventh testing feedback batch, part 2"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
2
26
|
{
|
|
3
27
|
"v": "0.422.0",
|
|
4
28
|
"at": "2026-10-26T13:03:41.940Z",
|
|
@@ -325,7 +325,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
325
325
|
- **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
|
|
326
326
|
- **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
|
|
327
327
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
328
|
-
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing. A gap in the plan that overlaps a hold still leaves out the days outside the hold, also when the hold has no return date.
|
|
328
|
+
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. In each group the rows run by start date, then end date, and the ones with no dates come last; the status dot still marks a late or at-risk initiative. With no dates on record it says so and draws nothing. A gap in the plan that overlaps a hold still leaves out the days outside the hold, also when the hold has no return date.
|
|
329
329
|
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
|
|
330
330
|
- **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
|
|
331
331
|
- **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "Claude proposes: the one ✦ on each initiative"
|
|
4
|
+
description: "What Claude finds when you add an initiative that already lives elsewhere, the new dates, done and tidy names it proposes for late tasks, how you keep or drop them in the Viewer, Undo, and the pmos propose commands."
|
|
5
|
+
timestamp: 2026-10-26
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Claude proposes: the one ✦ on each initiative
|
|
9
|
+
|
|
10
|
+
Each initiative has one blue ✦, next to its title. Its number is everything Claude proposes on that initiative. Nothing lands on the initiative until you press ✓. With nothing to propose, the ✦ is not shown.
|
|
11
|
+
|
|
12
|
+
Press the ✦ to open "Claude proposes N" in the Viewer. On a desk the chat stays beside it, and ← goes back to the initiative. On a phone it is full screen. The groups come in this order:
|
|
13
|
+
|
|
14
|
+
- **Found elsewhere.** When you add an initiative, Claude looks for it by itself in every source you connected: Drive, Docs, Sheets, Slides, Jira, the calendar and meeting notes, Gmail, Slack and Confluence. The Viewer shows one live line per source while it reads. A source that finds nothing drops off. ■ Stop is the only control. Claude then proposes the stage the work is really in, with the dates past stages really ended, the documents, and the tasks by stage with their own dates and owners. A Jira epic is linked, never copied.
|
|
15
|
+
- **Check these.** A maybe match, with its reason, and an item that is already in another initiative. A duplicate is linked, never copied. These need their own ✓.
|
|
16
|
+
- **Not placed.** What Claude could not fit. It is kept under Linked.
|
|
17
|
+
- **Dates.** Each morning, and whenever a date passes, Claude proposes new dates for tasks that are late or at risk (due within 3 days and not started), one proposal per stage. The reason is one line with its source. When Claude finds no reason, it says "No reason found" and offers to ask the owner. When a new date reaches a task that waits on it, the proposal shows the link: keep it (the waiting task moves too) or ignore it (it stays and the two overlap). Claude marks the one it recommends with a small ✦.
|
|
18
|
+
- **Status.** "Looks done" when the evidence says the work happened, such as an email that was sent.
|
|
19
|
+
- **Names.** Tidy names: the WBS number kept, verb first, about 7 words, no "+" and no brackets. The detail that is cut goes to the task's notes.
|
|
20
|
+
- **Links.** The links between tasks that Claude proposes.
|
|
21
|
+
|
|
22
|
+
✓ in the Viewer's header keeps everything Claude is sure of. Check these and Not placed are never part of it. Each proposal has its own ✓ and ✕, and ⌄ shows its items. ✕ on one item leaves just that item out. × closes the Viewer and keeps or drops nothing. One toast says what changed, with Undo for the whole batch.
|
|
23
|
+
|
|
24
|
+
✕ means gone: a dropped proposal comes back only when its evidence changes or the date passes again. A Jira ticket keeps Jira's name and dates: a proposal for one becomes a drafted comment in your outbox. A draft plan is never changed.
|
|
25
|
+
|
|
26
|
+
## The commands
|
|
27
|
+
|
|
28
|
+
Claude's background run files proposals with these commands. The server pins the initiative and the run, so the commands refuse outside that run. You keep and drop proposals on the page.
|
|
29
|
+
|
|
30
|
+
- `pmos propose look <source> --reading | --found <n> --what "<5 documents>" | --none`: one source's live line.
|
|
31
|
+
- `pmos propose found <stage|docs|tasks|link|maybe|unplaced> --json <file|->`: Found elsewhere.
|
|
32
|
+
- `pmos propose date --json <file|->`: new dates for late or at-risk tasks, with the reason.
|
|
33
|
+
- `pmos propose done --json <file|->`: a task that looks done, with the evidence.
|
|
34
|
+
- `pmos propose name --json <file|->`: tidy names.
|
|
35
|
+
- `pmos propose status`: what is open, kept and dropped.
|
|
36
|
+
|
|
37
|
+
Every proposal carries its source. Nothing is sent.
|
package/workspace/guide/home.md
CHANGED
|
@@ -46,17 +46,24 @@ A reply PMOS sees in the thread clears the ask on the next read. A new ask after
|
|
|
46
46
|
Press an initiative's name in the list, or open `?ini=<id>`. The list stays as it is and the initiative's row is selected. The chat talks about the initiative, and its page opens in the Viewer.
|
|
47
47
|
|
|
48
48
|
- The page's header shows the lane and the anchor, the name, **New session** (+), ⋯, Open wide and Close.
|
|
49
|
-
- The stage card shows the stage,
|
|
49
|
+
- The stage card shows the stage, **N of M done** for its tasks, the days in the stage (for example "9 of ~7 days", amber when over the usual time) and → for the next stage. → turns blue when every task of the stage is done.
|
|
50
|
+
- Under the header is one line for the whole initiative. Each stage is a part of the line, on its own dates. Done stages are grey, the current stage is blue, later stages are light, and a stage with no dated task is dashed. The ◇ marks are the milestone tasks, with the name above and the date below. The end ◇ is the end date. A thin tick is Today.
|
|
51
|
+
- Press a part to show that stage in **Tasks**. Press **N of M done** to do the same. Press a ◇ to open the milestone task in **Tasks**. Milestones a few days apart merge into one ◇ with a count. Press it to list them.
|
|
52
|
+
- The line also shows what the Board's timeline shows: » for a skipped stage, a dotted gap and ⏸ for a hold (press ⏸ to set or change the return date), a hairline for 2 weeks or more with no activity (press it; ahead of Today, + adds a task in the gap), hatching past the end date, a dashed Jira forecast, a thin line under it for a saved plan, and "after <initiative>" when it waits on another initiative.
|
|
53
|
+
- With no dates at all, the parts are even and dashed. The calendar button opens **Tasks** in the Timeline view to set the dates.
|
|
54
|
+
- On a phone the line shows only the next open milestone's name. Press the line to unfold the stages and milestones as a list under it.
|
|
50
55
|
- Under the card are the 3 most urgent tasks and the documents that need a look. **Show N more** opens all the tasks and **Show all N** opens all the documents. ← goes back to the page. A task or a document that you open from the page also has ← back to the page.
|
|
51
56
|
- ⋯ has **Moves on by itself**, **Move back a stage**, **Move to a stage**, **Add a stakeholder**, **Turn into a program**, **Open on the Board**, **The record**, **Put on hold** and **Cancel the initiative**.
|
|
52
57
|
- To go back to all work, press the browser's Back, or Menu > **Home**. Neither reloads the page. Close (×) closes the page but keeps the initiative's chat.
|
|
53
58
|
- If there is no room beside the chat, the Viewer shows on top of the chat. The list stays.
|
|
54
59
|
- On a phone the page fills the screen. **Message Claude about <name>** opens the chat.
|
|
55
60
|
- **Moves on by itself** is a switch, on by default. When every exit item is done, the stage moves to the next stage and a message shows **Undo**. A stage never moves by itself into a milestone (Deliver or Evaluate). This rule is a proposal that the PM has not confirmed yet.
|
|
56
|
-
-
|
|
61
|
+
- → with open tasks in the stage asks first (**Move anyway**, with a note). **Back** always asks for a reason.
|
|
57
62
|
- **Tasks** in the Viewer can be grouped by stage, by groups that you name, by owner or by status. Drag a task to another group.
|
|
58
63
|
- In the Build stage, the open Jira tickets show with the tasks. A task whose name starts with a Jira key (for example "MSD-4376 Navigation tabs") is that ticket, so the ticket shows once, as the task, and counts once.
|
|
64
|
+
- **Set a Jira ticket's dates.** Press the dates of a Jira ticket in the List, or drag its bar on the Timeline, as you do for a task. PMOS keeps the start and due days and shows them in place of the sprint end. Jira does not change. The status and the name stay Jira's.
|
|
59
65
|
- **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
|
|
66
|
+
- **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. The ⋯ menu of a task also has **Delete**. You can delete every PMOS task, also a task that Claude planned in the breakdown. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
|
|
60
67
|
|
|
61
68
|
## Rename a program, an initiative or a task
|
|
62
69
|
|
package/workspace/guide/index.md
CHANGED
|
@@ -65,6 +65,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
|
|
|
65
65
|
- [Initiatives: the Roadmap, the List and the initiative sheet](initiatives-screen.md): how to read and order the initiatives of a repository, open the sheet, make a new initiative, and review the cycle.
|
|
66
66
|
- [Initiatives and the Roadmap: Now, Next and Later](initiatives-roadmap.md): what day one shows, how an agent proposes a move, and `pmos initiative` and `pmos measure` from a terminal.
|
|
67
67
|
- [The Initiative Driver: drafts the agent files for you](initiative-driver.md): when the driver runs, the unblock sweep, the limits, Keep, Send back and Drop, the board modes, and `pmos driver`.
|
|
68
|
+
- [Claude proposes: the one ✦ on each initiative](claude-proposes.md): what Claude finds when you add an initiative, new dates, done and tidy names for late tasks, ✓, ✕, Undo, and `pmos propose`.
|
|
68
69
|
- [Core documents: what each level keeps](core-documents.md): the core documents of the portfolio, a board and an initiative, their states, how PMOS drafts them, Issue it, and `pmos coredoc write`.
|
|
69
70
|
- [The Horizon scan: the agent looks outside your initiatives](horizon-scan.md): how often it runs, the watch list you keep, what a scan does, where findings land, what it cannot do, and `pmos scan`.
|
|
70
71
|
- [PM-only acts: what you and your agents can do](pm-only-acts.md): the acts that were yours alone, how the workspace checks that a press comes from your page, your terminal or an agent session, how an agent's act is logged under its name (D98), and what to do when a press is refused.
|
|
@@ -19,6 +19,7 @@ Programs do not change how Insights, the weekly update or sprints count initiati
|
|
|
19
19
|
- To group by product only, open **Filter** and choose **By product**. A program member then shows a small layers icon and stays under its product in every view, the timeline included. A chip shows while By product is on.
|
|
20
20
|
- **Kanban** shows programs as swimlanes, then products. Press a column header to fold the column to a strip with its count. An empty column starts folded. The Board remembers each fold.
|
|
21
21
|
- The **timeline** draws a program row that brackets its initiatives' bars, on every span. Program milestones are diamonds. Milestones that are close together merge into one diamond with a count.
|
|
22
|
+
- On the timeline, a **product's head row** also shows milestones. Nothing is added by hand: the row shows every milestone of the product's initiatives, which are each milestone task and each initiative's end diamond (its Deliver or Evaluate date). The diamonds are the same as on the initiative rows: open, filled when done, orange when late. Diamonds that are close together merge into one diamond with a count and the date range under it. Press it to see a list with the milestone, its initiative and the date. Press a line to open that initiative. Hold the pointer on a single diamond to see its milestone and initiative. A thin line goes from the first start to the last end of the product's initiatives. When the product is folded, the row stays the same, so it is a summary of the product. On a phone the diamonds have no dates; tap the row to see all the milestones in date order. A product inside a program has no such row, because the program row shows its milestones.
|
|
22
23
|
- **List** has a Product column and a Program column. Press a column header to sort by it.
|
|
23
24
|
- **New** opens a menu: **New initiative** or **New program**.
|
|
24
25
|
- A new program shows at once, before any initiative joins it. A program with no open initiative shows on its own product's Board and on All products, with "No initiatives yet" or "No open initiatives". Press its name, then **⋯** and **Move an initiative in**. That menu lists open initiatives only, grouped by product, with the program's own product first, wherever you open the program (Home, another product's Board or All products). An initiative joins in its own product.
|