create-pmos 0.398.0 → 0.400.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 (515) hide show
  1. package/package.json +30 -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/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +19 -15
  7. package/workspace/briefing-premium-board-test.js +82 -50
  8. package/workspace/briefing-premium-calendar-2-test.js +36 -36
  9. package/workspace/briefing-premium-calendar-3-test.js +39 -39
  10. package/workspace/briefing-premium-calendar-test.js +23 -24
  11. package/workspace/briefing-premium-doc-edit-test.js +8 -10
  12. package/workspace/briefing-premium-initiative-test.js +38 -16
  13. package/workspace/briefing-premium-insights-test.js +114 -37
  14. package/workspace/briefing-premium-metrics-test.js +6 -4
  15. package/workspace/briefing-premium-products-test.js +10 -7
  16. package/workspace/briefing-premium-sources-test.js +25 -22
  17. package/workspace/briefing-premium-test.js +48 -43
  18. package/workspace/briefing-premium-work-test.js +16 -11
  19. package/workspace/c3-capture-test.js +0 -17
  20. package/workspace/changelog.json +29 -0
  21. package/workspace/ev-everywhere-test.js +210 -0
  22. package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
  23. package/workspace/guide/briefing-premium.md +2 -2
  24. package/workspace/guide/home.md +58 -19
  25. package/workspace/guide/index.md +1 -1
  26. package/workspace/guide/layout.md +2 -2
  27. package/workspace/guide/notes.md +2 -2
  28. package/workspace/guide/phone-companion.md +1 -1
  29. package/workspace/lib/board-grill.js +63 -0
  30. package/workspace/lib/board-premium.js +36 -5
  31. package/workspace/lib/initiative-layout.js +77 -0
  32. package/workspace/lib/insights-premium.js +3 -2
  33. package/workspace/lib/insights-records.js +21 -7
  34. package/workspace/lib/meeting-points.js +52 -0
  35. package/workspace/lib/news-for-you.js +88 -0
  36. package/workspace/lib/notes-series.js +29 -6
  37. package/workspace/lib/report-confirm.js +48 -0
  38. package/workspace/lib/route-modules.js +9 -9
  39. package/workspace/lib/routes-board-docs.js +46 -0
  40. package/workspace/lib/routes-board-grill.js +90 -0
  41. package/workspace/lib/routes-home-review.js +108 -0
  42. package/workspace/lib/routes-initiative-layout.js +57 -0
  43. package/workspace/lib/routes-insights-premium.js +4 -1
  44. package/workspace/lib/routes-insights-records.js +8 -4
  45. package/workspace/lib/routes-meeting-points.js +37 -0
  46. package/workspace/lib/routes-news.js +57 -0
  47. package/workspace/lib/routes-notes.js +2 -1
  48. package/workspace/lib/routes-phone-day.js +18 -9
  49. package/workspace/lib/routes-report-confirm.js +31 -0
  50. package/workspace/lib/routes-search.js +38 -0
  51. package/workspace/lib/routes-slash.js +95 -0
  52. package/workspace/lib/search-index.js +176 -0
  53. package/workspace/package-lock.json +2 -2
  54. package/workspace/package.json +1 -2
  55. package/workspace/premium-board-actions-test.js +86 -50
  56. package/workspace/premium-briefing-depth-test.js +55 -54
  57. package/workspace/premium-chat-chart-tab-test.js +4 -2
  58. package/workspace/premium-chat-goal-view-test.js +1 -1
  59. package/workspace/premium-chat-report-tab-test.js +16 -2
  60. package/workspace/premium-chat-term-test.js +0 -10
  61. package/workspace/premium-core-doc-issue-test.js +15 -13
  62. package/workspace/premium-menu-rows-test.js +1 -1
  63. package/workspace/premium-phone-card-test.js +7 -5
  64. package/workspace/premium-report-read-test.js +55 -18
  65. package/workspace/premium-vw-backlog-test.js +2 -2
  66. package/workspace/premium-vw-cal-test.js +50 -35
  67. package/workspace/premium-vw-doc-test.js +10 -11
  68. package/workspace/premium-vw-item-test.js +1 -1
  69. package/workspace/premium-vw-jira-test.js +2 -2
  70. package/workspace/premium-vw-meet-test.js +37 -40
  71. package/workspace/premium-vw-notes-test.js +21 -19
  72. package/workspace/premium-vw-rec-test.js +11 -12
  73. package/workspace/premium-welcome-test.js +3 -3
  74. package/workspace/premium-work-depth-test.js +5 -6
  75. package/workspace/public/capture.html +23 -0
  76. package/workspace/public/pm/bd-acts.js +303 -225
  77. package/workspace/public/pm/bd-asks.js +261 -0
  78. package/workspace/public/pm/bd-pop.js +59 -0
  79. package/workspace/public/pm/bd-span.js +49 -13
  80. package/workspace/public/pm/bd-views.js +169 -0
  81. package/workspace/public/pm/c3-base.js +47 -0
  82. package/workspace/public/pm/c3-capture.js +1 -1
  83. package/workspace/public/pm/c3-ini-ui.js +1 -1
  84. package/workspace/public/pm/c3-sheet.js +1 -1
  85. package/workspace/public/pm/c3-toast.js +1 -1
  86. package/workspace/public/pm/console3.css +3 -0
  87. package/workspace/public/pm/cozy-board.css +301 -0
  88. package/workspace/public/pm/cozy-ev.css +228 -0
  89. package/workspace/public/pm/cozy-evmodel.js +106 -0
  90. package/workspace/public/pm/cozy-evui.js +47 -0
  91. package/workspace/public/pm/cozy-home.css +20 -5
  92. package/workspace/public/pm/cozy-insights.css +148 -10
  93. package/workspace/public/pm/cozy-nav.js +103 -39
  94. package/workspace/public/pm/cozy-news.js +140 -0
  95. package/workspace/public/pm/cozy-search.js +203 -0
  96. package/workspace/public/pm/cozy-settings.js +198 -0
  97. package/workspace/public/pm/cozy-sources.js +89 -0
  98. package/workspace/public/pm/cozy-today.css +220 -0
  99. package/workspace/public/pm/cozy-viewer.js +5 -2
  100. package/workspace/public/pm/cozy-vw-mtg.css +350 -0
  101. package/workspace/public/pm/cozy-vw-rp.css +152 -0
  102. package/workspace/public/pm/cozy.css +9 -0
  103. package/workspace/public/pm/goal-chat.js +5 -1
  104. package/workspace/public/pm/home-adddoc.js +5 -5
  105. package/workspace/public/pm/home-app.js +365 -70
  106. package/workspace/public/pm/home-around.js +24 -126
  107. package/workspace/public/pm/home-chat.js +77 -18
  108. package/workspace/public/pm/home-data.js +9 -7
  109. package/workspace/public/pm/home-dictate.js +57 -0
  110. package/workspace/public/pm/home-draft.js +6 -6
  111. package/workspace/public/pm/home-ini-model.js +190 -0
  112. package/workspace/public/pm/home-ini.css +171 -0
  113. package/workspace/public/pm/home-ini.js +466 -0
  114. package/workspace/public/pm/home-list.js +289 -0
  115. package/workspace/public/pm/home-more.js +18 -135
  116. package/workspace/public/pm/home-phone-card.js +13 -8
  117. package/workspace/public/pm/home-review.js +103 -0
  118. package/workspace/public/pm/home-task.js +67 -0
  119. package/workspace/public/pm/home-today.js +148 -0
  120. package/workspace/public/pm/home-work.js +63 -28
  121. package/workspace/public/pm/note-dock.js +1 -2
  122. package/workspace/public/pm/notes-links.js +1 -2
  123. package/workspace/public/pm/notes-task.js +3 -4
  124. package/workspace/public/pm/premium-board.js +164 -40
  125. package/workspace/public/pm/premium-chart-tab.js +4 -5
  126. package/workspace/public/pm/premium-first.js +5 -7
  127. package/workspace/public/pm/premium-initiative-head.js +3 -3
  128. package/workspace/public/pm/premium-insights.js +499 -202
  129. package/workspace/public/pm/premium-mtg-present.js +138 -0
  130. package/workspace/public/pm/premium-mtg-replay.js +142 -0
  131. package/workspace/public/pm/premium-report-read.js +216 -52
  132. package/workspace/public/pm/premium-report-tab.js +44 -19
  133. package/workspace/public/pm/premium-shell.js +7 -7
  134. package/workspace/public/pm/premium-vw-cal.js +150 -60
  135. package/workspace/public/pm/premium-vw-doc.css +20 -2
  136. package/workspace/public/pm/premium-vw-doc.js +22 -7
  137. package/workspace/public/pm/premium-vw-mtg.js +488 -261
  138. package/workspace/public/pm/premium-vw-notes.js +61 -0
  139. package/workspace/public/pm/rp-parts.js +269 -0
  140. package/workspace/public/pm/view-notes.js +2 -2
  141. package/workspace/public/premium-board.html +4 -3
  142. package/workspace/public/premium-insights.html +10 -10
  143. package/workspace/public/premium.html +3 -1
  144. package/workspace/r/m1.png +0 -0
  145. package/workspace/r/m2.png +0 -0
  146. package/workspace/r/m3.png +0 -0
  147. package/workspace/r/nl.png +0 -0
  148. package/workspace/replaced-tests.json +435 -0
  149. package/workspace/run-tests.js +323 -28
  150. package/workspace/server.js +15 -10
  151. package/workspace/test-files.json +3 -140
  152. package/workspace/test-lists/base.json +1 -2
  153. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  154. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  155. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  156. package/workspace/test-lists/c3-work-agent.json +1 -2
  157. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  158. package/workspace/test-lists/console3-reports.json +1 -2
  159. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  160. package/workspace/test-lists/extension-capture.json +5 -0
  161. package/workspace/test-lists/initiative-layout.json +9 -0
  162. package/workspace/test-lists/jira-wbs.json +1 -2
  163. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  164. package/workspace/test-lists/meeting-material.json +1 -2
  165. package/workspace/test-lists/meeting-notes.json +2 -36
  166. package/workspace/test-lists/meeting-replay.json +1 -2
  167. package/workspace/test-lists/mm-capture.json +2 -12
  168. package/workspace/test-lists/my-work.json +2 -10
  169. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  170. package/workspace/test-lists/people-directory.json +1 -2
  171. package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
  172. package/workspace/test-lists/premium-uncovered-reports.json +9 -0
  173. package/workspace/test-lists/run2-a.json +1 -2
  174. package/workspace/test-lists/run2-d.json +2 -19
  175. package/workspace/test-lists/run3-b.json +1 -2
  176. package/workspace/test-lists/run3-c.json +2 -12
  177. package/workspace/test-lists/run4-b.json +1 -2
  178. package/workspace/test-lists/run4-d.json +1 -5
  179. package/workspace/test-lists/run5-c.json +1 -11
  180. package/workspace/test-lists/run6.json +1 -5
  181. package/workspace/test-lists/uf-everywhere.json +15 -0
  182. package/workspace/test-lists/uf-home.json +9 -0
  183. package/workspace/test-lists/uncovered-board.json +9 -0
  184. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  185. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  186. package/workspace/test-timings.json +242 -123
  187. package/workspace/c3-briefing-test.js +0 -136
  188. package/workspace/c3-core-docs-test.js +0 -170
  189. package/workspace/c3-driver-fixture.js +0 -64
  190. package/workspace/c3-driver-test.js +0 -169
  191. package/workspace/c3-foundation-test.js +0 -163
  192. package/workspace/c3-ib-items-test.js +0 -114
  193. package/workspace/c3-ib-more-test.js +0 -146
  194. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  195. package/workspace/c3-ini-harness.js +0 -66
  196. package/workspace/c3-ini-life-test.js +0 -167
  197. package/workspace/c3-initiatives-test.js +0 -186
  198. package/workspace/c3-light-load-test.js +0 -112
  199. package/workspace/c3-one-home-test.js +0 -149
  200. package/workspace/c3-phone-test.js +0 -289
  201. package/workspace/c3-quiet-test.js +0 -157
  202. package/workspace/c3-report-design-real-test.js +0 -264
  203. package/workspace/c3-report-design-test.js +0 -442
  204. package/workspace/c3-report-setup-test.js +0 -192
  205. package/workspace/c3-report-structure-real-test.js +0 -248
  206. package/workspace/c3-report-structure-test.js +0 -397
  207. package/workspace/c3-reports-test.js +0 -288
  208. package/workspace/c3-scan-test.js +0 -517
  209. package/workspace/c3-sessions-panel-test.js +0 -365
  210. package/workspace/c3-settings-test.js +0 -204
  211. package/workspace/c3-updates-test.js +0 -131
  212. package/workspace/c3-work-test.js +0 -260
  213. package/workspace/cut-stub.js +0 -40
  214. package/workspace/first-paint-audit.js +0 -160
  215. package/workspace/lib/c3-full-console.js +0 -15
  216. package/workspace/lib/engine/derived/trust.js +0 -3
  217. package/workspace/lib/engine/plan-forecast.js +0 -342
  218. package/workspace/lib/engine/report-families.js +0 -175
  219. package/workspace/lib/engine/truth-table.js +0 -57
  220. package/workspace/lib/routes-c3-init.js +0 -54
  221. package/workspace/lib/routes-c3-life.js +0 -120
  222. package/workspace/lib/routes-c3-timeline.js +0 -192
  223. package/workspace/lib/routes-forecast.js +0 -86
  224. package/workspace/lib/routes-releases.js +0 -130
  225. package/workspace/lib/routes-report-facts.js +0 -85
  226. package/workspace/lib/routes-report-families.js +0 -33
  227. package/workspace/lib/routes-signals.js +0 -51
  228. package/workspace/lib/routes-timeline.js +0 -197
  229. package/workspace/public/c3.html +0 -35
  230. package/workspace/public/index.html +0 -156
  231. package/workspace/public/pm/app.js +0 -831
  232. package/workspace/public/pm/bd-board.js +0 -159
  233. package/workspace/public/pm/bd-drag.js +0 -59
  234. package/workspace/public/pm/bd-model.js +0 -152
  235. package/workspace/public/pm/bd-timeline.js +0 -233
  236. package/workspace/public/pm/bd-tree.js +0 -244
  237. package/workspace/public/pm/board-copy.js +0 -59
  238. package/workspace/public/pm/board-read.js +0 -38
  239. package/workspace/public/pm/branches-sheet.js +0 -56
  240. package/workspace/public/pm/breakdown-api.js +0 -58
  241. package/workspace/public/pm/breakdown-copy.js +0 -138
  242. package/workspace/public/pm/briefing-deck.js +0 -441
  243. package/workspace/public/pm/briefing-model.js +0 -251
  244. package/workspace/public/pm/c3-ambient.js +0 -100
  245. package/workspace/public/pm/c3-audience-link.js +0 -21
  246. package/workspace/public/pm/c3-audience.js +0 -46
  247. package/workspace/public/pm/c3-boot.js +0 -13
  248. package/workspace/public/pm/c3-breakdown.js +0 -240
  249. package/workspace/public/pm/c3-brief-data.js +0 -11
  250. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  251. package/workspace/public/pm/c3-brief-needs.js +0 -288
  252. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  253. package/workspace/public/pm/c3-brief-summary.js +0 -139
  254. package/workspace/public/pm/c3-brief-today.js +0 -79
  255. package/workspace/public/pm/c3-brief.js +0 -279
  256. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  257. package/workspace/public/pm/c3-calendar.js +0 -965
  258. package/workspace/public/pm/c3-calpop.js +0 -111
  259. package/workspace/public/pm/c3-case.js +0 -196
  260. package/workspace/public/pm/c3-core-docs.css +0 -18
  261. package/workspace/public/pm/c3-core-docs.js +0 -236
  262. package/workspace/public/pm/c3-daypart.js +0 -176
  263. package/workspace/public/pm/c3-demo-boards.js +0 -764
  264. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  265. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  266. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  267. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  268. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  269. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  270. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  271. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  272. package/workspace/public/pm/c3-demo-data.js +0 -552
  273. package/workspace/public/pm/c3-demo-focus.js +0 -181
  274. package/workspace/public/pm/c3-demo-init.js +0 -430
  275. package/workspace/public/pm/c3-demo-life.js +0 -77
  276. package/workspace/public/pm/c3-demo-material.js +0 -58
  277. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  278. package/workspace/public/pm/c3-demo-phone.js +0 -48
  279. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  280. package/workspace/public/pm/c3-demo-rd.js +0 -432
  281. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  282. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  283. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  284. package/workspace/public/pm/c3-demo-rs.js +0 -287
  285. package/workspace/public/pm/c3-demo-term.js +0 -153
  286. package/workspace/public/pm/c3-demo-time.js +0 -49
  287. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  288. package/workspace/public/pm/c3-demo.js +0 -131
  289. package/workspace/public/pm/c3-design-studio.js +0 -369
  290. package/workspace/public/pm/c3-doc-formats.js +0 -153
  291. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  292. package/workspace/public/pm/c3-dock.js +0 -206
  293. package/workspace/public/pm/c3-docs.js +0 -291
  294. package/workspace/public/pm/c3-driver-work.js +0 -110
  295. package/workspace/public/pm/c3-driver.css +0 -18
  296. package/workspace/public/pm/c3-driver.js +0 -298
  297. package/workspace/public/pm/c3-focus.css +0 -304
  298. package/workspace/public/pm/c3-focus.js +0 -983
  299. package/workspace/public/pm/c3-ib-docs.js +0 -92
  300. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  301. package/workspace/public/pm/c3-ib-items.js +0 -210
  302. package/workspace/public/pm/c3-ib-releases.js +0 -48
  303. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  304. package/workspace/public/pm/c3-ib-triage.js +0 -177
  305. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  306. package/workspace/public/pm/c3-ini-life.css +0 -34
  307. package/workspace/public/pm/c3-ini-life.js +0 -379
  308. package/workspace/public/pm/c3-ini-records.js +0 -197
  309. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  310. package/workspace/public/pm/c3-ini-work.js +0 -139
  311. package/workspace/public/pm/c3-init-extras.js +0 -170
  312. package/workspace/public/pm/c3-initiatives.js +0 -852
  313. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  314. package/workspace/public/pm/c3-look.js +0 -27
  315. package/workspace/public/pm/c3-material.css +0 -22
  316. package/workspace/public/pm/c3-material.js +0 -321
  317. package/workspace/public/pm/c3-md.js +0 -3
  318. package/workspace/public/pm/c3-misc-panels.js +0 -89
  319. package/workspace/public/pm/c3-new-session.js +0 -110
  320. package/workspace/public/pm/c3-notes.js +0 -751
  321. package/workspace/public/pm/c3-phone-boot.js +0 -47
  322. package/workspace/public/pm/c3-phone-detail.js +0 -97
  323. package/workspace/public/pm/c3-phone-model.js +0 -3
  324. package/workspace/public/pm/c3-phone.css +0 -66
  325. package/workspace/public/pm/c3-phone.js +0 -444
  326. package/workspace/public/pm/c3-plan-panels.js +0 -163
  327. package/workspace/public/pm/c3-plan.js +0 -193
  328. package/workspace/public/pm/c3-quiet.css +0 -113
  329. package/workspace/public/pm/c3-quiet.js +0 -177
  330. package/workspace/public/pm/c3-replay.css +0 -133
  331. package/workspace/public/pm/c3-replay.js +0 -429
  332. package/workspace/public/pm/c3-report-deck.css +0 -163
  333. package/workspace/public/pm/c3-report-deck.js +0 -598
  334. package/workspace/public/pm/c3-report-frame.css +0 -20
  335. package/workspace/public/pm/c3-report-print.css +0 -20
  336. package/workspace/public/pm/c3-report-setup.css +0 -67
  337. package/workspace/public/pm/c3-report-setup.js +0 -298
  338. package/workspace/public/pm/c3-report-store.js +0 -244
  339. package/workspace/public/pm/c3-report-structure.css +0 -44
  340. package/workspace/public/pm/c3-report-structure.js +0 -473
  341. package/workspace/public/pm/c3-reports.css +0 -68
  342. package/workspace/public/pm/c3-reports.js +0 -377
  343. package/workspace/public/pm/c3-roadmap.js +0 -249
  344. package/workspace/public/pm/c3-scan-api.js +0 -167
  345. package/workspace/public/pm/c3-scan-next.js +0 -248
  346. package/workspace/public/pm/c3-scan-setup.js +0 -313
  347. package/workspace/public/pm/c3-scan-words.js +0 -41
  348. package/workspace/public/pm/c3-scan.css +0 -74
  349. package/workspace/public/pm/c3-scan.js +0 -93
  350. package/workspace/public/pm/c3-session-chat.js +0 -103
  351. package/workspace/public/pm/c3-session-conv.js +0 -165
  352. package/workspace/public/pm/c3-session-term.js +0 -216
  353. package/workspace/public/pm/c3-settings.css +0 -85
  354. package/workspace/public/pm/c3-settings.js +0 -1045
  355. package/workspace/public/pm/c3-shell.js +0 -628
  356. package/workspace/public/pm/c3-signals.js +0 -196
  357. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  358. package/workspace/public/pm/c3-swipe.js +0 -230
  359. package/workspace/public/pm/c3-terminal-data.js +0 -48
  360. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  361. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  362. package/workspace/public/pm/c3-terminal-results.js +0 -141
  363. package/workspace/public/pm/c3-terminal.js +0 -52
  364. package/workspace/public/pm/c3-tickets.js +0 -163
  365. package/workspace/public/pm/c3-timeline.js +0 -201
  366. package/workspace/public/pm/calendar-views.js +0 -1049
  367. package/workspace/public/pm/console3-lift.md +0 -220
  368. package/workspace/public/pm/cozy-home.js +0 -172
  369. package/workspace/public/pm/cozy-initiative.css +0 -138
  370. package/workspace/public/pm/cycle-review.js +0 -125
  371. package/workspace/public/pm/data.js +0 -1577
  372. package/workspace/public/pm/dest-board.js +0 -444
  373. package/workspace/public/pm/dest-docs.js +0 -530
  374. package/workspace/public/pm/dest-initiatives.js +0 -162
  375. package/workspace/public/pm/dest-mywork.js +0 -307
  376. package/workspace/public/pm/dest-notes.js +0 -537
  377. package/workspace/public/pm/dest-people.js +0 -449
  378. package/workspace/public/pm/dest-reports.js +0 -383
  379. package/workspace/public/pm/dest-settings.js +0 -601
  380. package/workspace/public/pm/dest-today.js +0 -267
  381. package/workspace/public/pm/display-word.js +0 -56
  382. package/workspace/public/pm/doc-editor.js +0 -473
  383. package/workspace/public/pm/doc-graph.js +0 -272
  384. package/workspace/public/pm/doc-health-panel.js +0 -110
  385. package/workspace/public/pm/doc-rail.js +0 -167
  386. package/workspace/public/pm/doc-remote.js +0 -180
  387. package/workspace/public/pm/dock-sessions.js +0 -472
  388. package/workspace/public/pm/dock.js +0 -216
  389. package/workspace/public/pm/fixture.js +0 -821
  390. package/workspace/public/pm/flag-picker.js +0 -104
  391. package/workspace/public/pm/frame-copy.js +0 -278
  392. package/workspace/public/pm/freshness-line.js +0 -149
  393. package/workspace/public/pm/handoff-box.js +0 -82
  394. package/workspace/public/pm/initiative-list.js +0 -235
  395. package/workspace/public/pm/initiative-sheet.js +0 -331
  396. package/workspace/public/pm/initiatives-api.js +0 -95
  397. package/workspace/public/pm/initiatives-copy.js +0 -287
  398. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  399. package/workspace/public/pm/initiatives-timeline.js +0 -410
  400. package/workspace/public/pm/initiatives-ui.js +0 -291
  401. package/workspace/public/pm/item-sheet.js +0 -268
  402. package/workspace/public/pm/keep-card.js +0 -204
  403. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  404. package/workspace/public/pm/lifecycle-lens.js +0 -276
  405. package/workspace/public/pm/lifecycle.js +0 -111
  406. package/workspace/public/pm/mobile.css +0 -366
  407. package/workspace/public/pm/mobile.js +0 -581
  408. package/workspace/public/pm/modes-live.js +0 -453
  409. package/workspace/public/pm/modes.js +0 -147
  410. package/workspace/public/pm/my-work-card.js +0 -51
  411. package/workspace/public/pm/my-work-data.js +0 -36
  412. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  413. package/workspace/public/pm/next-step-ui.js +0 -190
  414. package/workspace/public/pm/outbox-panel.js +0 -125
  415. package/workspace/public/pm/palette-copy.js +0 -55
  416. package/workspace/public/pm/palette.js +0 -343
  417. package/workspace/public/pm/panel-breakdown.js +0 -702
  418. package/workspace/public/pm/panel-cockpit.js +0 -425
  419. package/workspace/public/pm/panel-detail.js +0 -1513
  420. package/workspace/public/pm/panel-initiatives.js +0 -929
  421. package/workspace/public/pm/panel-newsess.js +0 -709
  422. package/workspace/public/pm/panel-repos.js +0 -741
  423. package/workspace/public/pm/panel-tabs.js +0 -1506
  424. package/workspace/public/pm/panel-trees.js +0 -204
  425. package/workspace/public/pm/people-link.js +0 -106
  426. package/workspace/public/pm/phone-deck.js +0 -167
  427. package/workspace/public/pm/pm-work-view.js +0 -1533
  428. package/workspace/public/pm/portfolio-report.js +0 -61
  429. package/workspace/public/pm/premium-acts.js +0 -280
  430. package/workspace/public/pm/premium-brief.js +0 -111
  431. package/workspace/public/pm/premium-chat.js +0 -22
  432. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  433. package/workspace/public/pm/premium-initiative.js +0 -324
  434. package/workspace/public/pm/premium-insights.css +0 -228
  435. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  436. package/workspace/public/pm/premium-report-brief.js +0 -132
  437. package/workspace/public/pm/premium-vw-rec.js +0 -67
  438. package/workspace/public/pm/premium-wide.css +0 -30
  439. package/workspace/public/pm/print.css +0 -44
  440. package/workspace/public/pm/provider-cards.js +0 -136
  441. package/workspace/public/pm/registry.js +0 -203
  442. package/workspace/public/pm/release-card.js +0 -110
  443. package/workspace/public/pm/releases-view.js +0 -248
  444. package/workspace/public/pm/report-families-view.js +0 -505
  445. package/workspace/public/pm/report-slides.js +0 -438
  446. package/workspace/public/pm/report-tab.js +0 -33
  447. package/workspace/public/pm/report-view.js +0 -337
  448. package/workspace/public/pm/reports-copy.js +0 -134
  449. package/workspace/public/pm/roadmap.js +0 -294
  450. package/workspace/public/pm/run-card.js +0 -260
  451. package/workspace/public/pm/sessions-panel.js +0 -219
  452. package/workspace/public/pm/sheet-jira.js +0 -353
  453. package/workspace/public/pm/shell-bell.js +0 -163
  454. package/workspace/public/pm/shell-model.js +0 -83
  455. package/workspace/public/pm/shell-phone.js +0 -124
  456. package/workspace/public/pm/shell-readaloud.js +0 -53
  457. package/workspace/public/pm/shell-recording.js +0 -274
  458. package/workspace/public/pm/shell-ticker.js +0 -90
  459. package/workspace/public/pm/sig-watch.js +0 -41
  460. package/workspace/public/pm/slide-confirm.js +0 -163
  461. package/workspace/public/pm/slides-copy.js +0 -52
  462. package/workspace/public/pm/status-banner.js +0 -95
  463. package/workspace/public/pm/tab-doc.js +0 -859
  464. package/workspace/public/pm/tab-gone.js +0 -21
  465. package/workspace/public/pm/tab-term.js +0 -1210
  466. package/workspace/public/pm/tab-web.js +0 -90
  467. package/workspace/public/pm/timeline-copy.js +0 -48
  468. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  469. package/workspace/public/pm/today-agenda.js +0 -331
  470. package/workspace/public/pm/today-cards.js +0 -244
  471. package/workspace/public/pm/today-copy.js +0 -506
  472. package/workspace/public/pm/today-day.js +0 -1371
  473. package/workspace/public/pm/today-goals.js +0 -297
  474. package/workspace/public/pm/today-jobs.js +0 -84
  475. package/workspace/public/pm/today-mentions.js +0 -50
  476. package/workspace/public/pm/topbar.js +0 -202
  477. package/workspace/public/pm/triage-card.js +0 -60
  478. package/workspace/public/pm/undo-hold.js +0 -103
  479. package/workspace/public/pm/view-addrepo.js +0 -208
  480. package/workspace/public/pm/view-files.js +0 -197
  481. package/workspace/public/pm/view-livenotes.js +0 -399
  482. package/workspace/public/pm/view-today.js +0 -13
  483. package/workspace/public/pm/view-validate.js +0 -171
  484. package/workspace/public/pm/welcome.js +0 -391
  485. package/workspace/public/pm/work-place.js +0 -68
  486. package/workspace/public/pm/xlsx-read.js +0 -117
  487. package/workspace/public/welcome.html +0 -22
  488. package/workspace/test-lists/browser-suites-green.json +0 -5
  489. package/workspace/test-lists/c3-core-docs.json +0 -9
  490. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  491. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  492. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  493. package/workspace/test-lists/c3-ib-items.json +0 -9
  494. package/workspace/test-lists/c3-ib-more.json +0 -9
  495. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  496. package/workspace/test-lists/c3-ini-life.json +0 -9
  497. package/workspace/test-lists/c3-meeting-board.json +0 -5
  498. package/workspace/test-lists/c3-meeting-card.json +0 -5
  499. package/workspace/test-lists/c3-notes-place.json +0 -5
  500. package/workspace/test-lists/c3-notes-series.json +0 -5
  501. package/workspace/test-lists/calendar-time-page.json +0 -5
  502. package/workspace/test-lists/calpop.json +0 -4
  503. package/workspace/test-lists/console3-briefing.json +0 -9
  504. package/workspace/test-lists/console3-foundation.json +0 -9
  505. package/workspace/test-lists/console3-work-page.json +0 -9
  506. package/workspace/test-lists/premium-brief-parity.json +0 -9
  507. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  508. package/workspace/test-lists/report-structure-ui.json +0 -11
  509. package/workspace/test-lists/report-workspace-ui.json +0 -5
  510. package/workspace/test-lists/run3-a.json +0 -5
  511. package/workspace/test-lists/run3-d.json +0 -6
  512. package/workspace/test-lists/run4-c.json +0 -13
  513. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  514. package/workspace/test-lists/today-mentions-cards.json +0 -5
  515. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -1,821 +0,0 @@
1
- // pm/fixture.js — the prototype's seed data, transcribed verbatim.
2
- //
3
- // Source: "PMOS Workspace Prototype.dc.html", the <script data-dc-script> class
4
- // (lines 1007–2126). Every string here is copied from that file character for
5
- // character: the comparator diffs rendered text, so a reworded label is a bug.
6
- //
7
- // Pure data + pure functions. No DOM, no fetch, no state. Where the prototype
8
- // SYNTHESISES data (faux-shell replies, doc bodies, new
9
- // initiative records) the synthesis function is ported alongside the data so the
10
- // app derives exactly what the prototype derives.
11
- //
12
- // Line references in comments are into the prototype file.
13
-
14
- /* ────────────────────────────── colours ────────────────────────────── */
15
-
16
- // Component.C (line 1037) — the semantic constants the seed records embed.
17
- export const C = {
18
- pur: 'var(--purple)',
19
- mut: 'var(--muted-foreground)',
20
- wrn: 'var(--warning)',
21
- suc: 'var(--success)',
22
- inf: 'var(--info)',
23
- des: 'var(--destructive)',
24
- brand: 'var(--brand)',
25
- fg: 'var(--foreground)'
26
- };
27
-
28
- // line 1391
29
- export const wash = (c, p) => `color-mix(in oklab, ${c} ${p || 10}%, transparent)`;
30
-
31
- // Step dots (line 1388), session dots (1389), answer tones (1390), task dots (1719).
32
- export const DOT = { done: ['✓', C.suc], current: ['●', C.brand], pending: ['○', C.mut], blocked: ['✗', C.des] };
33
- export const SDOT = { working: ['●', C.suc], quiet: ['◐', C.wrn], needs: ['●', C.brand], blocked: ['✗', C.des], exited: ['○', C.mut] };
34
- export const TONE = { warn: C.wrn, bad: C.des, info: C.inf, ok: C.suc };
35
-
36
- // Literal, non-token colours. Panel 4 and the terminal are hard-coded in the
37
- // prototype (lines 1975–1978, 1984–1988, 2103) — do NOT tokenise them.
38
- export const TAB_COLORS = {
39
- activeBg: 'oklch(0.218 0.008 223.9)',
40
- activeBorder: 'oklch(1 0 0 / 14%)',
41
- idleBorder: 'oklch(1 0 0 / 7%)',
42
- activeText: '#f9fbfb',
43
- idleText: 'oklch(0.6 0.02 213)',
44
- // dot colour by tab kind; anything that is not term/task (i.e. doc) is blue.
45
- dot: { term: '#47cf79', task: '#b98cff', doc: '#2b7fff', view: '#f2b24a' }
46
- };
47
- export const TERM_COLORS = { prompt: '#47cf79', dim: '#6f7d81', text: '#c4ccce' };
48
- export const SCRATCH_SEND_COLOR = { on: 'oklch(0.85 0.01 214)', off: 'oklch(0.55 0.02 213)' };
49
-
50
- /* ────────────────────────────── workflows ────────────────────────────── */
51
-
52
- // Component.FLOWS (lines 1038–1043)
53
- export const FLOWS = {
54
- 'adlc-feature': ['intake', 'spec', 'contract', 'build', 'eval', 'accepted'],
55
- 'adlc-research': ['intake', 'explore', 'synthesize', 'decide'],
56
- 'health-upkeep': ['intake', 'fix', 'verify', 'accepted'],
57
- 'adlc-handoff': ['intake', 'spec', 'handoff', 'build', 'eval', 'accepted']
58
- };
59
-
60
- // A brand-new custom flow starts here (line 1488).
61
- export const NEW_FLOW_STAGES = ['intake', 'spec', 'build', 'accepted'];
62
-
63
- /* ─────────────────────── profiles / integrations ─────────────────────── */
64
-
65
- // Component.PROFILES (lines 1044–1047)
66
- export const PROFILES = [
67
- {
68
- id: 'claude-work',
69
- account: 'you@acme.com',
70
- mcp: ['jira', 'confluence', 'slack', 'google-workspace'],
71
- note: 'The only profile that can reach workspace MCP — Jira, Confluence, Slack, Google Workspace. Anything that touches company systems must run here.'
72
- },
73
- {
74
- id: 'claude-personal',
75
- account: 'you@gmail.com',
76
- mcp: [],
77
- note: 'No workspace MCP. Fine for local coding, research, and anything that never touches company systems.'
78
- }
79
- ];
80
-
81
- /* ────────────────────────────── knowledge ────────────────────────────── */
82
-
83
- // Component.KNOW (lines 1082–1087)
84
- export const KNOW = {
85
- D59: { grp: 'governance', d: 'unanchored work is rejected', badge: 'active', path: 'planning/decisions/D59.md', body: 'Every initiative must resolve an anchor upward to a KR or a health budget. Work with an empty parent_kr is rejected at intake — listed under "unanchored", never silently mixed into the board.', rels: [['supersedes', 'D12'], ['applies to', 'D33']] },
86
- D12: { grp: 'governance', d: 'soft warnings for unanchored work', badge: 'superseded', path: 'planning/decisions/D12.md', body: 'Unanchored initiatives get a warning banner but stay on the board. Superseded by D59 after the junk-drawer incident of May 2026.', rels: [['superseded by', 'D59']] },
87
- D41: { grp: 'workspace', d: 'the terminal stays dark in both themes', badge: 'active', path: 'planning/decisions/D41.md', body: 'Column 3 is xterm.js and keeps a dark palette in both themes. A terminal is a terminal, not a themed surface.', rels: [['informed by', 'D33']] },
88
- D33: { grp: 'workspace', d: 'derive, never store, panel state', badge: 'active', path: 'planning/decisions/D33.md', body: 'The initiative panel derives everything from files on disk at read time. No cached panel state — a wrong cache is worse than a slow read.', rels: [['informs', 'D41'], ['applied by', 'D59']] }
89
- };
90
-
91
- // Knowledge added by the atlas-mobile ingest (lines 1597–1601).
92
- export const INGESTED_KNOW = {
93
- 'M-ADR-7': { grp: 'mobile · ingested', d: 'offline-first sync queue', badge: 'ingested', path: 'docs/adr/0007-offline-sync.md', body: 'Imported from acme/atlas-mobile by repo scan. Writes queue locally and reconcile when the network returns. Ingested knowledge is proposed, not decided — review it, then accept or supersede.', rels: [] },
94
- 'M-ADR-12': { grp: 'mobile · ingested', d: 'crash budget — 2% of sessions', badge: 'ingested', path: 'docs/adr/0012-crash-budget.md', body: 'Imported from acme/atlas-mobile by repo scan. Crash rate above 2% of sessions freezes feature work until triaged. Review it, then accept or supersede.', rels: [] }
95
- };
96
-
97
- /* ───────────────────── repositories + board groups ───────────────────── */
98
-
99
- // allProds (line 1431) — the two repositories present before anything is added.
100
- export const PRODUCTS = [
101
- ['workspace', '7 initiatives', 'local'],
102
- ['atlas-crm', '2 initiatives', 'github']
103
- ];
104
-
105
- // The two repositories the add-product form can create (lines 1596, 1613).
106
- export const ADDABLE_PRODUCTS = {
107
- 'atlas-mobile': { id: 'atlas-mobile', sub: '2 initiatives', kind: 'github' },
108
- 'notes-cli': { id: 'notes-cli', sub: '0 initiatives', kind: 'local' }
109
- };
110
-
111
- // Add-product form defaults (line 1012).
112
- export const ADD_DEFAULTS = { addSrc: 'github', addRepo: 'github.com/acme/atlas-mobile', addPath: '~/code/notes-cli' };
113
-
114
- // Ingest logs (lines 1585–1616). `{repo}` / `{path}` interpolate the form value.
115
- export const INGEST_LOG_GITHUB = repo => [
116
- { t: '$ pmos product add ' + repo, c: 'var(--success)' },
117
- { t: 'clone … ok — 1,204 files', c: 'var(--muted-foreground)' },
118
- { t: 'scan planning/ … 2 initiative records found', c: 'var(--muted-foreground)' },
119
- { t: 'scan docs/adr/ … 2 ADRs imported → knowledge · mobile', c: 'var(--muted-foreground)' },
120
- { t: 'propose board … anchors guessed, not decided — confirm them', c: 'var(--warning)' },
121
- { t: 'done — product atlas-mobile added', c: 'var(--success)' }
122
- ];
123
- export const INGEST_LOG_LOCAL = path => [
124
- { t: '$ pmos product add ' + path, c: 'var(--success)' },
125
- { t: 'scan planning/ … nothing filed — a successful read of nothing', c: 'var(--muted-foreground)' },
126
- { t: 'done — product notes-cli added with an empty board', c: 'var(--success)' }
127
- ];
128
- export const INGEST_ALREADY = id => [{ t: id + ' already added — pick it on the board', c: 'var(--warning)' }];
129
-
130
- // ALLGROUPS (lines 1411–1424) — Objective → KR → Initiative, per repository.
131
- export const ALLGROUPS = {
132
- workspace: [
133
- { gid: 'O1', idc: C.fg, gname: 'PMOS has a trustworthy harness a PM can run an SDLC through', gct: '44', hasKr: true, krid: 'KR1', krname: 'P0 harness complete and PM-accepted', krct: '23', slugs: ['workspace-pm-spine', 'workspace-doc-editor', 'pmos-ui-research', 'initiative-kr-join', 'workspace-harness-tower'] },
134
- { gid: 'health:tech', idc: C.inf, gname: 'health budget — upkeep, not a bet', gct: '19', hasKr: false, slugs: ['workspace-shadcn-design-system'] },
135
- { gid: 'unanchored', idc: C.wrn, gname: 'no resolvable anchor — rejected work under D59', gct: '30', hasKr: false, slugs: ['agent-memory-research'] }
136
- ],
137
- 'atlas-crm': [
138
- { gid: 'O1', idc: C.fg, gname: 'CRM onboarding is self-serve by Q4', gct: '12', hasKr: true, krid: 'KR2', krname: 'import wizard shipped · under 2% failed imports', krct: '6', slugs: ['crm-import-wizard', 'crm-billing-sync'] }
139
- ],
140
- 'atlas-mobile': [
141
- { gid: 'ingested', idc: C.wrn, gname: 'proposed from repo scan — confirm anchors', gct: '2', hasKr: false, slugs: ['mob-onboarding-revamp', 'mob-crash-triage'] }
142
- ],
143
- 'notes-cli': []
144
- };
145
-
146
- // ensureUnanchored (line 1633) — the group a rejected new initiative lands in.
147
- export const unanchoredGroup = () => ({ gid: 'unanchored', dyn: true, idc: C.wrn, gname: 'no resolvable anchor — rejected work under D59', gct: '', hasKr: false, slugs: [] });
148
- // A user-filed objective (line 1650).
149
- export const userObjectiveGroup = (gid, gname) => ({ gid, dyn: true, idc: C.fg, gname, gct: '', hasKr: false, slugs: [] });
150
-
151
- /* ──────────────────────── the initiative records ──────────────────────── */
152
-
153
- // data() (lines 1088–1249). Ten records, verbatim.
154
- export const DATA = {
155
- 'workspace-pm-spine': {
156
- tag: 'The navigator becomes Objective → KR → Initiative', stage: 'build', flow: 'adlc-feature',
157
- pills: [{ t: 'feature', c: C.pur }, { t: 'q3-2026:o1:kr1', c: C.mut }, { t: 'flow adlc-feature', c: C.inf }],
158
- branch: 'initiative/workspace-pm-spine',
159
- answer: { tone: 'warn', text: 'Agree done_criteria + test_method BEFORE building' },
160
- steps: [
161
- { k: 'intake', s: 'done', t: 'anchored to q3-2026:o1:kr1' },
162
- { k: 'spec', s: 'done', t: 'PRD + rubric filed' },
163
- { k: 'contract', s: 'blocked', t: 'no run logged', action: 'agree done_criteria + test_method BEFORE building', cmd: 'planning/runs/agent-runs.jsonl' },
164
- { k: 'build', s: 'current', t: '4 commits on implementation paths' },
165
- { k: 'eval', s: 'pending', t: 'score against the rubric → evals.jsonl' },
166
- { k: 'accepted', s: 'pending', t: '' }],
167
- sessions: [{ name: 'spine build', st: 'working', label: 'working' }, { name: 'rubric fix', st: 'needs', label: 'needs you' }],
168
- links: [{ kind: 'research', label: 'terminal-workspace field notes', path: 'gdoc://workspace-pm-spine-research', st: 'auto · session' }, { kind: 'benchmark', label: 'latency baseline sheet', path: 'gdoc://workspace-pm-spine-benchmark', st: 'auto · session' }],
169
- arts: [{ role: 'PRD', path: 'planning/prd/workspace-pm-spine-prd.md', dest: { kind: 'confluence', target: 'PM / workspace-pm-spine-prd' } }, { role: 'RUBRIC', path: 'planning/evals/workspace-pm-spine-eval-rubric.md' }],
170
- eval: null, l2: ['build', '→ contract owed', C.wrn]
171
- },
172
- 'workspace-doc-editor': {
173
- tag: 'Edit planning docs without leaving the workspace', stage: 'intake', flow: 'adlc-feature',
174
- pills: [{ t: 'feature', c: C.pur }, { t: 'q3-2026:o1:kr1', c: C.mut }, { t: 'flow adlc-feature', c: C.inf }],
175
- branch: 'initiative/workspace-doc-editor',
176
- answer: { tone: 'bad', text: 'Clear 2 intake blockers — each has a concrete fix' },
177
- steps: [
178
- { k: 'intake', s: 'blocked', t: '✗ 2 blocked', action: 'set parent_kr (KR at WIP limit 3/3), then add acceptance criteria to the PRD', cmd: 'planning/initiatives/workspace-doc-editor.md' },
179
- { k: 'spec', s: 'done', t: 'PRD filed' },
180
- { k: 'contract', s: 'pending', t: '' }, { k: 'build', s: 'pending', t: '' },
181
- { k: 'eval', s: 'pending', t: '' }, { k: 'accepted', s: 'pending', t: '' }],
182
- sessions: [{ name: 'doc-editor scout', st: 'quiet', label: 'quiet 18m' }],
183
- arts: [{ role: 'PRD', path: 'planning/prd/workspace-doc-editor-prd.md' }],
184
- eval: null, l2: ['intake', '✗ 2 blocked', C.des]
185
- },
186
- 'pmos-ui-research': {
187
- tag: 'What PMs actually do all day in a terminal workspace', stage: 'intake', flow: 'adlc-research',
188
- pills: [{ t: 'research', c: C.pur }, { t: 'flow adlc-research', c: C.inf }], branch: null,
189
- answer: { tone: 'info', text: 'File the research brief — nothing is filed for this initiative yet.' },
190
- steps: [
191
- { k: 'intake', s: 'current', t: 'nothing filed yet — a successful read of nothing', action: 'file the research brief', cmd: 'planning/prd/pmos-ui-research-brief.md' },
192
- { k: 'explore', s: 'pending', t: '' }, { k: 'synthesize', s: 'pending', t: '' }, { k: 'decide', s: 'pending', t: '' }],
193
- sessions: [], noSess: 'No sessions — normal, not an error.',
194
- arts: [], eval: null, l2: ['intake', 'nothing filed', C.mut]
195
- },
196
- 'initiative-kr-join': {
197
- tag: 'Initiative↔KR join', stage: 'no record', flow: null,
198
- pills: [{ t: 'no record', c: C.wrn }], branch: null,
199
- noLadder: 'No initiative record on this board — the artifacts below are what the library can see; no loop position is claimed.',
200
- answer: { tone: 'warn', text: 'File an initiative record — artifacts exist, but no loop position is claimed.' },
201
- steps: [], sessions: [], noSess: 'No working tree is on initiative/initiative-kr-join — a normal state.',
202
- arts: [{ role: 'PRD', path: 'planning/prd/initiative-kr-join-prd.md' }, { role: 'RUBRIC', path: 'planning/evals/initiative-kr-join-eval-rubric.md' }, { role: 'DOC', path: 'planning/initiatives/initiative-kr-join.md' }],
203
- eval: null, l2: ['—', 'no record', C.wrn]
204
- },
205
- 'workspace-harness-tower': {
206
- readError: 'read failed — planning/initiatives/workspace-harness-tower.md: YAML frontmatter unparseable at line 3 (expected key: value, got "stage build"). Fix the file; this panel will not pretend it is empty.',
207
- l2: ['read failed', 'frontmatter unparseable', C.des]
208
- },
209
- 'workspace-shadcn-design-system': {
210
- tag: 'One token layer shared with the sibling product', stage: 'accepted', flow: 'health-upkeep',
211
- pills: [{ t: 'health:tech', c: C.inf }, { t: 'flow health-upkeep', c: C.inf }],
212
- branch: 'initiative/workspace-shadcn-design-system',
213
- answer: { tone: 'ok', text: 'Accepted — nothing owed. New work should be a new initiative.' },
214
- steps: [
215
- { k: 'intake', s: 'done', t: 'health budget — upkeep, not a bet' },
216
- { k: 'fix', s: 'done', t: 'ported radix-sera / mist' },
217
- { k: 'verify', s: 'done', t: 'scored 9/10 against the rubric' },
218
- { k: 'accepted', s: 'done', t: 'PM-accepted 2026-07-21' }],
219
- sessions: [], noSess: 'No sessions — accepted work has none. Normal.',
220
- arts: [{ role: 'PRD', path: 'planning/prd/workspace-shadcn-design-system-prd.md' }, { role: 'RUBRIC', path: 'planning/evals/workspace-shadcn-design-system-eval-rubric.md' }],
221
- eval: { pass: true, text: 'PASS — 9/10 · evals.jsonl #114 · 2026-07-21' }, l2: ['accepted', '', C.suc]
222
- },
223
- 'agent-memory-research': {
224
- tag: 'Rejected under D59 — unanchored work', stage: 'intake', flow: 'adlc-feature',
225
- pills: [{ t: 'unanchored', c: C.des }], branch: null,
226
- answer: { tone: 'bad', text: 'Anchor it: parent_kr is empty — unanchored work is rejected under D59' },
227
- steps: [
228
- { k: 'intake', s: 'blocked', t: '✗ rejected — no resolvable anchor', action: 'set parent_kr in planning/initiatives/agent-memory-research.md', cmd: 'planning/initiatives/agent-memory-research.md' },
229
- { k: 'spec', s: 'pending', t: '' }, { k: 'contract', s: 'pending', t: '' },
230
- { k: 'build', s: 'pending', t: '' }, { k: 'eval', s: 'pending', t: '' }, { k: 'accepted', s: 'pending', t: '' }],
231
- sessions: [], noSess: 'No sessions — rejected work cannot start one.',
232
- arts: [{ role: 'DOC', path: 'planning/initiatives/agent-memory-research.md' }],
233
- eval: null, l2: ['intake', 'rejected · no anchor', C.des]
234
- },
235
- 'crm-import-wizard': {
236
- tag: 'Spec owned here — build handed off to the app team on Jira', stage: 'build', flow: 'adlc-handoff',
237
- pills: [{ t: 'feature', c: C.pur }, { t: 'q3-2026:o1:kr2', c: C.mut }, { t: 'flow adlc-handoff', c: C.inf }, { t: '⇄ jira ATL-482', c: C.inf }],
238
- branch: null,
239
- answer: { tone: 'info', text: 'Nothing owed here — build is with the app team. Jira ATL-482: 3/7 stories done, synced 12:38.' },
240
- steps: [
241
- { k: 'intake', s: 'done', t: 'anchored to q3-2026:o1:kr2' },
242
- { k: 'spec', s: 'done', t: 'PRD + 7 user stories filed' },
243
- { k: 'handoff', s: 'done', t: 'PRD → Confluence · stories → Jira ATL-482' },
244
- { k: 'build', s: 'current', t: '3 of 7 stories done', src: 'jira' },
245
- { k: 'eval', s: 'pending', t: 'acceptance review when the epic closes', src: 'jira' },
246
- { k: 'accepted', s: 'pending', t: '' }],
247
- links: [
248
- { kind: 'jira', label: 'ATL-482 · import wizard epic', st: '3/7 done · synced 12:38', path: 'jira://ATL-482' },
249
- { kind: 'confluence', label: 'PM / CRM import wizard PRD', st: 'published · v4', path: 'confluence://PM/crm-import-wizard-prd' }],
250
- sessions: [], noSess: 'No sessions — the build is not on this machine. Status reads from Jira.',
251
- arts: [{ role: 'PRD', path: 'planning/prd/crm-import-wizard-prd.md' }, { role: 'STORIES', path: 'planning/prd/crm-import-wizard-stories.md' }],
252
- eval: null, l2: ['build', '⇄ on jira · 3/7 done', C.inf]
253
- },
254
- 'crm-billing-sync': {
255
- tag: 'Stripe → CRM invoice sync', stage: 'spec', flow: 'adlc-handoff',
256
- pills: [{ t: 'feature', c: C.pur }, { t: 'q3-2026:o1:kr2', c: C.mut }, { t: 'flow adlc-handoff', c: C.inf }],
257
- branch: null,
258
- answer: { tone: 'warn', text: 'Finish the user stories — handoff to Jira needs the full list.' },
259
- steps: [
260
- { k: 'intake', s: 'done', t: 'anchored to q3-2026:o1:kr2' },
261
- { k: 'spec', s: 'current', t: 'PRD drafted · stories 4/9 written', action: 'finish the user stories — handoff to Jira needs the full list', cmd: 'planning/prd/crm-billing-sync-stories.md' },
262
- { k: 'handoff', s: 'pending', t: '' },
263
- { k: 'build', s: 'pending', t: '', src: 'jira' },
264
- { k: 'eval', s: 'pending', t: '', src: 'jira' },
265
- { k: 'accepted', s: 'pending', t: '' }],
266
- sessions: [{ name: 'stories draft', st: 'needs', label: 'needs you' }],
267
- arts: [{ role: 'PRD', path: 'planning/prd/crm-billing-sync-prd.md' }],
268
- eval: null, l2: ['spec', 'stories 4/9', C.wrn]
269
- },
270
- 'mob-onboarding-revamp': {
271
- tag: 'Ingested from acme/atlas-mobile — anchor proposed, not confirmed', stage: 'intake', flow: 'adlc-feature',
272
- pills: [{ t: 'feature', c: C.pur }, { t: 'anchor? proposed', c: C.wrn }, { t: 'ingested', c: C.inf }],
273
- branch: null,
274
- answer: { tone: 'warn', text: 'Confirm the proposed anchor — the repo scan guessed it from the README, it does not decide.' },
275
- steps: [
276
- { k: 'intake', s: 'current', t: 'ingested · anchor guessed from repo scan', action: 'confirm parent_kr — the scan proposed an onboarding KR', cmd: 'planning/initiatives/mob-onboarding-revamp.md' },
277
- { k: 'spec', s: 'pending', t: '' }, { k: 'contract', s: 'pending', t: '' },
278
- { k: 'build', s: 'pending', t: '' }, { k: 'eval', s: 'pending', t: '' }, { k: 'accepted', s: 'pending', t: '' }],
279
- sessions: [], noSess: 'No sessions — ingested initiatives start quiet.',
280
- arts: [{ role: 'DOC', path: 'planning/initiatives/mob-onboarding-revamp.md' }],
281
- eval: null, l2: ['intake', 'anchor proposed — confirm', C.wrn]
282
- },
283
- 'mob-crash-triage': {
284
- tag: 'Crash rate 2.4% — over the 2% budget (M-ADR-12)', stage: 'fix', flow: 'health-upkeep',
285
- pills: [{ t: 'health:mobile', c: C.inf }, { t: 'flow health-upkeep', c: C.inf }, { t: 'ingested', c: C.inf }],
286
- branch: null,
287
- answer: { tone: 'warn', text: 'Crash rate over budget — M-ADR-12 freezes feature work until triaged.' },
288
- steps: [
289
- { k: 'intake', s: 'done', t: 'health budget — imported with the repo' },
290
- { k: 'fix', s: 'current', t: '2.4% vs 2.0% budget · top crash: sync queue', action: 'assign a builder agent to triage the top 3 crash signatures' },
291
- { k: 'verify', s: 'pending', t: '' }, { k: 'accepted', s: 'pending', t: '' }],
292
- sessions: [], arts: [],
293
- eval: null, l2: ['fix', '2.4% over budget', C.wrn]
294
- }
295
- };
296
-
297
- /* ────────────────────────────── documents ────────────────────────────── */
298
-
299
- // rawDocs() (lines 1250–1335). Built once, exactly as the prototype builds it:
300
- // four authored bodies, one generated page per KNOW entry (base KNOW only — the
301
- // ingested M-ADR pages fall through to the generic template in rawFor), and
302
- // evals.jsonl.
303
- export const RAW_DOCS = (() => {
304
- const out = {
305
- 'planning/prd/workspace-pm-spine-prd.md': `---
306
- path: planning/prd/workspace-pm-spine-prd.md
307
- role: PRD
308
- initiative: workspace-pm-spine
309
- ---
310
-
311
- # PRD: the workspace PM spine
312
-
313
- ## Problem
314
-
315
- The navigator lists repos and sessions, but the PM thinks in Objective → KR → Initiative. The spine should be the primary navigation, with repos and sessions hanging off initiatives.
316
-
317
- ## Done criteria
318
-
319
- - Column 1 renders the O/KR/Initiative ladder from planning/initiatives/*.md
320
- - Selecting an initiative derives workflow, evals, sessions, artifacts
321
- - Unanchored work is visibly rejected, never silently listed
322
- - A failed read renders red with the parse error, not an empty panel
323
-
324
- ## Test method
325
-
326
- Golden-file board fixtures: healthy, blocked, empty, no-record, unparseable. Screenshot diff per theme.`,
327
- 'planning/evals/workspace-pm-spine-eval-rubric.md': `---
328
- path: planning/evals/workspace-pm-spine-eval-rubric.md
329
- role: RUBRIC
330
- initiative: workspace-pm-spine
331
- ---
332
-
333
- # Eval rubric: workspace-pm-spine
334
-
335
- ## Rubric
336
-
337
- - Within 5s of selecting an initiative, the PM can state: where it is, what is next, what blocks it (3 pts)
338
- - Every blocked step names a concrete fix — a path, a skill, a command (3 pts)
339
- - Honest states: failed read is red with a reason; empty is calm (2 pts)
340
- - Both themes ship; terminal stays dark (2 pts)
341
-
342
- ## Verdict
343
-
344
- Append the scored run to planning/evals/evals.jsonl. No verdict recorded is not a pass.`
345
- };
346
- out['jira://ATL-482'] = `---
347
- path: jira://ATL-482
348
- role: JIRA EPIC
349
- profile: claude-work · mcp jira
350
- synced: 12:38
351
- ---
352
-
353
- # ATL-482 — CRM import wizard
354
-
355
- ## Stories
356
-
357
- - ATL-483 file upload + column mapping — done
358
- - ATL-484 dedupe rules — done
359
- - ATL-485 dry-run preview — done
360
- - ATL-486 error report export — in progress
361
- - ATL-487 rollback — todo
362
- - ATL-488 permissions — todo
363
- - ATL-489 telemetry — todo
364
-
365
- ## Sync
366
-
367
- Read-only mirror. Status flows Jira → PMOS. The epic is edited in Jira, not here.`;
368
- out['confluence://PM/crm-import-wizard-prd'] = `---
369
- path: confluence://PM/crm-import-wizard-prd
370
- role: CONFLUENCE PAGE
371
- profile: claude-work · mcp confluence
372
- published: v4 · 2026-07-28
373
- ---
374
-
375
- # PM / CRM import wizard PRD
376
-
377
- ## Handoff copy
378
-
379
- Published from planning/prd/crm-import-wizard-prd.md when spec completed. The repo file is the source of truth.
380
-
381
- ## Republish
382
-
383
- pmos publish prd crm-import-wizard — overwrites this page with the current repo version.`;
384
- Object.entries(KNOW).forEach(([id, k]) => {
385
- out[k.path] = `---\npath: ${k.path}\nrole: DECISION\nstatus: ${k.badge}\n---\n\n# ${id}: ${k.d}\n\n## Decision\n\n${k.body}`;
386
- });
387
- out['planning/evals/evals.jsonl'] = `---\npath: planning/evals/evals.jsonl\nrole: EVALS\nformat: append-only jsonl\n---\n\n# evals.jsonl — scored runs\n\n## Entries\n\n- #114 · workspace-shadcn-design-system · PASS 9/10 · 2026-07-21\n- #113 · workspace-pm-spine · attempt aborted — contract missing · 2026-07-19\n- #112 · pmos-navigator-v1 · PASS 8/10 · 2026-07-14\n\n## Rule\n\nA verdict exists only if a line exists here. No line, no pass.`;
388
- return out;
389
- })();
390
-
391
- /** rawFor (lines 1342–1349): saved edit → known doc → generated placeholder. */
392
- export function rawFor(tab, savedDocs = {}) {
393
- const saved = savedDocs[tab.path];
394
- if (saved != null) return saved;
395
- const known = RAW_DOCS[tab.path];
396
- if (known) return known;
397
- const base = tab.path.split('/').pop();
398
- return `---\npath: ${tab.path}\nrole: ${tab.role}\ninitiative: ${tab.slug || '—'}\n---\n\n# ${base}\n\nPrototype preview — in the product this renders the real file from disk.\n\nIf the file were missing or unreadable, this pane would say so in red rather than showing an empty page.`;
399
- }
400
-
401
- /* ────────────────────────── modes + titles ────────────────────────── */
402
-
403
- // modeTitle (line 1409) and detailTitle (line 1699): the headings of panel 2 and panel 3, for the modes and details that remain (R29).
404
- export const MODE_TITLES = { product: 'initiatives', workflow: 'workflows', validate: 'validate', today: 'today' };
405
- export const modeTitle = mode => MODE_TITLES[mode] || 'initiatives';
406
-
407
- // detailTitle (line 1699) — panel 3's heading per detail kind.
408
- export const DETAIL_TITLES = { init: 'initiative', flow: 'workflow', skill: 'skill', prof: 'claude profile', addprod: 'add product', new: 'file new' };
409
- export const detailTitle = kind => DETAIL_TITLES[kind] || 'detail';
410
-
411
- /* ──────────────────────── derivation: repos + board ──────────────────────── */
412
-
413
- /** allProds (line 1431) — seed repositories plus anything the PM added. */
414
- export function productsList(addedProducts = []) {
415
- return [...PRODUCTS, ...addedProducts.map(x => [x.id, x.sub, x.kind || 'github'])];
416
- }
417
-
418
- /** Repo row presentation fields (lines 1432–1438), minus the click handler. */
419
- export function repoRow([id, sub, kind]) {
420
- return {
421
- name: id, sub, kind,
422
- kindGlyph: kind === 'github' ? '⎇' : '▤',
423
- kindLabel: kind === 'github' ? 'github' : 'local',
424
- displaySub: (kind === 'github' ? 'github' : 'local') + ' · ' + sub
425
- };
426
- }
427
-
428
- /** The initiative selected when a repository is picked (line 1440). */
429
- export function firstSlugOf(product) {
430
- const g0 = (ALLGROUPS[product] || [])[0];
431
- return g0 ? g0.slugs[0] : null;
432
- }
433
-
434
- /** DATA merged with user-filed initiatives (line 1392). */
435
- export const allRecords = (userInits = {}) => ({ ...DATA, ...userInits });
436
-
437
- /** One record (line 1701). */
438
- export const recordFor = (slug, userInits = {}) => allRecords(userInits)[slug];
439
-
440
- /** The default selection (line 1397). */
441
- export const defaultSlug = product => (COCKPIT_SEED ? (SEED_DEFAULTS[product] || null) : product === 'atlas-crm' ? 'crm-import-wizard' : 'workspace-pm-spine');
442
-
443
- /** sessionsOf (line 1398) — authored sessions plus any started this session. */
444
- export function sessionsOf(slug, { userInits = {}, extraSess = {} } = {}) {
445
- const i = allRecords(userInits)[slug];
446
- if (!i || i.readError) return [];
447
- return [...(i.sessions || []), ...(extraSess[slug] || [])];
448
- }
449
-
450
- /** runningCount (line 2050) — sessions that are working or need the PM. */
451
- export function countRunning({ userInits = {}, extraSess = {} } = {}) {
452
- let running = 0;
453
- Object.keys(allRecords(userInits)).forEach(slug => {
454
- sessionsOf(slug, { userInits, extraSess }).forEach(x => { if (x.st === 'working' || x.st === 'needs') running++; });
455
- });
456
- return running;
457
- }
458
-
459
- /**
460
- * GROUPS (lines 1425–1430) — the board's Objective/KR groups for a repository,
461
- * with user-filed groups, user KRs and user-filed initiatives folded in.
462
- */
463
- export function groupsFor(product, { userGroups = {}, userKrs = {}, addedInits = {} } = {}) {
464
- const base = ALLGROUPS[product] || ALLGROUPS.workspace;
465
- return [...base, ...(userGroups[product] || [])].map(g => {
466
- const extra = addedInits[product + '|' + g.gid] || [];
467
- const kr = userKrs[product + '|' + g.gid];
468
- const slugs2 = [...g.slugs, ...extra];
469
- return {
470
- ...g, slugs: slugs2,
471
- ...(kr ? { hasKr: true, krid: kr.krid, krname: kr.krname, krct: String(slugs2.length) } : {}),
472
- gct: g.dyn ? String(slugs2.length) : g.gct
473
- };
474
- });
475
- }
476
-
477
- /** Group name truncation (line 1456). */
478
- export const shortName = gname => (gname.length > 34 ? gname.slice(0, 34).trim() + '…' : gname);
479
-
480
- /**
481
- * Search-filtered groups (lines 1448–1458). Returns the surviving groups with
482
- * their filtered slug list, plus the total number of initiative rows shown.
483
- * `q` must already be lower-cased.
484
- */
485
- export function visibleGroups(groups, q) {
486
- let total = 0;
487
- const out = groups.map(g => {
488
- const slugs = g.slugs.filter(s => !q || s.includes(q));
489
- total += slugs.length;
490
- return { ...g, slugs, isEmpty: slugs.length === 0, gshort: shortName(g.gname) };
491
- }).filter(g => g.slugs.length > 0 || (g.dyn && !q));
492
- return { groups: out, total };
493
- }
494
-
495
- /**
496
- * Search hits — "matches elsewhere" (lines 1459–1466). Handlers are returned as
497
- * descriptors so this stays pure: `{type:'doc'|'term', …}`.
498
- */
499
- export function searchHits(q, { userInits = {}, extraSess = {} } = {}) {
500
- if (!q) return [];
501
- const DATA_ALL = allRecords(userInits);
502
- const hits = [];
503
- Object.keys(DATA_ALL).forEach(slug => {
504
- (DATA_ALL[slug].arts || []).forEach(a => {
505
- if (a.path.toLowerCase().includes(q)) hits.push({ kind: 'artifact · ' + a.role, label: a.path, act: { type: 'doc', slug, path: a.path, role: a.role } });
506
- });
507
- sessionsOf(slug, { userInits, extraSess }).forEach(s => {
508
- if (s.name.toLowerCase().includes(q)) hits.push({ kind: 'session · ' + slug, label: s.name + ' · ' + s.label, act: { type: 'term', slug, sess: s } });
509
- });
510
- });
511
- return hits.slice(0, 8);
512
- }
513
-
514
- /** slugProduct (lines 1963–1965) — which repository owns each initiative slug. */
515
- export function slugProductMap(addedInits = {}) {
516
- const map = {};
517
- Object.entries(ALLGROUPS).forEach(([prod, gs]) => (gs || []).forEach(g => (g.slugs || []).forEach(s => { map[s] = prod; })));
518
- Object.entries(addedInits).forEach(([key, arr]) => { const prod = key.split('|')[0]; (arr || []).forEach(s => { map[s] = prod; }); });
519
- return map;
520
- }
521
-
522
- /** flowUse (line 1480) — which initiatives use each workflow. */
523
- export function flowUse(userInits = {}) {
524
- const use = {};
525
- Object.entries(allRecords(userInits)).forEach(([slug, i]) => { if (i.flow) (use[i.flow] = use[i.flow] || []).push(slug); });
526
- return use;
527
- }
528
-
529
- /* ─────────────────── derivation: detail ─────────────────── */
530
-
531
- /** Terminal tab id (line 1399). */
532
- export const termTabId = (slug, sessName) => 'term:' + slug + ':' + sessName;
533
- /** Doc tab id (line 1400). */
534
- export const docTabId = path => 'doc:' + path;
535
-
536
- /** The step the answer line points at (line 1707): first blocked, else current. */
537
- export function targetStepIndex(steps) {
538
- let ti = steps.findIndex(r => r.s === 'blocked');
539
- if (ti < 0) ti = steps.findIndex(r => r.s === 'current');
540
- return ti;
541
- }
542
-
543
- /**
544
- * Footer line (line 1805) / read-error footer (line 1704).
545
- *
546
- * `asOf` defaults to the prototype's literal so the fixture render stays byte-identical to the
547
- * design. In REAL mode the caller passes the time the record was READ — stamped in data.js when
548
- * `/api/initiative` answered — because this is the PROVENANCE line, the one place on the panel whose
549
- * whole job is to say where the reading came from and when. Shipping a hard-coded 12:41:03 there
550
- * stated a time that was never measured, on the line least entitled to do so. The same principle the
551
- * PRD applied to the sync panel: identical to the design in shape, never in a claim the app cannot
552
- * back.
553
- *
554
- * `null` is a THIRD case, distinct from both: a real record the app has not hydrated yet. It has no
555
- * read time, so the line reports that instead of falling back to the design's literal — which is how
556
- * a fabricated timestamp would get back onto the screen through the default argument.
557
- */
558
- export function branchLine(record, asOf = '12:41:03') {
559
- const when = asOf ? `as of ${asOf}` : 'not read yet';
560
- if (record && record.readError) return `read failed · ${when}`;
561
- return record && record.branch ? `derived on ${record.branch} · ${when}` : `no working tree · ${when}`;
562
- }
563
-
564
- /** Eval row (lines 1773–1774) — no verdict is not a pass. */
565
- export function evalLine(record) {
566
- return {
567
- color: record.eval && record.eval.pass ? C.suc : C.wrn,
568
- text: record.eval ? record.eval.text : 'no verdict recorded — this is not a pass'
569
- };
570
- }
571
-
572
- /** Default sessions note (line 1777). */
573
- export const noSessionsText = record => record.noSess || 'No sessions on this initiative — normal, not an error.';
574
-
575
- /* ────────────────────── derivation: links + artifacts ────────────────────── */
576
-
577
- /** Artifact key (line 1779). */
578
- export const artKey = (slug, path) => slug + '|' + path;
579
-
580
- /** linkArt (lines 1337–1341) — the destination a link records. */
581
- export function linkArtDest(key, kind) {
582
- const base = key.split('|')[1].split('/').pop().replace('.md', '');
583
- const target = kind === 'confluence' ? 'PM / ' + base : kind === 'jira' ? 'ATL epic · ' + base : base;
584
- return { kind: kind === 'google' ? 'google doc' : kind, target };
585
- }
586
-
587
- /** The three sources an artifact can be linked to (line 1786). */
588
- export const ART_LINK_SRCS = [{ l: 'Confluence', kind: 'confluence' }, { l: 'Jira', kind: 'jira' }, { l: 'Google Doc', kind: 'google' }];
589
- /** The three sources a reference link can come from (line 1798). */
590
- export const LINK_SRCS = [{ l: 'Jira epic', src: 'jira' }, { l: 'Confluence', src: 'confluence' }, { l: 'Google Doc', src: 'google' }];
591
-
592
- /** The sync panel's difference summary (line 1790). */
593
- export const artDiffText = dest => 'repo file is the source. read ' + (dest ? dest.kind : '') + ' — 2 sections differ (Acceptance Criteria, Rollout). Nothing written yet.';
594
- /** The two approval outcomes (lines 1791–1792). */
595
- export const artSyncPushed = dest => ({ color: 'var(--success)', text: 'pushed · repo → ' + dest.kind + ' · in sync 12:41' });
596
- export const artSyncPulled = dest => ({ color: 'var(--warning)', text: 'pulled · ' + dest.kind + ' → repo · file updated' });
597
-
598
- /* addLink (lines 1757–1766) — PROTOTYPE TRANSCRIPTION ONLY. It has no caller, and must not gain one.
599
- *
600
- * This is the helper the whole workspace-external-linking initiative was opened about. It returns
601
- * `{kind:'jira epic', label:'ATL-501 · <slug>', path:'jira://ATL-501', st:'connected'}` — a Jira key
602
- * counted up from the constant 501, a label built from the initiative slug, and the word `connected`
603
- * on a row nothing had read. panel-detail.js called it on every + click and wrote the result to
604
- * `initiative-links.jsonl`, so PMOS accumulated references to epics that do not exist, rendered in
605
- * the same visual grammar it uses for facts.
606
- *
607
- * WHY IT IS STILL HERE, WHICH IS A REAL TENSION AND NOT AN OVERSIGHT. The initiative's rubric asks
608
- * for the fabricating helpers to be REMOVED rather than bypassed, and deleting this function is the
609
- * literal reading. But this module is a TRANSCRIPTION of the prototype, and fixture-parity.test.mjs
610
- * exists to pin it line-for-line — deleting the function deletes that suite's assertion, and the
611
- * same rubric forbids weakening an assertion to make a change pass. Both rules are right and they
612
- * point opposite ways.
613
- *
614
- * The property that actually matters is not this function's existence; it is that nothing in real
615
- * mode can reach it. So it stays, as the pinned record of what the prototype drew, and the guarantee
616
- * is enforced mechanically instead of by deletion: pm-detail-test.js asserts that no module outside
617
- * this file references `makeLink`. If a later change wires it back up, that test fails and names it.
618
- *
619
- * The seeded rows below (`ATL-482` and its siblings) are the same case and are correct: a prototype
620
- * draws specimens. They are rendered in FIXTURE mode only and never reach the real store.
621
- */
622
- export function makeLink(slug, src, existing = []) {
623
- if (src === 'jira') {
624
- const num = 501 + existing.filter(x => x.kind === 'jira epic').length;
625
- return { kind: 'jira epic', label: 'ATL-' + num + ' · ' + slug, path: 'jira://ATL-' + num, st: 'connected' };
626
- }
627
- if (src === 'confluence') return { kind: 'confluence', label: 'PM / ' + slug, path: 'confluence://PM/' + slug, st: 'page' };
628
- return { kind: 'google doc', label: slug + ' brief', path: 'gdoc://' + slug + '-brief', st: 'doc' };
629
- }
630
-
631
- /* ────────────────────────── profile note strings ────────────────────────── */
632
-
633
- // panel 3 start-a-session note (line 1800)
634
- export const sessionProfileNote = id => (id === 'claude-work'
635
- ? 'claude-work — workspace MCP live: jira · confluence · slack · google-workspace'
636
- : 'claude-personal — no workspace MCP; the session cannot touch Jira or Confluence');
637
- /* ─────────────────────── the faux shell (fixture only) ─────────────────────── */
638
-
639
- /** The five lines a terminal pane opens with (lines 1983–1989). */
640
- export function termBaseLines(tab) {
641
- return [
642
- { t: 'root@vm:~/pmos$ pmos attach --initiative ' + tab.slug + ' --session "' + tab.sess + '"', c: TERM_COLORS.prompt },
643
- { t: 'attached · state: ' + (tab.state || 'working') + ' · scrollback restored', c: TERM_COLORS.dim },
644
- { t: 'profile: ' + (tab.profile || 'claude-work') + (tab.profile === 'claude-personal' ? ' · mcp: none' : ' · mcp: jira confluence slack gworkspace'), c: TERM_COLORS.dim },
645
- { t: 'agent: reading planning/prd/' + tab.slug + '-prd.md', c: TERM_COLORS.text },
646
- { t: 'agent: working — last output 41s ago', c: TERM_COLORS.text }
647
- ];
648
- }
649
-
650
- /**
651
- * The fake-shell command table (lines 1996–2004). Returns the reply string, or
652
- * null for `clear` (which empties the history instead of printing).
653
- */
654
- export function fauxShellReply(v, tab) {
655
- return v === 'help'
656
- ? 'commands: pmos status · pmos profile · pmos run <skill> · pmos attach · ls planning/ · clear'
657
- : v === 'clear' ? null
658
- : v === 'pmos profile' ? 'profile ' + (tab.profile || 'claude-work') + (tab.profile === 'claude-personal' ? ' · mcp: none — pick a profile when starting a session, not mid-session' : ' · mcp: jira confluence slack gworkspace')
659
- : v === 'pmos status' ? 'initiative ' + tab.slug + ' · session "' + tab.sess + '" · ' + (tab.state || 'working')
660
- : v.startsWith('pmos run ') ? 'running ' + v.slice(9) + ' … ok — logged to planning/runs/agent-runs.jsonl'
661
- : v.startsWith('ls') ? 'initiatives/ prd/ evals/ runs/ decisions/ workflows/ scheduled/'
662
- : v.startsWith('pmos') ? 'pmos: ok — logged to planning/runs/agent-runs.jsonl'
663
- : 'sh: ' + v.split(' ')[0] + ': wired to a fake shell in this prototype';
664
- }
665
-
666
- /** The echoed prompt line for a typed command (line 2005). */
667
- export const termEcho = v => ({ t: 'root@vm:~/pmos$ ' + v, c: TERM_COLORS.prompt });
668
- /** Scratchpad → terminal paste (lines 2107–2108). */
669
- export function scratchLines(text) {
670
- const lines = text.split('\n').filter(Boolean).map(l => ({ t: 'root@vm:~/pmos$ ' + l, c: TERM_COLORS.prompt }));
671
- return [...lines, { t: 'pmos: ' + lines.length + ' line' + (lines.length > 1 ? 's' : '') + ' pasted from scratchpad', c: TERM_COLORS.dim }];
672
- }
673
- /** The copy payload for a terminal tab (line 2114). */
674
- export const termCopyText = tab => 'pmos attach --initiative ' + tab.slug;
675
-
676
- /* ────────────────────────── markdown + diff ────────────────────────── */
677
-
678
- /** mdParse (lines 1350–1365) — frontmatter, H1 title, H2 blocks, lists, paras. */
679
- export function mdParse(md) {
680
- const lines = md.split('\n'); let i = 0; const fm = [];
681
- if (lines[0] === '---') {
682
- i = 1;
683
- while (i < lines.length && lines[i] !== '---') {
684
- const ix = lines[i].indexOf(':');
685
- if (ix > 0) fm.push({ k: lines[i].slice(0, ix).trim(), v: lines[i].slice(ix + 1).trim() });
686
- i++;
687
- }
688
- i++;
689
- }
690
- let title = ''; const blocks = []; let list = null, para = [];
691
- const fp = () => { if (para.length) { blocks.push({ isP: true, p: para.join(' ') }); para = []; } };
692
- const fl = () => { if (list) { blocks.push({ isList: true, items: list }); list = null; } };
693
- for (; i < lines.length; i++) {
694
- const l = lines[i];
695
- if (l.startsWith('# ')) { fp(); fl(); title = l.slice(2); }
696
- else if (l.startsWith('## ')) { fp(); fl(); blocks.push({ isH: true, h: l.slice(3) }); }
697
- else if (l.startsWith('- ')) { fp(); if (!list) list = []; list.push(l.slice(2)); }
698
- else if (!l.trim()) { fp(); fl(); }
699
- else para.push(l);
700
- }
701
- fp(); fl();
702
- return { title, fm, blocks };
703
- }
704
-
705
- /** diffLines (lines 1366–1379) — LCS line diff, coloured rows. */
706
- export function diffLines(a, b) {
707
- const A = a.split('\n'), B = b.split('\n'), n = A.length, m = B.length;
708
- const L = Array.from({ length: n + 1 }, () => new Array(m + 1).fill(0));
709
- for (let i = n - 1; i >= 0; i--) for (let j = m - 1; j >= 0; j--) L[i][j] = A[i] === B[j] ? L[i + 1][j + 1] + 1 : Math.max(L[i + 1][j], L[i][j + 1]);
710
- const out = []; let i = 0, j = 0;
711
- const rem = t => out.push({ t: '− ' + t, c: 'var(--destructive)', bg: 'color-mix(in oklab, var(--destructive) 9%, transparent)' });
712
- const add = t => out.push({ t: '+ ' + t, c: 'var(--success)', bg: 'color-mix(in oklab, var(--success) 9%, transparent)' });
713
- while (i < n && j < m) {
714
- if (A[i] === B[j]) { out.push({ t: ' ' + (A[i] || ' '), c: 'var(--muted-foreground)', bg: 'transparent' }); i++; j++; }
715
- else if (L[i + 1][j] >= L[i][j + 1]) { rem(A[i]); i++; } else { add(B[j]); j++; }
716
- }
717
- while (i < n) { rem(A[i]); i++; }
718
- while (j < m) { add(B[j]); j++; }
719
- return out;
720
- }
721
-
722
- /** The row a clean diff shows (line 2037). */
723
- export const NO_DIFF_ROW = { t: 'no changes — edit the file to see a diff', c: 'var(--muted-foreground)', bg: 'transparent' };
724
-
725
- /** Raw-mode line colouring (line 2034). */
726
- export function rawLine(l) {
727
- return {
728
- t: l || ' ',
729
- c: l.startsWith('#') ? 'var(--brand)' : (l.startsWith('---') || l.includes(': ') && !l.startsWith('- ') ? 'var(--muted-foreground)' : (l.startsWith('- ') ? 'var(--foreground)' : 'var(--muted-foreground)')),
730
- w: l.startsWith('#') ? '600' : '400'
731
- };
732
- }
733
-
734
- /* ──────────────────── derivation: a newly filed initiative ──────────────────── */
735
-
736
- /**
737
- * The record the "file new · initiative" form synthesises (lines 1659–1670).
738
- * `group` is the anchor group (undefined when unanchored); `flowsMap` is the
739
- * live workflow map so a custom flow produces the right stage list.
740
- */
741
- export function newInitiativeRecord({ slug, anchored, group, flow, flowsMap = FLOWS }) {
742
- const stages = flowsMap[flow] || flowsMap['adlc-feature'];
743
- return {
744
- tag: anchored ? 'Filed just now — nothing else derived yet' : 'Rejected under D59 — unanchored work',
745
- stage: 'intake', flow, branch: null,
746
- pills: anchored
747
- ? [{ t: 'feature', c: C.pur }, { t: group ? (group.hasKr ? group.gid + ':' + group.krid : group.gid).toLowerCase() : '', c: C.mut }, { t: 'flow ' + flow, c: C.inf }]
748
- : [{ t: 'unanchored', c: C.des }],
749
- answer: anchored
750
- ? { tone: 'info', text: 'Intake is clean — file the spec next (run write-prd).' }
751
- : { tone: 'bad', text: 'Anchor it: parent_kr is empty — unanchored work is rejected under D59' },
752
- steps: stages.map((k, i) => i === 0
753
- ? {
754
- k, s: anchored ? 'current' : 'blocked',
755
- t: anchored ? 'filed just now — a successful read of almost nothing' : '✗ rejected — no resolvable anchor',
756
- action: anchored ? 'file the spec — run write-prd' : 'set parent_kr in planning/initiatives/' + slug + '.md',
757
- cmd: 'planning/initiatives/' + slug + '.md'
758
- }
759
- : { k, s: 'pending', t: '' }),
760
- sessions: [], noSess: anchored ? 'No sessions yet — normal for fresh work.' : 'No sessions — rejected work cannot start one.',
761
- arts: [{ role: 'DOC', path: 'planning/initiatives/' + slug + '.md' }], eval: null,
762
- l2: anchored ? ['intake', 'filed just now', C.mut] : ['intake', 'rejected · no anchor', C.des]
763
- };
764
- }
765
-
766
- /** File-new form: the anchor row shown for "no anchor" (line 1629). */
767
- export const NO_ANCHOR_ROW = { label: 'none', sub: 'no anchor — rejected under D59' };
768
- /** File-new: the create button label per type (line 1644). */
769
- export const CREATE_LABELS = { obj: '+ file objective', kr: '+ file key result', init: '+ file initiative' };
770
- /** File-new: the type chips (line 1637). */
771
- export const NEW_TYPES = [['obj', 'objective'], ['kr', 'key result'], ['init', 'initiative']];
772
- /** Add-product: the source chips (line 1577). */
773
- export const ADD_SOURCES = [['github', 'github repo'], ['local', 'local folder']];
774
-
775
- /* ────────────────────────────── the bundle ────────────────────────────── */
776
-
777
- /**
778
- * FIXTURE — every piece of seed data in one object, for `data.js` to normalise
779
- * and for fixture mode to load. The derivation helpers above are separate named
780
- * exports; they are needed in normal mode too.
781
- */
782
- export const FIXTURE = {
783
- C, DOT, SDOT, TONE,
784
- FLOWS, PROFILES, KNOW, INGESTED_KNOW,
785
- PRODUCTS, ADDABLE_PRODUCTS, ADD_DEFAULTS, ALLGROUPS, DATA, RAW_DOCS,
786
- MODE_TITLES, DETAIL_TITLES,
787
- TAB_COLORS, TERM_COLORS, SCRATCH_SEND_COLOR,
788
- };
789
-
790
- export default FIXTURE;
791
-
792
-
793
- /* ───────────── the cockpit mockup's seed (`?fixture=cockpit`) ─────────────
794
- * planning/design/cockpit-mockup/WsA.dc.html draws three repositories and one initiative in detail. The seed is applied by
795
- * mutating the exports above in place, once, so every reader (panels, parity script) sees one set of data. It is the
796
- * mockup's fake data and nothing else; no value here is read from a repository. */
797
- const COCKPIT_SEED = (() => { try { return new URLSearchParams(location.search).get('fixture') === 'cockpit'; } catch { return false; } })();
798
- const SEED_DEFAULTS = { microsites: 'ooh-weather-expansion', pmos: 'cockpit-terminal-mod', 'scarlet': 'scarlet-onboarding' };
799
- if (COCKPIT_SEED) {
800
- PRODUCTS.splice(0, PRODUCTS.length, ['microsites', '6', 'github'], ['pmos', '3', 'local'], ['scarlet', '1', 'github']);
801
- for (const k of Object.keys(ALLGROUPS)) delete ALLGROUPS[k];
802
- ALLGROUPS.microsites = [{ gid: 'O2', idc: C.fg, gname: 'Microsites ship on time', gct: '6', hasKr: true, krid: 'KR1', krname: 'q3-2026', krct: '6',
803
- slugs: ['ooh-weather-expansion', 'psle-paywall-revamp', 'smrt-news-feed', 'lightbox-ga-tagging', 'login-metric-tagging', 'shortlink-redirects'] }];
804
- ALLGROUPS.pmos = [{ gid: 'health:tech', idc: C.inf, gname: 'health budget', gct: '3', hasKr: false, slugs: ['cockpit-terminal-mod', 'workspace-cockpit-nav', 'kit-publish'] }];
805
- ALLGROUPS['scarlet'] = [{ gid: 'O1', idc: C.fg, gname: 'Onboarding', gct: '1', hasKr: false, slugs: ['scarlet-onboarding'] }];
806
- for (const k of Object.keys(DATA)) delete DATA[k];
807
- const mk = (tag, stage, steps, extra) => ({ tag, stage, flow: 'adlc-feature', pills: [{ t: 'feature', c: C.pur }, { t: 'q3-2026 · O2 · KR1', c: C.mut }], branch: null,
808
- answer: { tone: 'info', text: tag }, steps, sessions: [], arts: [], eval: null, l2: [stage, '', C.mut], ...(extra || {}) });
809
- const oneStep = (k, s) => [{ k, s, t: '' }];
810
- DATA['ooh-weather-expansion'] = mk('OOH weather microsite: add regional forecast units', 'eval', [
811
- { k: 'spec', s: 'done', t: '' }, { k: 'build', s: 'done', t: '' }, { k: 'eval', s: 'blocked', t: '' }, { k: 'accepted', s: 'pending', t: '' }], {
812
- pills: [{ t: 'feature', c: C.mut }, { t: 'q3-2026 · O2 · KR1', c: C.mut }, { t: '⇄ Jira OOH-212', c: C.mut }],
813
- blocker: { label: 'Merge', evidence: 'needs a grant for PR 41', next: '' },
814
- sessions: [{ name: 'claude · merge PR 41', st: 'working', label: 'working' }, { name: 'review run', st: 'working', label: 'working' }],
815
- arts: [{ role: 'PRD', path: 'planning/prd/ooh-weather-expansion-prd.md', dest: null }] });
816
- DATA['psle-paywall-revamp'] = mk('PSLE paywall revamp', 'accepted', oneStep('accepted', 'pending'));
817
- DATA['smrt-news-feed'] = mk('SMRT news feed', 'build', oneStep('build', 'current'));
818
- for (const id of ['lightbox-ga-tagging', 'login-metric-tagging', 'shortlink-redirects']) DATA[id] = mk(id, 'accepted', oneStep('accepted', 'done'));
819
- for (const id of ['cockpit-terminal-mod', 'workspace-cockpit-nav', 'scarlet-onboarding']) DATA[id] = mk(id, 'spec', oneStep('spec', 'blocked'));
820
- DATA['kit-publish'] = mk('kit-publish', 'accepted', oneStep('accepted', 'pending'));
821
- }