create-pmos 0.457.0 → 0.459.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 +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/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +17 -17
- package/workspace/briefing-premium-initiative-test.js +8 -10
- package/workspace/changelog.json +26 -0
- package/workspace/guide/adler.md +1 -1
- package/workspace/guide/initiatives-screen.md +14 -2
- package/workspace/ini-workflow-test.js +5 -9
- package/workspace/metric-drafts-ui-test.js +11 -9
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +3 -3
- package/workspace/premium-vw-backlog-test.js +1 -1
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-vw-jira-test.js +1 -1
- package/workspace/program-panel-test.js +2 -2
- package/workspace/public/pm/ini-about.js +145 -0
- package/workspace/public/pm/ini-tasks.js +6 -34
- package/workspace/public/pm/ini-view-model.js +12 -2
- package/workspace/public/pm/ini-view.css +180 -143
- package/workspace/public/pm/ini-view.js +137 -145
- package/workspace/public/pm/metric-drafts.js +8 -2
- package/workspace/public/pm/mission.js +159 -135
- package/workspace/public/pm/stage-line.js +4 -1
- package/workspace/public/pm/task-card.js +2 -0
- package/workspace/split-merge-ui-test.js +1 -1
- package/workspace/stage-card-tasks-test.js +2 -2
- package/workspace/stage-card-test.js +48 -51
- package/workspace/task-card-test.js +39 -1
- package/workspace/task-links-test.js +8 -9
- package/workspace/task-press-test.js +2 -2
- package/workspace/task-views-test.js +15 -76
- package/workspace/test-lists/initiative-mission-control.json +5 -0
- package/workspace/test-lists/mission.json +7 -3
- package/workspace/tk-tasks-test.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.459.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.459.0",
|
|
37
|
+
"at": "2026-10-30T09:40:09.558Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1109,
|
|
42
|
+
"t": "Refresh saved task notes on reopen",
|
|
43
|
+
"s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
|
|
44
|
+
"k": "fix"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"v": "0.458.0",
|
|
50
|
+
"at": "2026-10-30T03:22:27.686Z",
|
|
51
|
+
"f": 3,
|
|
52
|
+
"prs": [
|
|
53
|
+
{
|
|
54
|
+
"n": 1106,
|
|
55
|
+
"t": "One mission component on the initiative view",
|
|
56
|
+
"s": "One mission component on the initiative view",
|
|
57
|
+
"k": "new"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
35
61
|
{
|
|
36
62
|
"v": "0.457.0",
|
|
37
63
|
"at": "2026-10-30T01:12:13.115Z",
|
|
@@ -271,32 +297,6 @@
|
|
|
271
297
|
"k": "fix"
|
|
272
298
|
}
|
|
273
299
|
]
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"v": "0.439.0",
|
|
277
|
-
"at": "2026-10-28T08:36:52.065Z",
|
|
278
|
-
"f": 3,
|
|
279
|
-
"prs": [
|
|
280
|
-
{
|
|
281
|
-
"n": 1083,
|
|
282
|
-
"t": "Meeting notes cover the whole meeting when the live transcript stops early",
|
|
283
|
-
"s": "Meeting notes cover the whole meeting when the live transcript stops early",
|
|
284
|
-
"k": "fix"
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"v": "0.438.0",
|
|
290
|
-
"at": "2026-10-28T06:33:55.171Z",
|
|
291
|
-
"f": 3,
|
|
292
|
-
"prs": [
|
|
293
|
-
{
|
|
294
|
-
"n": 1081,
|
|
295
|
-
"t": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)",
|
|
296
|
-
"s": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)",
|
|
297
|
-
"k": "new"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
}
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-30T09:40:06Z"}
|
|
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-30T09:40:06Z"}
|
|
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-30T09:40:06Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ const CUSTOM = [
|
|
|
35
35
|
const PAGES = {
|
|
36
36
|
board: { file: '/premium-board.html', api: '**/api/board-premium*', scope: 'board:w1', mk: (custom) => BP.build(BF.facts({ custom })), ready: '#ibBody .ini2', btn: '#addDoc', qs: '?theme=' },
|
|
37
37
|
// the initiative is a layout inside Home (premium-agreed-design): Add a document is in its Overview, a minimal form in the Viewer (Waiting for design)
|
|
38
|
-
initiative: { file: '/premium.html', api: '**/api/initiative-premium*', scope: 'initiative:self-serve-v2', mk: (custom) => IP.build(IF.facts({ custom })), ready: '#czViewer .iv-
|
|
38
|
+
initiative: { file: '/premium.html', api: '**/api/initiative-premium*', scope: 'initiative:self-serve-v2', mk: (custom) => IP.build(IF.facts({ custom })), ready: '#czViewer .iv-mc', btn: '#czViewer [data-hi-v="docs"]', qs: '?ini=self-serve-v2&ws=w1&board=w1&theme=' },
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
(async () => {
|
|
@@ -53,16 +53,16 @@ const mk = (o) => BP.build(F.facts(o));
|
|
|
53
53
|
const IVREAD = () => {
|
|
54
54
|
const v = document.querySelector('#czViewer'), iv = v && !v.hidden && v.querySelector('.iv'); if (!iv) return null;
|
|
55
55
|
const tx = (sel, root = iv) => { const e = root.querySelector(sel); return e ? e.textContent.replace(/\s+/g, ' ').trim() : null; };
|
|
56
|
-
//
|
|
57
|
-
const
|
|
58
|
-
const
|
|
56
|
+
// initiative-mission-control: one component; the telemetry card names the stage, the trajectory draws its stages, the way to finish holds the next move
|
|
57
|
+
const mc = iv.querySelector('.iv-mc'), tel = mc && mc.querySelector('.iv-tel'), c = window.czViewer && window.czViewer.current(), r = v.getBoundingClientRect();
|
|
58
|
+
const aria = tel ? tel.getAttribute('aria-label') : null, am = /^Stage (\d+) of (\d+)/.exec(aria || '');
|
|
59
59
|
return { t: tx('.cz-vw-title', v), kind: c && c.kind, why: tx('.iv-why'), late: !!iv.querySelector('.mi-svg .late'), meta: tx('.iv-meta'), wfi: (iv.querySelector('.iv-meta .wfi') || {}).title || null,
|
|
60
60
|
primary: (iv.querySelector('[data-iv-primary]') || {}).dataset ? (iv.querySelector('[data-iv-primary]') || { dataset: {} }).dataset.ivPrimary || null : null,
|
|
61
|
-
stage:
|
|
62
|
-
// the
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
aria:
|
|
61
|
+
stage: mc && tx('.iv-tel-t .iv-shn b', mc), no: mc && tx('.iv-tel-t .iv-no', mc), n: am ? +am[1] : null, of: am ? +am[2] : null,
|
|
62
|
+
// the trajectory: the done stages and the current one are drawn as colours of the path (a stage that crosses lift-off or the release is two pieces)
|
|
63
|
+
dn: mc ? mc.querySelectorAll('.mi-svg .mi-pt.dn').length : 0, now: mc ? mc.querySelectorAll('.mi-svg .mi-pt:is(.nw, .late, .hold)').length : 0,
|
|
64
|
+
ms: mc ? [...mc.querySelectorAll('.iv-gx .iv-gr')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()) : [],
|
|
65
|
+
aria, dates: mc && tx('.iv-tel-t .iv-dtc', mc), ro: mc && tx('.iv-ro', mc), next: mc && mc.querySelector('.iv-gx .iv-scgo') ? mc.querySelector('.iv-gx .iv-scgo').getAttribute('aria-label') : null,
|
|
66
66
|
tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket], .iv-tkr [data-iv-edit]')].map((e) => e.dataset.ivTicket || e.dataset.ivEdit).join(),
|
|
67
67
|
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'),
|
|
68
68
|
folds: [...iv.querySelectorAll('.iv-fr b, .czs-row b')].map((b) => b.textContent), body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '),
|
|
@@ -168,7 +168,7 @@ const IVREAD = () => {
|
|
|
168
168
|
await q.click('.bt-l[data-row="board:usage-billing"] .bt-nm');
|
|
169
169
|
/* 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 */
|
|
170
170
|
const sk = await until(() => q.evaluate(IVREAD));
|
|
171
|
-
ok('B1 the
|
|
171
|
+
ok('B1 the skipped first step draws nothing: the telemetry card names Discover, the second of the eight, and says nothing of Triage', !!sk && sk.of === 8 && sk.n === 2 && sk.stage === 'Discover' && !/Triage/.test(sk.aria || ''), JSON.stringify(sk && [sk.n, sk.of, sk.stage, sk.aria]));
|
|
172
172
|
await R.ctx.close();
|
|
173
173
|
}
|
|
174
174
|
{
|
|
@@ -184,15 +184,15 @@ const IVREAD = () => {
|
|
|
184
184
|
await q.click('.bt-l[data-row="board:usage-billing"] .bt-nm');
|
|
185
185
|
const td = await until(() => q.evaluate(IVREAD));
|
|
186
186
|
ok('XipB a Tender initiative: late in the orange marks of the mission, no words for it (XvpE1States), the owner and the Tender workflow', !!td && td.late && !td.why && /Owner: wawan/.test(td.meta) && td.wfi === 'Tender', JSON.stringify(td));
|
|
187
|
-
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', !!td && td.stage === 'Technical POC' && td.no === '5' && td.
|
|
188
|
-
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 && td.
|
|
189
|
-
ok('XipB the dates in place say the plan and the overrun; no Jira date; the progress number is said once at most', !!td &&
|
|
187
|
+
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', !!td && td.stage === 'Technical POC' && td.no === '5' && td.n === 5 && td.of === 7 && td.now >= 1 && 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.n, td.of, td.aria]));
|
|
188
|
+
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 && td.stage === 'Technical POC', JSON.stringify(td && [td.next, td.empty, td.stage]));
|
|
189
|
+
ok('XipB the dates in place say the plan and the overrun; no Jira date; the progress number is said once at most', !!td && td.dates === 'Apr 23 – Aug 11' && /^Over by ?\d+ ?days?$/.test(td.ro || '') && !/Jira:/.test(td.dates) && (td.body.match(/53%/g) || []).length <= 1 && !td.folds.includes('Dates and trend'), JSON.stringify(td && [td.dates, td.ro, td.folds]));
|
|
190
190
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-tender-1440.png') });
|
|
191
191
|
await R.ctx.close();
|
|
192
192
|
if (process.env.PMOS_SHOTS) {
|
|
193
193
|
for (const [w, h, theme, name] of [[1440, 900, 'dark', 'ini-tender-1440-dark.png'], [390, 844, 'dark', 'ini-tender-390-dark.png']]) {
|
|
194
194
|
const P = await open({ model: BP.build(f), w, h, theme }); await P.page.evaluate(() => { const b = [...document.querySelectorAll('[data-key="board:usage-billing"], [data-row="board:usage-billing"] button')].find((x) => x.offsetParent); if (b) b.click(); });
|
|
195
|
-
await until(() => P.page.evaluate(() => !!document.querySelector('#czViewer .iv-
|
|
195
|
+
await until(() => P.page.evaluate(() => !!document.querySelector('#czViewer .iv-mc'))); await sleep(300);
|
|
196
196
|
await P.page.screenshot({ path: path.join(process.env.PMOS_SHOTS, name) }); await P.ctx.close();
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -221,7 +221,7 @@ const IVREAD = () => {
|
|
|
221
221
|
ok('B1 the meta line holds the owner and the workflow as icons, each fact once (XvpA1)', !!pk && /Owner: Lee/.test(pk.meta) && pk.wfi === 'Product feature' && !/day|Deliver/.test(pk.meta), JSON.stringify(pk && [pk.meta, pk.wfi]));
|
|
222
222
|
/* re-pointed (batch 6 rules 1, 4 and 11): the card says where it is (6 of 8 on the ladder) and how much of Deliver's tickets are done; the
|
|
223
223
|
* tickets themselves are said once, as Deliver's section in Tasks, blocked first, with "N of M done in Jira" */
|
|
224
|
-
ok('B1 the stage card names the stage (Deliver, 6 on the ladder of eight, ◆ as its tile); Deliver\'s section lists the open tickets, blocked first, with the done count', !!pk && pk.
|
|
224
|
+
ok('B1 the stage card names the stage (Deliver, 6 on the ladder of eight, ◆ as its tile); Deliver\'s section lists the open tickets, blocked first, with the done count', !!pk && pk.of === 8 && pk.n === 6 && pk.stage === 'Deliver' && pk.no === '' && pk.tks.split(',')[0] === 'SSO-12' && pk.tks.split(',').sort().join() === 'SSO-12,SSO-14,SSO-15' && /SSO-12 SAML errors ?Blocked by PLAT-88/.test(pk.body) && pk.q.some((x) => /^1 of 4 done in Jira/.test(x)) && !pk.folds.includes('Dates and trend'), JSON.stringify(pk && [pk.stage, pk.n, pk.of, pk.tks, pk.q, pk.folds]));
|
|
225
225
|
ok('B1 what PMOS has no record of is not drawn: no Drafted row, no Jira-differs row; Linked holds only Jira\'s freshness and its ↻ (batch 16 item 5c)', !!pk && !pk.folds.includes('Drafted in PMOS') && !pk.folds.includes('Jira differs from the PRD'), JSON.stringify(pk && pk.folds));
|
|
226
226
|
ok('B1 there is no ask box; Discuss in chat sits in the header', !!pk && pk.ask === 0 && pk.disc, JSON.stringify(pk));
|
|
227
227
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-deliver-1280.png') });
|
|
@@ -343,7 +343,7 @@ const IVREAD = () => {
|
|
|
343
343
|
* 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
|
|
344
344
|
* where it comes from; Dates and trend is gone */
|
|
345
345
|
const tp = await until(() => p.evaluate(IVREAD).then((x) => (x && x.kind === 'Initiative' ? x : null)));
|
|
346
|
-
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.
|
|
346
|
+
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.of === 8 && tp.n === 3 && /^Sep 20(, 2026)? – Nov 30(, 2026)?$/.test(tp.dates || '') && /^Time left ?\d+ ?days? ?Elapsed ?\d+ ?of \d+ d$/.test(tp.ro || '') && !/Jira:/.test(tp.dates) && !tp.folds.includes('Dates and trend'), JSON.stringify(tp && [tp.stage, tp.n, tp.of, tp.dates, tp.ro, tp.folds]));
|
|
347
347
|
await p.click('#czViewer [data-cz-vw="more"]'); await sleep(80);
|
|
348
348
|
const tm = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].map((b) => b.querySelector('span').textContent.trim()));
|
|
349
349
|
/* re-pointed (batch 14 item 5): ⋯ is the ONE initiative menu (pm/ini-more.js), Home's order; no "Move, hold, cancel or archive", no "Open in full" */
|
|
@@ -464,8 +464,8 @@ const IVREAD = () => {
|
|
|
464
464
|
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));
|
|
465
465
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
466
466
|
/* 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 */
|
|
467
|
-
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-
|
|
468
|
-
ok('T the stage card names the stage; the mission marks it now; the meta line says no days (batch 18 item 1: the day clock is not drawn)', !!pk && pk.stage === 'Build' && !/day|usually/.test(pk.meta) && pk.stt === true, JSON.stringify(pk && [pk.stage, pk.
|
|
467
|
+
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-tel-t .iv-shn b') || {}).textContent, stt: !!v.querySelector('.mi-svg .mi-pt:is(.nw, .late, .hold)'), drafted: sec('drafted'), wt: sec('drift') }; }));
|
|
468
|
+
ok('T the stage card names the stage; the mission marks it now; the meta line says no days (batch 18 item 1: the day clock is not drawn)', !!pk && pk.stage === 'Build' && !/day|usually/.test(pk.meta) && pk.stt === true, JSON.stringify(pk && [pk.stage, pk.meta, pk.stt]));
|
|
469
469
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-build-1280.png') });
|
|
470
470
|
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));
|
|
471
471
|
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));
|
|
@@ -72,7 +72,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
72
72
|
const V = '#czViewer:not([hidden])';
|
|
73
73
|
// ready: the initiative's page is open in the Viewer (canvas HbC), its kind line from the board's row (kind · anchor) and, when the
|
|
74
74
|
// initiative reads, its card from the record (the ladder). Before the record reads, the page says it is reading.
|
|
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-
|
|
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-mc') && !!((document.querySelector('#czViewer .iv-tel-t .iv-shn b') || {}).textContent || '').trim())), full), 30000); }
|
|
76
76
|
const txt = (p, s) => p.evaluate((q) => ((document.querySelector(q) || {}).textContent || '').replace(/\s+/g, ' ').trim(), s);
|
|
77
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
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)
|
|
@@ -104,7 +104,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
104
104
|
const writes = (X) => X.posts.filter((x) => WRITES.test(x.path));
|
|
105
105
|
|
|
106
106
|
const A = await open(), p = A.page;
|
|
107
|
-
ok('0 Home opens the initiative\'s page in the Viewer; the list stays the list, with its row selected (HbCDesk)', A.up && await p.evaluate(() => new URLSearchParams(location.search).get('ini') === 'self-serve-v2' && !!document.querySelector('#czViewer .iv-
|
|
107
|
+
ok('0 Home opens the initiative\'s page in the Viewer; the list stays the list, with its row selected (HbCDesk)', A.up && await p.evaluate(() => new URLSearchParams(location.search).get('ini') === 'self-serve-v2' && !!document.querySelector('#czViewer .iv-mc') && !document.querySelector('#hmList .iv-mc') && document.querySelector('#hmList [data-hm-sel="i:self-serve-v2"]').getAttribute('aria-current') === 'true'));
|
|
108
108
|
|
|
109
109
|
/* I1 place */
|
|
110
110
|
{
|
|
@@ -128,14 +128,12 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
128
128
|
await p.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=light'); await ready(p);
|
|
129
129
|
|
|
130
130
|
/* 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) */
|
|
131
|
-
await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-iv-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
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();
|
|
135
|
-
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b, .iv-sch .iv-stc b'), where: q('.iv-scm'), bars: c.querySelectorAll('.mi-svg :is(.mi-st, .mi-dsh)').length, now: c.querySelectorAll('.mi-svg :is(.mi-st, .mi-dsh):is(.nw, .late, .hold)').length, tail: (c.querySelector('.iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-scgo[data-ms]'),
|
|
131
|
+
await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv-tel [data-iv-tj] svg')), 15000);
|
|
132
|
+
const card = await p.evaluate(() => { const c = document.querySelector('#czViewer .iv-mc'), 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();
|
|
133
|
+
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-tel-t .iv-shn b'), segs: c.querySelectorAll('.mi-svg .mi-pt').length, now: c.querySelectorAll('.mi-svg .mi-pt:is(.nw, .late, .hold)').length, tail: (c.querySelector('.iv-gx .iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-gx .iv-scgo[data-ms]'),
|
|
136
134
|
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) }; });
|
|
137
135
|
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));
|
|
138
|
-
ok('I3 the card shows the stage the workflow engine derives,
|
|
136
|
+
ok('I3 the card shows the stage the workflow engine derives, its stages drawn as the trajectory\'s colours with the current one marked', card.stage === 'Build' && card.segs >= 2 && card.now >= 1, JSON.stringify(card));
|
|
139
137
|
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));
|
|
140
138
|
ok('I1 the card\'s → names the next stage', /^Next: ◆ Deliver/.test(card.tail), JSON.stringify(card));
|
|
141
139
|
ok('I3 Deliver is a milestone: the next stage carries the ◆ mark (Agreed design AgInitAgents)', card.ms, JSON.stringify(card));
|
|
@@ -261,8 +259,8 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
261
259
|
const tok = (v) => { const x = document.createElement('i'); x.style.setProperty('background-color', 'var(' + v + ')'); document.body.appendChild(x); const c = getComputedStyle(x).backgroundColor; x.remove(); return c; };
|
|
262
260
|
const cs = (s) => { const e = document.querySelector(s); return e ? getComputedStyle(e) : null; };
|
|
263
261
|
const fab = document.querySelector('#czFab'), fr = fab && fab.getBoundingClientRect();
|
|
264
|
-
const c = document.querySelector('#czViewer .iv-
|
|
265
|
-
return { font: cs('body').fontFamily, cta: (cs('#czViewer .iv-go') || {}).backgroundColor, ctaAlt: !document.querySelector('#czViewer .iv-go'), solid: tok('--cz-solid'), blue: tok('--cz-blue'), well: tok('--cz-well'), card: tok('--cz-card'), box: cs('#czViewer .iv-
|
|
262
|
+
const c = document.querySelector('#czViewer .iv-tel').getBoundingClientRect();
|
|
263
|
+
return { font: cs('body').fontFamily, cta: (cs('#czViewer .iv-go') || {}).backgroundColor, ctaAlt: !document.querySelector('#czViewer .iv-go'), solid: tok('--cz-solid'), blue: tok('--cz-blue'), well: tok('--cz-well'), card: tok('--cz-card'), box: cs('#czViewer .iv-mc').backgroundColor, rad: parseFloat(cs('#czViewer .iv-mc').borderTopLeftRadius), fab: fr ? [Math.round(fr.width), Math.round(fr.height)] : null, over: document.documentElement.scrollWidth - innerWidth, cardW: Math.round(c.width) };
|
|
266
264
|
});
|
|
267
265
|
const d = [];
|
|
268
266
|
if (!/^Nunito/.test(g.font)) d.push('font ' + g.font);
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.459.0",
|
|
4
|
+
"at": "2026-10-30T09:40:09.558Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1109,
|
|
9
|
+
"t": "Refresh saved task notes on reopen",
|
|
10
|
+
"s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.458.0",
|
|
17
|
+
"at": "2026-10-30T03:22:27.686Z",
|
|
18
|
+
"f": 3,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1106,
|
|
22
|
+
"t": "One mission component on the initiative view",
|
|
23
|
+
"s": "One mission component on the initiative view",
|
|
24
|
+
"k": "new"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.457.0",
|
|
4
30
|
"at": "2026-10-30T01:12:13.115Z",
|
package/workspace/guide/adler.md
CHANGED
|
@@ -31,7 +31,7 @@ Each mood comes from real state. When nothing happens, Adler is calm or he rests
|
|
|
31
31
|
- **Claude's suggestions.** Adler asks with his worried face when Claude suggests a split or a merge, milestones, a goal or a success measure.
|
|
32
32
|
- **Intelligence.** His face in Claude's line at the top only. Charts, numbers and key results never show him.
|
|
33
33
|
- **Search.** Adler with a telescope when nothing matches.
|
|
34
|
-
- **Initiative mission.** The
|
|
34
|
+
- **Initiative mission.** The telemetry card at the top of an initiative uses the same art: the rocket on its pad (a blueprint, then built, then lift-off), the planet, the dish and the clouds. The rocket flies a path that runs from left to right in time. While Discover is open, Adler stands at the telescope; when Discover is done, he is gone. On a festival, the day's things hang in the sky in place of the clouds. When the news is bad (the initiative is late) the festival goes. With **Face only** or **Off**, neither he nor the festival shows.
|
|
35
35
|
- **Welcome.** Adler says hello once on the first step, and shows his thinking face while PMOS reads your folder.
|
|
36
36
|
- **Board.** His small face on the Jira chip: calm when Jira was read in the last day and a half, honest when it was not, and his thinking face while a press reads it again. He heads **New asks**: needs you while asks wait. When a delivery is missed, his honest face stands once in the Deliveries lane's header; hover it to see which. When you open a milestone that was delivered, he celebrates once in the panel (at most once a week); after that his face is calm. The diamond on the timeline stays plain, and nothing is sent to anyone.
|
|
37
37
|
- **Program charter.** His face on the check line, with his thinking face while Claude checks the milestones.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Initiatives: the Roadmap, the List and the initiative sheet"
|
|
4
4
|
description: "How to read and order the initiatives of a repository on the Roadmap and the List, open the initiative sheet, make a new initiative, and review the cycle."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-29
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Initiatives: the Roadmap, the List and the initiative sheet
|
|
@@ -11,7 +11,19 @@ The Initiatives place shows every initiative of the selected repository. Each in
|
|
|
11
11
|
|
|
12
12
|
Press **Roadmap** or **List** at the top to change the view. The workspace keeps your choice in this browser.
|
|
13
13
|
|
|
14
|
-
An open initiative uses one column.
|
|
14
|
+
An open initiative uses one column. At its top is the **mission**: one panel with three parts, and Tasks fills the width below it.
|
|
15
|
+
|
|
16
|
+
### The mission
|
|
17
|
+
|
|
18
|
+
- **The telemetry card.** It shows the stage, the plan dates, **Time left** and **Elapsed**. A picture fills the card. Time runs from left to right, from the plan start to the plan end, and the months are marked along the bottom. The path runs on the ground while the rocket is made, and it rises at lift-off, in the middle of Build, to the planet at the release. Each stage is a colour of the path: done stages are green, the current stage is thicker and blue, a late stage is orange, and a stage on hold is grey. A diamond on the path is a milestone. Press a diamond, the planet or the dish to open its task. Milestones that are close together are one diamond with a number.
|
|
19
|
+
- **To finish this stage.** It shows how many tasks of the stage are done, the stage's open milestone tasks with their dates, and the move to the next stage. The move is blue only when every task of the stage is done and nothing waits on you. At other times it is quiet. Under the rows are the owner, the stakeholders, the workflow and the program. On a wide screen this part stands beside the telemetry card.
|
|
20
|
+
- **About.** It has the description and the success measure. The description is the first paragraph of the PRD's Problem section. Press **Show more** to read all of it, or **Open the PRD** to open the file. The success measure is the one Claude drafts. A proposal opens About until you press its check mark. A kept measure shows each row with its now value and its target. When there is no description or no measure, About gives you a link that asks Claude in Home to write it.
|
|
21
|
+
|
|
22
|
+
Press the arrow on the telemetry card to hide all three parts. A banner stays: the stage, the dates, the days left, the count of tasks done, the success measure and the move to the next stage. Press the arrow again to show the telemetry card first. **To finish this stage** and **About** each have their own arrow, and they stay as you left them when you hide and show the mission. The workspace keeps these choices for each initiative in this browser. On a phone, the first screen shows **To finish this stage** and **About** closed.
|
|
23
|
+
|
|
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
|
+
|
|
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.
|
|
15
27
|
|
|
16
28
|
### Scan repository
|
|
17
29
|
|
|
@@ -97,15 +97,12 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
97
97
|
const pickStage = async (p, label) => { await p.click(V + ' [data-iv-stagepick]'); await until(() => p.evaluate(() => !!document.querySelector('.hi-pop [data-sp-life]'))); await p.click(`.hi-pop [data-sp-life]:has(> span:text-is("${label}"))`); };
|
|
98
98
|
const pickMore = async (p, label) => { await p.click('#czViewer [data-cz-vw="more"]'); await until(() => p.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); await p.click(`#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${label}"))`); };
|
|
99
99
|
|
|
100
|
-
const openMi = async (p) => { if (!(await p.evaluate((v) => !!document.querySelector(v + ' .iv-mio'), V))) await p.click(V + ' [data-iv-mi]', { position: { x: 8, y: 8 } }); await until(() => p.evaluate((v) => !!document.querySelector(v + ' .iv-mio'), V)); };
|
|
101
100
|
const A = await open(), p = A.page;
|
|
102
101
|
ok('W1 the page opens on the initiative with the workflow on its meta line', A.up, await txt(p, V + ' .cz-vw-kind'));
|
|
103
102
|
ok('W1 the kind line names the workflow and the anchor: "Tender · KR 1.1" (Kind becomes Workflow)', /^Tender · KR 1\.1$/.test(await txt(p, V + ' .cz-vw-kind')), await txt(p, V + ' .cz-vw-kind'));
|
|
104
|
-
ok('W1 the card names the stage of that workflow: Triage', (await txt(p, V + ' .iv-
|
|
105
|
-
ok('W1 the
|
|
106
|
-
await
|
|
107
|
-
ok('W1 the next stage is Tender\'s own: the → names Requirements', await p.evaluate((v) => /^Next: Requirements/.test(document.querySelector(v + ' .iv-scgo').getAttribute('aria-label')), V));
|
|
108
|
-
await p.click(V + ' [data-iv-mi]', { position: { x: 8, y: 8 } });
|
|
103
|
+
ok('W1 the card names the stage of that workflow: Triage', (await txt(p, V + ' .iv-tel-t .iv-shn b')) === 'Triage', await txt(p, V + ' .iv-tel-t'));
|
|
104
|
+
ok('W1 the telemetry card names its place among the ten stages of Tender: stage 1 of 10', await p.evaluate((v) => /^Stage 1 of 10 of Tender: Triage\./.test(document.querySelector(v + ' .iv-tel').getAttribute('aria-label')), V));
|
|
105
|
+
ok('W1 the next stage is Tender\'s own: the → names Requirements', await p.evaluate((v) => /^Next: Requirements/.test(document.querySelector(v + ' .iv-gx .iv-scgo').getAttribute('aria-label')), V));
|
|
109
106
|
ok('W1 the icon names the workflow for a screen reader', await p.evaluate((v) => /Workflow: Tender/.test(document.querySelector(v + ' [data-iv-wf]').getAttribute('aria-label')), V));
|
|
110
107
|
ok('W2 PMOS set it from the BRD: the toast says so, with Undo (WfTriage)', await until(() => p.evaluate(() => { const t = document.getElementById('hiToast'); return !!t && !t.hidden && /Set to Tender from the BRD/.test(t.textContent) && !!t.querySelector('[data-hi-undo]'); })));
|
|
111
108
|
await shot(p, 'triage-1440');
|
|
@@ -147,8 +144,7 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
147
144
|
await p.reload();
|
|
148
145
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' .hi-end'), V), 30000);
|
|
149
146
|
ok('W7 the page of a Won’t do says why, and offers Back to Triage', /Won't do · No budget: Moved to next year’s budget\./.test(await txt(p, V + ' .hi-end')), await txt(p, V + ' .hi-end'));
|
|
150
|
-
await
|
|
151
|
-
ok('W7 its stage does not move: the card has no next stage to move to', !(await p.evaluate((v) => !!document.querySelector(v + ' .iv-sc .iv-scgo, ' + v + ' [data-iv-next]'), V)), await txt(p, V + ' .iv-sc'));
|
|
147
|
+
ok('W7 its stage does not move: the card has no next stage to move to', !(await p.evaluate((v) => !!document.querySelector(v + ' .iv-mc .iv-scgo, ' + v + ' [data-iv-next]'), V)), await txt(p, V + ' .iv-mc'));
|
|
152
148
|
ok('W7 the stage chip has Back to Triage in place of Won’t do', await stageLabels(p).then((l) => l.includes('Back to Triage') && !l.includes('Won’t do')));
|
|
153
149
|
await shot(p, 'wontdo-page-1440');
|
|
154
150
|
await p.click(V + ' .hi-end [data-wf-back]');
|
|
@@ -158,7 +154,7 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
158
154
|
|
|
159
155
|
// W8 the phone, and dark
|
|
160
156
|
const P = await open({ w: 390, h: 844, fresh: false, B: board('requirements') });
|
|
161
|
-
ok('W8 the phone opens the page with the workflow at Requirements, the second of its ten
|
|
157
|
+
ok('W8 the phone opens the page with the workflow at Requirements, the second of its ten stages', P.up && (await txt(P.page, V + ' .iv-tel-t .iv-shn b')) === 'Requirements' && await P.page.evaluate((v) => /^Stage 2 of 10 of Tender: Requirements\./.test(document.querySelector(v + ' .iv-tel').getAttribute('aria-label')) && !!document.querySelector(v + ' .mi-svg .mi-pt:is(.nw, .late)'), V));
|
|
162
158
|
ok('W8 the toast shows once only: seen before, not again', !(await P.page.evaluate(() => { const t = document.getElementById('hiToast'); return !!t && !t.hidden; })));
|
|
163
159
|
await shot(P.page, 'page-390');
|
|
164
160
|
await P.page.click(V + ' [data-iv-wf]');
|
|
@@ -154,10 +154,10 @@ const INITIATIVE = () => ({
|
|
|
154
154
|
await until(() => p.evaluate(() => { const b = document.querySelector('#czViewer [data-czs-fold="tree"]'); if (b && b.getAttribute('aria-expanded') !== 'true') b.click(); return !!document.querySelector('#czViewer button.pp-open[data-ini="descope-parity"]'); }));
|
|
155
155
|
await p.click('#czViewer button.pp-open[data-ini="descope-parity"]');
|
|
156
156
|
const ic = await until(() => p.evaluate(() => { const c = document.querySelector('#czViewer .iv .md-card'); if (!c) return null;
|
|
157
|
-
return { after: !!c.closest('.iv-cl') && !!
|
|
157
|
+
return { after: !!c.closest('.iv-cl') && !!c.closest('.iv-mc .iv-ab .ab-m'), hd: c.querySelector('.md-hd b').textContent, src: c.querySelector('.md-src').textContent,
|
|
158
158
|
rows: [...c.querySelectorAll('.md-mr')].map((r) => [r.querySelector('.md-role').textContent, r.querySelector('.md-nm b').textContent, (r.querySelector('small') || {}).textContent || '', r.querySelector('.md-now').textContent, r.querySelector('.md-to').textContent].join(' | ')),
|
|
159
159
|
why: c.querySelector('.md-why').textContent, presses: [...c.querySelectorAll('.md-ft .md-ib')].map((b) => ({ label: b.getAttribute('aria-label'), title: b.getAttribute('title'), text: b.textContent.trim(), solid: b.classList.contains('solid'), href: b.getAttribute('href') || '' })) }; }));
|
|
160
|
-
ok('I the proposed success measure sits
|
|
160
|
+
ok('I the proposed success measure sits in About, open while it waits, with where it came from', !!ic && ic.after && ic.hd === 'Proposed success measure' && ic.src === 'from the PRD and the desktop launch', JSON.stringify(ic));
|
|
161
161
|
ok('I three groups in order, each Now → Target', !!ic && ic.rows.join(' / ') === 'Proves it worked · 4 weeks after release | Mobile checkout login drop-off | Moves your key result “drop-off under 15%” | 27% | 19% / Early signal · shows in days | Inline form completion | Ticket ESHOP-981 drafted | — | 80% week 1 / Guardrail | Checkout conversion | A faster login must not cost orders | 3.1% | ≥ 3.1%', ic && ic.rows.join(' / '));
|
|
162
162
|
ok('I one line of why', !!ic && /^Desktop fell 7 points/.test(ic.why));
|
|
163
163
|
ok('I Edit (in place, batch 16) and a solid ✓ Keep this success measure: icon-only, each with a label and a title', !!ic && ic.presses.map((x) => x.label).join() === 'Edit the proposed success measure,Keep this success measure'
|
|
@@ -168,14 +168,16 @@ const INITIATIVE = () => ({
|
|
|
168
168
|
await p.click('#czViewer .iv .md-card [data-md="keep"]');
|
|
169
169
|
const ki = await until(() => D.posts.find((x) => x.path === '/api/metric-drafts/keep-all' && x.body.scope === 'initiative'));
|
|
170
170
|
ok('I ✓ keeps all (POST /api/metric-drafts/keep-all, scope initiative)', !!ki && ki.body.id === 'descope-parity', JSON.stringify(ki));
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
// kept: About folds back by itself (nothing waits on a ✓), and its one line carries the first measure; open, it lists the rows with Undo
|
|
172
|
+
const kf = await until(() => p.evaluate(() => { const h = document.querySelector('#czViewer .iv .iv-ab-h'); if (!h || !/Mobile checkout login drop-off/.test(h.textContent)) return null;
|
|
173
|
+
return { sum: h.textContent.replace(/\s+/g, ' ').trim(), open: h.getAttribute('aria-expanded'), card: !!document.querySelector('#czViewer .iv .md-card') }; }));
|
|
174
|
+
ok('I kept: About folds and says the first measure in one line; no proposal card is left', !!kf && /^About ?Mobile checkout login drop-off27% → 19%$/.test(kf.sum) && kf.open === 'false' && !kf.card, JSON.stringify(kf));
|
|
175
|
+
await p.click('#czViewer .iv .iv-ab-h');
|
|
176
|
+
const lst = await until(() => p.evaluate(() => { const L = [...document.querySelectorAll('#czViewer .iv .iv-ab .ab-mr')]; return L.length ? L.map((x) => x.textContent) : null; }));
|
|
177
|
+
ok('I About opens on the rows: the role, the name and Now → Target', !!lst && lst.join(' / ') === 'Proves it worked · 4 weeks after releaseMobile checkout login drop-off27% → 19% / Early signal · shows in daysInline form completionWaits on ESHOP-981 / GuardrailCheckout conversionStays at ≥ 3.1%', JSON.stringify(lst));
|
|
178
|
+
ok('I Undo is beside the rows, icon-only', await p.evaluate(() => { const u = document.querySelector('#czViewer .iv .iv-ab [data-md="undo"]'); return !!u && u.title === 'Undo' && !u.textContent.trim(); }));
|
|
177
179
|
await shot(p, 'Iq9Initiative-kept-built');
|
|
178
|
-
await p.click('#czViewer .iv .
|
|
180
|
+
await p.click('#czViewer .iv .iv-ab [data-md="undo"]');
|
|
179
181
|
await until(() => D.posts.filter((x) => x.path === '/api/metric-drafts/undo' && x.body.scope === 'initiative').length === 3, 5000);
|
|
180
182
|
ok('I Undo makes it a proposal again', !!(await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv .md-card')))));
|
|
181
183
|
ok('0 no page error (desk)', D.errors.length === 0, D.errors.join(' | '));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.459.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.459.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -201,7 +201,7 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
|
|
|
201
201
|
const I = await open('/premium-initiative.html?id=pa-one&ws=' + encodeURIComponent(B.ws) + '&board=' + encodeURIComponent(B.id));
|
|
202
202
|
const ip = I.page;
|
|
203
203
|
const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
|
|
204
|
-
const landed = await until(() => ip.evaluate(() => { const q = new URLSearchParams(location.search); return location.pathname === '/premium.html' && q.get('ini') === 'pa-one' && !!q.get('ws') && !!q.get('board') && !!document.querySelector('#czViewer .iv-
|
|
204
|
+
const landed = await until(() => ip.evaluate(() => { const q = new URLSearchParams(location.search); return location.pathname === '/premium.html' && q.get('ini') === 'pa-one' && !!q.get('ws') && !!q.get('board') && !!document.querySelector('#czViewer .iv-mc'); }), 60000);
|
|
205
205
|
ok('I0 the expand link lands on Home with the initiative selected, ws and board kept', !!landed, await ip.evaluate(() => location.href));
|
|
206
206
|
// the page holds the Tasks (batch 11 item 20)
|
|
207
207
|
await until(() => ip.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')), 60000);
|
|
@@ -239,8 +239,8 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
|
|
|
239
239
|
await ip.click('#czViewer [data-cz-vw="back"]'); // ← from Stage: the initiative's page again (canvas HbCDrill)
|
|
240
240
|
// the card (stage card D): its last node, the next stage, opens the move popover with Move now and Back; Back always asks for a reason,
|
|
241
241
|
// and the move line carries it (InStage)
|
|
242
|
-
const openNext = async () => {
|
|
243
|
-
await until(() => ip.evaluate(() => { const n = document.querySelector('.iv-
|
|
242
|
+
const openNext = async () => { // the next-stage move sits in the way to finish, always drawn (initiative-mission-control)
|
|
243
|
+
await until(() => ip.evaluate(() => { const n = document.querySelector('.iv-mc .iv-gx [data-iv-next]'); return !!(n && n.offsetParent); }), 30000); await ip.click('.iv-mc .iv-gx [data-iv-next]'); return until(() => ip.evaluate(() => !!document.querySelector('.hi-pop [data-hi-goback]'))); };
|
|
244
244
|
const back = await openNext();
|
|
245
245
|
ok('I4 the card\'s next stage opens Move to the next stage now and Back', back && await ip.evaluate(() => /^Move to .+ now$/.test(((document.querySelector('.hi-pop [data-hi-go]') || {}).textContent || '').trim())));
|
|
246
246
|
if (back) {
|
|
@@ -57,7 +57,7 @@ const SPRINTS = { ok: true, source: 'jira', readAt: '2026-10-19T09:00:00Z', velo
|
|
|
57
57
|
await page.route('**/api/initiative-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: IMODEL, as_of: Date.now() }) }));
|
|
58
58
|
await page.goto(BASE + '/premium-initiative.html?id=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
59
59
|
// the Board's expand link lands on Home's initiative layout (premium-agreed-design); its Overview has the Sprint press, and the Viewer shows one item at a time
|
|
60
|
-
S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-
|
|
60
|
+
S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumViewer && !!window.__premiumVwJira), 20000);
|
|
61
61
|
if (S.up) { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(page); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]'))); }
|
|
62
62
|
S.reads.length = 0;
|
|
63
63
|
return { page, ctx, S };
|
|
@@ -48,7 +48,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
48
48
|
await page.route('**/api/initiative-premium*', (r) => { const u = r.request().url(); S.gets.push(u); if (!r.request().headers()['x-pmos-nonce']) S.vgets.push(u); const a = answer ? answer(u, S.gets.filter((x) => x === u).length) : { status: 200, body: { ok: true, state: 'ready', model: MODEL, as_of: Date.now() } }; r.fulfill({ status: a.status, contentType: 'application/json', body: JSON.stringify(a.body) }); });
|
|
49
49
|
await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
|
|
50
50
|
await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
51
|
-
S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-
|
|
51
|
+
S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumWorkItem), 20000);
|
|
52
52
|
return { page, ctx, S };
|
|
53
53
|
};
|
|
54
54
|
const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
|
|
@@ -87,7 +87,7 @@ const TICKETS = {
|
|
|
87
87
|
await page.route('**/api/initiative-premium*', (r) => json(r, { ok: true, state: 'ready', model: IMODEL, as_of: Date.now() }));
|
|
88
88
|
await page.route('**/api/briefing-premium/**', (r) => json(r, { ok: true, turns: [], working: false }));
|
|
89
89
|
await page.goto(BASE + '/premium-initiative.html?id=self-serve-v2&ws=w1&board=w1&theme=' + theme); // the Board's expand link: Home with the initiative
|
|
90
|
-
await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-
|
|
90
|
+
await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumVwJira), 20000);
|
|
91
91
|
await overview(page);
|
|
92
92
|
await sleep(300); reads.length = 0; posts.length = 0; // Home's own reads; the checks below are about the sprint view's
|
|
93
93
|
return { ctx, page, errors, posts, reads };
|
|
@@ -119,8 +119,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
119
119
|
await fold(p, 'tree');
|
|
120
120
|
await until(() => p.evaluate(() => !!document.querySelector('#czViewer button.pp-open[data-ini="descope-parity"]')));
|
|
121
121
|
await p.click('#czViewer button.pp-open[data-ini="descope-parity"]');
|
|
122
|
-
const ip = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !/Initiative/.test(v.getAttribute('aria-label') || '')) return null; return { t: v.querySelector('.cz-vw-title').textContent, peek: !document.querySelector('#peek'), stg: v.
|
|
123
|
-
ok('O an initiative in the tree opens the Board\'s initiative in the same shell, with its eight
|
|
122
|
+
const ip = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !/Initiative/.test(v.getAttribute('aria-label') || '')) return null; return { t: v.querySelector('.cz-vw-title').textContent, peek: !document.querySelector('#peek'), stg: +((/^Stage \d+ of (\d+)/.exec(((v.querySelector('.iv-tel') || { getAttribute: () => '' }).getAttribute('aria-label')) || '') || [])[1] || 0) }; }));
|
|
123
|
+
ok('O an initiative in the tree opens the Board\'s initiative in the same shell, with its eight stages (XvABoard)', !!ip && ip.t === 'Descope feature parity' && ip.peek && ip.stg === 8, JSON.stringify(ip));
|
|
124
124
|
await p.keyboard.press('Escape');
|
|
125
125
|
await until(() => p.evaluate(() => document.querySelector('#czViewer').hidden));
|
|
126
126
|
await p.click('#ibBody [data-prog="project-ascent"]');
|