create-pmos 0.772.0 → 0.774.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 (114) hide show
  1. package/package.json +30 -47
  2. package/payload/AGENTS.md +3 -3
  3. package/payload/KIT-VERSION +1 -1
  4. package/payload/planning/evals/eval-calibration.md +1 -1
  5. package/payload/planning/okrs/health-budgets.md +1 -1
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/briefing-premium-board-test.js +2 -2
  8. package/workspace/briefing-premium-insights-test.js +3 -3
  9. package/workspace/changelog.json +41 -14
  10. package/workspace/guide/agent-capabilities.md +7 -7
  11. package/workspace/guide/backlog.md +2 -2
  12. package/workspace/guide/breakdown.md +1 -1
  13. package/workspace/guide/claude-proposes.md +13 -13
  14. package/workspace/guide/cli.md +19 -19
  15. package/workspace/guide/home.md +46 -46
  16. package/workspace/guide/index.md +13 -13
  17. package/workspace/guide/initiatives-and-next-steps.md +11 -11
  18. package/workspace/guide/intelligence-okr-goals.md +5 -5
  19. package/workspace/guide/jira.md +3 -3
  20. package/workspace/guide/layout.md +28 -28
  21. package/workspace/guide/notes.md +10 -10
  22. package/workspace/guide/positioning.md +1 -1
  23. package/workspace/guide/programs.md +46 -46
  24. package/workspace/guide/reports.md +6 -6
  25. package/workspace/guide/settings-and-switches.md +11 -11
  26. package/workspace/guide/statuses.md +7 -7
  27. package/workspace/intelligence-gaps-ui-test.js +2 -2
  28. package/workspace/lib/board-cli.js +2 -2
  29. package/workspace/lib/board-fold.js +1 -1
  30. package/workspace/lib/board-premium.js +1 -1
  31. package/workspace/lib/connector-directory.js +1 -1
  32. package/workspace/lib/cos-chat.js +1 -1
  33. package/workspace/lib/drift-cli.js +2 -2
  34. package/workspace/lib/drift.js +1 -1
  35. package/workspace/lib/event-relay.js +1 -1
  36. package/workspace/lib/goal-chat.js +1 -1
  37. package/workspace/lib/impact-cli.js +1 -1
  38. package/workspace/lib/initiative-chat.js +3 -3
  39. package/workspace/lib/initiative-cli.js +1 -1
  40. package/workspace/lib/initiative-premium.js +2 -2
  41. package/workspace/lib/insights-premium.js +1 -1
  42. package/workspace/lib/job-graph.js +6 -6
  43. package/workspace/lib/line.js +1 -1
  44. package/workspace/lib/loose-proposals.js +1 -1
  45. package/workspace/lib/mention-cli.js +1 -1
  46. package/workspace/lib/mobile-nav.js +1 -1
  47. package/workspace/lib/moments.js +4 -4
  48. package/workspace/lib/my-work-premium.js +1 -1
  49. package/workspace/lib/next-prompt.js +2 -2
  50. package/workspace/lib/pmos-verbs.js +2 -2
  51. package/workspace/lib/positioning-cli.js +1 -1
  52. package/workspace/lib/principles-cli.js +2 -2
  53. package/workspace/lib/program-chat.js +3 -3
  54. package/workspace/lib/program-cli.js +4 -4
  55. package/workspace/lib/propose-cli.js +1 -1
  56. package/workspace/lib/rehearse-read.js +1 -1
  57. package/workspace/lib/rehearse.js +1 -1
  58. package/workspace/lib/report-setups.js +1 -1
  59. package/workspace/lib/routes-board.js +3 -3
  60. package/workspace/lib/routes-c3-reports.js +1 -1
  61. package/workspace/lib/routes-loose.js +2 -2
  62. package/workspace/lib/routes-setup.js +1 -1
  63. package/workspace/lib/signal-cli.js +1 -1
  64. package/workspace/lib/task-cli.js +4 -4
  65. package/workspace/lib/today-cli.js +1 -1
  66. package/workspace/lib/workflow-cli.js +4 -4
  67. package/workspace/metric-drafts-ui-test.js +1 -1
  68. package/workspace/package-lock.json +2 -2
  69. package/workspace/package.json +1 -1
  70. package/workspace/premium-board-actions-test.js +1 -1
  71. package/workspace/program-order-test.js +1 -1
  72. package/workspace/public/pm/bd-acts.js +7 -7
  73. package/workspace/public/pm/bd-asks.js +1 -1
  74. package/workspace/public/pm/bd-backlog.js +1 -1
  75. package/workspace/public/pm/bd-pop.js +1 -1
  76. package/workspace/public/pm/bd-prog-panel.js +3 -3
  77. package/workspace/public/pm/bd-publish.js +2 -2
  78. package/workspace/public/pm/bd-shared.js +3 -3
  79. package/workspace/public/pm/bd-stages.js +1 -1
  80. package/workspace/public/pm/cozy-evmodel.js +2 -2
  81. package/workspace/public/pm/cozy-home.css +8 -2
  82. package/workspace/public/pm/cozy-relay.js +1 -1
  83. package/workspace/public/pm/cozy-reveal.js +1 -1
  84. package/workspace/public/pm/cozy-settings.js +3 -3
  85. package/workspace/public/pm/cozy-viewer.js +1 -1
  86. package/workspace/public/pm/home-app.js +4 -4
  87. package/workspace/public/pm/home-data.js +1 -1
  88. package/workspace/public/pm/home-need.js +1 -1
  89. package/workspace/public/pm/home-phone-card.js +1 -1
  90. package/workspace/public/pm/home-today.js +2 -2
  91. package/workspace/public/pm/ini-more.js +2 -2
  92. package/workspace/public/pm/ini-tasks.js +1 -1
  93. package/workspace/public/pm/loose-props.js +2 -2
  94. package/workspace/public/pm/metric-drafts.js +3 -3
  95. package/workspace/public/pm/page-chat.js +1 -1
  96. package/workspace/public/pm/premium-board.js +4 -4
  97. package/workspace/public/pm/premium-insights.js +20 -20
  98. package/workspace/public/pm/premium-meeting.js +1 -1
  99. package/workspace/public/pm/premium-report-read.js +2 -2
  100. package/workspace/public/pm/premium-vw-meet.js +1 -1
  101. package/workspace/public/pm/premium-vw-mtg.js +2 -2
  102. package/workspace/public/pm/prog-order.js +1 -1
  103. package/workspace/public/pm/sort-order.js +1 -1
  104. package/workspace/public/pm/task-card.js +2 -2
  105. package/workspace/public/pm/wf-stage.js +2 -2
  106. package/workspace/public/premium-board.html +2 -2
  107. package/workspace/public/today.html +1 -1
  108. package/workspace/skills/impact-detect.skill +1 -1
  109. package/workspace/skills/loose-propose.skill +4 -4
  110. package/workspace/skills/morning-brief.skill +2 -2
  111. package/workspace/skills/principles-draft.skill +2 -2
  112. package/workspace/skills/sources-read.skill +1 -1
  113. package/workspace/sort-order-test.js +1 -1
  114. package/workspace/task-milestones-test.js +1 -1
@@ -21,7 +21,7 @@ const COMMANDS = { drift: ['show', 'replay', 'status'] };
21
21
  const USAGE = [
22
22
  'usage: pmos drift show|replay|status — the weekly check for quiet drift (What would I have missed)',
23
23
  ' pmos drift show [--weeks <n>] [--json] what each of the last n weeks (default 4) would have shown for this repository; writes nothing',
24
- ' pmos drift replay [--json] replay the last 4 weeks of this repository on its real records; its items show on Home only after this passes',
24
+ ' pmos drift replay [--json] replay the last 4 weeks of this repository on its real records; its items show on Today only after this passes',
25
25
  ' pmos drift status [--json] the last weekly result and the replays on record',
26
26
  'The weekly run starts by itself each Monday. Nothing is changed in a task, an initiative or Jira, and nothing is sent.',
27
27
  ];
@@ -91,7 +91,7 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
91
91
  if (flags.json) { say(JSON.stringify({ ok, weeks: rep.weeks.map((w) => ({ week: w.week, items: w.items })), failed, notRead: rep.notRead })); return ok ? 0 : 1; }
92
92
  for (const w of rep.weeks) say(`Week of ${w.week}: ${w.items.length ? '' : 'quiet, nothing shown'}${w.items.length ? '\n' + w.items.map(itemLine).join('\n') : ''}`);
93
93
  if (rep.notRead.length) say('Not read: ' + rep.notRead.join(', '));
94
- say(ok ? `✓ replay passed for ${p.w.name}: its items can show on Home from the next weekly run.` : `✗ replay did not pass for ${p.w.name}:\n` + failed.map((f) => ' - ' + (f.week ? f.week + ': ' : '') + f.why).join('\n'));
94
+ say(ok ? `✓ replay passed for ${p.w.name}: its items can show on Today from the next weekly run.` : `✗ replay did not pass for ${p.w.name}:\n` + failed.map((f) => ' - ' + (f.week ? f.week + ': ' : '') + f.why).join('\n'));
95
95
  return ok ? 0 : 1;
96
96
  }
97
97
 
@@ -96,7 +96,7 @@ function stalledOf(P, ini, tasks, asOf) {
96
96
  return {
97
97
  id: 'stalled:' + P.ws + ':' + ini.id, kind: 'stalled', level, score: 40 + Math.min(quiet, 60) / 2, ws: P.ws, product: P.name, initiative: ini.id,
98
98
  title: clip(ini.title, 90) + ' has gone quiet',
99
- say: 'Nothing on ' + clip(ini.title, 90) + ' has moved for ' + days(quiet) + ', while ' + open.length + (open.length === 1 ? ' task is' : ' tasks are') + ' still open. It still looks live on the Board.',
99
+ say: 'Nothing on ' + clip(ini.title, 90) + ' has moved for ' + days(quiet) + ', while ' + open.length + (open.length === 1 ? ' task is' : ' tasks are') + ' still open. It still looks live on Work.',
100
100
  confidence: 'high',
101
101
  claims: [
102
102
  claim(open.length + (open.length === 1 ? ' open task: ' : ' open tasks, the first: ') + clip(open[0].title, 80) + ' (' + open[0].state + ')', [src(open[0].id, open[0].last.src)]),
@@ -107,7 +107,7 @@ function status(dir, { env } = {}) {
107
107
  return { host: !!originOf(dir, env), sources, recent: st.recent.slice(0, 10), last: st.last };
108
108
  }
109
109
 
110
- const noHost = { ok: false, status: 409, error: 'Listening for events needs the central host. Set its address under Board › Publish (or PMOS_BOARDS_HOST), then try again.' };
110
+ const noHost = { ok: false, status: 409, error: 'Listening for events needs the central host. Set its address under Work › Publish (or PMOS_BOARDS_HOST), then try again.' };
111
111
 
112
112
  async function setup(dir, source, opts = {}) {
113
113
  if (!SOURCES.includes(source)) return { ok: false, status: 400, error: 'PMOS listens to GitHub and Jira.' };
@@ -306,7 +306,7 @@ function goalToolReply(goal, toolName) {
306
306
  /** chat() hands a `/goal` message here: { error } or { id, prompt } with the grilling line already on record. */
307
307
  function begin({ runtimeDir, key, text, now = new Date() }) {
308
308
  const t = String(text || '').trim();
309
- if (!t) return { error: 'Write the goal after /goal, for example: /goal Ship the Board metrics card.' };
309
+ if (!t) return { error: 'Write the goal after /goal, for example: /goal Ship the Work metrics card.' };
310
310
  if (t.length > MAX_TEXT) return { error: 'The goal is too long (' + MAX_TEXT + ' characters at most).' };
311
311
  const id = 'goal-' + crypto.randomBytes(6).toString('hex');
312
312
  // one goal runs in a chat at a time: the panel asks first (In a new chat, or Here instead); a /goal that lands here replaces the working one
@@ -35,7 +35,7 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, stdin
35
35
  if (!sub || ['help', '--help', '-h'].includes(sub)) { for (const l of USAGE) say(l); return sub ? 0 : 1; }
36
36
  if (!SUBS.includes(sub)) { say(`unknown impact command "${sub}". Use one of: ${SUBS.join(', ')}`); return 2; }
37
37
  const file = env.PMOS_IMPACT_FILE, runId = env.PMOS_IMPACT_RUN;
38
- if (!file || !runId) { say('✗ pmos impact is for PMOS\'s impact run. The PM checks each item in Home\'s chat.'); return 1; }
38
+ if (!file || !runId) { say('✗ pmos impact is for PMOS\'s impact run. The PM checks each item in Today\'s chat.'); return 1; }
39
39
  const F = IM.fold(IM.readLines(file));
40
40
  const at = new Date(now).toISOString();
41
41
  const line = (ev) => { fs.appendFileSync(file, JSON.stringify({ at, by: null, run: runId, ...ev }) + '\n', { mode: 0o600 }); };
@@ -52,14 +52,14 @@ function rule(info, id) {
52
52
  out.push('Speak to the PM as "you", in the first person ("I archived them"). Never write "The PM says" or speak of the PM in the third person.');
53
53
  out.push(
54
54
  `Read workflows only through pmos: \`pmos workflow of ${ini}\` gives this initiative's workflow and its stages, \`pmos workflow show <workflow id>\` gives any workflow's stages, and \`pmos workflow list\` names every workflow the PM can pick, the ones saved in Settings included. The workflows are not files in this repository: never search the files for one. If pmos cannot find a workflow, tell the PM so and ask. A workflow is not a lane: never use a lane (feature, discovery, chore, incident, content, prototype) in place of the initiative's workflow.`,
55
- `The workflow stage is on the initiative: the stage card and the Board show it. \`pmos workflow of ${ini}\` reads it. When the PM asks to move the initiative, run \`pmos workflow move ${ini} --stage <key> --why "<reason>"\`. When the PM asks to change its workflow, run \`pmos workflow switch ${ini} --to <workflow id>\`. Both write what the page's press writes, under your name.`,
55
+ `The workflow stage is on the initiative: the stage card and Work show it. \`pmos workflow of ${ini}\` reads it. When the PM asks to move the initiative, run \`pmos workflow move ${ini} --stage <key> --why "<reason>"\`. When the PM asks to change its workflow, run \`pmos workflow switch ${ini} --to <workflow id>\`. Both write what the page's press writes, under your name.`,
56
56
  'There is one kind of task: the ones the PM sees in the initiative\'s Tasks section. The stage card\'s To finish entries and the older breakdown items are tasks too. '
57
57
  + 'A task\'s state is To do, In progress, Done, Won\'t do or Archived. The Tasks section groups the tasks under the stages of this initiative\'s workflow: a task\'s group is its place in the breakdown, never its state. When the PM asks to add, close, group or change a task, '
58
- + `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD] [--parent <task>]\` adds one, \`pmos task list ${ini}\` names them all, \`pmos task state <task> [<task> …] --to "<state>" --why "<what shows it>"\` sets their state and \`pmos task set <task> [<task> …] --stage <stage>|none\` groups them (it also takes --due, --start, --owner, --notes; none clears a date). Tasks nest: \`pmos task set <task> [<task> …] --parent <task>|none\` puts tasks under a parent task as subtasks, or back at the top level with none, and \`--parent\` on add makes a new subtask. When the PM asks to group tasks into task and subtask, make the parent tasks and move the tasks under them, keeping each task and its state; never close tasks as Won't do to group them. Tell the PM the Undo line the command prints. \`pmos task describe <task> "<text>"\` writes a task's description (What, Why, Done when) and \`pmos task describe <task>\` reads it. \`pmos task comment <task> "<text>"\` adds a comment to a task (it shows under the task's Activity › Comments) and \`pmos task comment <task>\` lists them. \`pmos task remove <task> [<task> …]\` deletes a task added by mistake when the PM asks; work that stopped is Archived instead. Never use \`pmos item add\` for new work, and never change tasks to move the initiative.`,
58
+ + `do it yourself, never send the PM to Work: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD] [--parent <task>]\` adds one, \`pmos task list ${ini}\` names them all, \`pmos task state <task> [<task> …] --to "<state>" --why "<what shows it>"\` sets their state and \`pmos task set <task> [<task> …] --stage <stage>|none\` groups them (it also takes --due, --start, --owner, --notes; none clears a date). Tasks nest: \`pmos task set <task> [<task> …] --parent <task>|none\` puts tasks under a parent task as subtasks, or back at the top level with none, and \`--parent\` on add makes a new subtask. When the PM asks to group tasks into task and subtask, make the parent tasks and move the tasks under them, keeping each task and its state; never close tasks as Won't do to group them. Tell the PM the Undo line the command prints. \`pmos task describe <task> "<text>"\` writes a task's description (What, Why, Done when) and \`pmos task describe <task>\` reads it. \`pmos task comment <task> "<text>"\` adds a comment to a task (it shows under the task's Activity › Comments) and \`pmos task comment <task>\` lists them. \`pmos task remove <task> [<task> …]\` deletes a task added by mistake when the PM asks; work that stopped is Archived instead. Never use \`pmos item add\` for new work, and never change tasks to move the initiative.`,
59
59
  // batch 31 (Wawan 2026-11-18): the chat offered to rewrite a closed initiative's dates to clear "145 days over"; the count was the page's bug
60
60
  'The "N days over" badge counts from the planned finish (the latest due of its tasks). While the initiative is open it counts to today. Once it is in its workflow\'s last stage (Closed, Done) it counts to when the work really finished: the end of its last Done task, else the day it moved into that stage. On time, the badge goes away and the card says Done with that date; late, it reads "Finished N days late" and that number never grows. '
61
61
  + 'Never change a date, a task or the stage to clear or shorten the badge: the dates are the record. When the PM asks why it shows, explain this rule.',
62
- 'The Board timeline draws one bar per initiative, from the earliest start to the latest due of its tasks. An initiative with no dated task has no bar. Every stage shows there, Monitor and Evaluate included. Use these rules when the PM asks why an initiative is not on the timeline.',
62
+ 'The Work timeline draws one bar per initiative, from the earliest start to the latest due of its tasks. An initiative with no dated task has no bar. Every stage shows there, Monitor and Evaluate included. Use these rules when the PM asks why an initiative is not on the timeline.',
63
63
  `A stage's document fills its card only through \`pmos coredoc write --scope initiative:${ini} --key wf-<stage key> --file <path>\` (the stage keys are in \`pmos workflow of ${ini}\`). It is a draft the PM issues on the page. A file written under planning/ is not linked to a card.`,
64
64
  );
65
65
  return out;
@@ -76,7 +76,7 @@ const WORK_LANES = 'new-feature, improvement, bug-fix, discovery or chore';
76
76
  /** One line: what is not on the Roadmap, and what to do when it is work and not a document. */
77
77
  function docNote(docs) {
78
78
  const names = docs.map((d) => `${d.id} (${d.lane || 'document'})`).join(', ');
79
- return `Not on the Roadmap · ${docs.length} on a document lane: ${names}. A document lane does not show on Home or the Board. If it is work, set lane: in its record to ${WORK_LANES}.`;
79
+ return `Not on the Roadmap · ${docs.length} on a document lane: ${names}. A document lane does not show on Today or Work. If it is work, set lane: in its record to ${WORK_LANES}.`;
80
80
  }
81
81
 
82
82
  const COMMANDS = { initiative: ['new', 'top', 'up', 'down', 'bottom', 'after', 'check-by', 'adopt', 'drop', 'list', 'export', 'describe', 'raised-by', 'kind', 'role'] };
@@ -130,12 +130,12 @@ function build(f) {
130
130
  const kindOf = ['product', 'sdlc', 'project'].includes(row.kind) ? row.kind : 'product';
131
131
  const all = dd ? (dd.docs || []).map((d) => ({
132
132
  key: d.key, title: d.title, what: d.for || '', st: d.st, state: d.kind === 'live' ? 'Live' : DOC_STATE[d.st] || d.st || '', by: BY[d.by] || d.by || '', byKey: d.by || '',
133
- when: d.when ? shortDate(d.when) : '', at: d.when || '', cat: phases ? (d.other ? null : d.cat || null) : d.cat === 'Do' ? 'Build' : d.cat === 'Learn' ? 'Evaluate' : d.cat || 'Board', ...(d.other ? { other: true } : {}), path: d.open && d.open.path ? d.open.path : null, slot: d.st === 'draft' && d.draft && d.draft.slot ? d.draft.slot : '', running: !!d.running, tech: TECH.has(d.key), kind: d.kind || '', reader: d.reader || '', cadence: d.cadence || '', sections: ((GUIDE[d.key] || {}).sections || []).slice(),
133
+ when: d.when ? shortDate(d.when) : '', at: d.when || '', cat: phases ? (d.other ? null : d.cat || null) : d.cat === 'Do' ? 'Build' : d.cat === 'Learn' ? 'Evaluate' : d.cat || 'Work', ...(d.other ? { other: true } : {}), path: d.open && d.open.path ? d.open.path : null, slot: d.st === 'draft' && d.draft && d.draft.slot ? d.draft.slot : '', running: !!d.running, tech: TECH.has(d.key), kind: d.kind || '', reader: d.reader || '', cadence: d.cadence || '', sections: ((GUIDE[d.key] || {}).sections || []).slice(),
134
134
  act: d.act && d.act.do === 'draft' ? { kind: 'draft', label: d.running ? 'Drafting' : d.act.label || 'Draft it' } : null,
135
135
  from: d.from && d.from.text ? { path: d.from.path, heading: d.from.heading, text: d.from.text, cut: !!d.from.cut } : null,
136
136
  ...(KS.docHidden(kindOf, d.key) ? { hidden: true } : {}), // folded, never dropped (pm/home-ini.js docsView)
137
137
  })) : [];
138
- const custom = (f.custom || []).map((d) => Object.assign(Custom.rowOf(d), { added: shortDate(d.at), at: d.at || '', cat: d.phase || 'Board' }));
138
+ const custom = (f.custom || []).map((d) => Object.assign(Custom.rowOf(d), { added: shortDate(d.at), at: d.at || '', cat: d.phase || 'Work' }));
139
139
  const rows = all.concat(custom);
140
140
  const core = rows.filter((d) => !d.tech && !d.hidden); // a hidden document is not counted or offered, only folded
141
141
  const cnt = { all: core.length, none: core.filter((d) => d.st === 'missing').length, draft: core.filter((d) => d.st === 'draft').length, ok: core.filter((d) => d.st === 'ok' || d.st === 'live').length };
@@ -425,7 +425,7 @@ function moreOf(model) {
425
425
  why: r.promise.metric ? 'It promised: ' + clip(r.promise.metric, 140) : 'See Did it work? below.', outcome: r.id });
426
426
  }
427
427
  const late = model.lateRows || [];
428
- if (late.length) out.push({ text: noun(late.length, 'initiative is late', 'initiatives are late') + ': ' + late.slice(0, 3).map((r) => r.title + (r.owner ? ' (' + r.owner + ')' : '')).join(', ') + (late.length > 3 ? ', and ' + (late.length - 3) + ' more' : '') + '.', why: 'Late is the Board’s own status for each.' });
428
+ if (late.length) out.push({ text: noun(late.length, 'initiative is late', 'initiatives are late') + ': ' + late.slice(0, 3).map((r) => r.title + (r.owner ? ' (' + r.owner + ')' : '')).join(', ') + (late.length > 3 ? ', and ' + (late.length - 3) + ' more' : '') + '.', why: 'Late is Work’s own status for each.' });
429
429
  return out;
430
430
  }
431
431
  /** Shipped work (Deliver, Monitor, Evaluate, or done) against what its anchor goal promised. PURE. */
@@ -48,7 +48,7 @@ const LEDGERS = Object.freeze({
48
48
  '<runtime>/goal-loops.jsonl': { concept: 'goal-loops', owner: 'lib/goal-loop.js', readers: [
49
49
  r('lib/loop-cli.js', null, '`pmos loop status`: each goal, its round and its state')] },
50
50
  '<state>/autonomy.jsonl': { concept: 'autonomy', owner: 'lib/autonomy.js', readers: [
51
- r('lib/routes-autonomy.js', 'A.done', 'what PMOS did by itself on Home and in the Viewer, each with its reason and Undo'),
51
+ r('lib/routes-autonomy.js', 'A.done', 'what PMOS did by itself on Today and in the Viewer, each with its reason and Undo'),
52
52
  r('lib/loop-health.js', 'A.fold', 'the jobs back to asking, on the health line')] },
53
53
  '<state>/driver.jsonl': { concept: 'driver-runs', owner: 'lib/driver.js', readers: [
54
54
  r('lib/routes-driver.js', null, "the initiative's Agent strip"),
@@ -62,9 +62,9 @@ const LEDGERS = Object.freeze({
62
62
  r('lib/routes-goal-status.js', null, 'goal status'),
63
63
  r('lib/insights-premium.js', null, 'Intelligence')] },
64
64
  '<runtime>/impact.jsonl': { concept: 'impact', owner: 'lib/impact.js', readers: [
65
- r('lib/routes-impact.js', null, "Adler's sprout on Home and the impact log")] },
65
+ r('lib/routes-impact.js', null, "Adler's sprout on Today and the impact log")] },
66
66
  '<state>/forecast.jsonl': { concept: 'forecast', owner: 'lib/forecast.js', readers: [
67
- r('lib/routes-forecast.js', null, 'the forecast on the Board and Intelligence')] },
67
+ r('lib/routes-forecast.js', null, 'the forecast on Work and Intelligence')] },
68
68
  '<state>/scan.jsonl': { concept: 'horizon-scan', owner: 'lib/scan.js', readers: [
69
69
  r('lib/routes-scan.js', null, 'the Horizon scan results')] },
70
70
  '<state>/outcome-runs.jsonl': { concept: 'outcome-runs', owner: 'lib/outcome-props.js', readers: [
@@ -72,7 +72,7 @@ const LEDGERS = Object.freeze({
72
72
  '<state>/question-days.jsonl': { concept: 'question-days', owner: 'lib/question-batch.js', readers: [
73
73
  r('lib/routes-your-move.js', null, "the day's question list in Your move")] },
74
74
  '<state>/drift.jsonl': { concept: 'drift', owner: 'lib/drift.js', readers: [
75
- r('lib/routes-drift.js', null, "What you might have missed, in Home's chat")] },
75
+ r('lib/routes-drift.js', null, "What you might have missed, in Today's chat")] },
76
76
  '<runtime>/idle-lab.jsonl': { concept: 'idle-lab', owner: 'lib/idle-lab.js', readers: [
77
77
  r('lib/routes-lab.js', null, 'Intelligence › Lab')] },
78
78
  '<runtime>/refresh-log.jsonl': { concept: 'refresh-log', owner: 'lib/refresh.js', readers: [
@@ -85,8 +85,8 @@ const LEDGERS = Object.freeze({
85
85
  '<state>/design.jsonl': { concept: 'report-design', owner: 'lib/report-design.js', readers: [
86
86
  r('lib/routes-report-design.js', null, 'the report design studio')] },
87
87
  '<state>/units.jsonl': { concept: 'unit-owners', owner: 'lib/unit-owner.js', readers: [
88
- r('lib/units-host.js', 'O.latest(F)', 'GET /api/units and Home\'s one line per group, from the newest brief of each unit'),
89
- r('lib/briefing-premium-agent.js', 'briefsBlock', 'the chief\'s opening (Home\'s chat) carries the latest unit briefs')] },
88
+ r('lib/units-host.js', 'O.latest(F)', 'GET /api/units and Today\'s one line per group, from the newest brief of each unit'),
89
+ r('lib/briefing-premium-agent.js', 'briefsBlock', 'the chief\'s opening (Today\'s chat) carries the latest unit briefs')] },
90
90
  '<state>/team.jsonl': { concept: 'role-team', owner: 'lib/team-runs.js', readers: [
91
91
  r('lib/team-cli.js', 'R.status', '`pmos team status`: who works on what, and the inbox entry of each ended dispatch'),
92
92
  r('lib/team-runs.js', 'function advance', 'the next role of a dispatch, and the Evaluator woken by another role\'s write')] },
@@ -93,7 +93,7 @@ function place(input, now = Date.now()) {
93
93
  const lastMove = [...moves].reverse().find((m) => m && here(m.to) && ms(m.at));
94
94
  let since = null, setBy = null;
95
95
  if (one.setBy === 'pm' && ms(one.readAt) && one.stage !== 'on-hold') { since = ms(one.readAt); setBy = one.source || 'your word'; }
96
- if (lastMove && (!since || ms(lastMove.at) > since)) { since = ms(lastMove.at); setBy = lastMove.via === 'move' ? 'a Board move' : 'a workflow change'; }
96
+ if (lastMove && (!since || ms(lastMove.at) > since)) { since = ms(lastMove.at); setBy = lastMove.via === 'move' ? 'a Work move' : 'a workflow change'; }
97
97
  const acts = activity.map(ms).filter((x) => x != null && x <= now + DAY);
98
98
  const tickets = jira && Array.isArray(jira.tickets) ? jira.tickets : [];
99
99
  for (const t of tickets) { const u = ms(t.updated); if (u != null) acts.push(u); }
@@ -238,7 +238,7 @@ function viewOf(F, rows, o = {}) {
238
238
  const taken = new Set();
239
239
  const live = [];
240
240
  const cands = [...F.props.values()].filter((p) => !keptIds.has(p.id)).sort((a, b) => (ORDER[a.type] ?? 9) - (ORDER[b.type] ?? 9) || String(b.at).localeCompare(String(a.at)));
241
- const away = { id: 'lp-away', group: 'tidy', type: 'away', title: '', why: 'No message for 14 days or more, and none waits on you. They leave Home; Search keeps them.', sources: [], data: {},
241
+ const away = { id: 'lp-away', group: 'tidy', type: 'away', title: '', why: 'No message for 14 days or more, and none waits on you. They leave Today; Search keeps them.', sources: [], data: {},
242
242
  items: awayOf(rows, o.today).map((r) => ({ row: r.id })) };
243
243
  // batch 13 item 7: live sessions idle and safe to close, in an initiative or not (o.closable: the server's list, read now, never a run's)
244
244
  const shut = closeOf(o.closable);
@@ -19,7 +19,7 @@ const store = require('./mention-store.js');
19
19
 
20
20
  const COMMANDS = { mention: ['list', 'draft', 'gist', 'nodraft', 'stands', 'watch', 'landed', 'looks', 'answered'] };
21
21
  const USAGE = [
22
- 'usage: pmos mention list|draft|gist|nodraft|stands|watch|landed|looks|answered — Home\'s Mentions',
22
+ 'usage: pmos mention list|draft|gist|nodraft|stands|watch|landed|looks|answered — Today\'s Mentions',
23
23
  ' pmos mention list the conversations: Your move, To read, Answered this week',
24
24
  ' pmos mention draft <id> --text "<reply>" change the proposed reply of one conversation (or --file <path|->)',
25
25
  ' pmos mention gist <id> --text "<one line>" the row\'s line: where the conversation stands',
@@ -81,7 +81,7 @@ const MOBILE_TAB_OF = { reports: 'board' };
81
81
  function mobTabOf(dest) { return MOBILE_TAB_OF[dest] || dest; }
82
82
  // What each tab and Settings is called. The same words as the desktop bar (public/pm/frame-copy.js COPY.nav), which
83
83
  // MOBNAV-P7 holds equal.
84
- const DEST_TITLE = { today: 'Agenda', initiatives: 'Initiatives', board: 'Board', reports: 'Reports', docs: 'Docs', agent: 'Agent', settings: 'Settings' };
84
+ const DEST_TITLE = { today: 'Agenda', initiatives: 'Initiatives', board: 'Work', reports: 'Reports', docs: 'Docs', agent: 'Agent', settings: 'Settings' };
85
85
  // Every old MODES key has a tab. The suite ITERATES this map, so a mode without a phone path fails.
86
86
  const MOBILE_DEST = { product: 'initiatives', scheduled: 'reports', agent: 'agent', memory: 'initiatives',
87
87
  workflow: 'initiatives', skills: 'initiatives', knowledge: 'initiatives' };
@@ -30,13 +30,13 @@ const PLACES = ['board', 'insights', 'reports'];
30
30
  /** The moments in the order they are proposed. `place` is where ✓ goes; `guide` the guide page linked inline. */
31
31
  const MOMENTS = [
32
32
  { id: 'first', place: null, record: true },
33
- { id: 'board', place: 'board', href: '/premium-board.html', guide: 'programs', guideLabel: 'How the Board works', go: 'Open the Board' },
33
+ { id: 'board', place: 'board', href: '/premium-board.html', guide: 'programs', guideLabel: 'How Work works', go: 'Open Work' },
34
34
  { id: 'insights', place: 'insights', href: '/premium-intelligence.html', guide: 'intelligence-okr-goals', guideLabel: 'How Intelligence works', go: 'Open Intelligence' },
35
35
  { id: 'reports', place: 'reports', href: '/premium-intelligence.html?tab=library', guide: 'reports', guideLabel: 'How reports work', go: 'Open reports' },
36
36
  ];
37
37
  /** The one honest line a place shows before its moment comes. */
38
38
  const QUIET = {
39
- board: 'The Board starts at three initiatives, or a date.',
39
+ board: 'Work starts at three initiatives, or a date.',
40
40
  insights: 'Intelligence starts when you keep a goal.',
41
41
  reports: 'The first report comes after a week of movement.',
42
42
  };
@@ -160,8 +160,8 @@ function due(m, F, P, open) {
160
160
  function wordsOf(m, F) {
161
161
  if (m.id === 'board') {
162
162
  return F.initiatives >= 3
163
- ? { text: `${F.initiatives === 3 ? 'Three' : F.initiatives} initiatives now. See them by stage on the Board, and rank them.`, sub: 'One ranked list, in the order you set. Programs and the timeline follow once a program or a date exists.' }
164
- : { text: 'A date is set now. See your initiatives on the Board, with the timeline, and rank them.', sub: 'One ranked list, in the order you set.' };
163
+ ? { text: `${F.initiatives === 3 ? 'Three' : F.initiatives} initiatives now. See them by stage on Work, and rank them.`, sub: 'One ranked list, in the order you set. Programs and the timeline follow once a program or a date exists.' }
164
+ : { text: 'A date is set now. See your initiatives on Work, with the timeline, and rank them.', sub: 'One ranked list, in the order you set.' };
165
165
  }
166
166
  if (m.id === 'insights') return { text: 'You kept a goal. Intelligence reads it now: its key results and where each number comes from.', sub: F.goalTitle ? 'Goal: ' + F.goalTitle : '' };
167
167
  if (m.id === 'reports') return { text: 'A week of movement now. The first report can be drafted from it.', sub: 'Reports and dashboards are in Intelligence, under ⋯.' };
@@ -43,7 +43,7 @@ function srcLabel(it) {
43
43
  const s = String(it.source || 'local');
44
44
  if (s === 'local') return 'Yours';
45
45
  if (s === 'jira') return 'Jira';
46
- if (s === 'wbs') return 'Board';
46
+ if (s === 'wbs') return 'Work';
47
47
  return s.charAt(0).toUpperCase() + s.slice(1);
48
48
  }
49
49
  const isLocal = (it) => !it.source || it.source === 'local';
@@ -75,10 +75,10 @@ const inInitiative = (place) => !!(place && place.initiative);
75
75
  const usable = (moves, place) => (moves || []).filter((m) => m.where === 'any' || inInitiative(place));
76
76
 
77
77
  function placeLines(place) {
78
- if (!place) return 'The chat: Home (not tied to one initiative).';
78
+ if (!place) return 'The chat: Today (not tied to one initiative).';
79
79
  const bits = [];
80
80
  if (place.initiative) bits.push(`The chat: the initiative "${one(place.initiative, 120)}"${place.stage ? `, stage ${one(place.stage, 40)}` : ''}${place.product ? `, product ${one(place.product, 80)}` : ''}.`);
81
- else bits.push(`The chat: ${one(place.title || 'Home', 120)} (not tied to one initiative).`);
81
+ else bits.push(`The chat: ${one(place.title || 'Today', 120)} (not tied to one initiative).`);
82
82
  return bits.join('\n');
83
83
  }
84
84
  const styleLines = (style, rules) => (STYLES[style] || STYLES.engineer) + (style === 'own' && rules ? '\nThe PM\'s rules:\n' + one(rules, 1000) : '');
@@ -77,7 +77,7 @@ const VERBS = Object.freeze({
77
77
  help: 'pmos past ask|check|verify|sources … — why did we decide or drop something: the records that say so, each with its line (pmos past help)' }),
78
78
  // Not a pm-os-absorb verb (run: null): Home's Mentions A+ (premium-agreed-design) added it through the same table.
79
79
  mention: Object.freeze({ module: 'mention-cli.js', run: null, guide: 'cli.md',
80
- help: 'pmos mention list|draft — Home\'s Mentions: what waits on you, and the proposed reply Claude changes from a chat (pmos mention help)' }),
80
+ help: 'pmos mention list|draft — Today\'s Mentions: what waits on you, and the proposed reply Claude changes from a chat (pmos mention help)' }),
81
81
  // Not a pm-os-absorb verb (run: null): the popup context work (premium-chat-session slice 7) added it through the same table.
82
82
  lead: Object.freeze({ module: 'lead-cli.js', run: null, guide: 'cli.md',
83
83
  help: 'pmos lead put|show|due — Claude\'s short lead for a popup, written ahead from stored reads (pmos lead help)' }),
@@ -209,7 +209,7 @@ const VERBS = Object.freeze({
209
209
  help: 'pmos git-identity [set --name <n> --email <e> --login <gh>] — which git identity and GitHub login this repository uses; save your choice for it' }),
210
210
  // Not a pm-os-absorb verb (run: null): roadmap-signal-verb (bet A157) added it through the same table.
211
211
  signal: Object.freeze({ module: 'signal-cli.js', run: null, guide: 'cli.md',
212
- help: 'pmos signal add|remove|list|count — the customer signals behind each roadmap item; the Board shows the count (pmos signal help)' }),
212
+ help: 'pmos signal add|remove|list|count — the customer signals behind each roadmap item; Work shows the count (pmos signal help)' }),
213
213
  launcher: Object.freeze({ module: 'launcher-cli.js', run: null, guide: 'cli.md',
214
214
  help: 'pmos launcher on|off|status — a PMOS app and a login item, so the workspace starts without a terminal' }),
215
215
  });
@@ -61,7 +61,7 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd() } =
61
61
  const lines = SC.FIELDS.map((k) => ({ key: k, label: SC.LABELS[k], text: card[k] || '' }));
62
62
  if (flags.json) { say(JSON.stringify({ ok: true, complete: SC.complete(card), lines })); return 0; }
63
63
  for (const l of lines) say(` ${l.key.padEnd(8)} ${l.label}: ${l.text || '(not written)'}`);
64
- if (!SC.complete(card)) say('Write all five lines on the Board\'s Strategy card before drafting positioning.');
64
+ if (!SC.complete(card)) say('Write all five lines on Work\'s Strategy card before drafting positioning.');
65
65
  return 0;
66
66
  }
67
67
  if (sub === 'list') {
@@ -93,7 +93,7 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
93
93
  const r = sub === 'draft' ? P.draft(dir, input, D, { by: by(), now }) : P.add(dir, input, D, { by: by(), now });
94
94
  if (!r.ok) return r.code === 'dropped' && !flags.json ? (say('dropped: ' + r.error), 1) : fail(r.error);
95
95
  if (flags.json) { say(JSON.stringify({ ok: true, principle: pub(r.item) })); return 0; }
96
- say(`✓ ${r.item.id}: ${sub === 'draft' ? 'drafted; it waits on the Board for a keep or a drop' : 'kept'}.`);
96
+ say(`✓ ${r.item.id}: ${sub === 'draft' ? 'drafted; it waits on Work for a keep or a drop' : 'kept'}.`);
97
97
  return 0;
98
98
  }
99
99
 
@@ -102,7 +102,7 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
102
102
  const r = P.act(dir, sub, pos[0], { by: by(), now });
103
103
  if (!r.ok) return fail(r.error);
104
104
  if (flags.json) { say(JSON.stringify({ ok: true, principle: pub(r.item) })); return 0; }
105
- say(`✓ ${r.item.id}: ${r.item.state === 'open' ? 'back to a draft' : r.item.state}. The Board shows it.`);
105
+ say(`✓ ${r.item.id}: ${r.item.state === 'open' ? 'back to a draft' : r.item.state}. Work shows it.`);
106
106
  return 0;
107
107
  }
108
108
 
@@ -19,15 +19,15 @@ const RULE = [
19
19
  'PMOS has programs. A program is the level above initiatives (Program > Initiative > Epic) and can span products. It has no stages of its own: its state, products and stage spread come from its initiatives.',
20
20
  'A program is a record in programs.jsonl in a workspace state folder (pmos/state/ or the workspace state folder), one JSON line each: {"kind":"program",…} is the charter, {"kind":"member","program":"<id>","initiative":"<id>"} puts an initiative in it, and "leave", "task", "check", "order" (the PM\'s sequence of its initiatives) and "archive" lines follow the same pattern. A program id is its title in lower case with dashes, for example project-horizon.',
21
21
  'A program is NOT a key on an initiative. Never add kind, program, programme, parent_program or parent_programme to an initiative record or any front matter: nothing reads them.',
22
- 'When the PM asks for a program change, or says yes to one you drafted, make it at once with the `pmos program` command below, run in the repository where the program was made (join and leave: where the initiative is). Never write programs.jsonl by hand. Each command prints an Undo: tell the PM the change is saved and give the Undo in one line. The Board shows the change when your turn ends.',
22
+ 'When the PM asks for a program change, or says yes to one you drafted, make it at once with the `pmos program` command below, run in the repository where the program was made (join and leave: where the initiative is). Never write programs.jsonl by hand. Each command prints an Undo: tell the PM the change is saved and give the Undo in one line. Work shows the change when your turn ends.',
23
23
  '- The card\'s Goal, For, target date or owner: pmos program charter <id> --goal "<text>" | --why "<text>" | --target YYYY-MM-DD | --owner "<name>"',
24
24
  '- A new program: pmos program new "<title>" [--goal "<text>"] [--target YYYY-MM-DD]. An initiative becomes a program ("set X as a program"): pmos program new "<title>" --from <initiative id>.',
25
25
  '- An initiative joins or leaves: pmos program join <id> <initiative> · pmos program leave <id> <initiative>',
26
26
  '- Milestones: pmos program milestone <id> add "<name>" --date YYYY-MM-DD [--waits <initiative>,…] · move <milestone id> --date YYYY-MM-DD · rename <milestone id> "<name>" · drop <milestone id>. A milestone that waits on no initiative is marked done with pmos program check <id> <milestone id>.',
27
27
  '- Program tasks: pmos program task <id> "<title>" [--owner "<name>"] [--due YYYY-MM-DD] · pmos program task-done <id> <key>',
28
28
  '- The order of its initiatives: pmos program order <id> <id>,<id>,… · Archive it: pmos program archive <id> (Undo: pmos program unarchive <id>).',
29
- 'Run `pmos program help` when unsure. If a command refuses, say what it printed and what would let it through; never send the PM to the Board for a change a command makes.',
30
- 'To see a program: press its name on the Board, or open /premium-board.html?program=<id>.',
29
+ 'Run `pmos program help` when unsure. If a command refuses, say what it printed and what would let it through; never send the PM to Work for a change a command makes.',
30
+ 'To see a program: press its name on Work, or open /premium-board.html?program=<id>.',
31
31
  'You can read programs.jsonl to answer a question about a program. If the PM asks you to sort a turned program\'s tasks into program, initiative or epic, propose a level for each task in a list and let the PM decide.',
32
32
  ].join('\n');
33
33
 
@@ -36,8 +36,8 @@ const USAGE = [
36
36
  ' pmos program check <id> <milestone> [--undo]',
37
37
  ' Mark a milestone that waits on no initiative as done (--undo opens it again).',
38
38
  ' pmos program archive <id> | pmos program unarchive <id>',
39
- ' Take a program off the Board, or put it back.',
40
- ' Every write above is one the user asked for in the chat. It shows on the Board when the chat turn ends.',
39
+ ' Take a program off Work, or put it back.',
40
+ ' Every write above is one the user asked for in the chat. It shows on Work when the chat turn ends.',
41
41
  ' pmos program line [<id>] [--json] [--root <dir>]',
42
42
  ' Where each program stands: Charter, Sequence, Track or Land, what is missing, the next move, the forecast against the target,',
43
43
  ' and one decision row for each team two products need in Build beyond its capacity. Reads every product on this computer, or only',
@@ -149,7 +149,7 @@ function editVerb(verb, args, { say, cwd, now = Date.now() } = {}) {
149
149
  for (const f of files) { const p = P.fold(linesOf(f))[id]; if (p && p.charter) return { file: f, prog: p }; }
150
150
  return null;
151
151
  };
152
- const done = (msg, undo) => { say(`✓ ${msg}. The Board shows it.${undo ? ' Undo: ' + undo : ''}`); return 0; };
152
+ const done = (msg, undo) => { say(`✓ ${msg}. Work shows it.${undo ? ' Undo: ' + undo : ''}`); return 0; };
153
153
 
154
154
  if (verb === 'new') {
155
155
  const title = String(pos[0] || '').trim();
@@ -174,7 +174,7 @@ function editVerb(verb, args, { say, cwd, now = Date.now() } = {}) {
174
174
  if (verb === 'archive' && prog.archived) { say(`${id} is archived already.`); return 0; }
175
175
  if (verb === 'unarchive' && !prog.archived) { say(`${id} is not archived.`); return 0; }
176
176
  add(file, { kind: verb, program: id });
177
- return done(`${id} ${verb === 'archive' ? 'archived' : 'is back on the Board'}`, `pmos program ${verb === 'archive' ? 'unarchive' : 'archive'} ${id}`);
177
+ return done(`${id} ${verb === 'archive' ? 'archived' : 'is back on Work'}`, `pmos program ${verb === 'archive' ? 'unarchive' : 'archive'} ${id}`);
178
178
  }
179
179
 
180
180
  if (verb === 'join' || verb === 'leave') {
@@ -132,7 +132,7 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, stdin
132
132
  if (!COMMANDS.propose.includes(verb)) { say(`unknown propose command "${verb}" — one of ${COMMANDS.propose.join(', ')}`); return 2; }
133
133
  const file = env.PMOS_PROPOSE_FILE, runId = env.PMOS_PROPOSE_RUN, ini = env.PMOS_PROPOSE_INI, board = env.PMOS_PROPOSE_BOARD || '';
134
134
  if (!file || !runId || !ini) { say('✗ pmos propose is for PMOS\'s proposal run. The PM keeps and drops proposals on the page, under the initiative\'s ✦'); return 1; }
135
- if ((verb === 'loose') !== (ini === '~loose')) { say(verb === 'loose' ? '✗ pmos propose loose is for Home\'s clean-up run' : '✗ this is Home\'s clean-up run: file with pmos propose loose'); return 1; }
135
+ if ((verb === 'loose') !== (ini === '~loose')) { say(verb === 'loose' ? '✗ pmos propose loose is for Today\'s clean-up run' : '✗ this is Today\'s clean-up run: file with pmos propose loose'); return 1; }
136
136
  if (verb === 'loose') return loose(args, { say, stdin, file, runId });
137
137
  const F = PR.fold(PR.readLines(file));
138
138
  const line = (ev) => { fs.appendFileSync(file, JSON.stringify({ at: new Date().toISOString(), by: null, ...ev }) + '\n'); };
@@ -126,7 +126,7 @@ function refsOf(root, snap, files) {
126
126
  for (const [ini, file] of Object.entries(F.records || {})) {
127
127
  const a = lineRef(root, file, (l) => /^(parent_kr|anchor):/.test(l), ini + ' anchor');
128
128
  if (a) R.rows[ini + ':anchor'] = a;
129
- const idl = lineRef(root, file, (l) => /^id:/.test(l), ini + ' record (its end is the Board\'s, from its tasks)');
129
+ const idl = lineRef(root, file, (l) => /^id:/.test(l), ini + ' record (its end is Work\'s, from its tasks)');
130
130
  if (idl) R.rows[ini + ':end'] = idl;
131
131
  const tl = lineRef(root, file, (l) => /^title:/.test(l), ini + ' title'); // W5: the date a title names
132
132
  if (tl) R.rows[ini + ':title'] = tl;
@@ -139,7 +139,7 @@ function rehearse(snap, change) {
139
139
  if (!b || !a || a.e === b.e && a.s === b.s) continue;
140
140
  const d = (a.e != null && b.e != null ? a.e - b.e : a.s - b.s), via = refL(m.link), why = q(titleOf(m.link.from));
141
141
  const o = T0.get(m.uid), key = b.ms || a.s == null ? 'e' : 's';
142
- const from = ' from ' + TL.md(b[key]) + (o && o[key] !== b[key] ? ' (' + TL.md(o[key]) + ' on the Board; late work before it already pushes it to ' + TL.md(b[key]) + ')' : '');
142
+ const from = ' from ' + TL.md(b[key]) + (o && o[key] !== b[key] ? ' (' + TL.md(o[key]) + ' on Work; late work before it already pushes it to ' + TL.md(b[key]) + ')' : '');
143
143
  if (b.ms) add({ tone: 'breaks', kind: 'milestone', ini: b.ini, task: b.uid, text: '◇ ' + q(b.title) + (b.ini !== home ? ' in ' + q(iniTitle(b.ini)) : '') + ' moves ' + days(d) + ' later,' + from + ' to ' + TL.md(a.e) + '. It waits on ' + why + '.', evidence: [via, refT(b.uid)] });
144
144
  else if (b.ini !== home) add({ tone: 'breaks', kind: 'task', ini: b.ini, task: b.uid, text: q(b.title) + ' in ' + q(iniTitle(b.ini)) + ' moves ' + days(d) + ' later,' + from + ' to ' + TL.md(a[key]) + '. It waits on ' + why + '.', evidence: [via] });
145
145
  else mine.push({ m, d, via });
@@ -772,7 +772,7 @@ function frameMarkdown(setup, F, slot, now) {
772
772
 
773
773
  // ── the migration ────────────────────────────────────────────────────────────────────────────────────
774
774
  const DASH_PLAN = Object.freeze({ weekly: { cadence: 'weekly', day: 'Mon', time: '08:00' }, monthly: { cadence: 'monthly', dayOfMonth: 1, time: '08:00' } });
775
- const dashTitle = (key) => (key === 'portfolio' ? 'Portfolio' : `${key.startsWith('board:') ? 'Board' : 'Initiative'}: ${key.slice(key.indexOf(':') + 1)}`);
775
+ const dashTitle = (key) => (key === 'portfolio' ? 'Portfolio' : `${key.startsWith('board:') ? 'Work' : 'Initiative'}: ${key.slice(key.indexOf(':') + 1)}`);
776
776
  const keyOfSource = (source) => String(source || '').replace(/^dashboard:/, '');
777
777
 
778
778
  /**
@@ -43,13 +43,13 @@ async function handle(req, res, url, ctx) {
43
43
  if (url.searchParams.get('only') === 'sig') {
44
44
  // the page's watcher reads this every 10 seconds: the hash alone, with no item read
45
45
  try { ctx.json(res, { ok: true, ws: w.id, sig: boardFold.sigFor({ id: w.id, root: w.root }) }); }
46
- catch (e) { ctx.json(res, { ok: false, error: 'the Board could not be read: ' + String((e && e.message) || 'error').slice(0, 160) }, 500); }
46
+ catch (e) { ctx.json(res, { ok: false, error: 'Work could not be read: ' + String((e && e.message) || 'error').slice(0, 160) }, 500); }
47
47
  return true;
48
48
  }
49
49
  let out;
50
50
  // in a worker thread (workspace-data-freshness R5): the same fold, without holding the server while it reads
51
51
  try { out = await offloop.run('board-fold.js', 'boardFor', [{ id: w.id, root: w.root }, { filter: url.searchParams.get('filter') || 'active' }]); }
52
- catch (e) { ctx.json(res, { ok: false, error: 'the Board could not be read: ' + String((e && e.message) || 'error').slice(0, 160) }, 500); return true; }
52
+ catch (e) { ctx.json(res, { ok: false, error: 'Work could not be read: ' + String((e && e.message) || 'error').slice(0, 160) }, 500); return true; }
53
53
  if (!out.ok) { ctx.json(res, { ok: false, error: out.error }, out.status || 400); return true; }
54
54
  ctx.json(res, { ...out, ws: w.id });
55
55
  return true;
@@ -68,7 +68,7 @@ async function handle(req, res, url, ctx) {
68
68
  if (!planItems.INIT_RE.test(initiative) || !BATCH_RE.test(batchId)) { ctx.json(res, { ok: false, error: 'initiative and batch are required' }, 400); return true; }
69
69
  let works;
70
70
  try { works = boardFold.workInitiatives(w.root); } catch (e) { ctx.json(res, { ok: false, error: 'the initiatives could not be read: ' + String((e && e.message) || 'error').slice(0, 160) }, 500); return true; }
71
- if (!works.some((i) => i.id === initiative)) { ctx.json(res, { ok: false, error: `no initiative ${initiative} on the Board` }, 404); return true; }
71
+ if (!works.some((i) => i.id === initiative)) { ctx.json(res, { ok: false, error: `no initiative ${initiative} on Work` }, 404); return true; }
72
72
  const join = factoryJoin.joinFactory(w.root, { initiative });
73
73
  const entry = factoryJoin.factoryOf(join, initiative);
74
74
  const batch = entry && (entry.batches || []).find((b) => b && b.id === batchId);
@@ -88,7 +88,7 @@ function titleOf(key, c) {
88
88
  if (key === 'portfolio') return 'Portfolio';
89
89
  const i = key.indexOf(':'); const scope = key.slice(0, i); const id = key.slice(i + 1);
90
90
  const x = (scope === 'board' ? c.boards : c.initiatives).find((b) => b.id === id);
91
- return (scope === 'board' ? 'Board: ' : 'Initiative: ') + (x ? x.title || x.id : id);
91
+ return (scope === 'board' ? 'Work: ' : 'Initiative: ') + (x ? x.title || x.id : id);
92
92
  }
93
93
 
94
94
  /**
@@ -74,7 +74,7 @@ function createIni(ctx, g, at, title, anchor, intent) {
74
74
  const RB = require('./routes-boards.js');
75
75
  if (!at || !ID_RE.test(String(at.ws || '')) || !ID_RE.test(String(at.board || ''))) return { error: 'the product to start it in is not known' };
76
76
  if (!anchor) return { error: 'a new initiative needs what it counts toward' };
77
- const a = RB.writeAs(ctx, '/api/boards/asks/add', { ws: at.ws, board: at.board, line: String(title).slice(0, 480), source: 'Home clean-up, approved by you' }, g);
77
+ const a = RB.writeAs(ctx, '/api/boards/asks/add', { ws: at.ws, board: at.board, line: String(title).slice(0, 480), source: 'Today clean-up, approved by you' }, g);
78
78
  if (!a.body || !a.body.ok) return { error: (a.body && a.body.error) || 'the ask was not added' };
79
79
  const r = RB.writeAs(ctx, '/api/boards/asks/accept', { ws: at.ws, board: at.board, ask: a.body.ask.id, title, lane: 'feature', anchor, ...(intent ? { intent } : {}) }, g);
80
80
  if (!r.body || !r.body.ok) return { error: (r.body && r.body.error) || 'the initiative was not started' };
@@ -84,7 +84,7 @@ function createIni(ctx, g, at, title, anchor, intent) {
84
84
 
85
85
  const WRITES = {
86
86
  '/api/loose-props/rows': (ctx, res, body, g, dir) => {
87
- if (!Array.isArray(body.rows)) return fail(ctx, res, 400, 'rows is the list Home shows under "Not in an initiative"');
87
+ if (!Array.isArray(body.rows)) return fail(ctx, res, 400, 'rows is the list Today shows under "Not in an initiative"');
88
88
  const s = LP.saveRows(dir, body.rows, Date.now(), Array.isArray(body.inis) ? body.inis : undefined, body.sig);
89
89
  // rule 7: the group passed 10 rows, so Claude looks now, not tomorrow morning
90
90
  if (s.over10 && ctx.proposalRuns && ctx.proposalRuns.looseDue) {
@@ -75,7 +75,7 @@ async function handle(req, res, url, ctx) {
75
75
  const completedSources = sourceStates(ctx, w, p).filter(s => s.state === 'complete');
76
76
  const sourceComplete = completedSources.length > 0;
77
77
  const scanned = scan.state === 'scanned' || scan.state === 'imported';
78
- if (!p.work_added && !scanned && !sourceComplete) return send({ ok: false, error: 'Add a task or finish a folder or source read first. You can explore Home without completing setup.' }, 409);
78
+ if (!p.work_added && !scanned && !sourceComplete) return send({ ok: false, error: 'Add a task or finish a folder or source read first. You can explore Today without completing setup.' }, 409);
79
79
  if (scan.state === 'scanned') {
80
80
  const structure = ob.structureRoute(ctx, w);
81
81
  if (!b.skip_import && structure.body && structure.body.boards && structure.body.boards.some(x => x.initiatives && x.initiatives.length)) return send({ ok: false, error: 'Confirm the folder import, or leave it out before finishing.' }, 409);
@@ -19,7 +19,7 @@ const USAGE = [
19
19
  ' pmos signal remove <sid> [--root <dir>]',
20
20
  ' pmos signal list [<initiative>] [--json] [--root <dir>]',
21
21
  ' pmos signal count [<checkout>]',
22
- 'The Board shows the count on each roadmap item, and a press (or a tap on the item on a phone) lists them.',
22
+ 'Work shows the count on each roadmap item, and a press (or a tap on the item on a phone) lists them.',
23
23
  ];
24
24
 
25
25
  function gitRoot(cwd = process.cwd()) {
@@ -43,10 +43,10 @@ const USAGE = [
43
43
  ' --parent puts the task under another task of the same initiative as a subtask; none takes it back to the top level. Set it only when the PM asks.',
44
44
  ' The answer prints the Undo: one command per old parent that puts the tasks back where they were.',
45
45
  ' Group tasks under a stage of the initiative\'s workflow (key or name; none takes it out), or change dates, owner or notes.',
46
- ' --milestone makes a task a milestone: its due date shows as ◇ on the Board and the timeline. Set it only when the PM asks.',
47
- ' --pin shows a milestone on the Board timeline, --no-pin hides it, --pin-default goes back to the rule (the last milestone',
46
+ ' --milestone makes a task a milestone: its due date shows as ◇ on Work and the timeline. Set it only when the PM asks.',
47
+ ' --pin shows a milestone on the Work timeline, --no-pin hides it, --pin-default goes back to the rule (the last milestone',
48
48
  ' shows). Set it only when the PM asks.',
49
- ' pmos task list <initiative> [--all] its open tasks, with the start and due day the Board shows; --all adds Done, Won\'t do and Archived.',
49
+ ' pmos task list <initiative> [--all] its open tasks, with the start and due day Work shows; --all adds Done, Won\'t do and Archived.',
50
50
  ' A subtask prints under its parent, indented.',
51
51
  ' pmos task remove <task> [<task> …] [--why <text>]',
52
52
  ' Delete a task added by mistake (a placeholder, a duplicate) when the PM asks. It goes from every list; the page\'s Undo brings',
@@ -54,7 +54,7 @@ const USAGE = [
54
54
  ' pmos task state <task> [<task> …] --to <state> [--why <text>]',
55
55
  ' Set each task\'s state when the PM asks: To do, In progress, Done, Won\'t do or Archived. The page shows it at once.',
56
56
  ' Give --why with Done: it is the evidence the PM reads.',
57
- ' There is one kind of task: Board tasks, breakdown items and the current stage\'s To finish tasks all list and close here.',
57
+ ' There is one kind of task: Work tasks, breakdown items and the current stage\'s To finish tasks all list and close here.',
58
58
  ' The Tasks section groups tasks by the workflow\'s stages: --stage places a task there. It never changes the task\'s state or',
59
59
  ' moves the initiative. Move the initiative with pmos workflow move.',
60
60
  ' pmos task describe <task> ["<text>"]',
@@ -19,7 +19,7 @@ const COMMANDS = { today: [] };
19
19
  const USAGE = [
20
20
  'usage: pmos today [--ws <id>] [--json]',
21
21
  ' pmos today --root <dir> [--json] [--wait]',
22
- 'With a workspace server running, prints Your move: the list Home shows, in the same order (public/pm/move-rank.js rankMove):',
22
+ 'With a workspace server running, prints Your move: the list Today shows, in the same order (public/pm/move-rank.js rankMove):',
23
23
  'an overdue outcome verdict, a grill finding on shipped work, a meeting change, a finding on work ahead, a key result with no',
24
24
  'reading, then the rest PMOS proposes, one row per initiative. Rows older than 14 days fold under "Older".',
25
25
  'Without a server it reads the repository and prints the Today cards, ranked by kind (1 a gate is owed, 2 a session is',
@@ -56,10 +56,10 @@ const USAGE = [
56
56
  ' Record PMOS\'s reading of an Only-when stage: yes runs it, no skips it, unsure asks the PM. Give the reason and where you read it.',
57
57
  ' pmos workflow of <initiative> the workflow it runs and its current stage, every stage numbered',
58
58
  ' pmos workflow move <initiative> --stage <key|name|number> [--why <text>]',
59
- ' Move the initiative to a stage of its own workflow, when the PM asks. The stage card and the Board show it at once.',
59
+ ' Move the initiative to a stage of its own workflow, when the PM asks. The stage card and Work show it at once.',
60
60
  ' pmos workflow switch <initiative> --to <workflow id> [--stage <key|name>] [--why <text>]',
61
- ' Put the initiative on another workflow, when the PM asks. Without --stage it lands where the Board\'s switch puts it.',
62
- ' pmos workflow check [<initiative>] every surface\'s stage (Board, Viewer, initiative list, notes and reports) compared;',
61
+ ' Put the initiative on another workflow, when the PM asks. Without --stage it lands where Work\'s switch puts it.',
62
+ ' pmos workflow check [<initiative>] every surface\'s stage (Work, Viewer, initiative list, notes and reports) compared;',
63
63
  ' exits 1 and names the surfaces when two of them show different stages for one initiative',
64
64
  ' These are the initiative\'s workflow stages. They are not task stages: a task\'s only stage is its state (To do, In progress,',
65
65
  ' Done, Won\'t do, Archived), and moving the initiative never changes a task.',
@@ -320,7 +320,7 @@ function onInitiative(verb, { pos, flags, json, say, fail, root, stateDir, actor
320
320
  : `✓ ${row.title} now runs ${row.wf.name}, in ${row.wfStage.name} (stage ${row.wfStage.n} of ${row.wfStage.of}).`);
321
321
  for (const x of warnings) say(' ' + x);
322
322
  for (const l of openBehind(verb, before, after, ctx, w, root, id)) say(' ' + l);
323
- say(' The stage card and the Board show it. No task was moved. Nothing was sent.');
323
+ say(' The stage card and Work show it. No task was moved. Nothing was sent.');
324
324
  return 0;
325
325
  }
326
326
 
@@ -124,7 +124,7 @@ const INITIATIVE = () => ({
124
124
  ok('P Built from: Now and Target, a drafted ticket as a pill', !!c && c.built.join(' / ') === 'idpf · sign-ins on CIAM | 15% | 100% by Feb 27 / Microsites · sign-ins on CIAM | — | Ticket MS-212 drafted'
125
125
  && await p.evaluate(() => !!document.querySelector('#czViewer .md-card .md-ru .md-pill')), c && c.built.join(' / '));
126
126
  ok('P one line of why, in PMOS\'s words', !!c && c.why === 'idpf is 80% of all sign-ins, so it carries the goal. I check it every morning once you keep it.', c && c.why);
127
- ok('P Discuss in Home, Edit (in place, batch 16) and a solid ✓ Keep this goal: icon-only, each with a label and a title', !!c && c.presses.map((x) => x.label).join() === 'Discuss the proposed goal in Home,Edit the proposed goal,Keep this goal'
127
+ ok('P Discuss in Home, Edit (in place, batch 16) and a solid ✓ Keep this goal: icon-only, each with a label and a title', !!c && c.presses.map((x) => x.label).join() === 'Discuss the proposed goal on Today,Edit the proposed goal,Keep this goal'
128
128
  && c.presses.every((x) => x.title && !x.text && x.svg) && c.presses[2].solid && /ask=program%3Aproject-ascent/.test(c.presses[0].href) && !c.presses[1].href, JSON.stringify(c && c.presses));
129
129
  ok('P the read names the program and its product', D.gets.some((g) => g.scope === 'program' && g.id === 'project-ascent' && g.ws === 'idpf'), JSON.stringify(D.gets));
130
130
  const ps = await sizes(p, '#czViewer .md-card');