create-pmos 0.396.0 → 0.398.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 (177) hide show
  1. package/package.json +25 -25
  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/scripts/nine-stages.js +49 -20
  6. package/payload/state/discoveries.md +1 -1
  7. package/payload/state/log.md +1 -1
  8. package/workspace/briefing-premium-adddoc-test.js +103 -74
  9. package/workspace/briefing-premium-board-test.js +316 -154
  10. package/workspace/briefing-premium-calendar-2-test.js +135 -195
  11. package/workspace/briefing-premium-calendar-3-test.js +143 -413
  12. package/workspace/briefing-premium-calendar-test.js +86 -185
  13. package/workspace/briefing-premium-doc-edit-test.js +95 -83
  14. package/workspace/briefing-premium-initiative-test.js +166 -294
  15. package/workspace/briefing-premium-insights-test.js +351 -214
  16. package/workspace/briefing-premium-metrics-test.js +53 -118
  17. package/workspace/briefing-premium-products-test.js +40 -27
  18. package/workspace/briefing-premium-sources-test.js +91 -52
  19. package/workspace/briefing-premium-test.js +150 -633
  20. package/workspace/briefing-premium-work-test.js +88 -269
  21. package/workspace/changelog.json +24 -0
  22. package/workspace/fixtures/board-premium-facts.js +2 -1
  23. package/workspace/fixtures/board-premium-jira.js +28 -0
  24. package/workspace/fixtures/board-premium-trail.js +32 -0
  25. package/workspace/fixtures/initiative-premium-facts.js +2 -1
  26. package/workspace/fixtures/initiatives-api/list.json +30 -42
  27. package/workspace/fixtures/initiatives-api/roadmap.json +40 -56
  28. package/workspace/fixtures/initiatives-api/sheet.json +10 -14
  29. package/workspace/fixtures/insights-premium-facts.js +11 -2
  30. package/workspace/fixtures/premium-viewer-fixtures.js +182 -0
  31. package/workspace/guide/briefing-premium.md +3 -1
  32. package/workspace/guide/home.md +47 -0
  33. package/workspace/guide/index.md +2 -0
  34. package/workspace/guide/lifecycle.md +51 -0
  35. package/workspace/home-shot.js +38 -0
  36. package/workspace/lib/agent-roles.js +71 -0
  37. package/workspace/lib/board-premium.js +160 -3
  38. package/workspace/lib/board-trail.js +223 -0
  39. package/workspace/lib/engine/boards.js +15 -14
  40. package/workspace/lib/engine/nine-stages.js +49 -20
  41. package/workspace/lib/engine/signals/detectors.js +13 -11
  42. package/workspace/lib/home-work-item.js +58 -0
  43. package/workspace/lib/insights-goals.js +196 -0
  44. package/workspace/lib/insights-premium.js +126 -1
  45. package/workspace/lib/insights-records.js +101 -0
  46. package/workspace/lib/jira-tickets.js +1 -1
  47. package/workspace/lib/route-modules.js +4 -0
  48. package/workspace/lib/routes-board-premium.js +3 -2
  49. package/workspace/lib/routes-board-trail.js +33 -0
  50. package/workspace/lib/routes-home-desk.js +176 -0
  51. package/workspace/lib/routes-initiatives.js +1 -1
  52. package/workspace/lib/routes-insights-premium.js +19 -3
  53. package/workspace/lib/routes-insights-records.js +129 -0
  54. package/workspace/lib/routes-notes.js +1 -0
  55. package/workspace/lib/routes-viewer.js +108 -0
  56. package/workspace/lib/transcript-steps.js +123 -0
  57. package/workspace/lib/vendor/scripts/nine-stages.js +49 -20
  58. package/workspace/lib/viewer-meeting.js +205 -0
  59. package/workspace/lib/viewer-report.js +89 -0
  60. package/workspace/package-lock.json +2 -2
  61. package/workspace/package.json +1 -1
  62. package/workspace/premium-agreed-viewer-shots.js +76 -0
  63. package/workspace/premium-board-actions-test.js +85 -73
  64. package/workspace/premium-briefing-depth-test.js +66 -53
  65. package/workspace/premium-chat-attach-test.js +54 -63
  66. package/workspace/premium-chat-chart-tab-test.js +35 -36
  67. package/workspace/premium-chat-context-test.js +22 -19
  68. package/workspace/premium-chat-goal-view-test.js +28 -26
  69. package/workspace/premium-chat-notes-test.js +29 -33
  70. package/workspace/premium-chat-report-tab-test.js +35 -25
  71. package/workspace/premium-chat-term-test.js +16 -14
  72. package/workspace/premium-chat-viewer-test.js +60 -53
  73. package/workspace/premium-core-doc-issue-test.js +50 -41
  74. package/workspace/premium-html-viewer-test.js +17 -18
  75. package/workspace/premium-phone-card-test.js +8 -2
  76. package/workspace/premium-phone-room-test.js +42 -31
  77. package/workspace/premium-report-read-test.js +115 -197
  78. package/workspace/premium-viewer-download-test.js +19 -22
  79. package/workspace/premium-viewer-flicker-test.js +11 -16
  80. package/workspace/premium-viewer-share-test.js +6 -9
  81. package/workspace/premium-viewer-test.js +41 -60
  82. package/workspace/premium-vw-backlog-test.js +53 -31
  83. package/workspace/premium-vw-cal-test.js +82 -123
  84. package/workspace/premium-vw-copy-test.js +17 -33
  85. package/workspace/premium-vw-doc-test.js +12 -11
  86. package/workspace/premium-vw-item-test.js +50 -48
  87. package/workspace/premium-vw-jira-test.js +55 -26
  88. package/workspace/premium-vw-meet-test.js +118 -187
  89. package/workspace/premium-vw-notes-test.js +85 -107
  90. package/workspace/premium-vw-rec-test.js +72 -193
  91. package/workspace/premium-vw-slides-test.js +46 -50
  92. package/workspace/premium-welcome-test.js +3 -2
  93. package/workspace/premium-work-depth-test.js +63 -51
  94. package/workspace/public/pm/bd-acts.js +305 -0
  95. package/workspace/public/pm/bd-span.js +224 -0
  96. package/workspace/public/pm/bd-stages.js +47 -0
  97. package/workspace/public/pm/c3-doc-sheet.js +1 -1
  98. package/workspace/public/pm/c3-md.js +3 -395
  99. package/workspace/public/pm/c3-phone-detail.js +1 -1
  100. package/workspace/public/pm/c3-phone-model.js +3 -68
  101. package/workspace/public/pm/chat-term.js +3 -3
  102. package/workspace/public/pm/cozy-board.css +640 -0
  103. package/workspace/public/pm/cozy-home.css +580 -0
  104. package/workspace/public/pm/cozy-home.js +172 -0
  105. package/workspace/public/pm/cozy-initiative.css +138 -0
  106. package/workspace/public/pm/cozy-insights.css +421 -0
  107. package/workspace/public/pm/cozy-md.js +396 -0
  108. package/workspace/public/pm/cozy-nav.js +65 -0
  109. package/workspace/public/pm/cozy-placeholder.js +26 -0
  110. package/workspace/public/pm/cozy-viewer.css +143 -0
  111. package/workspace/public/pm/cozy-viewer.js +144 -0
  112. package/workspace/public/pm/cozy-vw.css +485 -0
  113. package/workspace/public/pm/cozy.css +254 -0
  114. package/workspace/public/pm/home-adddoc.js +48 -0
  115. package/workspace/public/pm/home-app.js +905 -0
  116. package/workspace/public/pm/home-around.js +515 -0
  117. package/workspace/public/pm/home-chat.js +459 -0
  118. package/workspace/public/pm/home-data.js +312 -0
  119. package/workspace/public/pm/home-draft.js +68 -0
  120. package/workspace/public/pm/home-more.js +249 -0
  121. package/workspace/public/pm/home-phone-card.js +109 -0
  122. package/workspace/public/pm/home-work.js +519 -0
  123. package/workspace/public/pm/lifecycle-lens-model.js +45 -27
  124. package/workspace/public/pm/lifecycle-lens.js +22 -11
  125. package/workspace/public/pm/phone-moment.js +69 -0
  126. package/workspace/public/pm/pm-work-view.js +1 -1
  127. package/workspace/public/pm/premium-attach.js +4 -0
  128. package/workspace/public/pm/premium-board.js +544 -253
  129. package/workspace/public/pm/premium-brief.js +1 -1
  130. package/workspace/public/pm/premium-chart-tab.js +110 -62
  131. package/workspace/public/pm/premium-chat.js +17 -10
  132. package/workspace/public/pm/premium-deck.js +3 -3
  133. package/workspace/public/pm/premium-first.js +25 -21
  134. package/workspace/public/pm/premium-initiative-head.js +138 -0
  135. package/workspace/public/pm/premium-initiative.js +28 -4
  136. package/workspace/public/pm/premium-insights.js +950 -440
  137. package/workspace/public/pm/premium-meeting.js +61 -549
  138. package/workspace/public/pm/premium-notes.js +1 -1
  139. package/workspace/public/pm/premium-report-frame.css +20 -0
  140. package/workspace/public/pm/premium-report-read.js +509 -480
  141. package/workspace/public/pm/premium-report-tab.js +87 -63
  142. package/workspace/public/pm/premium-shell.js +107 -124
  143. package/workspace/public/pm/premium-viewer.js +27 -1
  144. package/workspace/public/pm/premium-vw-cal.js +187 -48
  145. package/workspace/public/pm/premium-vw-doc.css +6 -0
  146. package/workspace/public/pm/premium-vw-doc.js +40 -2
  147. package/workspace/public/pm/premium-vw-file.js +2 -2
  148. package/workspace/public/pm/premium-vw-jira-model.js +22 -5
  149. package/workspace/public/pm/premium-vw-jira.css +11 -0
  150. package/workspace/public/pm/premium-vw-jira.js +11 -4
  151. package/workspace/public/pm/premium-vw-meet.js +6 -83
  152. package/workspace/public/pm/premium-vw-mtg.js +731 -0
  153. package/workspace/public/pm/premium-vw-notes.js +56 -69
  154. package/workspace/public/pm/premium-vw-open.js +35 -0
  155. package/workspace/public/pm/premium-vw-page.js +16 -0
  156. package/workspace/public/pm/premium-vw-rec.js +11 -215
  157. package/workspace/public/pm/premium-vw-slides.css +5 -0
  158. package/workspace/public/pm/premium-vw-slides.js +44 -8
  159. package/workspace/public/pm/term-view.js +22 -0
  160. package/workspace/public/premium-board.html +57 -64
  161. package/workspace/public/premium-chat.html +7 -33
  162. package/workspace/public/premium-initiative.html +8 -41
  163. package/workspace/public/premium-insights.html +63 -62
  164. package/workspace/public/premium-viewer.html +20 -0
  165. package/workspace/public/premium-work.html +6 -72
  166. package/workspace/public/premium.html +21 -66
  167. package/workspace/public/vendor/nunito-var.woff2 +0 -0
  168. package/workspace/server.js +25 -3
  169. package/workspace/test-files.json +1 -0
  170. package/workspace/test-lists/home-libs.json +9 -0
  171. package/workspace/test-lists/premium-agreed-viewer.json +9 -0
  172. package/workspace/test-lists/premium-report-read.json +1 -1
  173. package/workspace/test-lists/premium-vw-agreed.json +9 -0
  174. package/workspace/test-lists/premium-vw-notes.json +1 -1
  175. package/workspace/third-party/README.md +1 -0
  176. package/workspace/public/pm/premium-work.js +0 -719
  177. package/workspace/public/pm/premium.js +0 -1133
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+ /* fixtures/board-premium-trail.js — a GET /api/board-trail answer (lib/board-trail.js trail()) for the initiatives of fixtures/board-premium-facts.js
3
+ * (initiative premium-agreed-design). Each initiative shows one thing the trail adds: days in the step, a skip with its reason, the parts of an output,
4
+ * what waits on you, tickets drafted in PMOS, PRD drift, links, a dependency and the themes. */
5
+ const item = (o = {}) => ({ since: null, sinceFrom: null, days: null, skipped: [], parts: null, next: null, you: null, links: { prd: null, rubric: null, evaluation: null, epic: null },
6
+ drafted: [], gate: null, drift: [], deps: [], theme: 'q3-2026:o1', tickets: {}, ...o });
7
+ function trail() {
8
+ return {
9
+ ok: true, at: '2026-10-17T09:12:00.000Z',
10
+ usual: { triage: { days: 2, n: 5 }, discover: { days: 9, n: 4 }, plan: { days: 6, n: 2 }, prioritize: { days: null, n: 0 }, build: { days: 14, n: 6 }, deliver: { days: 4, n: 3 }, monitor: { days: null, n: 0 }, evaluate: { days: null, n: 0 } },
11
+ themes: [
12
+ { key: 'q3-2026:o1', name: 'Foundation', note: 'Make PMOS reliable to run', tone: 'blue', objective: 'PMOS has a trustworthy harness', period: 'Q3 2026', from: 'planning/prd/self-serve-v2.md' },
13
+ { key: 'health', name: 'Health budgets', note: null, tone: 'grey', objective: null, period: null, from: null },
14
+ ],
15
+ items: {
16
+ 'self-serve-v2': item({ since: '2026-09-29', sinceFrom: 'move', days: 18, links: { prd: 'planning/prd/self-serve-v2.md', rubric: 'planning/evals/self-serve-v2.md', evaluation: null, epic: 'ONB-1' },
17
+ drafted: [{ id: 'V.4', summary: 'Resend the invite after 48 hours', key: null, prdChanged: false, waiting: true }, { id: 'V.1', summary: 'Welcome checklist', key: 'ONB-31', prdChanged: true, waiting: false }],
18
+ drift: ['ONB-31'], gate: { open: true, why: '' }, deps: [{ id: 'sso-partners', title: 'SSO for partners', stage: 'Deliver', known: true, done: false }] }),
19
+ 'partner-rate-limits': item({ since: '2026-10-11', sinceFrom: 'git', days: 6, skipped: [{ stage: 'discover', why: 'Moved from Triage to Plan: the PRD came with the ask.', from: 'move', at: '2026-10-11' }],
20
+ parts: [{ name: 'scope', done: true }, { name: 'timeline', done: false }, { name: 'tickets drafted', done: false }, { name: 'tickets pushed', done: false }], next: 'Timeline',
21
+ links: { prd: 'planning/prd/partner-rate-limits.md', rubric: null, evaluation: null, epic: null } }),
22
+ 'usage-billing': item({ since: '2026-10-03', sinceFrom: 'git', days: 14, parts: [{ name: 'problem', done: true }, { name: 'users', done: true }, { name: 'evidence', done: false }, { name: 'scope', done: false }, { name: 'success metric', done: false }, { name: 'risks', done: false }], next: 'Evidence' }),
23
+ 'sso-partners': item({ since: '2026-10-13', sinceFrom: 'move', days: 4, links: { prd: 'planning/prd/sso-partners.md', rubric: 'planning/evals/sso-partners.md', evaluation: null, epic: 'SSO-1' },
24
+ drafted: [{ id: 'S.3', summary: 'SAML errors', key: 'SSO-12', prdChanged: false, waiting: false }], tickets: { 'SSO-12': { subtasks: { done: 1, total: 3 }, reason: 'Waiting on PLAT-88', flagged: true } } }),
25
+ 'audit-log-export': item({ since: '2026-09-20', sinceFrom: 'git', days: 27 }),
26
+ 'refund-reason-codes': item({ since: '2026-10-10', sinceFrom: 'git', days: 7, parts: [{ name: 'report', done: true }, { name: 'evaluation', done: true }, { name: 'verdict', done: false, you: true }], next: 'Your verdict',
27
+ you: { text: 'Your verdict', why: 'The evaluation is in. Accept it or return the run.', kind: 'verdict' }, links: { prd: null, rubric: null, evaluation: 'planning/evals/refund-reason-codes-eval.md', epic: null } }),
28
+ 'docs-search': item({ since: '2026-10-08', sinceFrom: 'git', days: 9, theme: 'health', skipped: [{ stage: 'triage', why: 'The chore lane has no Triage step.', from: 'lane' }, { stage: 'discover', why: 'The chore lane has no Discover step.', from: 'lane' }, { stage: 'prioritize', why: 'The chore lane has no Prioritize step.', from: 'lane' }] }),
29
+ },
30
+ };
31
+ }
32
+ module.exports = { trail };
@@ -2,7 +2,8 @@
2
2
  /* fixtures/initiative-premium-facts.js — the facts lib/initiative-premium.js builds from, for one plausible initiative on 17 Oct 2026, 09:12 local.
3
3
  * Shapes follow the routes of lib/routes-boards.js (initiative, items), lib/routes-initiatives.js (sheet) and lib/routes-core-docs.js (initiative level). */
4
4
  const NOW = new Date(2026, 9, 17, 9, 12).getTime();
5
- const WF = ['Discover', 'Ideate', 'Strategize', 'Prioritize', 'Plan', 'Build', 'Deliver', 'Monitor', 'Evaluate'].map((name, i) => ({ name, cat: ['Discover', 'Discover', 'Plan', 'Plan', 'Plan', 'Do', 'Do', 'Learn', 'Learn'][i] }));
5
+ // The eight lifecycle steps (premium-agreed-design L1): six stages and two milestones, as scripts/boards.js SELF_LADDER draws them.
6
+ const WF = ['Triage', 'Discover', 'Plan', 'Prioritize', 'Build', 'Deliver', 'Monitor', 'Evaluate'].map((name, i) => ({ name, cat: ['Discover', 'Discover', 'Plan', 'Plan', 'Do', 'Do', 'Learn', 'Learn'][i], ...(name === 'Deliver' || name === 'Evaluate' ? { milestone: true } : {}) }));
6
7
  const ROW = { id: 'self-serve-v2', title: 'Self-serve onboarding v2', lane: 'feature', stage: 'Build', cat: 'Do', owner: 'Dara', anchor: 'q3-2026:o1:kr1', horizon: 'now', status: 'at risk', start: '2026-09-01', end: '2026-10-30', progress: 40, warnings: ['no recorded owner for the rubric'], stageSource: 'derived', workflow: WF };
7
8
  const SHEET = {
8
9
  initiative: { id: 'self-serve-v2', health: { level: 'warn', reasons: ['the contract is not approved'] }, progress: { done: 2, total: 5, label: '2 of 5 · from self-serve-v2-prd.md' }, display: { word: 'Build', line2: 'The contract waits for you' } },
@@ -72,20 +72,20 @@
72
72
  "last_activity": "2026-10-04T09:00:00Z",
73
73
  "nine_stages": [
74
74
  {
75
- "key": "discover",
76
- "label": "Discover",
75
+ "key": "triage",
76
+ "label": "Triage",
77
77
  "status": "pending",
78
78
  "accepted": false
79
79
  },
80
80
  {
81
- "key": "ideate",
82
- "label": "Ideate",
81
+ "key": "discover",
82
+ "label": "Discover",
83
83
  "status": "pending",
84
84
  "accepted": false
85
85
  },
86
86
  {
87
- "key": "strategize",
88
- "label": "Strategize",
87
+ "key": "plan",
88
+ "label": "Plan",
89
89
  "status": "pending",
90
90
  "accepted": false
91
91
  },
@@ -95,12 +95,6 @@
95
95
  "status": "pending",
96
96
  "accepted": false
97
97
  },
98
- {
99
- "key": "plan",
100
- "label": "Plan",
101
- "status": "pending",
102
- "accepted": false
103
- },
104
98
  {
105
99
  "key": "build",
106
100
  "label": "Build",
@@ -111,7 +105,8 @@
111
105
  "key": "deliver",
112
106
  "label": "Deliver",
113
107
  "status": "pending",
114
- "accepted": false
108
+ "accepted": false,
109
+ "milestone": true
115
110
  },
116
111
  {
117
112
  "key": "monitor",
@@ -123,7 +118,8 @@
123
118
  "key": "evaluate",
124
119
  "label": "Evaluate",
125
120
  "status": "pending",
126
- "accepted": false
121
+ "accepted": false,
122
+ "milestone": true
127
123
  }
128
124
  ]
129
125
  }
@@ -183,20 +179,20 @@
183
179
  "last_activity": "2026-09-29T15:00:00Z",
184
180
  "nine_stages": [
185
181
  {
186
- "key": "discover",
187
- "label": "Discover",
182
+ "key": "triage",
183
+ "label": "Triage",
188
184
  "status": "pending",
189
185
  "accepted": false
190
186
  },
191
187
  {
192
- "key": "ideate",
193
- "label": "Ideate",
188
+ "key": "discover",
189
+ "label": "Discover",
194
190
  "status": "pending",
195
191
  "accepted": false
196
192
  },
197
193
  {
198
- "key": "strategize",
199
- "label": "Strategize",
194
+ "key": "plan",
195
+ "label": "Plan",
200
196
  "status": "pending",
201
197
  "accepted": false
202
198
  },
@@ -206,12 +202,6 @@
206
202
  "status": "pending",
207
203
  "accepted": false
208
204
  },
209
- {
210
- "key": "plan",
211
- "label": "Plan",
212
- "status": "pending",
213
- "accepted": false
214
- },
215
205
  {
216
206
  "key": "build",
217
207
  "label": "Build",
@@ -222,7 +212,8 @@
222
212
  "key": "deliver",
223
213
  "label": "Deliver",
224
214
  "status": "pending",
225
- "accepted": false
215
+ "accepted": false,
216
+ "milestone": true
226
217
  },
227
218
  {
228
219
  "key": "monitor",
@@ -234,7 +225,8 @@
234
225
  "key": "evaluate",
235
226
  "label": "Evaluate",
236
227
  "status": "pending",
237
- "accepted": false
228
+ "accepted": false,
229
+ "milestone": true
238
230
  }
239
231
  ]
240
232
  },
@@ -274,20 +266,20 @@
274
266
  "last_activity": "2026-07-01T10:00:00Z",
275
267
  "nine_stages": [
276
268
  {
277
- "key": "discover",
278
- "label": "Discover",
269
+ "key": "triage",
270
+ "label": "Triage",
279
271
  "status": "pending",
280
272
  "accepted": false
281
273
  },
282
274
  {
283
- "key": "ideate",
284
- "label": "Ideate",
275
+ "key": "discover",
276
+ "label": "Discover",
285
277
  "status": "pending",
286
278
  "accepted": false
287
279
  },
288
280
  {
289
- "key": "strategize",
290
- "label": "Strategize",
281
+ "key": "plan",
282
+ "label": "Plan",
291
283
  "status": "pending",
292
284
  "accepted": false
293
285
  },
@@ -297,12 +289,6 @@
297
289
  "status": "pending",
298
290
  "accepted": false
299
291
  },
300
- {
301
- "key": "plan",
302
- "label": "Plan",
303
- "status": "pending",
304
- "accepted": false
305
- },
306
292
  {
307
293
  "key": "build",
308
294
  "label": "Build",
@@ -313,7 +299,8 @@
313
299
  "key": "deliver",
314
300
  "label": "Deliver",
315
301
  "status": "pending",
316
- "accepted": false
302
+ "accepted": false,
303
+ "milestone": true
317
304
  },
318
305
  {
319
306
  "key": "monitor",
@@ -325,7 +312,8 @@
325
312
  "key": "evaluate",
326
313
  "label": "Evaluate",
327
314
  "status": "pending",
328
- "accepted": false
315
+ "accepted": false,
316
+ "milestone": true
329
317
  }
330
318
  ]
331
319
  }
@@ -69,20 +69,20 @@
69
69
  "last_activity": "2026-10-04T09:00:00Z",
70
70
  "nine_stages": [
71
71
  {
72
- "key": "discover",
73
- "label": "Discover",
72
+ "key": "triage",
73
+ "label": "Triage",
74
74
  "status": "pending",
75
75
  "accepted": false
76
76
  },
77
77
  {
78
- "key": "ideate",
79
- "label": "Ideate",
78
+ "key": "discover",
79
+ "label": "Discover",
80
80
  "status": "pending",
81
81
  "accepted": false
82
82
  },
83
83
  {
84
- "key": "strategize",
85
- "label": "Strategize",
84
+ "key": "plan",
85
+ "label": "Plan",
86
86
  "status": "pending",
87
87
  "accepted": false
88
88
  },
@@ -92,12 +92,6 @@
92
92
  "status": "pending",
93
93
  "accepted": false
94
94
  },
95
- {
96
- "key": "plan",
97
- "label": "Plan",
98
- "status": "pending",
99
- "accepted": false
100
- },
101
95
  {
102
96
  "key": "build",
103
97
  "label": "Build",
@@ -108,7 +102,8 @@
108
102
  "key": "deliver",
109
103
  "label": "Deliver",
110
104
  "status": "pending",
111
- "accepted": false
105
+ "accepted": false,
106
+ "milestone": true
112
107
  },
113
108
  {
114
109
  "key": "monitor",
@@ -120,7 +115,8 @@
120
115
  "key": "evaluate",
121
116
  "label": "Evaluate",
122
117
  "status": "pending",
123
- "accepted": false
118
+ "accepted": false,
119
+ "milestone": true
124
120
  }
125
121
  ]
126
122
  },
@@ -167,20 +163,20 @@
167
163
  "last_activity": "2026-09-29T15:00:00Z",
168
164
  "nine_stages": [
169
165
  {
170
- "key": "discover",
171
- "label": "Discover",
166
+ "key": "triage",
167
+ "label": "Triage",
172
168
  "status": "pending",
173
169
  "accepted": false
174
170
  },
175
171
  {
176
- "key": "ideate",
177
- "label": "Ideate",
172
+ "key": "discover",
173
+ "label": "Discover",
178
174
  "status": "pending",
179
175
  "accepted": false
180
176
  },
181
177
  {
182
- "key": "strategize",
183
- "label": "Strategize",
178
+ "key": "plan",
179
+ "label": "Plan",
184
180
  "status": "pending",
185
181
  "accepted": false
186
182
  },
@@ -190,12 +186,6 @@
190
186
  "status": "pending",
191
187
  "accepted": false
192
188
  },
193
- {
194
- "key": "plan",
195
- "label": "Plan",
196
- "status": "pending",
197
- "accepted": false
198
- },
199
189
  {
200
190
  "key": "build",
201
191
  "label": "Build",
@@ -206,7 +196,8 @@
206
196
  "key": "deliver",
207
197
  "label": "Deliver",
208
198
  "status": "pending",
209
- "accepted": false
199
+ "accepted": false,
200
+ "milestone": true
210
201
  },
211
202
  {
212
203
  "key": "monitor",
@@ -218,7 +209,8 @@
218
209
  "key": "evaluate",
219
210
  "label": "Evaluate",
220
211
  "status": "pending",
221
- "accepted": false
212
+ "accepted": false,
213
+ "milestone": true
222
214
  }
223
215
  ]
224
216
  }
@@ -260,20 +252,20 @@
260
252
  "last_activity": "2026-09-20T10:00:00Z",
261
253
  "nine_stages": [
262
254
  {
263
- "key": "discover",
264
- "label": "Discover",
255
+ "key": "triage",
256
+ "label": "Triage",
265
257
  "status": "pending",
266
258
  "accepted": false
267
259
  },
268
260
  {
269
- "key": "ideate",
270
- "label": "Ideate",
261
+ "key": "discover",
262
+ "label": "Discover",
271
263
  "status": "pending",
272
264
  "accepted": false
273
265
  },
274
266
  {
275
- "key": "strategize",
276
- "label": "Strategize",
267
+ "key": "plan",
268
+ "label": "Plan",
277
269
  "status": "pending",
278
270
  "accepted": false
279
271
  },
@@ -283,12 +275,6 @@
283
275
  "status": "pending",
284
276
  "accepted": false
285
277
  },
286
- {
287
- "key": "plan",
288
- "label": "Plan",
289
- "status": "pending",
290
- "accepted": false
291
- },
292
278
  {
293
279
  "key": "build",
294
280
  "label": "Build",
@@ -299,7 +285,8 @@
299
285
  "key": "deliver",
300
286
  "label": "Deliver",
301
287
  "status": "pending",
302
- "accepted": false
288
+ "accepted": false,
289
+ "milestone": true
303
290
  },
304
291
  {
305
292
  "key": "monitor",
@@ -311,7 +298,8 @@
311
298
  "key": "evaluate",
312
299
  "label": "Evaluate",
313
300
  "status": "pending",
314
- "accepted": false
301
+ "accepted": false,
302
+ "milestone": true
315
303
  }
316
304
  ]
317
305
  }
@@ -362,20 +350,20 @@
362
350
  "last_activity": "2026-07-01T10:00:00Z",
363
351
  "nine_stages": [
364
352
  {
365
- "key": "discover",
366
- "label": "Discover",
353
+ "key": "triage",
354
+ "label": "Triage",
367
355
  "status": "pending",
368
356
  "accepted": false
369
357
  },
370
358
  {
371
- "key": "ideate",
372
- "label": "Ideate",
359
+ "key": "discover",
360
+ "label": "Discover",
373
361
  "status": "pending",
374
362
  "accepted": false
375
363
  },
376
364
  {
377
- "key": "strategize",
378
- "label": "Strategize",
365
+ "key": "plan",
366
+ "label": "Plan",
379
367
  "status": "pending",
380
368
  "accepted": false
381
369
  },
@@ -385,12 +373,6 @@
385
373
  "status": "pending",
386
374
  "accepted": false
387
375
  },
388
- {
389
- "key": "plan",
390
- "label": "Plan",
391
- "status": "pending",
392
- "accepted": false
393
- },
394
376
  {
395
377
  "key": "build",
396
378
  "label": "Build",
@@ -401,7 +383,8 @@
401
383
  "key": "deliver",
402
384
  "label": "Deliver",
403
385
  "status": "pending",
404
- "accepted": false
386
+ "accepted": false,
387
+ "milestone": true
405
388
  },
406
389
  {
407
390
  "key": "monitor",
@@ -413,7 +396,8 @@
413
396
  "key": "evaluate",
414
397
  "label": "Evaluate",
415
398
  "status": "pending",
416
- "accepted": false
399
+ "accepted": false,
400
+ "milestone": true
417
401
  }
418
402
  ]
419
403
  }
@@ -51,20 +51,20 @@
51
51
  "last_activity": "2026-10-04T09:00:00Z",
52
52
  "nine_stages": [
53
53
  {
54
- "key": "discover",
55
- "label": "Discover",
54
+ "key": "triage",
55
+ "label": "Triage",
56
56
  "status": "pending",
57
57
  "accepted": false
58
58
  },
59
59
  {
60
- "key": "ideate",
61
- "label": "Ideate",
60
+ "key": "discover",
61
+ "label": "Discover",
62
62
  "status": "pending",
63
63
  "accepted": false
64
64
  },
65
65
  {
66
- "key": "strategize",
67
- "label": "Strategize",
66
+ "key": "plan",
67
+ "label": "Plan",
68
68
  "status": "pending",
69
69
  "accepted": false
70
70
  },
@@ -74,12 +74,6 @@
74
74
  "status": "pending",
75
75
  "accepted": false
76
76
  },
77
- {
78
- "key": "plan",
79
- "label": "Plan",
80
- "status": "pending",
81
- "accepted": false
82
- },
83
77
  {
84
78
  "key": "build",
85
79
  "label": "Build",
@@ -90,7 +84,8 @@
90
84
  "key": "deliver",
91
85
  "label": "Deliver",
92
86
  "status": "pending",
93
- "accepted": false
87
+ "accepted": false,
88
+ "milestone": true
94
89
  },
95
90
  {
96
91
  "key": "monitor",
@@ -102,7 +97,8 @@
102
97
  "key": "evaluate",
103
98
  "label": "Evaluate",
104
99
  "status": "pending",
105
- "accepted": false
100
+ "accepted": false,
101
+ "milestone": true
106
102
  }
107
103
  ]
108
104
  },
@@ -35,12 +35,21 @@ const SETUPS = {
35
35
  { id: 'a-2', text: 'A weekly uptime note', state: 'running', changed: false, error: null, proposal: null }],
36
36
  finder: { cadence: 'weekly', sources: {}, last_run: null, next_run: null },
37
37
  };
38
+ // premium-agreed-design (G1, G2): the board's initiatives, as GET /api/boards/backlog answers them. An anchor names a KR metric by id or by name.
39
+ const INITIATIVES = [
40
+ { id: 'sso-partners', title: 'SSO for partners', lane: 'feature', stage: 'Deliver', status: 'on track', owner: 'Lee', anchor: 'krm-act', end: '2026-10-23' },
41
+ { id: 'self-serve-v2', title: 'Self-serve onboarding v2', lane: 'feature', stage: 'Build', status: 'late', owner: 'Dara', anchor: 'krm-act', end: '2026-10-10' },
42
+ { id: 'first-call-kit', title: 'First call kit', lane: 'feature', stage: 'Discover', status: 'at risk', owner: null, anchor: 'Time to first call', end: null },
43
+ { id: 'refund-reason-codes', title: 'Refund reason codes', lane: 'feature', stage: 'Evaluate', status: 'on track', owner: 'Mira', anchor: 'krm-churn', end: '2026-09-20' },
44
+ { id: 'audit-log-export', title: 'Audit log export', lane: 'feature', stage: 'Monitor', status: 'on track', owner: 'Dara', anchor: 'krm-up', end: '2026-10-02' },
45
+ { id: 'docs-search', title: 'Docs search', lane: 'chore', stage: 'Build', status: 'on track', owner: null, anchor: 'health:docs', end: null },
46
+ ];
38
47
  function facts(o = {}) {
39
48
  return {
40
49
  now: NOW, pending: false, missing: [],
41
50
  board: { ws: 'w1', id: 'w1', name: 'pmos' }, boards: [{ ws: 'w1', id: 'w1', name: 'pmos' }],
42
51
  outcomes: OUTCOMES.map((x) => ({ ...x, readings: x.readings.map((r) => ({ ...r })) })), reports: REPORTS.map((r) => ({ ...r })), reportsOk: true,
43
- saved: JSON.parse(JSON.stringify(SAVED)), setups: JSON.parse(JSON.stringify(SETUPS)), ...o,
52
+ saved: JSON.parse(JSON.stringify(SAVED)), setups: JSON.parse(JSON.stringify(SETUPS)), initiatives: JSON.parse(JSON.stringify(INITIATIVES)), ...o,
44
53
  };
45
54
  }
46
- module.exports = { NOW, facts, OUTCOMES, REPORTS, SAVED, SETUPS };
55
+ module.exports = { NOW, facts, OUTCOMES, REPORTS, SAVED, SETUPS, INITIATIVES };