create-pmos 0.456.0 → 0.458.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.
Files changed (48) hide show
  1. package/package.json +101 -80
  2. package/payload/KIT-VERSION +2 -2
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-adddoc-test.js +1 -1
  8. package/workspace/briefing-premium-board-test.js +17 -17
  9. package/workspace/briefing-premium-initiative-test.js +8 -10
  10. package/workspace/changelog.json +270 -1845
  11. package/workspace/ev-everywhere-test.js +24 -1
  12. package/workspace/guide/adler.md +1 -1
  13. package/workspace/guide/initiatives-screen.md +12 -2
  14. package/workspace/guide/settings.md +13 -3
  15. package/workspace/ini-workflow-test.js +5 -9
  16. package/workspace/lib/kit-update.js +1 -1
  17. package/workspace/lib/settings-store.js +1 -1
  18. package/workspace/metric-drafts-ui-test.js +11 -9
  19. package/workspace/package-lock.json +2 -2
  20. package/workspace/package.json +1 -1
  21. package/workspace/premium-board-actions-test.js +3 -3
  22. package/workspace/premium-vw-backlog-test.js +1 -1
  23. package/workspace/premium-vw-item-test.js +1 -1
  24. package/workspace/premium-vw-jira-test.js +1 -1
  25. package/workspace/program-panel-test.js +2 -2
  26. package/workspace/public/pm/cozy-ev.css +21 -4
  27. package/workspace/public/pm/cozy-settings.js +43 -19
  28. package/workspace/public/pm/ini-about.js +145 -0
  29. package/workspace/public/pm/ini-tasks.js +6 -34
  30. package/workspace/public/pm/ini-view-model.js +12 -2
  31. package/workspace/public/pm/ini-view.css +180 -143
  32. package/workspace/public/pm/ini-view.js +137 -145
  33. package/workspace/public/pm/metric-drafts.js +8 -2
  34. package/workspace/public/pm/mission.js +159 -135
  35. package/workspace/public/pm/premium-shell.js +24 -24
  36. package/workspace/public/pm/premium.css +11 -14
  37. package/workspace/public/pm/stage-line.js +4 -1
  38. package/workspace/public/pm/upd-weeks.js +56 -0
  39. package/workspace/split-merge-ui-test.js +1 -1
  40. package/workspace/stage-card-tasks-test.js +2 -2
  41. package/workspace/stage-card-test.js +48 -51
  42. package/workspace/task-links-test.js +8 -9
  43. package/workspace/task-press-test.js +2 -2
  44. package/workspace/task-views-test.js +15 -76
  45. package/workspace/test-lists/initiative-mission-control.json +5 -0
  46. package/workspace/test-lists/mission.json +7 -3
  47. package/workspace/test-lists/update-weeks.json +5 -0
  48. 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.456.0",
3
+ "version": "0.458.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,248 +32,269 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.458.0",
37
+ "at": "2026-10-30T03:22:27.686Z",
38
+ "f": 3,
39
+ "prs": [
40
+ {
41
+ "n": 1106,
42
+ "t": "One mission component on the initiative view",
43
+ "s": "One mission component on the initiative view",
44
+ "k": "new"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "v": "0.457.0",
50
+ "at": "2026-10-30T01:12:13.115Z",
51
+ "f": 3,
52
+ "prs": [
53
+ {
54
+ "n": 1107,
55
+ "t": "Settings Updates checks when opened and carries a weekly change log",
56
+ "s": "Settings › Updates asks for the latest kit when it opens, Update installs at once with no second question, and What's new is part of Updates as a weekly change log with this week open and earlier weeks in an Archive.",
57
+ "k": "new"
58
+ }
59
+ ]
60
+ },
35
61
  {
36
62
  "v": "0.456.0",
37
- "at": "2026-10-29T14:45:16.947Z",
38
- "f": 2,
63
+ "at": "2026-10-29T14:52:35.157Z",
64
+ "f": 3,
39
65
  "prs": [
40
66
  {
41
67
  "n": null,
42
68
  "t": "Compact initiative summary above full-width tasks",
43
- "s": "Compact initiative summary above full-width tasks"
69
+ "s": "Compact initiative summary above full-width tasks",
70
+ "k": "fix"
44
71
  },
45
72
  {
46
73
  "n": 1102,
47
74
  "t": "Compact initiative summary above full-width tasks",
48
- "s": "Compact initiative summary above full-width tasks"
75
+ "s": "The desktop summary is a compact horizontal header, followed by milestones and full-width Tasks sized to their content.",
76
+ "k": "fix"
49
77
  }
50
78
  ]
51
79
  },
52
80
  {
53
81
  "v": "0.455.0",
54
- "at": "2026-10-29T14:18:58.190Z",
55
- "f": 2,
82
+ "at": "2026-10-29T14:29:11.203Z",
83
+ "f": 3,
56
84
  "prs": [
57
85
  {
58
86
  "n": 1103,
59
87
  "t": "Size each Adler picture by where it is drawn (19.8 MB to 3.7 MB)",
60
- "s": "Size each Adler picture by where it is drawn (19.8 MB to 3.7 MB)"
88
+ "s": "Size each Adler picture by where it is drawn (19.8 MB to 3.7 MB)",
89
+ "k": "imp"
61
90
  }
62
91
  ]
63
92
  },
64
93
  {
65
94
  "v": "0.454.0",
66
- "at": "2026-10-29T14:05:18.059Z",
67
- "f": 2,
95
+ "at": "2026-10-29T14:11:18.697Z",
96
+ "f": 3,
68
97
  "prs": [
69
98
  {
70
99
  "n": 1100,
71
100
  "t": "Hide linked worktrees from the Workspaces settings lists",
72
- "s": "Hide linked worktrees from the Workspaces settings lists"
101
+ "s": "Hide linked worktrees from the Workspaces settings lists",
102
+ "k": "fix"
73
103
  }
74
104
  ]
75
105
  },
76
106
  {
77
107
  "v": "0.453.0",
78
- "at": "2026-10-29T13:00:26.537Z",
79
- "f": 2,
108
+ "at": "2026-10-29T13:17:59.342Z",
109
+ "f": 3,
80
110
  "prs": [
81
111
  {
82
112
  "n": 1099,
83
113
  "t": "The mission scene uses the blue Adler PNG set",
84
- "s": "The mission scene uses the blue Adler PNG set"
114
+ "s": "The mission scene uses the blue Adler PNG set",
115
+ "k": "new"
85
116
  }
86
117
  ]
87
118
  },
88
119
  {
89
120
  "v": "0.452.0",
90
- "at": "2026-10-29T12:06:35.455Z",
91
- "f": 2,
121
+ "at": "2026-10-29T12:12:01.657Z",
122
+ "f": 3,
92
123
  "prs": [
93
124
  {
94
125
  "n": 1098,
95
126
  "t": "Settings > Claude: API key and Claude profile",
96
- "s": "Settings > Claude: API key and Claude profile"
127
+ "s": "Settings > Claude: API key and Claude profile",
128
+ "k": "new"
97
129
  }
98
130
  ]
99
131
  },
100
132
  {
101
133
  "v": "0.451.0",
102
- "at": "2026-10-29T08:39:19.762Z",
103
- "f": 2,
134
+ "at": "2026-10-29T08:45:28.582Z",
135
+ "f": 3,
104
136
  "prs": [
105
137
  {
106
138
  "n": 1097,
107
139
  "t": "Catch up to Claude Code 2.1.312",
108
- "s": "Catch up to Claude Code 2.1.312"
140
+ "s": "Catch up to Claude Code 2.1.312",
141
+ "k": "x"
109
142
  }
110
143
  ]
111
144
  },
112
145
  {
113
146
  "v": "0.450.0",
114
- "at": "2026-10-29T08:31:57.056Z",
115
- "f": 2,
147
+ "at": "2026-10-29T08:38:00.644Z",
148
+ "f": 3,
116
149
  "prs": [
117
150
  {
118
151
  "n": 1096,
119
152
  "t": "Grill runs go to the Claude API; --changed narrows further",
120
- "s": "Grill runs go to the Claude API; --changed narrows further"
153
+ "s": "Grill runs go to the Claude API; --changed narrows further",
154
+ "k": "new"
121
155
  }
122
156
  ]
123
157
  },
124
158
  {
125
159
  "v": "0.449.0",
126
- "at": "2026-10-29T08:16:15.214Z",
127
- "f": 2,
160
+ "at": "2026-10-29T08:24:22.196Z",
161
+ "f": 3,
128
162
  "prs": [
129
163
  {
130
164
  "n": 1095,
131
165
  "t": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
132
- "s": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set"
166
+ "s": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
167
+ "k": "new"
133
168
  }
134
169
  ]
135
170
  },
136
171
  {
137
172
  "v": "0.448.0",
138
- "at": "2026-10-29T07:41:35.601Z",
139
- "f": 2,
173
+ "at": "2026-10-29T07:52:37.467Z",
174
+ "f": 3,
140
175
  "prs": [
141
176
  {
142
177
  "n": 1094,
143
178
  "t": "Forecast range bar on Intelligence goal rows",
144
- "s": "Forecast range bar on Intelligence goal rows"
179
+ "s": "Forecast range bar on Intelligence goal rows",
180
+ "k": "new"
145
181
  }
146
182
  ]
147
183
  },
148
184
  {
149
185
  "v": "0.447.0",
150
- "at": "2026-10-29T07:16:51.492Z",
151
- "f": 2,
186
+ "at": "2026-10-29T07:29:44.667Z",
187
+ "f": 3,
152
188
  "prs": [
153
189
  {
154
190
  "n": 1093,
155
191
  "t": "Grill and Forecast backend",
156
- "s": "Grill and Forecast backend"
192
+ "s": "Grill and Forecast backend",
193
+ "k": "new"
157
194
  }
158
195
  ]
159
196
  },
160
197
  {
161
198
  "v": "0.446.0",
162
- "at": "2026-10-29T05:26:28.089Z",
163
- "f": 2,
199
+ "at": "2026-10-29T05:32:26.109Z",
200
+ "f": 3,
164
201
  "prs": [
165
202
  {
166
203
  "n": 1091,
167
204
  "t": "D101, the PMOS server may call outside services",
168
- "s": "D101, the PMOS server may call outside services"
205
+ "s": "D101, the PMOS server may call outside services",
206
+ "k": "new"
169
207
  }
170
208
  ]
171
209
  },
172
210
  {
173
211
  "v": "0.445.0",
174
- "at": "2026-10-29T01:59:56.258Z",
175
- "f": 2,
212
+ "at": "2026-10-29T02:05:03.398Z",
213
+ "f": 3,
176
214
  "prs": [
177
215
  {
178
216
  "n": 1090,
179
217
  "t": "Faster pages, panels on Board and Intelligence, task status on timelines, Jira moves (feedback batch 19)",
180
- "s": "Faster pages, panels on Board and Intelligence, task status on timelines, Jira moves (feedback batch 19)"
218
+ "s": "Faster pages, panels on Board and Intelligence, task status on timelines, Jira moves (feedback batch 19)",
219
+ "k": "new"
181
220
  }
182
221
  ]
183
222
  },
184
223
  {
185
224
  "v": "0.444.0",
186
- "at": "2026-10-28T16:25:00.066Z",
187
- "f": 2,
225
+ "at": "2026-10-28T16:30:50.265Z",
226
+ "f": 3,
188
227
  "prs": [
189
228
  {
190
229
  "n": 1088,
191
230
  "t": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)",
192
- "s": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)"
231
+ "s": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)",
232
+ "k": "new"
193
233
  }
194
234
  ]
195
235
  },
196
236
  {
197
237
  "v": "0.443.0",
198
- "at": "2026-10-28T14:17:24.774Z",
199
- "f": 2,
238
+ "at": "2026-10-28T14:25:24.275Z",
239
+ "f": 3,
200
240
  "prs": [
201
241
  {
202
242
  "n": 1087,
203
243
  "t": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)",
204
- "s": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)"
244
+ "s": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)",
245
+ "k": "new"
205
246
  }
206
247
  ]
207
248
  },
208
249
  {
209
250
  "v": "0.442.0",
210
- "at": "2026-10-28T11:35:22.898Z",
211
- "f": 2,
251
+ "at": "2026-10-28T11:41:20.468Z",
252
+ "f": 3,
212
253
  "prs": [
213
254
  {
214
255
  "n": 1086,
215
256
  "t": "Initiative Viewer on phone and desktop, Adler dressed for the season, clear task marks (feedback batch 18 items 1, 8, 12, 13)",
216
- "s": "Initiative Viewer on phone and desktop, Adler dressed for the season, clear task marks (feedback batch 18 items 1, 8, 12, 13)"
257
+ "s": "Initiative Viewer on phone and desktop, Adler dressed for the season, clear task marks (feedback batch 18 items 1, 8, 12, 13)",
258
+ "k": "new"
217
259
  }
218
260
  ]
219
261
  },
220
262
  {
221
263
  "v": "0.441.0",
222
- "at": "2026-10-28T10:47:11.081Z",
223
- "f": 2,
264
+ "at": "2026-10-28T10:51:57.000Z",
265
+ "f": 3,
224
266
  "prs": [
225
267
  {
226
268
  "n": 1085,
227
269
  "t": "Old Viewers on the one pattern, refresh cadence, uncut greeting (feedback batch 18 items 2, 7, 9, 10)",
228
- "s": "Old Viewers on the one pattern, refresh cadence, uncut greeting (feedback batch 18 items 2, 7, 9, 10)"
270
+ "s": "Old Viewers on the one pattern, refresh cadence, uncut greeting (feedback batch 18 items 2, 7, 9, 10)",
271
+ "k": "new"
229
272
  }
230
273
  ]
231
274
  },
232
275
  {
233
276
  "v": "0.440.0",
234
- "at": "2026-10-28T10:01:00.680Z",
235
- "f": 2,
277
+ "at": "2026-10-28T10:07:02.578Z",
278
+ "f": 3,
236
279
  "prs": [
237
280
  {
238
281
  "n": 1084,
239
282
  "t": "Your day rows open, honest Intelligence drafting, update reloads in place, Live pill clear of the chat (feedback batch 18 items 3–6)",
240
- "s": "Your day rows open, honest Intelligence drafting, update reloads in place, Live pill clear of the chat (feedback batch 18 items 3–6)"
283
+ "s": "Your day rows open, honest Intelligence drafting, update reloads in place, Live pill clear of the chat (feedback batch 18 items 3–6)",
284
+ "k": "fix"
241
285
  }
242
286
  ]
243
287
  },
244
288
  {
245
289
  "v": "0.439.0",
246
- "at": "2026-10-28T08:30:50.008Z",
247
- "f": 2,
290
+ "at": "2026-10-28T08:36:52.065Z",
291
+ "f": 3,
248
292
  "prs": [
249
293
  {
250
294
  "n": 1083,
251
295
  "t": "Meeting notes cover the whole meeting when the live transcript stops early",
252
- "s": "Meeting notes cover the whole meeting when the live transcript stops early"
253
- }
254
- ]
255
- },
256
- {
257
- "v": "0.438.0",
258
- "at": "2026-10-28T06:29:09.651Z",
259
- "f": 2,
260
- "prs": [
261
- {
262
- "n": 1081,
263
- "t": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)",
264
- "s": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)"
265
- }
266
- ]
267
- },
268
- {
269
- "v": "0.437.0",
270
- "at": "2026-10-28T05:16:07.974Z",
271
- "f": 2,
272
- "prs": [
273
- {
274
- "n": 1080,
275
- "t": "Calm Mentions, one conversation per thread (batch 16 item 12)",
276
- "s": "Calm Mentions, one conversation per thread (batch 16 item 12)"
296
+ "s": "Meeting notes cover the whole meeting when the live transcript stops early",
297
+ "k": "fix"
277
298
  }
278
299
  ]
279
300
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@e2c151f3
2
- assembled: 2026-10-29
1
+ kernel-source: pmos@753d951a
2
+ assembled: 2026-10-30
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-29T14:45:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T03:22:24Z"}
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-29T14:45:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T03:22:24Z"}
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-29T14:45:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T03:22:24Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  Newest first, ISO dates.
4
4
 
5
- ## 2026-10-29
5
+ ## 2026-10-30
6
6
 
7
7
  - Adopted OKF v0.2 (D73).
@@ -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-sc', btn: '#czViewer [data-hi-v="docs"]', qs: '?ini=self-serve-v2&ws=w1&board=w1&theme=' },
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
- // batch 18 item 1: the mission replaces the stage line; its stages, dates and next stage open in place, so a first read opens it
57
- const mi = iv.querySelector('[data-iv-mi]'); if (mi && !iv.querySelector('.iv-mio')) { mi.click(); return null; }
58
- const sc = iv.querySelector('.iv-sc'), c = window.czViewer && window.czViewer.current(), r = v.getBoundingClientRect();
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: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-scd', sc), no: sc && tx('.iv-sch .iv-no', sc),
62
- // the mission's strip (batch 18 item 1): one part a stage, read back as done, now or next; the current stage's name under it; in place the milestones
63
- bars: sc ? [...sc.querySelectorAll('.mi-svg :is(.mi-st, .mi-dsh)')].map((x) => (x.classList.contains('dn') ? 'done' : x.classList.contains('q') ? 'next' : 'now')).join('|') : '',
64
- nm: sc && tx('.iv-mi-nm', sc), ms: sc ? [...sc.querySelectorAll('.iv-mio .iv-msr')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()) : [],
65
- aria: sc && sc.getAttribute('aria-label'), dates: sc && tx('.iv-mio-h .iv-dtc', sc), next: sc && sc.querySelector('.iv-scgo') ? sc.querySelector('.iv-scgo').getAttribute('aria-label') : null,
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 mission has no part for the skipped first step: it starts at Discover, now', !!sk && sk.bars.split('|').length === 7 && sk.bars.split('|')[0] === 'now' && sk.nm === 'Discover', JSON.stringify(sk && [sk.bars, sk.nm]));
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.bars === 'done|done|done|done|now|next|next' && 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]));
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.nm === 'Technical POC', JSON.stringify(td && [td.next, td.empty, td.nm]));
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 && /^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]));
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-sc'))); await sleep(300);
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.bars.split('|').length === 8 && pk.bars.split('|')[5] === 'now' && 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.where, pk.bars, pk.tks, pk.q, pk.folds]));
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.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && /^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.dates, tp.folds]));
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-sch b') || {}).textContent, stt: !!v.querySelector('.mi-svg :is(.mi-st, .mi-dsh):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.where, pk.meta, pk.stt]));
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-sc') && !!((document.querySelector('#czViewer .iv-sch > b, .iv-sch .iv-stc b') || {}).textContent || '').trim())), full), 30000); }
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-sc') && !document.querySelector('#hmList .iv-sc') && document.querySelector('#hmList [data-hm-sel="i:self-serve-v2"]').getAttribute('aria-current') === 'true'));
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-mi]')), 15000);
132
- if (!(await p.evaluate(() => !!document.querySelector('#czViewer .iv-mio')))) await p.click('#czViewer [data-iv-mi]', { position: { x: 8, y: 8 } });
133
- await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv-mio')));
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, with one part a stage on its mission strip and the current one marked', card.stage === 'Build' && card.bars === 8 && card.now === 1, JSON.stringify(card));
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-card').getBoundingClientRect();
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-card').backgroundColor, rad: parseFloat(cs('#czViewer .iv-card').borderTopLeftRadius), fab: fr ? [Math.round(fr.width), Math.round(fr.height)] : null, over: document.documentElement.scrollWidth - innerWidth, cardW: Math.round(c.width) };
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);