create-pmos 0.553.0 → 0.554.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 (175) hide show
  1. package/package.json +20 -14
  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-board-test.js +4 -4
  7. package/workspace/briefing-premium-initiative-test.js +2 -2
  8. package/workspace/briefing-premium-test.js +1 -1
  9. package/workspace/changelog.json +19 -0
  10. package/workspace/chat-asks-test.js +5 -5
  11. package/workspace/ev-everywhere-test.js +2 -2
  12. package/workspace/goals-clear-ui-test.js +1 -1
  13. package/workspace/guide/agent-capabilities.md +31 -31
  14. package/workspace/guide/claude-proposes.md +68 -68
  15. package/workspace/guide/cli.md +22 -22
  16. package/workspace/guide/cloud.md +3 -3
  17. package/workspace/guide/home.md +38 -38
  18. package/workspace/guide/index.md +5 -5
  19. package/workspace/guide/intelligence-okr-goals.md +4 -4
  20. package/workspace/guide/layout.md +23 -23
  21. package/workspace/guide/notes.md +8 -8
  22. package/workspace/guide/programs.md +17 -17
  23. package/workspace/guide/reports.md +16 -16
  24. package/workspace/guide/settings-and-switches.md +37 -37
  25. package/workspace/guide/statuses.md +3 -3
  26. package/workspace/home-other-product-test.js +8 -8
  27. package/workspace/home-pill-test.js +3 -3
  28. package/workspace/home-rows-test.js +7 -7
  29. package/workspace/intel-report-ui-test.js +1 -1
  30. package/workspace/intelligence-gaps-ui-test.js +2 -2
  31. package/workspace/lib/agent-roles.js +1 -1
  32. package/workspace/lib/autonomy.js +1 -1
  33. package/workspace/lib/bg-queue.js +1 -1
  34. package/workspace/lib/briefing-premium-agent.js +2 -2
  35. package/workspace/lib/decision-memory.js +2 -2
  36. package/workspace/lib/driver-decide.js +2 -2
  37. package/workspace/lib/driver.js +6 -2
  38. package/workspace/lib/folder-needs.js +1 -1
  39. package/workspace/lib/goal-chat.js +5 -5
  40. package/workspace/lib/goal-watch.js +1 -1
  41. package/workspace/lib/grill-runs.js +5 -5
  42. package/workspace/lib/idle-lab.js +5 -5
  43. package/workspace/lib/impact-runs.js +2 -2
  44. package/workspace/lib/job-graph.js +2 -2
  45. package/workspace/lib/metric-draft-runs.js +4 -4
  46. package/workspace/lib/metric-read-runs.js +5 -5
  47. package/workspace/lib/news-for-you.js +1 -1
  48. package/workspace/lib/proposal-runs.js +6 -6
  49. package/workspace/lib/refresh.js +1 -1
  50. package/workspace/lib/routes-board-premium.js +1 -1
  51. package/workspace/lib/routes-goal-status.js +4 -4
  52. package/workspace/lib/routes-impact.js +1 -1
  53. package/workspace/lib/routes-insight-moves.js +1 -1
  54. package/workspace/lib/routes-loose.js +2 -2
  55. package/workspace/lib/routes-mentions.js +1 -1
  56. package/workspace/lib/routes-metric-drafts.js +9 -9
  57. package/workspace/lib/routes-proposals.js +8 -8
  58. package/workspace/lib/routes-ready-reports.js +1 -1
  59. package/workspace/lib/routes-slash.js +1 -1
  60. package/workspace/lib/source-heal.js +3 -3
  61. package/workspace/lib/state-root.js +22 -1
  62. package/workspace/lib/task-items.js +1 -1
  63. package/workspace/lib/task-links.js +2 -2
  64. package/workspace/lib/today.js +2 -2
  65. package/workspace/live-pill-round-test.js +1 -1
  66. package/workspace/metric-drafts-ui-test.js +1 -1
  67. package/workspace/milestone-suggest-test.js +5 -5
  68. package/workspace/news-viewers-test.js +3 -3
  69. package/workspace/okr-goals-ui-test.js +1 -1
  70. package/workspace/package-lock.json +2 -2
  71. package/workspace/package.json +1 -1
  72. package/workspace/premium-chat-chart-tab-test.js +1 -1
  73. package/workspace/premium-chat-context-test.js +4 -4
  74. package/workspace/premium-chat-goal-setup-test.js +3 -3
  75. package/workspace/premium-chat-goal-view-test.js +1 -1
  76. package/workspace/premium-chat-line-test.js +6 -6
  77. package/workspace/premium-chat-notes-test.js +4 -4
  78. package/workspace/premium-chat-report-tab-test.js +4 -4
  79. package/workspace/premium-rec-now-test.js +2 -2
  80. package/workspace/public/pm/batch-press.js +4 -4
  81. package/workspace/public/pm/bd-fc-card.js +1 -1
  82. package/workspace/public/pm/bd-next.js +10 -10
  83. package/workspace/public/pm/bd-prog-panel.js +5 -5
  84. package/workspace/public/pm/chat-ask.js +1 -1
  85. package/workspace/public/pm/chat-context.js +3 -3
  86. package/workspace/public/pm/cozy-evmodel.js +1 -1
  87. package/workspace/public/pm/cozy-home.css +1 -1
  88. package/workspace/public/pm/cozy-lab-ins.js +4 -4
  89. package/workspace/public/pm/cozy-lab.js +1 -1
  90. package/workspace/public/pm/cozy-news.js +2 -2
  91. package/workspace/public/pm/cozy-onboard.js +2 -2
  92. package/workspace/public/pm/cozy-rec-now.js +5 -5
  93. package/workspace/public/pm/cozy-rec-present.js +1 -1
  94. package/workspace/public/pm/cozy-reveal.js +2 -2
  95. package/workspace/public/pm/cozy-settings.js +19 -19
  96. package/workspace/public/pm/cozy-steps.js +2 -2
  97. package/workspace/public/pm/cozy-viewer.js +1 -1
  98. package/workspace/public/pm/ctx-wedge.js +1 -1
  99. package/workspace/public/pm/dash-view.js +1 -1
  100. package/workspace/public/pm/goal-chat.js +6 -6
  101. package/workspace/public/pm/good-morning.js +2 -2
  102. package/workspace/public/pm/grill-words.js +1 -1
  103. package/workspace/public/pm/home-app.js +19 -19
  104. package/workspace/public/pm/home-ask.js +1 -1
  105. package/workspace/public/pm/home-chat.js +6 -6
  106. package/workspace/public/pm/home-data.js +2 -2
  107. package/workspace/public/pm/home-day.js +3 -3
  108. package/workspace/public/pm/home-drift.js +1 -1
  109. package/workspace/public/pm/home-goal.js +1 -1
  110. package/workspace/public/pm/home-impact.js +1 -1
  111. package/workspace/public/pm/home-ini.js +1 -1
  112. package/workspace/public/pm/home-line.js +5 -5
  113. package/workspace/public/pm/home-mentions.js +4 -4
  114. package/workspace/public/pm/home-moment.js +1 -1
  115. package/workspace/public/pm/home-need.js +1 -1
  116. package/workspace/public/pm/home-phone-card.js +1 -1
  117. package/workspace/public/pm/home-stage-card.js +2 -2
  118. package/workspace/public/pm/home-sweep.js +1 -1
  119. package/workspace/public/pm/home-today.js +2 -2
  120. package/workspace/public/pm/ini-about.js +2 -2
  121. package/workspace/public/pm/ini-agent.js +5 -5
  122. package/workspace/public/pm/ini-links.js +5 -5
  123. package/workspace/public/pm/ini-props.js +11 -11
  124. package/workspace/public/pm/ini-view-model.js +1 -1
  125. package/workspace/public/pm/ini-view.js +2 -2
  126. package/workspace/public/pm/intent.js +3 -3
  127. package/workspace/public/pm/loose-props.js +5 -5
  128. package/workspace/public/pm/metric-drafts.js +1 -1
  129. package/workspace/public/pm/ms-suggest.js +3 -3
  130. package/workspace/public/pm/next-prompt-ui.js +2 -2
  131. package/workspace/public/pm/okr-list.js +1 -1
  132. package/workspace/public/pm/page-chat.js +2 -2
  133. package/workspace/public/pm/premium-attach.js +1 -1
  134. package/workspace/public/pm/premium-initiative-head.js +1 -1
  135. package/workspace/public/pm/premium-insights.js +3 -3
  136. package/workspace/public/pm/premium-meeting.js +1 -1
  137. package/workspace/public/pm/premium-mtg-replay.js +1 -1
  138. package/workspace/public/pm/premium-notes.js +2 -2
  139. package/workspace/public/pm/premium-report-read.js +6 -6
  140. package/workspace/public/pm/premium-report-tab.js +7 -7
  141. package/workspace/public/pm/premium-shell.js +18 -18
  142. package/workspace/public/pm/premium-vw-ctx.js +3 -3
  143. package/workspace/public/pm/premium-vw-jira.js +1 -1
  144. package/workspace/public/pm/premium-welcome.js +1 -1
  145. package/workspace/public/pm/prog-order.js +2 -2
  146. package/workspace/public/pm/program-charter.js +3 -3
  147. package/workspace/public/pm/program-model.js +1 -1
  148. package/workspace/public/pm/ready-lib.js +4 -4
  149. package/workspace/public/pm/report-flow.js +7 -7
  150. package/workspace/public/pm/report-orders-ui.js +2 -2
  151. package/workspace/public/pm/split-merge.js +5 -5
  152. package/workspace/public/pm/story.js +1 -1
  153. package/workspace/public/pm/task-card.js +1 -1
  154. package/workspace/public/pm/tk-draft.js +1 -1
  155. package/workspace/public/pm/tk-send.js +2 -2
  156. package/workspace/public/pm/wf-page.js +2 -2
  157. package/workspace/ready-dash-ui-test.js +1 -1
  158. package/workspace/rec-present-test.js +2 -2
  159. package/workspace/server.js +12 -8
  160. package/workspace/session-names-test.js +3 -3
  161. package/workspace/skills/doc-check.skill +2 -0
  162. package/workspace/skills/idle-lab-prototype.skill +2 -0
  163. package/workspace/skills/measure.skill +2 -0
  164. package/workspace/skills/metric-read.skill +2 -0
  165. package/workspace/skills/milestone-review.skill +2 -0
  166. package/workspace/skills/report-biweekly.skill +2 -0
  167. package/workspace/skills/report-daily.skill +2 -0
  168. package/workspace/skills/report-design.skill +2 -0
  169. package/workspace/skills/report-monthly.skill +2 -0
  170. package/workspace/skills/report-weekly.skill +2 -0
  171. package/workspace/split-merge-ui-test.js +3 -3
  172. package/workspace/stage-card-test.js +4 -4
  173. package/workspace/task-links-test.js +1 -1
  174. package/workspace/task-views-test.js +7 -7
  175. package/workspace/tk-tasks-test.js +2 -2
@@ -45,7 +45,7 @@ const md = (iso) => (/^\d{4}-\d{2}-\d{2}/.test(String(iso || '')) ? MON[+iso.sli
45
45
  /* ── the dot and the card ── */
46
46
  export function dotHtml(r) {
47
47
  const sg = r && r.suggest; if (!sg) return '';
48
- return `<i class="sm-dot" role="img" aria-label="${esc('Claude suggests: ' + sg.title)}" title="${esc('Claude suggests: ' + sg.title)}"></i>`;
48
+ return `<i class="sm-dot" role="img" aria-label="${esc('PMOS suggests: ' + sg.title)}" title="${esc('PMOS suggests: ' + sg.title)}"></i>`;
49
49
  }
50
50
  /** The row's name with the dot: the name clips and the dot stays in view. Without a suggestion, the name alone. */
51
51
  export function nameHtml(r, title) {
@@ -59,7 +59,7 @@ export function cardHtml(sg, title) {
59
59
  ? [[ICON.scissors, sg.name, countText(sg.counts || {})], [ICON.stay, 'Stays here', sg.stays || '']]
60
60
  : [[ICON.stay, sg.intoTitle + ' stays', sg.reason ? 'Because ' + sg.reason : ''], [ICON.merge, (title || 'This one') + ' closes', 'Its work moves; its chats, run log and history stay']];
61
61
  const ok = split ? 'Split as suggested' : 'Merge as suggested';
62
- return `<section class="sm-card" role="region" aria-label="${esc('Claude suggests: ' + sg.title)}"><div class="sm-h">${adler('needs-you', 36, { label: false })}<b>${esc(sg.title)}</b></div>`
62
+ return `<section class="sm-card" role="region" aria-label="${esc('PMOS suggests: ' + sg.title)}"><div class="sm-h">${adler('needs-you', 36, { label: false })}<b>${esc(sg.title)}</b></div>`
63
63
  + (sg.why ? `<p class="sm-why">${esc(sg.why)}</p>` : '')
64
64
  + lines.map(([d, b, t]) => `<div class="sm-pl">${SVG(d, 15)}<span><b>${esc(b)}</b>${t ? ' · ' + esc(t) : ''}</span></div>`).join('')
65
65
  + `<div class="sm-acts"><button type="button" class="sm-ib" data-sm="no" aria-label="Not now" title="Not now">${SVG(ICON.x, 16)}</button>`
@@ -101,7 +101,7 @@ export async function press(c, act) {
101
101
  const facts = sg.kind === 'merge' ? { into: sg.into } : { moves: [...(sg.tasks || []), ...(sg.tickets || [])] };
102
102
  const x = await c.pmPost('/api/initiatives/suggest', { ws: c.ws, id: r.id, of: sg.kind, fp: sg.fp, ...facts }).catch(() => null);
103
103
  if (!x || !x.ok) { c.say((x && x.error) || 'It is still shown. The server did not say why.'); return; }
104
- c.say(sg.kind === 'merge' ? 'Not now. Claude will not suggest this merge again.' : 'Not now. Claude will not suggest this split again.');
104
+ c.say(sg.kind === 'merge' ? 'Not now. PMOS will not suggest this merge again.' : 'Not now. PMOS will not suggest this split again.');
105
105
  await c.reload();
106
106
  return;
107
107
  }
@@ -175,7 +175,7 @@ export function splitHtml(c, S) {
175
175
  const can = !!(S.name.trim() && (k.tasks || k.tickets || k.docs));
176
176
  const stageSel = S.stages.length ? `<label class="sm-st">starts at <select data-sm-stage aria-label="The stage it starts at">${S.stages.map((s) => `<option value="${esc(s.key)}"${st && st.key === s.key ? ' selected' : ''}>${esc(s.name)}</option>`).join('')}</select>${SVG(ICON.down, 13)}</label>` : '';
177
177
  return `<div class="sm-v" data-sm-v="split"><div class="sm-nf">${SVG(ICON.scissors, 17)}<input id="smName" type="text" maxlength="120" aria-label="Name of the new initiative" placeholder="Name the new initiative" value="${esc(S.name)}">`
178
- + (S.claude && S.name ? `<span class="sm-sg" title="Claude named it from the picked tasks">${SVG(ICON.spark, 15)}</span>` : '') + '</div>'
178
+ + (S.claude && S.name ? `<span class="sm-sg" title="PMOS named it from the picked tasks">${SVG(ICON.spark, 15)}</span>` : '') + '</div>'
179
179
  + `<p class="sm-keep">${keep.length ? 'Keeps ' + keep.map(esc).join(' · ') + (stageSel ? ' · ' : '') : ''}${stageSel}</p>`
180
180
  + `<div class="sm-list">${groupHtml('Tasks', S.tasks, S, null)}${groupHtml('Jira tickets', S.tickets, S, ICON.jira)}${S.docs == null ? '<p class="sm-q">Reading the documents…</p>' : groupHtml('Documents', S.docs, S, ICON.doc)}`
181
181
  + (!S.tasks.length && !S.tickets.length && S.docs && !S.docs.length ? '<p class="sm-q">It has no tasks, tickets or documents to move yet.</p>' : '') + '</div>'
@@ -233,7 +233,7 @@ export function mergeHtml(c, S) {
233
233
  const lbl = (r) => (r.kr && r.kr.label) || r.anchor || 'No anchor';
234
234
  const diffs = [];
235
235
  if ((a.anchor || '') !== (b.anchor || '') && a.anchor) {
236
- const opt = (r) => `<button type="button" role="radio" aria-checked="${S.anchor === (r.anchor || '')}" data-sm-anchor="${esc(r.anchor || '')}">${esc(lbl(r))}${r === b ? `<span class="sm-sg2" title="Claude’s pick">${SVG(ICON.spark, 12)}</span>` : ''}</button>`;
236
+ const opt = (r) => `<button type="button" role="radio" aria-checked="${S.anchor === (r.anchor || '')}" data-sm-anchor="${esc(r.anchor || '')}">${esc(lbl(r))}${r === b ? `<span class="sm-sg2" title="PMOS’s pick">${SVG(ICON.spark, 12)}</span>` : ''}</button>`;
237
237
  diffs.push(`<div class="sm-df"><span class="sm-dl">Anchor</span><div class="sm-seg" role="radiogroup" aria-label="Anchor">${opt(a)}${opt(b)}</div></div>`);
238
238
  }
239
239
  const prd = hasPrd(a) && hasPrd(b) ? `<p class="sm-dn">${SVG(ICON.doc, 15)}Both have a PRD. ${esc(b.title)}’s stays the PRD; the other joins its documents.</p>`
@@ -29,7 +29,7 @@ export function storyHtml(story, o = {}) {
29
29
  const L = lines(story); if (!L.length) return '';
30
30
  const chip = (x) => `<span class="st-src" title="${esc(x.ref || x.label)}">${esc(x.label)}</span>`;
31
31
  const p = L.map((l) => `<p>${bold(l.text)}${o.sources && Array.isArray(l.sources) ? l.sources.filter((x) => x && x.label).map(chip).join('') : ''}</p>`).join('');
32
- const sub = o.sub != null ? o.sub : ['Claude keeps it current', when(story.at)].filter(Boolean).join(' · ');
32
+ const sub = o.sub != null ? o.sub : ['PMOS keeps it current', when(story.at)].filter(Boolean).join(' · ');
33
33
  return `<section class="${o.cls || 'pv-card'} st-story" aria-label="The story so far"><div class="st-h"><h4>${esc(o.label || 'The story so far')}</h4>${sub ? `<small>${esc(sub)}</small>` : ''}</div>${p}</section>`;
34
34
  }
35
35
  export function storyText(story) { return lines(story).map((l) => plain(l.text)).join('\n\n'); }
@@ -203,7 +203,7 @@ export function historyHtml(hist, open, now = Date.now()) {
203
203
  const rows = L.map((x) => {
204
204
  const recent = now - (Date.parse(x.at) || 0) < 7 * 864e5;
205
205
  const what = x.field === 'add' ? 'Added from ' + (x.source || 'your sources') : (FIELD[x.field] || x.field) + ': ' + valOf(x.field, x.from) + ' → ' + valOf(x.field, x.to);
206
- return `<li><span class="w"><b>${esc(what)}</b><small>${esc(['Claude, kept by you ' + short(String(x.at).slice(0, 10)), x.why, x.field !== 'add' && x.source ? x.source : ''].filter(Boolean).join(' · '))}</small></span>`
206
+ return `<li><span class="w"><b>${esc(what)}</b><small>${esc(['PMOS, kept by you ' + short(String(x.at).slice(0, 10)), x.why, x.field !== 'add' && x.source ? x.source : ''].filter(Boolean).join(' · '))}</small></span>`
207
207
  + (recent && x.batch ? `<button type="button" class="tkc-hu" data-tkc-hundo="${esc(x.batch)}" aria-label="Undo this change" title="Undo">${ico('<path d="M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3"/>', 15)}</button>` : '') + '</li>';
208
208
  }).join('');
209
209
  return `<div class="ovb tkc-h"><button type="button" class="tkc-hh" data-tkc-hist aria-expanded="${!!open}"><b>History</b><span class="n">${L.length}</span>${ico(open ? '<path d="M6 9l6 6 6-6"/>' : I.chev, 14)}</button>${open ? `<ul>${rows}</ul>` : ''}</div>`;
@@ -71,7 +71,7 @@ export async function openDraft(o) {
71
71
  const d0 = D();
72
72
  const more = [
73
73
  { label: 'Edit the title', on: (b) => o.ui.ask(b, 'Title', (D() || d0 || {}).title || '', (v) => save({ summary: v }, 'Title changed.'), { max: 250 }) },
74
- { label: 'Edit with Claude', on: () => {
74
+ { label: 'Edit with PMOS', on: () => {
75
75
  const ta = document.getElementById('hmIn'); if (!ta) { if (o.toast) o.toast('The chat is not on this page.'); return; }
76
76
  ta.value = `Edit the drafted Jira ticket ${o.id} of the initiative ${o.initiative} (pmos jira show ${o.initiative}). Change: `;
77
77
  ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); ta.setSelectionRange(ta.value.length, ta.value.length);
@@ -33,7 +33,7 @@ export function closeSend() {
33
33
  function sheetHtml(M, st) {
34
34
  const where = `<div class="tk-wr"><span class="tk-wl">Project</span>${st.projects.length > 1 && M.projectFrom !== 'epic'
35
35
  ? `<select class="tk-sel" data-tk-project aria-label="Jira project">${st.projects.map((p) => `<option${p === st.project ? ' selected' : ''}>${esc(p)}</option>`).join('')}</select>`
36
- : M.project ? `<span class="tk-wv">${esc(M.project)}</span>` : '<span class="tk-wv mut">Claude asks you before it creates anything</span>'}</div>`;
36
+ : M.project ? `<span class="tk-wv">${esc(M.project)}</span>` : '<span class="tk-wv mut">PMOS asks you before it creates anything</span>'}</div>`;
37
37
  const sec = M.sections.map((s) => {
38
38
  const ch = st.change === s.id;
39
39
  const epic = `<div class="tk-wr"><span class="tk-wl">Epic</span><span class="tk-wv">${esc(s.epic.label)}</span>`
@@ -110,7 +110,7 @@ export async function openSend(o = {}) {
110
110
  st.busy = false;
111
111
  if (!r || r.ok === false) { st.msg = (r && r.error) || 'Nothing was sent.'; draw(); return; }
112
112
  closeSend();
113
- if (o.toast) o.toast(`Sending ${ids.length === 1 ? 'the ticket' : ids.length + ' tickets'} to Jira. Claude creates ${ids.length === 1 ? 'it' : 'them'} with your Atlassian connection, then reads ${ids.length === 1 ? 'it' : 'them'} back.`);
113
+ if (o.toast) o.toast(`Sending ${ids.length === 1 ? 'the ticket' : ids.length + ' tickets'} to Jira. PMOS creates ${ids.length === 1 ? 'it' : 'them'} with your Atlassian connection, then reads ${ids.length === 1 ? 'it' : 'them'} back.`);
114
114
  if (o.onDone) o.onDone(r);
115
115
  }
116
116
  });
@@ -141,7 +141,7 @@ function bridgeHtml(wf, ro) {
141
141
  if (!wf.bridge && from.stages.every((x) => keys.has(x.key))) return '';
142
142
  const map = mapOf(from, wf);
143
143
  const rows = from.stages.map((st) => `<label class="wf-brr"><span>${esc(st.name)}</span>${svg('M5 12h14M13 6l6 6-6 6', 18)}<select data-wf-br="${esc(st.key)}" aria-label="${esc('Where ' + st.name + ' goes')}"${S.busy ? ' disabled' : ''}>${wf.stages.map((t) => `<option value="${esc(t.key)}"${t.key === map[st.key] ? ' selected' : ''}>${esc(t.name)}</option>`).join('')}</select></label>`).join('');
144
- return `<section class="wf-box wf-br" aria-label="${esc('Replaces ' + from.name)}"><div class="wf-brh"><b>Replaces ${esc(from.name)}</b><span class="wf-small wf-mut">${wf.bridge && wf.bridge.from === from.id ? 'saved once, used every time' : 'Claude’s proposal'}</span></div>${rows}`
144
+ return `<section class="wf-box wf-br" aria-label="${esc('Replaces ' + from.name)}"><div class="wf-brh"><b>Replaces ${esc(from.name)}</b><span class="wf-small wf-mut">${wf.bridge && wf.bridge.from === from.id ? 'saved once, used every time' : 'PMOS’s proposal'}</span></div>${rows}`
145
145
  + `<p class="wf-small wf-mut">Any initiative that switches from ${esc(from.name)} to ${esc(wf.name)} uses this bridge. Its stage and tasks move together. New initiatives start in ${esc(wf.stages[0].name)} as usual.</p></section>`;
146
146
  }
147
147
  async function saveBridge(wf, key, to) {
@@ -316,7 +316,7 @@ function openNew() {
316
316
  function newHtml() {
317
317
  const d = S.draft, n = d && d.stages ? d.stages.length : 0;
318
318
  const head = `<div class="wf-head">${isPhone() ? `<button type="button" class="ib sm" data-wf-back aria-label="All workflows" title="All workflows">${svg(ICON.back, 18)}</button>` : ''}<h1 class="wf-h1">${esc((d && d.name) || 'New workflow')}</h1>${d ? `<span class="wf-small wf-mut">${n} stage${n === 1 ? '' : 's'} · a draft</span>` : ''}</div>`;
319
- return head + `<div class="wf-box wf-small wf-newb"><p>${d ? 'Claude drafted it in the chat. It shows in the Viewer: Create workflow, or Edit by hand.' : 'Claude drafts it in the chat while you describe it. The draft shows here.'}</p>`
319
+ return head + `<div class="wf-box wf-small wf-newb"><p>${d ? 'PMOS drafted it in the chat. It shows in the Viewer: Create workflow, or Edit by hand.' : 'PMOS drafts it in the chat while you describe it. The draft shows here.'}</p>`
320
320
  + '<div class="wf-acts"><button type="button" class="wf-btn dark sm" data-wf-new>Continue in the chat</button></div></div>';
321
321
  }
322
322
  function draftHtml(d) {
@@ -120,7 +120,7 @@ const SPONSORS = '# Inline login slips to early December unless passkeys move to
120
120
  await p.click('#czViewer [data-pv="props"]');
121
121
  await p.click('#czViewer .db-need [data-db="needs"][data-k="keep"]');
122
122
  const kp = await until(() => X.posts.find((x) => x.path === '/api/proposals/keep'));
123
- ok('N ✓ keeps Claude\'s pick: POST /api/proposals/keep with the proposal ids and the initiative', !!kp && kp.body.ids.join() === 'p-dates-1' && kp.body.initiative === 'descope-parity' && kp.body.ws === 'idpf', JSON.stringify(kp));
123
+ ok('N ✓ keeps PMOS\'s pick: POST /api/proposals/keep with the proposal ids and the initiative', !!kp && kp.body.ids.join() === 'p-dates-1' && kp.body.initiative === 'descope-parity' && kp.body.ws === 'idpf', JSON.stringify(kp));
124
124
  ok('N the dashboard is read again after the press', (await until(() => X.gets.filter((g) => g.scope === 'program:project-ascent').length >= 2, 3000)));
125
125
 
126
126
  /* ── R: the Reports tab: a report row, and its two cuts ── */
@@ -122,7 +122,7 @@ const OTHER = `<!doctype html><html><head><meta charset="utf-8"></head><body><bu
122
122
  ok('P2 the stage becomes the presenter: They see this, 1 of 3, time on this slide', await until(async () => { const t = await text(); return /They see this/.test(t) && /1 of 3/.test(t) && /\d:\d\d on this slide/.test(t); }), await text());
123
123
  ok('P2 the shared screen is put away while presenting, not removed', await p.evaluate(() => { const o = document.querySelector('#rtStage > .rt-own'); return o.hidden && getComputedStyle(o).display === 'none'; }));
124
124
  ok('P2 Next shows the next slide drawn small, and the slide they see is drawn', await until(() => p.evaluate(() => !!document.querySelector('[data-rxp-slide="next"] .sl-it') && !!document.querySelector('[data-rxp-slide="cur"] .sl-it'))));
125
- ok('P2 with no speaker notes, the notes are Claude\'s points from the prep', /From the prep/.test(await text()) && /Ask Ana about the print view/.test(await text()));
125
+ ok('P2 with no speaker notes, the notes are PMOS\'s points from the prep', /From the prep/.test(await text()) && /Ask Ana about the print view/.test(await text()));
126
126
  ok('P2 the audience tab draws the same slide and says 1 / 3', await until(async () => aud && (await aud.evaluate(() => !!document.querySelector('#aud .vzx-box .sl-it') && document.getElementById('audFt').innerText.includes('1 / 3')))), aud && await aud.evaluate(() => document.body.innerHTML.slice(0, 300)));
127
127
  ok('P2 the audience tab is named after the material', aud && await until(async () => (await aud.title()) === 'Release deck · audience'));
128
128
  ok('P2 the audience tab has no controls', aud && await aud.evaluate(() => !document.querySelector('button, input, a')));
@@ -159,7 +159,7 @@ const OTHER = `<!doctype html><html><head><meta charset="utf-8"></head><body><bu
159
159
  await until(() => p.$('.rxp-pop [data-rxp="screen"]'));
160
160
  await p.click('.rxp-pop [data-rxp="screen"]');
161
161
  ok('P5 a window: They see this · your Jira window, live', await until(async () => /They see this · your Jira window/.test(await text()) && await p.evaluate(() => { const v = document.querySelector('[data-rxp-video]'); return !!v && !!v.srcObject; })), await text());
162
- ok('P5 Claude\'s points for this screen, from the prep', /For this screen/.test(await text()) && /PSLE-212/.test(await text()));
162
+ ok('P5 PMOS\'s points for this screen, from the prep', /For this screen/.test(await text()) && /PSLE-212/.test(await text()));
163
163
  ok('P5 no Previous or Next: the PM moves through it in that window', !(await p.$('[data-rxp="next"]')) && /on this screen/.test(await text()));
164
164
  ok('P5 a shot is kept when the picture changes', await until(() => p.evaluate(() => document.querySelectorAll('.rxp-shots img').length >= 1), 12000));
165
165
  await shot(p, 'present-window');
@@ -3318,7 +3318,7 @@ bgQueue = require('./lib/bg-queue.js').create({
3318
3318
  running: () => orchSpawn.running(),
3319
3319
  offOf: (id) => require('./lib/ai-guard.js').off(id, { settingsDir: STATE }),
3320
3320
  spend: (now) => { const G = require('./lib/grill.js'); let cap = 10; try { const c = Number(require('./lib/settings-store.js').get(STATE, 'grill.cap')); if (Number.isFinite(c) && c >= 0) cap = c; } catch { /* the default cap */ }
3321
- const b = G.budgetFor(G.read(STATE), { cap, now }); return b.ok ? { atCap: false } : { atCap: true, why: `this month's spend is at the $${cap} limit in Settings › Claude's checks` }; },
3321
+ const b = G.budgetFor(G.read(STATE), { cap, now }); return b.ok ? { atCap: false } : { atCap: true, why: `this month's spend is at the $${cap} limit in Settings › PMOS's checks` }; },
3322
3322
  workEnd: () => { const d = (proSettings() || {}).dayCheck; return d && d.end ? d.end : '18:00'; },
3323
3323
  sessions: () => [...sessions.values()],
3324
3324
  warn: (what, e) => warnWriteFail(what, e),
@@ -3388,7 +3388,7 @@ const idleLab = require('./lib/idle-lab-engine.js').create({
3388
3388
  const G = require('./lib/grill.js'), E = require('./lib/idle-lab-engine.js');
3389
3389
  let cap = 10; try { const c = Number(require('./lib/settings-store.js').get(STATE, 'grill.cap')); if (Number.isFinite(c) && c >= 0) cap = c; } catch { /* the default cap */ }
3390
3390
  const b = G.budgetFor(G.read(STATE), { cap: cap - E.spentIn(STATE, E.monthOf(now)), now });
3391
- return b.ok ? { ok: true, budget: b.budget } : { ok: false, why: `this month's spend is at the $${cap} limit in Settings › Claude's checks` };
3391
+ return b.ok ? { ok: true, budget: b.budget } : { ok: false, why: `this month's spend is at the $${cap} limit in Settings › PMOS's checks` };
3392
3392
  },
3393
3393
  promptFor: (skillId) => { const h = homeWorkspace(); const t = taskById(skillId, h ? h.root : SELF_ROOT); return t && t.prompt ? t.prompt : null; },
3394
3394
  spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, initiative: spec.initiative, extraEnv: spec.env,
@@ -6098,11 +6098,15 @@ function stateDirFor(w, { create = false } = {}) {
6098
6098
  const d = path.join(w.root, ...rel);
6099
6099
  if (isDir(d)) return d;
6100
6100
  }
6101
- // pmos-self with no pmos/state/ yet: the checkout's OWN state/ is the file-mode mirror. This is
6102
- // deliberately LEGACY_STATE and not STATE — D64's system of record belongs to the repository that
6103
- // earned it, so it must not follow the runtime state out to the per-user directory. (Never a
6104
- // tenant home — that writes to its OWN repo below.)
6105
- if (EMBEDDED_SELF && w.root === SELF_ROOT) return LEGACY_STATE;
6101
+ // pmos-self with no pmos/state/ yet: lib/state-root.js#selfRecordsDir. It keeps the checkout's own
6102
+ // state/ only where that already holds records; a fresh clone (a cloud session, CI) gets the
6103
+ // per-user folder, so machine events are never written into the app folder and committed.
6104
+ // (Never a tenant home — that writes to its OWN repo below.)
6105
+ if (EMBEDDED_SELF && w.root === SELF_ROOT) {
6106
+ const d = stateRoot.selfRecordsDir({ legacy: LEGACY_STATE });
6107
+ try { fs.mkdirSync(d, { recursive: true }); } catch {}
6108
+ return d;
6109
+ }
6106
6110
  // A PMOS-shaped repo with no state dir yet gets the kit's own layout on first write. Never
6107
6111
  // invented for a plain repo — there we fall back and SAY SO rather than write somewhere wrong.
6108
6112
  if (create && wsShape(w.root) === 'pmos') {
@@ -7452,7 +7456,7 @@ async function handleRequest(req, res) {
7452
7456
  touchSession(sess);
7453
7457
  if (p === '/api/session/say') {
7454
7458
  const t = String(body.text == null ? '' : body.text).trim();
7455
- if (!t) return json(res, { ok: false, error: 'Write a message for Claude.' }, 400);
7459
+ if (!t) return json(res, { ok: false, error: 'Write a message for PMOS.' }, 400);
7456
7460
  if (t.length > 8000) return json(res, { ok: false, error: 'The message is too long (8000 characters at most).' }, 400);
7457
7461
  return chatSessions.type(sess.id, t) ? json(res, { ok: true, session: sess.id }) : json(res, { ok: false, error: 'The message did not reach the session.' }, 409);
7458
7462
  }
@@ -78,10 +78,10 @@ const json = (r, body, status = 200) => r.fulfill({ status, contentType: 'applic
78
78
  const page = await ctx.newPage(); await setup(page, cur, posts);
79
79
  await page.goto(BASE + '/premium.html?theme=light');
80
80
  const opened = await openRow(page, CLI);
81
- ok('A1 before Claude has named it, the row and the header show the CLI\'s opening title', opened && ((await headOf(page)) || {}).name === CLI, JSON.stringify(await headOf(page)));
81
+ ok('A1 before PMOS has named it, the row and the header show the CLI\'s opening title', opened && ((await headOf(page)) || {}).name === CLI, JSON.stringify(await headOf(page)));
82
82
  cur.s = { ...cur.s, auto_name: AUTO, hx: { title: CLI, turns: 2 } }; // Claude named it after its first real answer
83
83
  const named = await until(async () => { const h = await headOf(page); return h && h.name === AUTO && (await rowText(page)).includes(AUTO) ? h : null; }, 15000);
84
- ok('A1 once Claude names it, the Home row and the chat header show Claude\'s name, without a reload', !!named && !(await rowText(page)).includes(CLI), await rowText(page));
84
+ ok('A1 once PMOS names it, the Home row and the chat header show PMOS\'s name, without a reload', !!named && !(await rowText(page)).includes(CLI), await rowText(page));
85
85
  let h = await headOf(page);
86
86
  ok('R1 the name is the rename press: a text cursor, no pencil button', h && h.cursor === 'text' && !h.pencil, JSON.stringify(h));
87
87
  await page.click('#hmCh [data-hm-rn]');
@@ -102,7 +102,7 @@ const json = (r, body, status = 200) => r.fulfill({ status, contentType: 'applic
102
102
  ok('R3 the toast says Renamed with Undo', /^Renamed\s*Undo$/.test(toast), toast);
103
103
  await page.click('#toast .undo');
104
104
  h = await until(async () => { const x = await headOf(page); return x && x.name === AUTO ? x : null; });
105
- ok('R4 Undo gives back Claude\'s name and unlocks its naming (release)', !!h && posts.length === 2 && posts[1].release === true && cur.s.name_by === null, JSON.stringify(posts));
105
+ ok('R4 Undo gives back PMOS\'s name and unlocks its naming (release)', !!h && posts.length === 2 && posts[1].release === true && cur.s.name_by === null, JSON.stringify(posts));
106
106
  // the PM names it again; later the server reports a newer auto name, which must not show
107
107
  await page.click('#hmCh [data-hm-rn]');
108
108
  await until(async () => ((await headOf(page)) || {}).field != null);
@@ -33,6 +33,8 @@ Procedure:
33
33
  4. Run `pmos docs check-finish <run> --summary "<n> same, <n> ahead or behind, <n> edited in both, <n> could not check"`.
34
34
  5. Run `pmos docs list` and report it in the output sections below.
35
35
 
36
+ Read before you judge: [output eval](/okf/core/concepts/output-eval.md).
37
+
36
38
  Output contract — produce EXACTLY these sections, the same shape every run, one short line per document and copy:
37
39
  - Same
38
40
  - Ahead or behind
@@ -30,6 +30,8 @@ Procedure:
30
30
  File a new round: `pmos lab file improved --json -` with `{ "why": "<what changed and why, one line>", "base": "A", "changed": "<the one thing that changed>", "file": "a-round2.html", "basis": [ … ] }`.
31
31
  5. A refusal says what is wrong: fix it and file again.
32
32
 
33
+ Read before you judge: [design principles](/okf/products/pmos/references/design-principles.md), [output eval](/okf/core/concepts/output-eval.md).
34
+
33
35
  Output contract: produce EXACTLY these sections in your final message:
34
36
  - Filed (the specimens and what each lets the PM judge, or "nothing" and why)
35
37
  - Left out (what you chose not to make, and why)
@@ -35,6 +35,8 @@ Procedure (each step ends with a check that shows it is done):
35
35
  4. Check the result with `pmos measure list --json`.
36
36
  Done when: each value you recorded is in the list.
37
37
 
38
+ Read before you judge: [anti-optimism](/okf/core/concepts/okr-anti-optimism.md), [output eval](/okf/core/concepts/output-eval.md).
39
+
38
40
  Output sections:
39
41
  - **Recorded** — one line per value: anchor, value, target, as_of, source.
40
42
  - **Not recorded** — one line per anchor with no value, and why.
@@ -29,6 +29,8 @@ Procedure:
29
29
  6. A COMPARE run (the line says the PM's number differs from yours): read the goal your way and the PM's likely way, find why they differ, and file once: `pmos metrics reading <rid> --why "<why, one or two sentences>" --suggest mine|yours --suggest-text "<which to keep and why, one line>" --yours-what "<how the PM counts it, one sentence>" --yours-query "<a query that counts it that way>"`. File no value in a compare run.
30
30
  7. Stop when every goal of the run is read or said.
31
31
 
32
+ Read before you judge: [anti-optimism](/okf/core/concepts/okr-anti-optimism.md), [output eval](/okf/core/concepts/output-eval.md).
33
+
32
34
  Output contract: produce EXACTLY these sections in your final message:
33
35
  - Read (each goal, its value and its source; say a held value as held)
34
36
  - Not read (each goal you could not read, why, and the fix you drafted)
@@ -47,6 +47,8 @@ The shape of one filing. Every text is one line:
47
47
  - `name`: for add and rename. `date`: YYYY-MM-DD, for add and move. `waits`: for add, the initiative ids it waits on (empty: a check the PM ticks).
48
48
  - `why`: up to 240 characters, what you read that makes the change. `src.kind`: deliver, jira, meeting, task, target, member or charter. `src.label`: the source in a few words, for example "Steering, Oct 22" or "2 initiatives".
49
49
 
50
+ Read before you judge: [watermelon flag](/okf/core/concepts/watermelon-flag.md), [anti-optimism](/okf/core/concepts/okr-anti-optimism.md).
51
+
50
52
  Output contract. End with these three lines and nothing after them:
51
53
  Filed: <n suggestions, or none>
52
54
  No change: <the milestones you checked that still hold, or none>
@@ -52,6 +52,8 @@ Procedure:
52
52
 
53
53
  Default shape, used ONLY when proposing a definition: the report frame of D78 as amended by D86 point 3. A Headline, a Timeline, one block for each initiative active in the window, New since last report, Decided this cycle, Needs your call, and Sources reached and not reached.
54
54
 
55
+ Read before you judge: [watermelon flag](/okf/core/concepts/watermelon-flag.md), [anti-optimism](/okf/core/concepts/okr-anti-optimism.md).
56
+
55
57
  Output contract — produce EXACTLY these sections, the same shape every run:
56
58
  - Headline
57
59
  - Sections from the definition
@@ -54,6 +54,8 @@ Procedure:
54
54
 
55
55
  Default shape, used ONLY when proposing a definition: a one-page end-of-day report: what moved, what is blocked, what needs the PM tomorrow. Use the report frame of D78: a Headline, then What moved, Risks and Metrics, then Needs your call and Sources reached and not reached.
56
56
 
57
+ Read before you judge: [watermelon flag](/okf/core/concepts/watermelon-flag.md), [anti-optimism](/okf/core/concepts/okr-anti-optimism.md).
58
+
57
59
  Output contract — produce EXACTLY these sections, the same shape every run:
58
60
  - Headline
59
61
  - Sections from the definition
@@ -10,6 +10,8 @@ output:
10
10
 
11
11
  /report-design: make ONE HTML render of a report and stop. The lines after this procedure name the mode, the files and the output path.
12
12
 
13
+ Read before you design: [design principles](/okf/products/pmos/references/design-principles.md).
14
+
13
15
  Rules that always hold:
14
16
  1. ONE WRITE. Write the render to the output path named below, with the Write tool, and write nothing else. You have no Bash and no web tool. Do not change a repository file.
15
17
  2. NOTHING IS SENT. You send no mail, no message and no comment. Use a connector only to read, and only when the PM's settings allow it.
@@ -54,6 +54,8 @@ Procedure:
54
54
 
55
55
  Default shape, used ONLY when proposing a definition: a monthly review: outcomes against goals, decisions, risks, learning, next month. Use the report frame of D78: a Headline, then What moved, Risks and Metrics, then Needs your call and Sources reached and not reached.
56
56
 
57
+ Read before you judge: [watermelon flag](/okf/core/concepts/watermelon-flag.md), [anti-optimism](/okf/core/concepts/okr-anti-optimism.md).
58
+
57
59
  Output contract — produce EXACTLY these sections, the same shape every run:
58
60
  - Headline
59
61
  - Sections from the definition
@@ -55,6 +55,8 @@ Procedure:
55
55
 
56
56
  Default shape, used ONLY when proposing a definition: a weekly report: progress against initiatives, decisions made, risks, what is next. Use the report frame of D78: a Headline, then What moved, Risks and Metrics, then Needs your call and Sources reached and not reached.
57
57
 
58
+ Read before you judge: [watermelon flag](/okf/core/concepts/watermelon-flag.md), [anti-optimism](/okf/core/concepts/okr-anti-optimism.md).
59
+
58
60
  Output contract — produce EXACTLY these sections, the same shape every run:
59
61
  - Headline
60
62
  - Sections from the definition
@@ -86,7 +86,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
86
86
  /* B — the Board */
87
87
  {
88
88
  const { ctx, page: p, errors } = await open();
89
- ok('B the purple dot after the name of the one Claude has a suggestion for', await p.evaluate(() => { const r = [...document.querySelectorAll('#ibBody [data-key]')].find((x) => /Decommission/.test(x.textContent)); return !!(r && r.querySelector('.sm-dot')); }), await p.evaluate(() => [...document.querySelectorAll('#ibBody [data-key]')].slice(0, 8).map((x) => x.className + ':' + x.textContent.slice(0, 50)).join(' / ')));
89
+ ok('B the purple dot after the name of the one PMOS has a suggestion for', await p.evaluate(() => { const r = [...document.querySelectorAll('#ibBody [data-key]')].find((x) => /Decommission/.test(x.textContent)); return !!(r && r.querySelector('.sm-dot')); }), await p.evaluate(() => [...document.querySelectorAll('#ibBody [data-key]')].slice(0, 8).map((x) => x.className + ':' + x.textContent.slice(0, 50)).join(' / ')));
90
90
  if (!(await p.evaluate(() => !!document.querySelector('#ibBody .sm-dot')))) return finish(1);
91
91
  const key = await p.evaluate(() => { const d = document.querySelector('#ibBody .sm-dot'); const b = d && d.closest('[data-key]'); return b ? b.dataset.key : null; });
92
92
  await p.click(`#ibBody [data-key="${key}"]`);
@@ -95,7 +95,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
95
95
  await shot(p, 'board-suggest.png');
96
96
  await p.click('#czViewer [data-sm="edit"]');
97
97
  const ed = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer [data-sm-v="split"]'); if (!v) return null; const docs = !v.querySelector('.sm-q'); return docs && { name: v.querySelector('#smName').value, on: [...v.querySelectorAll('.sm-pk.on .sm-t b')].map((b) => b.textContent), keep: v.querySelector('.sm-keep').textContent, cnt: v.querySelector('.sm-cnt').textContent }; }));
98
- ok('B ✎ opens the split editor with Claude\'s picks ticked: the cutover\'s two tasks, its name, what it keeps', ed && ed.on.length === 2 && ed.on.every((t) => /cutover|traffic/i.test(t)) && ed.name && /starts at/.test(ed.keep) && /2 tasks/.test(ed.cnt), JSON.stringify(ed));
98
+ ok('B ✎ opens the split editor with PMOS\'s picks ticked: the cutover\'s two tasks, its name, what it keeps', ed && ed.on.length === 2 && ed.on.every((t) => /cutover|traffic/i.test(t)) && ed.name && /starts at/.test(ed.keep) && /2 tasks/.test(ed.cnt), JSON.stringify(ed));
99
99
  await shot(p, 'board-split-editor.png');
100
100
  await p.click('#czViewer [data-sm-x]');
101
101
  ok('B ✕ in the editor goes back to the initiative', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .sm-card'))));
@@ -167,7 +167,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
167
167
  await shot(p, 'phone-suggest.png');
168
168
  await p.click('#czViewer [data-sm="no"]');
169
169
  const t = await until(async () => { const x = await toast(p); return /^Not now/.test(x) ? x : null; });
170
- ok('P ✕ Not now: the toast says Claude will not suggest it again', /^Not now/.test(t || ''), t);
170
+ ok('P ✕ Not now: the toast says PMOS will not suggest it again', /^Not now/.test(t || ''), t);
171
171
  ok('P ✕ Not now hides the card and the dot', await until(() => p.evaluate(() => !document.querySelector('#czViewer .sm-card') && !document.querySelector('#ibBody .sm-dot')), 20000));
172
172
  ok('P no page error', !errors.length, errors.join(' | '));
173
173
  await ctx.close();
@@ -53,18 +53,18 @@ async function pure() {
53
53
  const HD = await mod('premium-initiative-head.js');
54
54
  const CS = await mod('cozy-steps.js');
55
55
  const h = { done: [{ kind: 'done', label: 'PRD' }], rest: [
56
- { kind: 'agent', label: 'Claude drafts the note' }, { kind: 'risk', label: 'Rudi’s estimate is blocked', note: 'Late by 2 days' },
56
+ { kind: 'agent', label: 'PMOS drafts the note' }, { kind: 'risk', label: 'Rudi’s estimate is blocked', note: 'Late by 2 days' },
57
57
  { kind: 'jira', label: '8 of 12 tickets Done in Jira', jd: 8, jt: 12 }, { kind: 'you', label: 'Weigh the findings', note: '3 findings' },
58
58
  { kind: 'agent', label: 'Work breakdown' }, { kind: 'you', label: 'Your sign-off' }] };
59
59
  const R = SC.stepRows(h, { run: { title: 'x', created: new Date(Date.now() - 6 * 6e4).toISOString() } });
60
60
  ok('P1 the order: the PM\'s steps first, then the running agent, then late, then waiting', R.open.map((x) => x.state).join() === 'you,you,run,risk,wait,wait', JSON.stringify(R.open.map((x) => x.state)));
61
61
  ok('P1 only the first of the PM\'s steps carries the go button (the one primary)', R.open.filter((x) => x.go).length === 1 && R.open[0].go, JSON.stringify(R.open[0]));
62
- ok('P1 the running step says "Running · N min" with Claude\'s avatar; another agent step waits with a C', R.open[2].note === 'Running · 6 min' && R.open[2].owner.live && R.open.find((x) => x.label === 'Work breakdown').owner.kind === 'claude' && !R.open.find((x) => x.label === 'Work breakdown').owner.live);
62
+ ok('P1 the running step says "Running · N min" with PMOS\'s avatar; another agent step waits with a C', R.open[2].note === 'Running · 6 min' && R.open[2].owner.live && R.open.find((x) => x.label === 'Work breakdown').owner.kind === 'claude' && !R.open.find((x) => x.label === 'Work breakdown').owner.live);
63
63
  ok('P1 more than 4 open steps show 4 and "N more"', R.shown.length === 4 && R.more === 2);
64
64
  ok('P1 "N more" opens them all', SC.stepRows(h, { moreOpen: true }).more === 0);
65
65
  const noRun = SC.stepRows(h, {});
66
66
  ok('P1 with no session at work there is no spinner: an agent step waits', !noRun.open.some((x) => x.state === 'run'));
67
- ok('P1 a session at work that no step names gets its own running line', SC.stepRows({ done: [], rest: [] }, { run: { title: 'Claude drafts the brief' } }).open[0].label === 'Claude drafts the brief');
67
+ ok('P1 a session at work that no step names gets its own running line', SC.stepRows({ done: [], rest: [] }, { run: { title: 'PMOS drafts the brief' } }).open[0].label === 'PMOS drafts the brief');
68
68
  ok('P1 a late or blocked step is amber with its reason', R.open[3].state === 'risk' && R.open[3].noteWarn && R.open[3].note === 'Late by 2 days');
69
69
  ok('P1 a Jira step carries the ticket bar', R.open.find((x) => x.jira) && R.open.find((x) => x.jira).jira.total === 12);
70
70
  ok('P2 the clock: "4 of ~6 days"; just the days with no usual time; nothing with no record', SC.clockText({ n: 4, usual: 6 }) === '4 of ~6 days' && SC.clockText({ n: 9, usual: null }) === '9 days' && SC.clockText(null) === '');
@@ -223,7 +223,7 @@ async function pure() {
223
223
  /* D3 the phone, dark: Discover, Plan next (moves on by itself), an agent at work, over its usual time */
224
224
  {
225
225
  const DB = boardAt('Discover'), since = new Date(Date.parse(DB.today + 'T12:00:00Z') - 9 * 864e5).toISOString().slice(0, 10); // 9 days before the board's own day
226
- const sessions = [{ id: 's1', name: 'chat: Claude drafts the stakeholder note', agent: 'claude', state: 'running', shown: 'working', origin: 'chat:init:self-serve-v2', created: new Date(Date.now() - 6 * 6e4).toISOString(), hx: { title: 'Claude drafts the stakeholder note' } }];
226
+ const sessions = [{ id: 's1', name: 'chat: PMOS drafts the stakeholder note', agent: 'claude', state: 'running', shown: 'working', origin: 'chat:init:self-serve-v2', created: new Date(Date.now() - 6 * 6e4).toISOString(), hx: { title: 'PMOS drafts the stakeholder note' } }];
227
227
  const trail = { ok: true, items: { 'self-serve-v2': { since } }, usual: { discover: { n: 5, days: 7 } }, usualBy: {} };
228
228
  const A = await open({ w: 390, h: 844, theme: 'dark', model: SCEN.discover(), board: DB, sessions, trail }), p = A.page;
229
229
  ok('D3 the phone draws the same card', A.up);
@@ -155,7 +155,7 @@ function model() {
155
155
  await page.locator('#czViewer [data-bp-full]').click();
156
156
  await page.waitForSelector('#czViewer .pp [data-pp^="lk:"]', { timeout: 4000 });
157
157
  const S1 = await page.evaluate(() => { const m = document.querySelector('#czViewer .pp [data-pp^="lk:"]'); return { title: document.querySelector('#czVwTitle').textContent, text: m.textContent, yes: m.querySelectorAll('[data-pp-keep]').length, no: m.querySelectorAll('[data-pp-droplk]').length }; });
158
- ok('S1 the ✦ opens "Claude proposes 2": the link proposal sits under Links with ✓ and ✕', /Claude proposes 2/.test(S1.title) && S1.yes === 1 && S1.no === 1 && /Pilot with 3 partners waits on Load test at 3x peak/.test(S1.text), JSON.stringify(S1));
158
+ ok('S1 the ✦ opens "PMOS proposes 2": the link proposal sits under Links with ✓ and ✕', /PMOS proposes 2/.test(S1.title) && S1.yes === 1 && S1.no === 1 && /Pilot with 3 partners waits on Load test at 3x peak/.test(S1.text), JSON.stringify(S1));
159
159
  await shot(page, 'DepBuild4Proposals');
160
160
  await page.locator('#czViewer .pp [data-pp^="lk:"] [data-pp-keep]').click();
161
161
  await page.waitForTimeout(400);
@@ -40,9 +40,9 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
40
40
 
41
41
  /* the fixture's day is 2026-10-17; Usage-based billing is in Discover */
42
42
  const TASKS = [
43
- { uid: 'task-a', title: 'Parity check for the 23 documented rows', status: 'In progress', owner: 'Claude', start: '2026-10-14', end: '2026-10-21', section: 'discover' },
44
- { uid: 'task-b', title: 'Establish current behaviour for the 8 unverified rows', status: 'To do', owner: 'Claude', end: '2026-10-21', section: 'discover' },
45
- { uid: 'task-c', title: 'Map SDK public methods to v6', status: 'In progress', owner: 'Claude', start: '2026-10-08', end: '2026-10-10', section: 'discover' },
43
+ { uid: 'task-a', title: 'Parity check for the 23 documented rows', status: 'In progress', owner: 'PMOS', start: '2026-10-14', end: '2026-10-21', section: 'discover' },
44
+ { uid: 'task-b', title: 'Establish current behaviour for the 8 unverified rows', status: 'To do', owner: 'PMOS', end: '2026-10-21', section: 'discover' },
45
+ { uid: 'task-c', title: 'Map SDK public methods to v6', status: 'In progress', owner: 'PMOS', start: '2026-10-08', end: '2026-10-10', section: 'discover' },
46
46
  { uid: 'task-d', title: 'Stakeholder review with Security', status: 'To do', owner: 'Wawan', section: 'discover' },
47
47
  { uid: 'task-e', title: 'Kick-off notes with the team', status: 'Done', owner: 'Wawan', end: '2026-10-12', section: 'discover' },
48
48
  { uid: 'task-f', title: 'Drop the legacy export', status: "Won't do", owner: 'Wawan', section: 'discover' },
@@ -53,8 +53,8 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
53
53
  /* the hotfix's tasks (H*): long titles that start past the first screen, a milestone with a due day only, owners with initials */
54
54
  const HTASKS = [
55
55
  { uid: 'h1', title: '11.0 Contract Negotiation with selected vendor and their legal team', status: 'In progress', owner: 'Rina Chen', start: '2026-10-08', end: '2026-10-21' },
56
- { uid: 'h2', title: '11.2 Conclude nego, update TC meeting minutes', status: 'To do', owner: 'Claude', start: '2026-10-18', end: '2026-10-31' },
57
- { uid: 'h3', title: '11.3 TC endorse meeting minutes and confirm the candidate', status: 'To do', owner: 'Claude', start: '2026-10-29', end: '2026-11-11' },
56
+ { uid: 'h2', title: '11.2 Conclude nego, update TC meeting minutes', status: 'To do', owner: 'PMOS', start: '2026-10-18', end: '2026-10-31' },
57
+ { uid: 'h3', title: '11.3 TC endorse meeting minutes and confirm the candidate', status: 'To do', owner: 'PMOS', start: '2026-10-29', end: '2026-11-11' },
58
58
  { uid: 'h4', title: 'Award contract', milestone: true, status: 'To do', owner: 'Wawan', end: '2026-10-22' },
59
59
  { uid: 'h5', title: 'Kick-off notes', status: 'Done', owner: 'Wawan', end: '2026-10-12' },
60
60
  ];
@@ -394,7 +394,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
394
394
  await g.click('.tkc.ivq .ivs [data-ivs-by="owner"]');
395
395
  const saved = await until(() => G.posts.find((x) => x.path === '/api/initiative-layout'));
396
396
  await g.keyboard.press('Escape');
397
- const heads0 = await until(() => g.evaluate(() => { const h = [...document.querySelectorAll('#czViewer .iv-wbs .iv-ws b')].map((b) => b.textContent); return h.some((x) => /Wawan|Claude|Rina/.test(x)) ? h : null; }));
397
+ const heads0 = await until(() => g.evaluate(() => { const h = [...document.querySelectorAll('#czViewer .iv-wbs .iv-ws b')].map((b) => b.textContent); return h.some((x) => /Wawan|PMOS|Rina/.test(x)) ? h : null; }));
398
398
  ok('H6 Owner is picked and saved', !!saved && !!heads0, JSON.stringify({ saved: saved && saved.body, heads0 }));
399
399
  await g.click('#czViewer [data-iv-check="h2"]');
400
400
  await until(() => G.posts.find((x) => x.path === '/api/boards/tasks/state'));
@@ -402,7 +402,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
402
402
  const st = await g.evaluate(() => { const vb = document.querySelector('#czViewer [data-iv-vbtn]'); vb.click(); return null; });
403
403
  const by = await until(() => g.evaluate(() => { const b = document.querySelector('.tkc.ivq .ivs [data-ivs-by][aria-pressed="true"], .tkc.ivq .ivs [data-ivs-more][aria-pressed="true"]'); return b ? (b.dataset.ivsBy || b.textContent.trim()) : null; }));
404
404
  const heads1 = await g.evaluate(() => [...document.querySelectorAll('#czViewer .iv-wbs .iv-ws b')].map((b) => b.textContent));
405
- ok('H6 after a task edit the redraw keeps Owner: no fall back to Epic or Stage', by === 'owner' && heads1.some((x) => /Wawan|Claude|Rina/.test(x)), JSON.stringify({ st, by, heads1 }));
405
+ ok('H6 after a task edit the redraw keeps Owner: no fall back to Epic or Stage', by === 'owner' && heads1.some((x) => /Wawan|PMOS|Rina/.test(x)), JSON.stringify({ st, by, heads1 }));
406
406
  await G.ctx.close();
407
407
  }
408
408
 
@@ -60,7 +60,7 @@ SENT.checkedAt = new Date(new Date().setHours(9, 2, 0, 0)).toISOString();
60
60
  const mk = () => IP.build(F.facts());
61
61
  /* the initiative's own tasks, on the Board's row both pages read (the fixture's day is 2026-10-17) */
62
62
  const TASKS = [
63
- { uid: 'task-a', title: 'Parity check for the 23 documented rows', status: 'In progress', owner: 'Claude', start: '2026-10-14', end: '2026-10-21', section: 'discover' },
63
+ { uid: 'task-a', title: 'Parity check for the 23 documented rows', status: 'In progress', owner: 'PMOS', start: '2026-10-14', end: '2026-10-21', section: 'discover' },
64
64
  { uid: 'task-b', title: 'Stakeholder review with Security', status: 'To do', owner: 'Wawan', section: 'discover' },
65
65
  { uid: 'task-c', title: 'Plan the rollout', status: 'To do', owner: 'Wawan', start: '2026-11-02', end: '2026-11-06', section: 'plan' },
66
66
  { uid: 'task-d', title: 'Kick-off notes with the team', status: 'Done', owner: 'Wawan', end: '2026-10-12', section: 'discover' },
@@ -301,7 +301,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
301
301
  await sheetOpen(e);
302
302
  await e.click('.tkc.ivq .ivs [data-ivs-by="owner"]');
303
303
  await e.keyboard.press('Escape');
304
- ok('G5 By owner on the Board: one group per owner', await until(() => e.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].map((b) => b.textContent).join('|') === 'Claude|Wawan', V)), JSON.stringify(await heads(e)));
304
+ ok('G5 By owner on the Board: one group per owner', await until(() => e.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].map((b) => b.textContent).join('|') === 'PMOS|Wawan', V)), JSON.stringify(await heads(e)));
305
305
  await shot(e, 'board-owner-1440.png');
306
306
  ok('0 Board: no page error', !E.errors.length, E.errors.join(' | '));
307
307
  await E.ctx.close();