create-pmos 0.421.0 → 0.423.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 (112) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/scripts/anchor-resolve.js +93 -15
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/board-programs-test.js +87 -3
  8. package/workspace/briefing-premium-adddoc-test.js +1 -1
  9. package/workspace/briefing-premium-board-test.js +13 -11
  10. package/workspace/briefing-premium-initiative-test.js +30 -38
  11. package/workspace/changelog.json +24 -0
  12. package/workspace/fixtures/report-api/draft.json +2 -1
  13. package/workspace/guide/briefing-premium.md +2 -1
  14. package/workspace/guide/home.md +14 -4
  15. package/workspace/guide/programs.md +5 -3
  16. package/workspace/guide/workflows.md +5 -1
  17. package/workspace/home-other-product-test.js +55 -0
  18. package/workspace/ini-workflow-test.js +4 -4
  19. package/workspace/lib/board-premium.js +21 -6
  20. package/workspace/lib/custom-docs.js +65 -3
  21. package/workspace/lib/doc-live-root.js +37 -0
  22. package/workspace/lib/engine/anchor-resolve.js +93 -15
  23. package/workspace/lib/engine/boards.js +30 -2
  24. package/workspace/lib/engine/intake.js +1 -1
  25. package/workspace/lib/hold-spans.js +24 -10
  26. package/workspace/lib/initiative-writer.js +63 -1
  27. package/workspace/lib/kg.js +1 -1
  28. package/workspace/lib/plan-items.js +36 -5
  29. package/workspace/lib/programs.js +11 -3
  30. package/workspace/lib/report-draft.js +3 -0
  31. package/workspace/lib/route-modules.js +2 -0
  32. package/workspace/lib/routes-board-premium.js +28 -0
  33. package/workspace/lib/routes-boards.js +92 -13
  34. package/workspace/lib/routes-doc-sheet.js +29 -1
  35. package/workspace/lib/routes-initiatives.js +12 -0
  36. package/workspace/lib/routes-programs.js +44 -5
  37. package/workspace/lib/routes-task-links.js +329 -0
  38. package/workspace/lib/routes-task-plans.js +333 -0
  39. package/workspace/lib/split-merge-suggest.js +162 -0
  40. package/workspace/lib/split-merge.js +379 -0
  41. package/workspace/lib/task-cli.js +73 -13
  42. package/workspace/lib/task-items.js +15 -3
  43. package/workspace/lib/task-links.js +422 -0
  44. package/workspace/lib/task-plans.js +232 -0
  45. package/workspace/lib/vendor/scripts/anchor-resolve.js +93 -15
  46. package/workspace/lib/vendor/scripts/intake.js +1 -1
  47. package/workspace/package-lock.json +2 -2
  48. package/workspace/package.json +1 -1
  49. package/workspace/premium-board-actions-test.js +2 -2
  50. package/workspace/premium-core-doc-issue-test.js +2 -2
  51. package/workspace/premium-vw-backlog-test.js +3 -3
  52. package/workspace/premium-vw-doc-test.js +26 -3
  53. package/workspace/premium-vw-item-test.js +3 -3
  54. package/workspace/premium-vw-jira-test.js +6 -6
  55. package/workspace/product-lane-test.js +165 -0
  56. package/workspace/program-leave-test.js +203 -0
  57. package/workspace/program-panel-test.js +1 -1
  58. package/workspace/public/pm/bd-acts.js +5 -2
  59. package/workspace/public/pm/bd-ini-panel.js +32 -9
  60. package/workspace/public/pm/bd-prog-panel.js +22 -7
  61. package/workspace/public/pm/bd-prog.js +6 -1
  62. package/workspace/public/pm/bd-span.js +234 -30
  63. package/workspace/public/pm/bd-views.js +3 -2
  64. package/workspace/public/pm/cozy-board.css +90 -0
  65. package/workspace/public/pm/cozy-home.css +3 -0
  66. package/workspace/public/pm/doc-follow.js +36 -0
  67. package/workspace/public/pm/home-app.js +62 -14
  68. package/workspace/public/pm/home-ini-model.js +0 -34
  69. package/workspace/public/pm/home-ini.js +81 -204
  70. package/workspace/public/pm/home-list.js +2 -2
  71. package/workspace/public/pm/home-today.js +3 -1
  72. package/workspace/public/pm/ini-groups.js +228 -0
  73. package/workspace/public/pm/ini-links.js +561 -0
  74. package/workspace/public/pm/ini-tasks.js +131 -30
  75. package/workspace/public/pm/ini-versions.js +348 -0
  76. package/workspace/public/pm/ini-view-model.js +113 -43
  77. package/workspace/public/pm/ini-view.css +341 -18
  78. package/workspace/public/pm/ini-view.js +153 -38
  79. package/workspace/public/pm/premium-board.js +160 -21
  80. package/workspace/public/pm/premium-report-read.js +20 -1
  81. package/workspace/public/pm/premium-shell.js +29 -4
  82. package/workspace/public/pm/premium-vw-doc.js +46 -11
  83. package/workspace/public/pm/prog-move.js +69 -0
  84. package/workspace/public/pm/split-merge.css +77 -0
  85. package/workspace/public/pm/split-merge.js +265 -0
  86. package/workspace/public/pm/stage-line.js +414 -0
  87. package/workspace/public/pm/task-card.css +3 -0
  88. package/workspace/public/pm/task-card.js +15 -6
  89. package/workspace/public/pm/wf-page.css +2 -0
  90. package/workspace/public/pm/wf-page.js +2 -0
  91. package/workspace/public/pm/wf-stage.js +2 -1
  92. package/workspace/server.js +15 -1
  93. package/workspace/split-merge-ui-test.js +175 -0
  94. package/workspace/stage-card-test.js +12 -11
  95. package/workspace/task-card-test.js +3 -2
  96. package/workspace/task-delete-test.js +126 -0
  97. package/workspace/task-links-test.js +227 -0
  98. package/workspace/task-milestones-test.js +176 -0
  99. package/workspace/task-plans-test.js +181 -0
  100. package/workspace/task-views-test.js +3 -3
  101. package/workspace/test-lists/bd-ini-panel.json +8 -2
  102. package/workspace/test-lists/product-lane.json +6 -0
  103. package/workspace/test-lists/program-leave.json +6 -0
  104. package/workspace/test-lists/split-merge.json +15 -0
  105. package/workspace/test-lists/task-delete.json +5 -0
  106. package/workspace/test-lists/task-links.json +6 -0
  107. package/workspace/test-lists/task-milestones.json +6 -0
  108. package/workspace/test-lists/task-plans.json +6 -0
  109. package/workspace/test-lists/viewer-live-file.json +9 -0
  110. package/workspace/timeline-holds-test.js +61 -4
  111. package/workspace/tk-tasks-test.js +173 -57
  112. package/workspace/workflows-setup-test.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.421.0",
3
+ "version": "0.423.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -32,6 +32,30 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.423.0",
37
+ "at": "2026-10-26T16:10:21.071Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 1063,
42
+ "t": "Eleventh testing feedback batch, part 2",
43
+ "s": "Eleventh testing feedback batch, part 2"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "v": "0.422.0",
49
+ "at": "2026-10-26T13:03:41.940Z",
50
+ "f": 2,
51
+ "prs": [
52
+ {
53
+ "n": 1061,
54
+ "t": "Eleventh testing feedback batch",
55
+ "s": "Eleventh testing feedback batch"
56
+ }
57
+ ]
58
+ },
35
59
  {
36
60
  "v": "0.421.0",
37
61
  "at": "2026-10-26T06:44:56.884Z",
@@ -247,30 +271,6 @@
247
271
  "s": "Chat names the real program press; add Turn into a program to the initiative ⋯"
248
272
  }
249
273
  ]
250
- },
251
- {
252
- "v": "0.403.0",
253
- "at": "2026-10-24T03:40:15.576Z",
254
- "f": 2,
255
- "prs": [
256
- {
257
- "n": 1033,
258
- "t": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)",
259
- "s": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)"
260
- }
261
- ]
262
- },
263
- {
264
- "v": "0.402.0",
265
- "at": "2026-10-24T03:05:59.743Z",
266
- "f": 2,
267
- "prs": [
268
- {
269
- "n": 1031,
270
- "t": "Build the Ready for development page (Home A+C, Programs, 60% panel)",
271
- "s": "Build the Ready for development page (Home A+C, Programs, 60% panel)"
272
- }
273
- ]
274
274
  }
275
275
  ]
276
276
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@7a112c27
1
+ kernel-source: pmos@926779f8
2
2
  assembled: 2026-10-26
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-26T06:44:52Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T16:10:18Z"}
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-26T06:44:52Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T16:10:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -73,20 +73,45 @@ const ACCEPTED_FORMS = [
73
73
  * called `okrs` that every subsequent KR would then attach to. The shape is therefore pinned:
74
74
  * an objective is `O` + digits, or `O-` + a word; a KR is `KR` + digits, or `KR-` + a word.
75
75
  */
76
- const OBJ_TOKEN = '(O\\d+|O-[A-Za-z][A-Za-z0-9-]*)';
77
- const KR_TOKEN = '(KR\\d+|KR-[A-Za-z][A-Za-z0-9-]*)';
76
+ /*
77
+ * Batch 11 item 6 (2026-10-26): the OKR document as people write it. `## Objective 1 — title` is
78
+ * objective `o1`, the same objective as `## O1 — title`; and `KR1.2` (KR 2 of objective 1) is its own
79
+ * KR `kr1.2`. Before, the heading matched nothing — so no objective was read at all — and `KR1.2`
80
+ * matched as `KR1` with a name starting `.2`: a silent collapse of two KRs into one. The dotted part is
81
+ * digits only, and the token is followed by a lookahead, so `KR1.2` can never be read as `KR1`.
82
+ * `Objective` needs a number after it: `## Objectives` and the H1 `# OKRs — …` stay non-objectives.
83
+ */
84
+ const OBJ_TOKEN = '(O\\d+|O-[A-Za-z][A-Za-z0-9-]*|[Oo]bjective\\s*\\d+)';
85
+ const KR_TOKEN = '(KR\\d+(?:\\.\\d+)*|KR-[A-Za-z][A-Za-z0-9-]*)';
86
+ const TOKEN_END = '(?![A-Za-z0-9]|\\.\\d)';
78
87
  const PERIOD = '((?:q|Q)[1-4]-\\d{4})';
79
88
 
80
- const RE_OBJ_HEADING = new RegExp('^#{1,3}\\s+' + OBJ_TOKEN + '\\s*(?:[—–:-]\\s*(.*))?$');
81
- const RE_KR_BULLET = new RegExp('^\\s*[-*]\\s*\\*\\*\\s*' + KR_TOKEN + '\\s*[—–:-]?\\s*(.+?)\\*\\*');
89
+ const RE_OBJ_HEADING = new RegExp('^#{1,3}\\s+(?:\\*\\*)?' + OBJ_TOKEN + TOKEN_END + '(?:\\*\\*)?\\s*(?:[—–:-]\\s*(.*))?$');
90
+ /* A KR bullet: `- **KR1 — name.** more`, `- **KR1.2** — name`, `- KR1.2: name`, `- KR-C — name`. The
91
+ * name is the bolded text when the bold wraps the id and the name, else the rest of the line. */
92
+ const RE_KR_BULLET = new RegExp('^\\s*[-*]\\s*(\\*\\*)?\\s*' + KR_TOKEN + TOKEN_END + '(.*)$');
93
+
94
+ function krBullet(line) {
95
+ const m = RE_KR_BULLET.exec(line);
96
+ if (!m) return null;
97
+ let rest = m[3];
98
+ const sep = /^\s*[—–:.-]?\s*/;
99
+ let name;
100
+ if (m[1] && /^\s*\*\*/.test(rest)) name = rest.replace(/^\s*\*\*/, '').replace(sep, ''); // **KR1.2** — name
101
+ else if (m[1]) { rest = rest.replace(sep, ''); const end = rest.indexOf('**'); name = end >= 0 ? rest.slice(0, end) : rest; }
102
+ else name = rest.replace(sep, '');
103
+ return { token: m[2], name: name.replace(/\*\*/g, '').trim() };
104
+ }
82
105
 
83
106
  // Anchor forms. Order matters only in that the colon forms are tried before the looser ones.
84
107
  const RE_HEALTH = /^health:([a-z0-9_-]+)/i; // START-anchored — rule 2
85
108
  const RE_DOMAIN = /^domain:([a-z0-9][a-z0-9_-]*)/i; // D67 — the third anchor class
86
- const RE_COLON_KR = new RegExp('^(?:okrs-)?' + PERIOD + ':([a-z0-9][a-z0-9-]*):(kr-?[a-z0-9-]+)$', 'i');
109
+ const RE_COLON_KR = new RegExp('^(?:okrs-)?' + PERIOD + ':([a-z0-9][a-z0-9-]*):(kr-?[a-z0-9-]+(?:\\.\\d+)*)$', 'i');
87
110
  const RE_COLON_OBJ = new RegExp('^(?:okrs-)?' + PERIOD + ':([a-z0-9][a-z0-9-]*)$', 'i');
88
111
  const RE_ARROW = new RegExp('^(?:okrs-)?' + PERIOD + '\\s*(?:→|->)\\s*' + OBJ_TOKEN + '(?:\\.' + KR_TOKEN + ')?$', 'i');
89
112
  const RE_BARE = new RegExp('^' + OBJ_TOKEN + '(?:\\.' + KR_TOKEN + ')?$', 'i');
113
+ // A KR on its own (`KR1.2`, `KR3`): it names its objective only by being declared under exactly one.
114
+ const RE_BARE_KR = new RegExp('^' + KR_TOKEN + '$', 'i');
90
115
 
91
116
  /** Strip markdown emphasis and trailing commentary. `(`, `#` and `/` never appear inside an id. */
92
117
  function stripCommentary(raw) {
@@ -101,6 +126,8 @@ function stripCommentary(raw) {
101
126
  * the heading token minus a leading `O-`, lower-cased. */
102
127
  function objectiveId(token) {
103
128
  const t = String(token || '').trim();
129
+ const n = /^objective\s*(\d+)$/i.exec(t);
130
+ if (n) return 'o' + n[1];
104
131
  const m = /^O-(.+)$/i.exec(t);
105
132
  return (m ? m[1] : t).toLowerCase();
106
133
  }
@@ -110,6 +137,28 @@ function krId(token) {
110
137
  return String(token || '').trim().toLowerCase();
111
138
  }
112
139
 
140
+ /*
141
+ * The OKR period, in the order a reader would look for it: a `period:` line (front matter or body),
142
+ * then the H1 (`# OKRs — Q3 2026`), then the filename (`okrs-q3-2026.md`). Each accepts `2026-Q3`,
143
+ * `Q3 2026` and `q3-2026`. → `q3-2026` or null. Only the canonical form needs it; resolution does not.
144
+ */
145
+ function periodOf(text) {
146
+ const s = String(text || '');
147
+ let m = /(\d{4})[\s_-]*(Q[1-4])(?![0-9])/i.exec(s);
148
+ if (m) return `${m[2].toLowerCase()}-${m[1]}`;
149
+ m = /(?<![A-Za-z])(Q[1-4])[\s_-]*(\d{4})(?![0-9])/i.exec(s);
150
+ return m ? `${m[1].toLowerCase()}-${m[2]}` : null;
151
+ }
152
+
153
+ function filePeriod(text, file) {
154
+ const line = /^\s*[-*]?\s*\**period\**\s*:\s*(.+)$/im.exec(text);
155
+ if (line && periodOf(line[1])) return { period: periodOf(line[1]), from: 'period line' };
156
+ const h1 = /^#\s+(.+)$/m.exec(text);
157
+ if (h1 && periodOf(h1[1])) return { period: periodOf(h1[1]), from: 'title' };
158
+ const name = periodOf(path.basename(file, '.md'));
159
+ return name ? { period: name, from: 'file name' } : null;
160
+ }
161
+
113
162
  function listOkrFiles(root) {
114
163
  const out = [];
115
164
  const seen = new Set();
@@ -150,41 +199,54 @@ function parseOkrIndex(root) {
150
199
  const objectives = [];
151
200
  const byId = new Map();
152
201
  let period = null;
202
+ let periodFrom = null;
203
+ const noPeriod = [];
153
204
  for (const file of files) {
154
205
  let text;
155
206
  try { text = fs.readFileSync(file, 'utf8'); }
156
207
  catch (e) {
157
208
  return { ok: false, objectives: [], files, error: `could not read ${file}: ${String((e && e.message) || e).slice(0, 120)}` };
158
209
  }
210
+ const fp = filePeriod(text, file);
211
+ let declaresObjective = false;
159
212
  let cur = null;
160
213
  for (const line of text.split('\n')) {
161
- if (!period) {
162
- const p = /^\s*[-*]?\s*period\s*:\s*(\d{4})-(Q[1-4])\s*$/i.exec(line);
163
- if (p) period = `${p[2].toLowerCase()}-${p[1]}`;
164
- }
165
214
  const o = RE_OBJ_HEADING.exec(line);
166
215
  if (o) {
216
+ declaresObjective = true;
167
217
  const id = objectiveId(o[1]);
168
218
  cur = byId.get(id);
169
219
  if (!cur) {
170
- cur = { id, token: o[1], name: (o[2] || '').replace(/\*\*/g, '').trim(), krs: [], file: path.relative(root, file) };
220
+ cur = { id, token: o[1].replace(/\s+/g, ' '), name: (o[2] || '').replace(/\*\*/g, '').trim(), krs: [], file: path.relative(root, file), period: fp ? fp.period : null };
171
221
  byId.set(id, cur);
172
222
  objectives.push(cur);
173
223
  }
174
224
  continue;
175
225
  }
176
- const k = RE_KR_BULLET.exec(line);
226
+ const k = krBullet(line);
177
227
  // A KR with no open objective stays UNATTACHED (rule 3) — never inherited from a previous one.
178
- if (k && cur && !cur.krs.some((x) => x.id === krId(k[1]))) {
179
- cur.krs.push({ id: krId(k[1]), token: k[1], name: (k[2] || '').trim() });
228
+ if (k && cur && !cur.krs.some((x) => x.id === krId(k.token))) {
229
+ cur.krs.push({ id: krId(k.token), token: k.token, name: k.name });
180
230
  continue;
181
231
  }
182
232
  // the KR's own measure — its `baseline: … → target: …` sub-bullet (overhaul-r2 B4)
183
233
  const bl = /^\s+[-*]\s*baseline\s*:\s*(.+)$/i.exec(line);
184
234
  if (bl && cur && cur.krs.length && !cur.krs[cur.krs.length - 1].line) cur.krs[cur.krs.length - 1].line = bl[1].trim();
185
235
  }
236
+ if (!declaresObjective) continue; // health-budgets.md, domains.md: not OKR documents, no period expected
237
+ if (fp && !period) { period = fp.period; periodFrom = `${fp.from} of ${path.relative(root, file)}`; }
238
+ if (!fp) noPeriod.push(path.relative(root, file));
239
+ }
240
+ const rels = files.map((f) => path.relative(root, f));
241
+ // What is missing, named with its fix, so a caller never has to guess why a field is empty.
242
+ const missing = [];
243
+ if (!objectives.length) {
244
+ missing.push(`no objective headings were read from ${rels.join(', ')} — write each objective as \`## O1 — title\` or \`## Objective 1 — title\``);
245
+ }
246
+ if (!period && objectives.length) {
247
+ missing.push(`no period found in ${noPeriod.join(', ') || rels.join(', ')} — add a line \`period: 2026-Q3\`, or put the quarter in the title (\`# OKRs — Q3 2026\`) or the file name (\`okrs-q3-2026.md\`)`);
186
248
  }
187
- return { ok: true, objectives, files: files.map((f) => path.relative(root, f)), period: period || null, error: null };
249
+ return { ok: true, objectives, files: rels, period: period || null, period_from: periodFrom, missing, error: null };
188
250
  }
189
251
 
190
252
  function readBudgets(root) {
@@ -298,18 +360,34 @@ function resolveAnchor(raw, index, budgets) {
298
360
  else if ((m = RE_COLON_OBJ.exec(s))) { period = m[1].toLowerCase(); objTok = m[2]; form = 'q3-2026:<objective>'; }
299
361
  else if ((m = RE_ARROW.exec(s))) { period = m[1].toLowerCase(); objTok = m[2]; krTok = m[3] || null; form = 'legacy arrow'; }
300
362
  else if ((m = RE_BARE.exec(s))) { objTok = m[1]; krTok = m[2] || null; form = 'legacy bare'; }
363
+ else if ((m = RE_BARE_KR.exec(s))) { krTok = m[1]; form = 'bare KR'; }
301
364
  else {
302
365
  return Object.assign(base, { kind: 'okr', status: 'unresolvable', form: 'unrecognised', reason: `'${s}' matches no accepted anchor form` });
303
366
  }
304
367
 
305
368
  const out = Object.assign({}, base, {
306
369
  kind: 'okr', form, period,
307
- objective: objectiveId(objTok),
370
+ objective: objTok ? objectiveId(objTok) : null,
308
371
  kr: krTok ? krId(krTok) : null,
309
372
  });
310
373
 
311
374
  if (!index) return Object.assign(out, { status: 'unknown', reason: 'OKR index not supplied to the resolver' });
312
375
  if (!index.ok) return Object.assign(out, { status: 'unknown', reason: index.error || 'OKR documents unreadable' });
376
+ if (!index.objectives.length) {
377
+ return Object.assign(out, { status: 'unresolvable', reason: (index.missing && index.missing[0]) || `no objectives declared in ${index.files.join(', ')}` });
378
+ }
379
+
380
+ if (!out.objective) {
381
+ // A bare KR: its objective is the one objective that declares it. Two objectives with the same KR
382
+ // id is ambiguous, and the reader is told how to write it — never a guess.
383
+ const holders = index.objectives.filter((o) => o.krs.some((k) => k.id === out.kr));
384
+ if (holders.length !== 1) {
385
+ return Object.assign(out, { status: 'unresolvable', reason: holders.length
386
+ ? `KR '${out.kr}' is declared under ${holders.map((o) => o.id).join(' and ')} — write it with its objective, e.g. ${holders[0].token}.${krTok}`
387
+ : `no objective declares KR '${out.kr}' in ${index.files.join(', ')}` });
388
+ }
389
+ out.objective = holders[0].id;
390
+ }
313
391
 
314
392
  const obj = index.objectives.find((o) => o.id === out.objective);
315
393
  if (!obj) {
@@ -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-26T06:44:52Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T16:10:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -47,7 +47,13 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
47
47
  const errors = [];
48
48
  page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
49
49
  await page.clock.setFixedTime(new Date(F.NOW));
50
- await page.route('**/api/board-premium*', (r) => { const q = new URL(r.request().url()).searchParams; r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: BP.build(F.programFacts(q.get('ws') || 'idpf')), as_of: Date.now() }) }); });
50
+ // o.third: a third product (Replay) in the switcher, its board a copy of Microsites' (batch 11 item 7: tick several)
51
+ const R3 = { ws: 'replay', id: 'replay', name: 'Replay' }, facts = (ws) => {
52
+ if (!o.third) return F.programFacts(ws);
53
+ const boards = [...F.programFacts('idpf').boards, R3];
54
+ return ws === 'replay' ? F.programFacts('microsites', { boards, board: { ...F.programFacts('microsites').board, ...R3, product: 'Replay' } }) : F.programFacts(ws, { boards });
55
+ };
56
+ await page.route('**/api/board-premium*', (r) => { const q = new URL(r.request().url()).searchParams; r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: BP.build(facts(q.get('ws') || 'idpf')), as_of: Date.now() }) }); });
51
57
  await page.route('**/api/programs', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, programs: o.programs || F.programs() }) }));
52
58
  await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
53
59
  await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.view': o.view || 'track', 'pmos.board.pview': o.view === 'time' ? 'track' : o.view || 'track', 'pmos.board.grouping': o.grouping || 'program', ...(o.store || {}) }]);
@@ -159,6 +165,26 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
159
165
  ok('T the program row comes first, with its title and products and a thin span over its initiatives\' dates', /tg-pg/.test(t.first) && /Project Ascent/.test(t.title) && /2 products/.test(t.title) && t.span, JSON.stringify(t));
160
166
  ok('T three milestones within a week merge into one counted diamond labelled "Pilot live +2 · Nov 18–21"', t.clu.length === 1 && /^3\|3 program milestones from Nov 18 to 21: Pilot live, Pilot users invited, Support ready/.test(t.clu[0]) && t.lab.includes('Pilot live +2 · Nov 18–21'), JSON.stringify(t));
161
167
  ok('T the program\'s initiatives sit under it as one-line rows: a status dot and the name', t.kids.join() === 'Descope feature parity,Legacy IdP sunset' && t.oneLine, JSON.stringify(t));
168
+ // batch 11 item 12: By product, a program's initiatives sit under their product on the timeline (the row copies were dropped)
169
+ const bpt = await p.evaluate(async () => {
170
+ const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
171
+ const a = { key: 'board:a', id: 'a', title: 'In a program', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
172
+ const b = { key: 'board:b', id: 'b', title: 'On its own', start: '2026-10-05', end: '2026-11-10', track: { key: 'build' } };
173
+ const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [{ ...a, inProgram: 'pg' }, b] }];
174
+ const d = document.createElement('div'); d.innerHTML = S.timelineHtml([a, b], { jira: null }, 'quarter', { now, groups }).html;
175
+ return [...d.querySelectorAll('.tg-r[data-row]')].map((r) => r.dataset.row);
176
+ });
177
+ ok('T By product: a program\'s initiative shows under its product on the timeline (batch 11 item 12)', bpt.includes('board:a') && bpt.includes('board:b'), JSON.stringify(bpt));
178
+ // batch 11 item 22: a timeline reads in time; each group's rows by start then end, undated last, whatever order the Board lists them in
179
+ const ord = await p.evaluate(async () => {
180
+ const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
181
+ const r = (k, s, e, prog) => ({ key: 'board:' + k, id: k, title: 'Row ' + k, start: s, end: e, track: { key: 'build' }, ...(prog ? { inProgram: 'pg' } : {}) });
182
+ const late = r('late', '2026-12-01', '2027-02-01'), early = r('early', '2026-08-01', '2026-11-01'), mid = r('mid', '2026-10-01', '2026-12-15'), nd = r('nd', null, null, true);
183
+ const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [late, nd, mid, early] }];
184
+ const d = document.createElement('div'); d.innerHTML = S.timelineHtml([late, mid, early, nd], { jira: null }, 'quarter', { now, groups }).html;
185
+ return [...d.querySelectorAll('.tg-r[data-row]')].map((x) => x.dataset.row.slice(6)).join();
186
+ });
187
+ ok('T the timeline rows of a group run by start date, an undated one last (batch 11 item 22)', ord === 'early,mid,late,nd', ord);
162
188
  const nd = await p.evaluate(async () => {
163
189
  const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
164
190
  const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
@@ -171,7 +197,25 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
171
197
  return { member: !!row, nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', loose: [...d.querySelectorAll('.tg-r[data-row]')].some((r) => /Loose undated/.test(r.textContent)), none: T.none.length };
172
198
  });
173
199
  ok('T an undated initiative in a program keeps its row under the program and says "No dates"; an undated one outside a program is named in the foot only (batch 8 item 4)', nd.member && nd.nd === 'No dates' && !nd.loose && nd.none === 2, JSON.stringify(nd));
174
- ok('T a legend in the chip row names done, planned, the program milestone, Deliver or Evaluate and today', /Done in Jira/.test(t.lgd) && /Planned/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Deliver or Evaluate/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
200
+ // batch 11 item 19: By product, a program's undated initiative keeps its "No dates" row under its product (it disappeared once grouped by
201
+ // product); an undated one in no program is still named in the foot only
202
+ const bnd = await p.evaluate(async () => {
203
+ const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
204
+ const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
205
+ const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
206
+ const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
207
+ const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [a, { ...b, inProgram: 'pg' }, c] }];
208
+ for (const phone of [false, true]) {
209
+ const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups, phone });
210
+ const d = document.createElement('div'); d.innerHTML = T.html;
211
+ const rs = [...d.querySelectorAll('[data-row]')], row = rs.find((r) => r.dataset.row === 'board:b');
212
+ const out = { phone, rows: rs.map((r) => r.dataset.row), nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', none: T.none.length };
213
+ if (!(out.nd === 'No dates' && out.rows.join() === 'board:a,board:b' && out.none === 2)) return out;
214
+ }
215
+ return true;
216
+ });
217
+ ok('T By product: a program\'s undated initiative keeps its "No dates" row under its product, desktop and phone; one in no program is in the foot only (batch 11 item 19)', bnd === true, JSON.stringify(bnd));
218
+ ok('T a legend in the chip row names done, planned, the program milestone, Milestone (Deliver, Evaluate and milestone tasks, batch 11 item 3) and today', /Done in Jira/.test(t.lgd) && /To do/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Program milestone.*Milestone/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
175
219
  await p.click('#ibBody .tg-pg .tg-pgo');
176
220
  // the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
177
221
  await p.keyboard.press('Escape'); await p.waitForFunction(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; });
@@ -269,7 +313,9 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
269
313
  await p.click('#crSw');
270
314
  const items = await p.evaluate(() => [...document.querySelectorAll('#crMenu [data-sw]')].map((b) => b.textContent));
271
315
  ok('A the product picker offers All products first, then each product', items[0] === 'All products' && items.length === 3, JSON.stringify(items));
272
- await Promise.all([p.waitForNavigation(), p.click('#crMenu [data-sw="*|*"]')]);
316
+ // All products ticks every product; the pick goes when the menu closes (batch 11 item 7)
317
+ await p.click('#crMenu [data-sw="*|*"]');
318
+ await Promise.all([p.waitForNavigation(), p.keyboard.press('Escape')]);
273
319
  await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(700);
274
320
  const a = await p.evaluate(() => ({
275
321
  url: location.search,
@@ -295,6 +341,44 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
295
341
  await ctx.close();
296
342
  }
297
343
 
344
+ /* M several products (batch 11 item 7): the picker ticks several; the Board shows exactly those, merged as All products */
345
+ {
346
+ const { ctx, page: p, errors } = await open({ third: true });
347
+ await p.click('#crSw');
348
+ const st = () => p.evaluate(() => ({ open: !document.querySelector('#crMenu').hidden, ticks: [...document.querySelectorAll('#crMenu [data-sw]')].map((b) => b.textContent + ':' + b.getAttribute('aria-checked')) }));
349
+ const m0 = await st();
350
+ ok('M the menu ticks: All products shows a dash (some), the product on screen is ticked', m0.ticks.join(',') === 'All products:mixed,IDPF:true,Microsites:false,Replay:false', JSON.stringify(m0));
351
+ await p.click('#crMenu [data-sw="microsites|microsites"]');
352
+ const m1 = await st();
353
+ ok('M a press ticks a product and the menu stays open', m1.open && m1.ticks[2] === 'Microsites:true', JSON.stringify(m1));
354
+ await p.click('#crMenu [data-sw="microsites|microsites"]'); await p.click('#crMenu [data-sw="idpf|idpf"]');
355
+ const m2 = await st();
356
+ ok('M a second press unticks; the last ticked product stays ticked', m2.open && m2.ticks.join(',') === 'All products:mixed,IDPF:true,Microsites:false,Replay:false', JSON.stringify(m2));
357
+ await p.click('#crMenu [data-sw="microsites|microsites"]');
358
+ await Promise.all([p.waitForNavigation(), p.mouse.click(1400, 880)]);
359
+ await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(700);
360
+ const look = () => p.evaluate(() => ({ url: decodeURIComponent(location.search), crumb: document.querySelector('#crBoard').textContent, label: document.querySelector('#crBoard').getAttribute('aria-label'), ws: [...new Set([...document.querySelectorAll('#ibBody [data-key]')].map((x) => x.dataset.key.split('/')[0]))].sort() }));
361
+ const a = await look();
362
+ ok('M a click outside closes the menu and the Board shows the ticked products only, merged', a.url === '?pick=idpf|idpf&pick=microsites|microsites' && a.ws.join(',') === 'idpf,microsites', JSON.stringify(a));
363
+ ok('M the button says the first product and +N', a.crumb === 'IDPF +1' && a.label === 'Product: IDPF, Microsites', JSON.stringify(a));
364
+ await p.reload(); await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(700);
365
+ const b = await look();
366
+ ok('M a reload keeps the pick', b.url === a.url && b.crumb === 'IDPF +1' && b.ws.join(',') === 'idpf,microsites', JSON.stringify(b));
367
+ await p.click('#crSw');
368
+ const m3 = await st();
369
+ ok('M the menu ticks the products on screen', m3.ticks.join(',') === 'All products:mixed,IDPF:true,Microsites:true,Replay:false', JSON.stringify(m3));
370
+ await p.click('#crMenu [data-sw="*|*"]');
371
+ const m4 = await st();
372
+ ok('M All products ticks every product', m4.ticks.join(',') === 'All products:true,IDPF:true,Microsites:true,Replay:true', JSON.stringify(m4));
373
+ await p.click('#crMenu [data-sw="idpf|idpf"]'); await p.click('#crMenu [data-sw="microsites|microsites"]');
374
+ await Promise.all([p.waitForNavigation(), p.keyboard.press('Escape')]);
375
+ await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(500);
376
+ const c = await look();
377
+ ok('M unticked down to one product, the Board is that product\'s own board', c.url === '?ws=replay&board=replay' && c.crumb === 'Replay', JSON.stringify(c));
378
+ ok('M the page threw nothing', !errors.length, errors.join('\n'));
379
+ await ctx.close();
380
+ }
381
+
298
382
  /* Z zero is silence; the phone */
299
383
  {
300
384
  const { ctx, page: p } = await open({ programs: [] });
@@ -59,7 +59,7 @@ const PAGES = {
59
59
  await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
60
60
  await page.goto(BASE + P.file + P.qs + theme);
61
61
  let up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.ready), 20000);
62
- if (up && kind === 'initiative') { await page.click('#czViewer [data-cz-vw="more"]').then(() => page.click('.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("All tasks"))')); /* the initiative's page (canvas HbC): its + drills into Tasks */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 20000); } // the Overview holds the button
62
+ if (up && kind === 'initiative') { /* the page holds the Tasks (batch 11 item 20) */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 20000); } // the Overview holds the button
63
63
  if (up && P.file === '/premium-board.html') await page.click(w <= 720 ? '#chDocs' : '#tabDocs'); // a phone reaches the documents from its Docs chip // the Agreed design shows the documents on the Documents tab (premium-agreed-design)
64
64
  return { ctx, page, errors, posts, up, calls: () => calls, setCustom: (c) => { current = c; }, reply: (a) => { reply = a; } };
65
65
  };
@@ -56,9 +56,11 @@ const IVREAD = () => {
56
56
  const sc = iv.querySelector('.iv-sc'), c = window.czViewer && window.czViewer.current(), r = v.getBoundingClientRect();
57
57
  return { t: tx('.cz-vw-title', v), kind: c && c.kind, line: tx('.iv-s1 b'), right: tx('.iv-s1 .iv-r'), why: tx('.iv-why'), meta: tx('.iv-meta'), wfi: (iv.querySelector('.iv-meta .wfi') || {}).title || null,
58
58
  primary: (iv.querySelector('[data-iv-primary]') || {}).dataset ? (iv.querySelector('[data-iv-primary]') || { dataset: {} }).dataset.ivPrimary || null : null,
59
- stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-sch .iv-r', sc), no: sc && tx('.iv-sch .iv-no', sc),
60
- bars: sc ? [...sc.querySelectorAll('.iv-lad i')].map((i) => i.className).join('|') : '', titles: sc ? [...sc.querySelectorAll('.iv-lad i')].map((i) => i.title) : [],
61
- aria: sc && sc.querySelector('.iv-lad') ? sc.querySelector('.iv-lad').getAttribute('aria-label') : null, dates: sc && tx('.iv-dl', sc), next: sc && tx('.iv-nx', sc),
59
+ stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-scm', sc), no: sc && tx('.iv-sch .iv-no', sc),
60
+ // the stage line (batch 11 item 21): one part a stage, read back as "<done|now|next> [ms]" a stage, as the ladder's bars were
61
+ ...(() => { const by = new Map(); for (const x of sc ? sc.querySelectorAll('.iv-tl .iv-tlp') : []) if (!by.has(x.dataset.ivStage)) by.set(x.dataset.ivStage, x);
62
+ const ps = [...by.values()]; return { bars: ps.map((x) => [['done', 'now', 'next'].find((k) => x.classList.contains(k)) || '', /^◆ /.test(x.title) ? 'ms' : ''].filter(Boolean).join(' ')).join('|'), titles: ps.map((x) => x.title) }; })(),
63
+ aria: sc && sc.getAttribute('aria-label'), dates: sc && tx('.iv-tl-dt', sc), next: sc && sc.querySelector('.iv-scgo') ? sc.querySelector('.iv-scgo').getAttribute('aria-label') : null,
62
64
  tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket]')].map((e) => e.dataset.ivTicket).join(),
63
65
  rows: [...iv.querySelectorAll('.iv-tr')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()), q: [...iv.querySelectorAll('.iv-q')].map((e) => e.textContent), empty: !!iv.querySelector('.iv-empty'),
64
66
  folds: [...iv.querySelectorAll('.iv-fr b, .czs-row b')].map((b) => b.textContent), body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '),
@@ -156,9 +158,9 @@ const IVREAD = () => {
156
158
  const k = await q.evaluate(() => { const r = document.querySelector('.bt-l[data-row="board:usage-billing"]'); return { cls: r.querySelector('.bt-cells > div').className, n: r.querySelectorAll('.bt-cells > div.k').length }; });
157
159
  ok('B1 a step the row was moved past is a hollow "Skipped" ring', /\bk\b/.test(k.cls) && k.n === 1, JSON.stringify(k));
158
160
  await q.click('.bt-l[data-row="board:usage-billing"] .bt-nm');
159
- /* re-pointed (batch 6 item 1, the one view): the ladder keeps the skipped step in its place, hatched, and its title says so */
161
+ /* re-pointed (batch 11 item 21, the stage line): as on the Board's timeline, a skipped stage has no part; a » marks it only between two parts */
160
162
  const sk = await until(() => q.evaluate(IVREAD));
161
- ok('B1 the panel hatches the skipped step on the ladder', !!sk && sk.bars.split('|')[0] === 'skip' && sk.titles[0] === 'Triage · skipped', JSON.stringify(sk && [sk.bars, sk.titles]));
163
+ ok('B1 the panel\'s line has no part for the skipped first step: it starts at Discover, now', !!sk && sk.bars.split('|').length === 7 && sk.bars.split('|')[0] === 'now' && /^Discover · /.test(sk.titles[0]) && !sk.titles.some((x) => /Triage/.test(x)), JSON.stringify(sk && [sk.bars, sk.titles]));
162
164
  await R.ctx.close();
163
165
  }
164
166
  {
@@ -175,8 +177,8 @@ const IVREAD = () => {
175
177
  const td = await until(() => q.evaluate(IVREAD));
176
178
  ok('XipB a Tender initiative: Late, the one sentence why from the record, the progress said once as typed in by hand, the owner and the Tender workflow', !!td && td.line === 'Late' && /^The plan ended Aug 11(, 2026)?, \d+ days ago, and Tender new CIAM is in Technical POC\.$/.test(td.why) && td.right === '53% done · typed in by hand' && /wawan ?· ?Tender$/.test(td.meta) && td.wfi === 'Tender', JSON.stringify(td));
177
179
  ok('XipB the stage card is the Tender stage: "Technical POC", 5 of 7 on the ladder, the seven Tender stages with Technical POC current and ◆ on the last two', !!td && td.stage === 'Technical POC' && td.no === '5' && td.bars === 'done|done|done|done|now|next ms|next ms' && td.aria === 'Stage 5 of 7 of Tender: Technical POC. Next stage: Award decision.' && !/No st(ep|age) on record/.test(td.body), JSON.stringify(td && [td.stage, td.no, td.bars, td.aria]));
178
- ok('XipB the next stage is the card\'s last line; no breakdown draws the seven Tender sections dashed, with Technical POC marked now', !!td && /^Award decision ?Next stage/.test(td.next || '') && td.empty && /Technical POC · now/.test(td.body), JSON.stringify(td && [td.next, td.empty]));
179
- ok('XipB the dates line (the old Plan card) says the plan and the overrun; no Jira date; the progress number is said once', !!td && /^Apr 23 ?Aug 11 end · \d+ days over$/.test(td.dates || '') && !/Jira:/.test(td.dates) && (td.body.match(/53%/g) || []).length === 1 && !td.folds.includes('Dates and trend'), JSON.stringify(td && [td.dates, td.folds]));
180
+ ok('XipB the → names the next stage; no breakdown draws the seven Tender sections dashed, with Technical POC marked now', !!td && /^Next: ◆ Award decision/.test(td.next || '') && td.empty && /Technical POC · now/.test(td.body), JSON.stringify(td && [td.next, td.empty]));
181
+ ok('XipB the dates under the line say the plan and the overrun; no Jira date; the progress number is said once', !!td && /^Apr 23 ?Aug 11 ?\d+ days over$/.test(td.dates || '') && !/Jira:/.test(td.dates) && (td.body.match(/53%/g) || []).length === 1 && !td.folds.includes('Dates and trend'), JSON.stringify(td && [td.dates, td.folds]));
180
182
  if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-tender-1440.png') });
181
183
  await R.ctx.close();
182
184
  if (process.env.PMOS_SHOTS) {
@@ -321,14 +323,14 @@ const IVREAD = () => {
321
323
  await view(p, 'time');
322
324
  const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdSpans button')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), shown: !document.querySelector('#bdSpans').hidden, rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
323
325
  ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^4 have no dates: Usage-based billing, Audit log export, Refund reason codes, Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
324
- ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Deliver or Evaluate, today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /Planned/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Deliver or Evaluate/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
326
+ ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Milestone (batch 11 item 3), today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /To do/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Milestone/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
325
327
  ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
326
328
  await p.click('#ibBody .tg-n[data-key="board:partner-rate-limits"]');
327
329
  /* re-pointed (the one view, item 3): the timeline opens the same initiative in the Viewer as every other view. The stage card names the step
328
330
  * over the eight; the old Plan card is the dates line (start, plan end, days left; no Jira date without a Jira forecast); the progress says
329
331
  * where it comes from; Dates and trend is gone */
330
332
  const tp = await until(() => p.evaluate(IVREAD).then((x) => (x && x.kind === 'Initiative' ? x : null)));
331
- ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)? end · \d+ days left$/.test(tp.dates || '') && !/Jira:/.test(tp.dates) && !tp.folds.includes('Dates and trend'), JSON.stringify(tp && [tp.stage, tp.bars, tp.right, tp.dates, tp.folds]));
333
+ ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)? · \d+ days left$/.test(tp.dates || '') && !/Jira:/.test(tp.dates) && !tp.folds.includes('Dates and trend'), JSON.stringify(tp && [tp.stage, tp.bars, tp.right, tp.dates, tp.folds]));
332
334
  await p.click('#czViewer [data-cz-vw="more"]'); await sleep(80);
333
335
  const tm = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].map((b) => b.textContent.trim()));
334
336
  ok('B6 ⋯ holds the timeline panel\'s actions first (move, hold, cancel or archive; the plan dates), then Open in full, link and copy', tm[0] === 'Move, hold, cancel or archive' && tm[1] === 'Change the plan dates' && tm.includes('Open in full') && tm.includes('Copy link') && tm.includes('Copy as text'), JSON.stringify(tm));
@@ -442,8 +444,8 @@ const IVREAD = () => {
442
444
  ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc) && rf.you && rf.line === 'Give your verdict', JSON.stringify(rf));
443
445
  await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
444
446
  /* re-pointed (the one view): the same records, in the stage card's day clock, the ladder, Linked (a fold of the view) and the Board's own rows */
445
- const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-sch .iv-r') || {}).textContent, stage: (v.querySelector('.iv-sch b') || {}).textContent, stt: (v.querySelector('.iv-lad i.now') || {}).title, drafted: sec('drafted'), wt: sec('drift') }; }));
446
- ok('T the stage card says where it stands and the day in the stage of the usual days; the ladder marks the stage now', !!pk && pk.stage === 'Build' && /day 18 of ~14$/.test(pk.where || '') && !/day|usually/.test(pk.meta) && pk.stt === 'Build · now', JSON.stringify(pk && [pk.stage, pk.where, pk.meta, pk.stt]));
447
+ const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-scm') || {}).textContent, stage: (v.querySelector('.iv-sch b') || {}).textContent, stt: (v.querySelector('.iv-tl .iv-tlp.now') || {}).title, drafted: sec('drafted'), wt: sec('drift') }; }));
448
+ ok('T the stage card says where it stands and the day in the stage of the usual days; the line marks the stage now', !!pk && pk.stage === 'Build' && /18 of ~14 days$/.test(pk.where || '') && !/day|usually/.test(pk.meta) && /^Build · .*now$/.test(pk.stt || ''), JSON.stringify(pk && [pk.stage, pk.where, pk.meta, pk.stt]));
447
449
  if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-build-1280.png') });
448
450
  ok('T tickets drafted in PMOS and not in Jira are listed, and go to Jira only through your Commit', !!pk && pk.drafted.n === '1' && /^V\.4 ?Resend the invite after 48 hours ?not in Jira ?They go to Jira only through your Commit\.$/.test(pk.drafted.body), JSON.stringify(pk && pk.drafted));
449
451
  ok('T a ticket pushed from an older PRD is flagged as PRD drift', !!pk && !!pk.wt && /^ONB-31 was pushed from an older PRD/.test(pk.wt.body), JSON.stringify(pk && pk.wt));