create-pmos 0.540.0 → 0.542.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 (117) hide show
  1. package/package.json +33 -39
  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/README.md +1 -1
  7. package/workspace/adler-moments-test.js +4 -8
  8. package/workspace/briefing-premium-board-test.js +1 -1
  9. package/workspace/briefing-premium-initiative-test.js +1 -1
  10. package/workspace/briefing-premium-sources-test.js +3 -3
  11. package/workspace/briefing-premium-test.js +2 -4
  12. package/workspace/changelog.json +32 -0
  13. package/workspace/ev-everywhere-test.js +3 -3
  14. package/workspace/fixtures/doc-category-labelled.json +1 -1
  15. package/workspace/guide/agent-capabilities.md +236 -28
  16. package/workspace/guide/breakdown.md +5 -20
  17. package/workspace/guide/claude-proposes.md +269 -37
  18. package/workspace/guide/cli.md +603 -0
  19. package/workspace/guide/home.md +182 -21
  20. package/workspace/guide/index.md +23 -59
  21. package/workspace/guide/initiatives-and-next-steps.md +235 -5
  22. package/workspace/guide/intelligence-okr-goals.md +122 -5
  23. package/workspace/guide/jira.md +2 -15
  24. package/workspace/guide/knowledge-graph.md +143 -18
  25. package/workspace/guide/layout.md +209 -4
  26. package/workspace/guide/notes.md +74 -6
  27. package/workspace/guide/proactive-engine.md +3 -14
  28. package/workspace/guide/programs.md +199 -4
  29. package/workspace/guide/reports.md +405 -41
  30. package/workspace/guide/scheduled-tasks-and-cli.md +6 -28
  31. package/workspace/guide/settings-and-switches.md +397 -0
  32. package/workspace/guide/statuses.md +141 -4
  33. package/workspace/home-rows-test.js +19 -24
  34. package/workspace/lib/briefing-premium-agent.js +7 -2
  35. package/workspace/lib/cos-chat.js +75 -0
  36. package/workspace/lib/done-feed.js +33 -0
  37. package/workspace/lib/grill-runs.js +1 -1
  38. package/workspace/lib/headless.js +29 -2
  39. package/workspace/lib/loop-health.js +65 -0
  40. package/workspace/lib/pmos-verbs.js +41 -40
  41. package/workspace/lib/proposal-runs.js +1 -1
  42. package/workspace/lib/proposals.js +44 -9
  43. package/workspace/lib/routes-sources.js +2 -0
  44. package/workspace/lib/routes-your-move.js +25 -4
  45. package/workspace/lib/verify-runs.js +22 -1
  46. package/workspace/lib/verify-work-cli.js +1 -1
  47. package/workspace/package-lock.json +2 -2
  48. package/workspace/package.json +1 -1
  49. package/workspace/public/pm/batch-press.js +184 -0
  50. package/workspace/public/pm/bd-fc-card.js +2 -1
  51. package/workspace/public/pm/bd-next.js +2 -1
  52. package/workspace/public/pm/chat-src.js +18 -0
  53. package/workspace/public/pm/cozy-home.css +4 -0
  54. package/workspace/public/pm/cozy-lab-ins.js +17 -1
  55. package/workspace/public/pm/cozy-nav.js +22 -21
  56. package/workspace/public/pm/cozy-search.js +18 -9
  57. package/workspace/public/pm/cozy-today.css +7 -0
  58. package/workspace/public/pm/cozy-viewer.js +1 -1
  59. package/workspace/public/pm/goal-chat.js +1 -1
  60. package/workspace/public/pm/good-morning.js +1 -1
  61. package/workspace/public/pm/home-app.js +65 -14
  62. package/workspace/public/pm/home-chat.js +8 -4
  63. package/workspace/public/pm/home-day.js +46 -14
  64. package/workspace/public/pm/home-today.js +5 -4
  65. package/workspace/public/pm/ini-props.js +7 -2
  66. package/workspace/public/pm/ini-view.css +14 -0
  67. package/workspace/public/pm/move-rank.js +67 -9
  68. package/workspace/public/pm/outbox-view.js +35 -0
  69. package/workspace/public/pm/page-chat.css +2 -0
  70. package/workspace/public/pm/page-chat.js +33 -5
  71. package/workspace/replaced-tests.json +19 -1
  72. package/workspace/run-tests.js +23 -4
  73. package/workspace/server.js +2 -1
  74. package/workspace/task-links-test.js +6 -2
  75. package/workspace/test-lists/chief-of-staff-chat.json +9 -0
  76. package/workspace/guide/adler.md +0 -71
  77. package/workspace/guide/agents-act.md +0 -68
  78. package/workspace/guide/ask-the-past.md +0 -46
  79. package/workspace/guide/board.md +0 -58
  80. package/workspace/guide/briefing-premium.md +0 -14
  81. package/workspace/guide/console-calendar.md +0 -24
  82. package/workspace/guide/core-documents.md +0 -58
  83. package/workspace/guide/data-freshness.md +0 -164
  84. package/workspace/guide/descriptions.md +0 -43
  85. package/workspace/guide/docs.md +0 -39
  86. package/workspace/guide/forecast.md +0 -66
  87. package/workspace/guide/horizon-scan.md +0 -82
  88. package/workspace/guide/idle-lab.md +0 -46
  89. package/workspace/guide/initiative-driver.md +0 -102
  90. package/workspace/guide/initiatives-roadmap.md +0 -131
  91. package/workspace/guide/integrated-work.md +0 -93
  92. package/workspace/guide/launcher.md +0 -39
  93. package/workspace/guide/lifecycle.md +0 -64
  94. package/workspace/guide/metric-drafts.md +0 -75
  95. package/workspace/guide/moments.md +0 -43
  96. package/workspace/guide/my-work.md +0 -40
  97. package/workspace/guide/next-prompt.md +0 -64
  98. package/workspace/guide/outcomes.md +0 -39
  99. package/workspace/guide/people.md +0 -48
  100. package/workspace/guide/pm-only-acts.md +0 -88
  101. package/workspace/guide/pm-only-lines.md +0 -61
  102. package/workspace/guide/present-in-a-meeting.md +0 -57
  103. package/workspace/guide/published-board.md +0 -116
  104. package/workspace/guide/ready-made-dashboards.md +0 -62
  105. package/workspace/guide/rehearse.md +0 -52
  106. package/workspace/guide/report-design.md +0 -126
  107. package/workspace/guide/report-slides.md +0 -43
  108. package/workspace/guide/report-structure.md +0 -91
  109. package/workspace/guide/reports-needs-you.md +0 -34
  110. package/workspace/guide/reports-set-up.md +0 -68
  111. package/workspace/guide/settings.md +0 -67
  112. package/workspace/guide/today.md +0 -44
  113. package/workspace/guide/validate-with-typesafe.md +0 -144
  114. package/workspace/guide/welcome.md +0 -90
  115. package/workspace/guide/what-you-missed.md +0 -42
  116. package/workspace/guide/workflows.md +0 -107
  117. package/workspace/guide/your-impact.md +0 -57
@@ -14,7 +14,8 @@
14
14
  * Exit codes: 0 done, 1 refused, 2 usage.
15
15
  *
16
16
  * guide.test.js G24 reads COMMANDS of every module present and requires each `pmos <verb> <sub>` in the `guide` page
17
- * named here, so a verb cannot ship without its guide text.
17
+ * named here, so a verb cannot ship without its guide text. Every verb names cli.md, the guide's one Command reference
18
+ * (guide-trim): the feature pages say what a feature does, and cli.md says how to drive it from a terminal.
18
19
  *
19
20
  * A listed verb is a verb from now on, built or not: `pmos board` no longer opens a folder named board (R24 says a
20
21
  * path with a verb's name needs `./`). A verb whose module is not on disk yet says which run brings it and exits 2.
@@ -22,115 +23,115 @@
22
23
  const path = require('path');
23
24
 
24
25
  const VERBS = Object.freeze({
25
- initiative: Object.freeze({ module: 'initiative-cli.js', run: 2, guide: 'initiatives-roadmap.md',
26
+ initiative: Object.freeze({ module: 'initiative-cli.js', run: 2, guide: 'cli.md',
26
27
  help: 'pmos initiative new|now|next|later|list|export … — initiatives and their place on the Roadmap (pmos initiative help)' }),
27
- measure: Object.freeze({ module: 'measure-cli.js', run: 2, guide: 'initiatives-roadmap.md',
28
+ measure: Object.freeze({ module: 'measure-cli.js', run: 2, guide: 'cli.md',
28
29
  help: 'pmos measure … — record a measured value of a KR or a health budget, with its source (pmos measure help)' }),
29
- today: Object.freeze({ module: 'today-cli.js', run: 3, guide: 'today.md',
30
+ today: Object.freeze({ module: 'today-cli.js', run: 3, guide: 'cli.md',
30
31
  help: 'pmos today — what needs you, ranked as Today shows it' }),
31
- board: Object.freeze({ module: 'board-cli.js', run: 4, guide: 'board.md',
32
+ board: Object.freeze({ module: 'board-cli.js', run: 4, guide: 'cli.md',
32
33
  help: 'pmos board [--mine] [--init <id>] — the items of every initiative, by column' }),
33
- 'verify-work': Object.freeze({ module: 'verify-work-cli.js', run: 4, guide: 'integrated-work.md',
34
+ 'verify-work': Object.freeze({ module: 'verify-work-cli.js', run: 4, guide: 'cli.md',
34
35
  help: 'pmos verify-work — mark work items integrated from the default branch (local refs only)' }),
35
- report: Object.freeze({ module: 'report-cli.js', run: 5, guide: 'reports.md',
36
+ report: Object.freeze({ module: 'report-cli.js', run: 5, guide: 'cli.md',
36
37
  help: 'pmos report draft|issue|list … — draft and issue reports (pmos report help)' }),
37
38
  // Not a pm-os-absorb verb (run: null): initiative jira-wbs added it through the same table.
38
- jira: Object.freeze({ module: 'jira-cli.js', run: null, guide: 'jira.md',
39
+ jira: Object.freeze({ module: 'jira-cli.js', run: null, guide: 'cli.md',
39
40
  help: 'pmos jira draft|show|epic|approve|pending|record|query|sync|which … — Jira tickets drafted from the PRD, and their status (pmos jira help)' }),
40
41
  // Not a pm-os-absorb verb (run: null): the workspace-launcher initiative added it through the same table.
41
42
  // Not a pm-os-absorb verb (run: null): docs-three-way-sync added it through the same table.
42
- docs: Object.freeze({ module: 'docs-cli.js', run: null, guide: 'docs.md',
43
+ docs: Object.freeze({ module: 'docs-cli.js', run: null, guide: 'cli.md',
43
44
  help: 'pmos docs [list|link|unlink|find] … — is each linked document the same as, ahead of or behind its Google Docs and Confluence copy, and record a sync (pmos docs help)' }),
44
45
  // Not a pm-os-absorb verb (run: null): people-directory added it through the same table.
45
- people: Object.freeze({ module: 'people-cli.js', run: null, guide: 'people.md',
46
+ people: Object.freeze({ module: 'people-cli.js', run: null, guide: 'cli.md',
46
47
  help: 'pmos people list|show|record|settings … — the people you work with in this repository (pmos people help)' }),
47
48
  // Not a pm-os-absorb verb (run: null): initiative my-work added it through the same table.
48
- 'my-work': Object.freeze({ module: 'my-work-cli.js', run: null, guide: 'my-work.md',
49
+ 'my-work': Object.freeze({ module: 'my-work-cli.js', run: null, guide: 'cli.md',
49
50
  help: 'pmos my-work list|show|submit … — the Jira tickets and WBS items assigned to you, ranked (pmos my-work help)' }),
50
51
  // Not a pm-os-absorb verb (run: null): workspace-data-freshness added it through the same table.
51
- calendar: Object.freeze({ module: 'calendar-cli.js', run: null, guide: 'data-freshness.md',
52
+ calendar: Object.freeze({ module: 'calendar-cli.js', run: null, guide: 'cli.md',
52
53
  help: 'pmos calendar import|status — the calendar events an agent session read, saved for Briefing and Calendar (pmos calendar help)' }),
53
54
  // Not a pm-os-absorb verb (run: null): tracker-read-freshness added it through the same table.
54
- tracker: Object.freeze({ module: 'tracker-cli.js', run: null, guide: 'data-freshness.md',
55
+ tracker: Object.freeze({ module: 'tracker-cli.js', run: null, guide: 'cli.md',
55
56
  help: 'pmos tracker done|status — record when the tracker-refresh skill finished a read of this repository (pmos tracker help)' }),
56
57
  // Not a pm-os-absorb verb (run: null): briefing-source-flow added it through the same table.
57
- source: Object.freeze({ module: 'source-cli.js', run: null, guide: 'data-freshness.md',
58
+ source: Object.freeze({ module: 'source-cli.js', run: null, guide: 'cli.md',
58
59
  help: 'pmos source save|status|show — the stored read of each tool the Briefing uses: Mail, Slack, Confluence and the rest (pmos source help)' }),
59
60
  // Not a pm-os-absorb verb (run: null): smart refresh (step 2, ask first) added it through the same table.
60
- refresh: Object.freeze({ module: 'refresh-cli.js', run: null, guide: 'data-freshness.md',
61
+ refresh: Object.freeze({ module: 'refresh-cli.js', run: null, guide: 'cli.md',
61
62
  help: 'pmos refresh since|same <source> — ask the tool what changed since the last read first, and keep the stored read when nothing did (pmos refresh help)' }),
62
63
  // Not a pm-os-absorb verb (run: null): ask-the-past added it through the same table.
63
- past: Object.freeze({ module: 'past-cli.js', run: null, guide: 'ask-the-past.md',
64
+ past: Object.freeze({ module: 'past-cli.js', run: null, guide: 'cli.md',
64
65
  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)' }),
65
66
  // Not a pm-os-absorb verb (run: null): Home's Mentions A+ (premium-agreed-design) added it through the same table.
66
- mention: Object.freeze({ module: 'mention-cli.js', run: null, guide: 'home.md',
67
+ mention: Object.freeze({ module: 'mention-cli.js', run: null, guide: 'cli.md',
67
68
  help: 'pmos mention list|draft — Home\'s Mentions: what waits on you, and the proposed reply Claude changes from a chat (pmos mention help)' }),
68
69
  // Not a pm-os-absorb verb (run: null): the popup context work (premium-chat-session slice 7) added it through the same table.
69
- lead: Object.freeze({ module: 'lead-cli.js', run: null, guide: 'briefing-premium.md',
70
+ lead: Object.freeze({ module: 'lead-cli.js', run: null, guide: 'cli.md',
70
71
  help: 'pmos lead put|show|due — Claude\'s short lead for a popup, written ahead from stored reads (pmos lead help)' }),
71
72
  // Not a pm-os-absorb verb (run: null): workflows-per-initiative (D99) added it through the same table.
72
- workflow: Object.freeze({ module: 'workflow-cli.js', run: null, guide: 'workflows.md',
73
+ workflow: Object.freeze({ module: 'workflow-cli.js', run: null, guide: 'cli.md',
73
74
  help: 'pmos workflow list|show|draft|show-draft|judge|of|move|switch … — the workflows of this repository, the New workflow draft, a reading of an Only-when stage, and an initiative\'s workflow stage (pmos workflow help)' }),
74
75
  // Not a pm-os-absorb verb (run: null): feedback batch 4 (Wawan, 2026-10-25) added it through the same table.
75
- task: Object.freeze({ module: 'task-cli.js', run: null, guide: 'workflows.md',
76
+ task: Object.freeze({ module: 'task-cli.js', run: null, guide: 'cli.md',
76
77
  help: 'pmos task add|list|state|set … — an initiative\'s tasks: add one, list them, set their state or group them under a stage when the PM asks (pmos task help)' }),
77
78
  // Not a pm-os-absorb verb (run: null): feedback batch 4 item 6 (Claude suggests program milestones) added it through the same table.
78
- program: Object.freeze({ module: 'program-cli.js', run: null, guide: 'programs.md',
79
+ program: Object.freeze({ module: 'program-cli.js', run: null, guide: 'cli.md',
79
80
  help: 'pmos program suggest — Claude\'s milestone suggestions for a program, filed by its review run (pmos program help)' }),
80
81
  // Not a pm-os-absorb verb (run: null): c3-meet-extension added it through the same table.
81
- extension: Object.freeze({ module: 'extension-cli.js', run: null, guide: 'console-calendar.md',
82
+ extension: Object.freeze({ module: 'extension-cli.js', run: null, guide: 'cli.md',
82
83
  help: 'pmos extension — the folder of the Chrome extension for Google Meet, and the three steps to load it' }),
83
84
  // Not a pm-os-absorb verb (run: null): initiative initiative-driver added it through the same table.
84
85
  // Not a pm-os-absorb verb (run: null): feedback batch 12 items 2, 3 and 4 (Claude proposes, the one ✦) added it through the same table.
85
- propose: Object.freeze({ module: 'propose-cli.js', run: null, guide: 'claude-proposes.md',
86
+ propose: Object.freeze({ module: 'propose-cli.js', run: null, guide: 'cli.md',
86
87
  help: 'pmos propose look|found|date|done|name|status … — what Claude\'s run files under an initiative\'s ✦ for the PM to keep or drop (pmos propose help)' }),
87
88
  // Not a pm-os-absorb verb (run: null): the AI-ideas round (2026-11-03) added it through the same table: the kill switch and audit of lib/ai-guard.js.
88
89
  // Not a pm-os-absorb verb (run: null): the role-agent team (brief agent-team, 2026-11-08) added it through the same table.
89
- team: Object.freeze({ module: 'team-cli.js', run: null, guide: 'agent-capabilities.md',
90
+ team: Object.freeze({ module: 'team-cli.js', run: null, guide: 'cli.md',
90
91
  help: 'pmos team roles|dispatch|status|pause|resume — the role agents under the chief of staff: who owns what, who works on what (pmos team help)' }),
91
- ai: Object.freeze({ module: 'ai-cli.js', run: null, guide: 'claude-proposes.md',
92
+ ai: Object.freeze({ module: 'ai-cli.js', run: null, guide: 'cli.md',
92
93
  help: 'pmos ai status|off|on|log … — the AI jobs: their kill switch, replay state and audit (pmos ai help)' }),
93
94
  // Not a pm-os-absorb verb (run: null): the AI-ideas round (2026-11-03, feature 5, plan-rehearsal) added it through the same table.
94
- rehearse: Object.freeze({ module: 'rehearse-cli.js', run: null, guide: 'rehearse.md',
95
+ rehearse: Object.freeze({ module: 'rehearse-cli.js', run: null, guide: 'cli.md',
95
96
  help: 'pmos rehearse move|end|cut|log … — what a change would break or help in other initiatives, goals and dates, before the PM approves it (pmos rehearse help)' }),
96
97
  // Not a pm-os-absorb verb (run: null): Grill and Forecast part G-A (Claude grills an initiative by itself) added it through the same table.
97
- grill: Object.freeze({ module: 'grill-cli.js', run: null, guide: 'claude-proposes.md',
98
+ grill: Object.freeze({ module: 'grill-cli.js', run: null, guide: 'cli.md',
98
99
  help: 'pmos grill find|voices|status|mode|cap|spend … — what Claude\'s grill run files under an initiative\'s ✦, and when it grills and what it may spend (pmos grill help)' }),
99
100
  // Not a pm-os-absorb verb (run: null): the idle lab engine (idle-lab build E, 2026-11-04) added it through the same table.
100
- lab: Object.freeze({ module: 'lab-cli.js', run: null, guide: 'agent-capabilities.md',
101
+ lab: Object.freeze({ module: 'lab-cli.js', run: null, guide: 'cli.md',
101
102
  help: 'pmos lab page|file|status … — the idle lab: what its runs read and file while you are away, and this month\'s runs (pmos lab help)' }),
102
103
  // Not a pm-os-absorb verb (run: null): batch 15 item 1 (Claude drafts metrics without being asked) added it through the same table.
103
- metrics: Object.freeze({ module: 'metrics-cli.js', run: null, guide: 'metric-drafts.md',
104
+ metrics: Object.freeze({ module: 'metrics-cli.js', run: null, guide: 'cli.md',
104
105
  help: 'pmos metrics draft read|step|row|fix|end|status … — what Claude\'s metric-draft run files for the PM to keep or drop; pmos metrics reading … — what Claude\'s reading run reads (pmos metrics help)' }),
105
106
  // Not a pm-os-absorb verb (run: null): batch 16 item 7 (Your impact) added it through the same table.
106
- impact: Object.freeze({ module: 'impact-cli.js', run: null, guide: 'your-impact.md',
107
+ impact: Object.freeze({ module: 'impact-cli.js', run: null, guide: 'cli.md',
107
108
  help: 'pmos impact add|end|status … — what Claude\'s impact run files for you to check, ✓ real or ✕ not real (pmos impact help)' }),
108
109
  // Not a pm-os-absorb verb (run: null): initiative weekly-drift-check added it through the same table.
109
- drift: Object.freeze({ module: 'drift-cli.js', run: null, guide: 'what-you-missed.md',
110
+ drift: Object.freeze({ module: 'drift-cli.js', run: null, guide: 'cli.md',
110
111
  help: 'pmos drift show|replay|status — the weekly check for quiet drift: what it would show, its replay on your real records, and its last result (pmos drift help)' }),
111
112
  // Not a pm-os-absorb verb (run: null): initiative outcome-for-every-initiative added it through the same table.
112
- outcomes: Object.freeze({ module: 'outcomes-cli.js', run: null, guide: 'outcomes.md',
113
+ outcomes: Object.freeze({ module: 'outcomes-cli.js', run: null, guide: 'cli.md',
113
114
  help: 'pmos outcomes list|propose|declare|record — every initiative\'s expected outcome and check date: Claude\'s cited drafts, the PM\'s yes, and the verdict when a check is due (pmos outcomes help)' }),
114
- driver: Object.freeze({ module: 'driver-cli.js', run: null, guide: 'initiative-driver.md',
115
+ driver: Object.freeze({ module: 'driver-cli.js', run: null, guide: 'cli.md',
115
116
  help: 'pmos driver propose|status|keep|return|drop|undo|pause|resume|mode … — the Initiative Driver: class A and B changes apply with Undo, the rest wait for you (pmos driver help)' }),
116
117
  // D106 (Full autonomy now): what agents do by themselves, and the goals they work on until done
117
- autonomy: Object.freeze({ module: 'autonomy-cli.js', run: null, guide: 'agents-act.md',
118
+ autonomy: Object.freeze({ module: 'autonomy-cli.js', run: null, guide: 'cli.md',
118
119
  help: 'pmos autonomy status|restore — what agents applied by themselves (with Undo) and the jobs back to propose (pmos autonomy help)' }),
119
- loop: Object.freeze({ module: 'loop-cli.js', run: null, guide: 'agents-act.md',
120
+ loop: Object.freeze({ module: 'loop-cli.js', run: null, guide: 'cli.md',
120
121
  help: 'pmos loop start|status|checkpoint|resume|stop — a goal agents work on until it is done (pmos loop help)' }),
121
122
  // Not a pm-os-absorb verb (run: null): initiative horizon-scan added it through the same table; horizon-scan-portfolio added section, propose, setting and --boards.
122
- scan: Object.freeze({ module: 'scan-cli.js', run: null, guide: 'horizon-scan.md',
123
+ scan: Object.freeze({ module: 'scan-cli.js', run: null, guide: 'cli.md',
123
124
  help: 'pmos scan file|section|propose|list [--sections]|match|suggest [--boards]|status|setting|cadence|watch [--boards] … — the Horizon scan: the portfolio watch list, the findings, the report sections and the proposals the PM approves, changes or dismisses (pmos scan help)' }),
124
125
  // Not a pm-os-absorb verb (run: null): initiative core-documents added it through the same table.
125
- coredoc: Object.freeze({ module: 'coredoc-cli.js', run: null, guide: 'core-documents.md',
126
+ coredoc: Object.freeze({ module: 'coredoc-cli.js', run: null, guide: 'cli.md',
126
127
  help: 'pmos coredoc write --scope <scope> --key <key> --file <path|-> — write one draft of a core document; the PM issues it on the page (pmos coredoc help)' }),
127
128
  // Not a pm-os-absorb verb (run: null): the Grill and Forecast build (F-A) added it through the same table.
128
- forecast: Object.freeze({ module: 'forecast-cli.js', run: null, guide: 'forecast.md',
129
+ forecast: Object.freeze({ module: 'forecast-cli.js', run: null, guide: 'cli.md',
129
130
  help: 'pmos forecast baseline|baseline-off|turned … — a goal forecast\'s kept baseline, and the forecasts that turned (pmos forecast help)' }),
130
131
  // Not a pm-os-absorb verb (run: null): feedback batch 25 item 1 added it through the same table.
131
- 'git-identity': Object.freeze({ module: 'git-identity-cli.js', run: null, guide: 'launcher.md',
132
+ 'git-identity': Object.freeze({ module: 'git-identity-cli.js', run: null, guide: 'cli.md',
132
133
  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' }),
133
- launcher: Object.freeze({ module: 'launcher-cli.js', run: null, guide: 'launcher.md',
134
+ launcher: Object.freeze({ module: 'launcher-cli.js', run: null, guide: 'cli.md',
134
135
  help: 'pmos launcher on|off|status — a PMOS app and a login item, so the workspace starts without a terminal' }),
135
136
  });
136
137
 
@@ -108,7 +108,7 @@ function create(deps) {
108
108
  const lines = PR.readLines(PR.ledgerFile(dir)), F = PR.fold(lines);
109
109
  const dropped = [...F.props.values()].filter((p) => p.ini === ini && F.drops.has(PR.sigOf(p))).slice(0, 20).map((p) => p.group + ' · ' + (p.title || p.type) + ' · ' + one(p.why, 100));
110
110
  // the learning edge (OS evaluation T1): the last 3 reasons the PM gave this job on this initiative (found, dates, done, names)
111
- const lessons = PR.lessonsOf(lines, { ini, match: (p) => ['found', 'dates', 'status', 'names'].includes(p.group), n: 3 });
111
+ const lessons = PR.lessonsOf(lines, { ini, match: (p) => ['found', 'dates', 'status', 'names'].includes(p.group), n: 3, wide: true });
112
112
  let tasks = [];
113
113
  if (why === 'check') { try { const c = (deps.checks(w, localDay(now)) || []).find((x) => x.ini === ini); tasks = c ? c.tasks : []; } catch { tasks = []; } }
114
114
  const prompt = promptOf(skill, { run, why, ini, title: row.title || ini, intent: row.intent || '', stage: row.stage || '', stages: row.stages || [], today: localDay(now), tasks, dropped, lessons });
@@ -40,6 +40,9 @@
40
40
  * (new section keys, so new ids and signatures), a reworded reason or a new day (new computed dates) does not bring it back
41
41
  * keep { ini, board, batch, ids, wrote: [write] } ✓: what was written, each write with what it was before, for Undo and History
42
42
  * undo { batch }
43
+ * expire { ini, id, sig, group, title, why } chief-of-staff C3: a filed ✦ the PM left unanswered for EXPIRE_DAYS. Nothing on the
44
+ * initiative changes; it folds as a drop of that signature (a newer filing with new evidence comes back), and the line keeps the
45
+ * reason for History. Computed date proposals (datesOf) are read fresh each time and never expire
43
46
  * epoch { } the first scan of lib/proposal-runs.js: only initiatives made after it are looked for
44
47
  *
45
48
  * A WRITE (in keep.wrote): { op, task?, title?, from?, to?, why, source?, ... } op ∈ add · dates · state · rename · notes · stage · ran ·
@@ -48,7 +51,8 @@
48
51
  *
49
52
  * ledgerFile(dir) · read(dir) → fold · readLines(file) · append(dir, actor, line)
50
53
  * fold(lines) PURE → { props, drops, kept, undone, looks, t }
51
- * lessonsOf(lines, { ini, match, n }) PURE → the last n reasons the PM gave one job on one initiative (✕ why, ✎ rewrites), newest first
54
+ * lessonsOf(lines, { ini, match, n, wide }) PURE → the last n reasons the PM gave one job on one initiative (✕ why, ✎ rewrites), newest first
55
+ * wide: the job's reasons on other initiatives fill the rest, marked
52
56
  * clean(group, type, input) → { prop } | { error } what `pmos propose` checks
53
57
  * sigOf(p) · itemSig(p, x)
54
58
  * tidyName(from, to) → '' when `to` keeps the standard (rule 5), else the reason it does not
@@ -63,7 +67,10 @@ const path = require('path');
63
67
  const crypto = require('crypto');
64
68
 
65
69
  const LEDGER = 'proposals.jsonl';
66
- const KINDS = new Set(['epoch', 'look', 'src', 'end', 'propose', 'drop', 'keep', 'undo']);
70
+ const KINDS = new Set(['epoch', 'look', 'src', 'end', 'propose', 'drop', 'keep', 'undo', 'expire']);
71
+ /* chief-of-staff C3: a filed ✦ with no answer for this many days expires (left as it was, the reason kept) */
72
+ const EXPIRE_DAYS = 14;
73
+ const EXPIRE_WHY = 'No answer in 14 days, so I left it as it was.';
67
74
  const GROUPS = ['found', 'dates', 'status', 'names', 'outcome', 'description'];
68
75
  const TYPES = { found: ['stage', 'docs', 'tasks', 'link', 'maybe', 'unplaced'], dates: ['stage', 'task'], status: ['done'], names: ['tidy'], outcome: ['new', 'date'], description: ['new', 'enrich'] };
69
76
  const SOURCES = ['drive', 'docs', 'sheets', 'slides', 'jira', 'calendar', 'notes', 'mail', 'slack', 'confluence', 'chat', 'repo'];
@@ -211,6 +218,7 @@ function fold(lines) {
211
218
  const kept = []; // keep lines, oldest first
212
219
  const undone = new Set();
213
220
  const looks = new Map(); // ini → { run, why, at, ended, ok, stopped, sources: Map source → { state, n, what } }
221
+ const expired = []; // expire lines, oldest first (History and Your move's "N expired")
214
222
  let t = '', epoch = '';
215
223
  for (const l of lines || []) {
216
224
  if (!isObj(l) || !KINDS.has(l.kind)) continue;
@@ -224,27 +232,38 @@ function fold(lines) {
224
232
  else if (l.kind === 'drop' && str(l.sig)) { drops.add(l.sig); if (str(l.why)) dropWhy.set(l.sig, one(l.why, 300)); for (const f of Array.isArray(l.facts) ? l.facts : []) if (/^f:[0-9a-f]{10}$/.test(String(f))) drops.add(f); }
225
233
  else if (l.kind === 'keep' && str(l.batch)) kept.push({ batch: l.batch, ini, board: str(l.board), ids: Array.isArray(l.ids) ? l.ids : [], wrote: Array.isArray(l.wrote) ? l.wrote.filter(isObj) : [], at: l.at || '', by: l.by || null });
226
234
  else if (l.kind === 'undo' && str(l.batch)) undone.add(l.batch);
235
+ else if (l.kind === 'expire' && str(l.sig)) { drops.add(l.sig); expired.push({ ini, id: str(l.id), sig: l.sig, group: str(l.group), title: str(l.title), why: str(l.why) || EXPIRE_WHY, at: l.at || '' }); }
227
236
  }
228
- return { props, drops, dropWhy, kept, undone, looks, epoch, t };
237
+ return { props, drops, dropWhy, kept, undone, looks, epoch, t, expired };
229
238
  }
230
239
  /**
231
240
  * PURE. What the PM taught one job on one initiative (OS evaluation T1, the learning edge): the reasons given with ✕ and the rewrites made
232
241
  * with ✎, newest first, at most n. lines: the ledger, oldest first; match(p) → true for a proposal { group, type } of the job.
233
242
  * → [string] each one line, ready for the job's prompt. A drop PMOS wrote itself (by `pmos:…`) teaches nothing.
243
+ * wide (harness and memory build, 2026-11-08): when this initiative has fewer than n, the job's newest reasons on OTHER initiatives fill
244
+ * the rest, each marked "(on another initiative)", so a correction the PM made once also reaches the job's first run on a new initiative.
234
245
  */
235
- function lessonsOf(lines, { ini, match, n = 3 } = {}) {
246
+ function lessonsOf(lines, { ini, match, n = 3, wide = false } = {}) {
247
+ const own = lessonsOn(lines, { match, on: (i) => i === ini }).reverse().slice(0, n);
248
+ if (!wide || own.length >= n) return own;
249
+ const seen = new Set(own);
250
+ const other = lessonsOn(lines, { match, on: (i) => i !== ini }).reverse().filter((x) => !seen.has(x) && (seen.add(x), true));
251
+ return [...own, ...other.slice(0, n - own.length).map((x) => x + ' (on another initiative)')];
252
+ }
253
+ /** PURE. The lessons of one job on the initiatives `on(ini)` accepts, oldest first. A proposal is joined to its drop or keep on the same initiative. */
254
+ function lessonsOn(lines, { match, on }) {
236
255
  const byId = new Map(), bySig = new Map(), out = [];
237
256
  for (const l of lines || []) {
238
257
  if (!isObj(l)) continue;
239
- if (l.kind === 'propose' && str(l.id) && l.ini === ini) {
258
+ if (l.kind === 'propose' && str(l.id) && on(l.ini)) {
240
259
  if (!match(l)) continue;
241
260
  byId.set(l.id, l);
242
261
  const p = { id: l.id, why: l.why, sources: Array.isArray(l.sources) ? l.sources : [], items: Array.isArray(l.items) ? l.items.filter(isObj) : [] };
243
262
  bySig.set(sigOf(p), l); for (const x of p.items) bySig.set(itemSig(p, x), l);
244
- } else if (l.kind === 'drop' && l.ini === ini && str(l.why) && !(typeof l.by === 'string' && l.by.startsWith('pmos:'))) {
263
+ } else if (l.kind === 'drop' && on(l.ini) && str(l.why) && !(typeof l.by === 'string' && l.by.startsWith('pmos:'))) {
245
264
  const p = (str(l.id) && byId.get(l.id)) || bySig.get(str(l.sig)) || (str(l.group) && match(l) ? l : null);
246
265
  if (p) out.push(`✕ on "${one(p.title || p.type || 'a proposal', 90)}": ${one(l.why, 200)}`);
247
- } else if (l.kind === 'keep' && l.ini === ini) {
266
+ } else if (l.kind === 'keep' && on(l.ini)) {
248
267
  for (const w of Array.isArray(l.wrote) ? l.wrote : []) {
249
268
  if (!isObj(w) || !isObj(w.edited)) continue;
250
269
  const ids = Array.isArray(l.ids) ? l.ids : [];
@@ -253,7 +272,7 @@ function lessonsOf(lines, { ini, match, n = 3 } = {}) {
253
272
  }
254
273
  }
255
274
  }
256
- return out.reverse().slice(0, n);
275
+ return out;
257
276
  }
258
277
  /** The kept proposal ids (a batch undone gives its proposals back). */
259
278
  const keptIds = (F) => { const s = new Set(); for (const k of F.kept) if (!F.undone.has(k.batch)) for (const id of k.ids) s.add(id); return s; };
@@ -414,6 +433,22 @@ function viewOf(F, ini, o = {}) {
414
433
  return { n: props.length, sure: props.filter((p) => p.section === 'sure').length, look: looking, groups, t: F.t };
415
434
  }
416
435
 
436
+ /** chief-of-staff C3: the filed proposals with no answer for EXPIRE_DAYS days, as the expire lines to append. PURE. now: ms. A proposal
437
+ * kept, dropped or already expired is left out, and so is every date proposal (computed fresh from the tasks, never stale). */
438
+ function staleOf(F, now = Date.now(), days = EXPIRE_DAYS) {
439
+ if (!F) return [];
440
+ const kept = keptIds(F), cut = now - days * 864e5, out = [];
441
+ for (const p0 of F.props.values()) {
442
+ if (p0.group === 'dates' || kept.has(p0.id)) continue;
443
+ const at = Date.parse(p0.at || ''); if (!Number.isFinite(at) || at > cut) continue;
444
+ const sig = sigOf(p0); if (F.drops.has(sig)) continue;
445
+ out.push({ kind: 'expire', ini: p0.ini, id: p0.id, sig, group: p0.group, title: one(p0.title, 140), why: EXPIRE_WHY });
446
+ }
447
+ return out;
448
+ }
449
+ /** The expire lines since `since` (ms), newest first: what Your move says once ("2 expired after 14 days"). */
450
+ const expiredSince = (F, since) => ((F && F.expired) || []).filter((e) => Date.parse(e.at || '') >= since).reverse();
451
+
417
452
  /** Claude's approved changes to one task, newest first: { at, by: 'claude', field, from, to, why, source, batch, undone } (rule 10). */
418
453
  function historyOf(F, uid) {
419
454
  const out = [];
@@ -444,5 +479,5 @@ function decorate(rows, F, items, o = {}) {
444
479
 
445
480
  module.exports = {
446
481
  LEDGER, GROUPS, TYPES, SOURCES, SOURCE_NAMES, RISK_DAYS, ledgerFile, read, readLines, append, fold, lessonsOf, clean, idOf, sigOf, itemSig, factsOf, tidyName, taskOf, lateOf,
447
- datesOf, viewOf, foundOf, historyOf, decorate, keptIds, newBatch, dn, isoN, md, hash, workday,
482
+ datesOf, viewOf, foundOf, historyOf, decorate, keptIds, newBatch, dn, isoN, md, hash, workday, staleOf, expiredSince, EXPIRE_DAYS, EXPIRE_WHY,
448
483
  };
@@ -39,6 +39,8 @@ async function handle(req, res, url, ctx) {
39
39
  // self-heal (lib/source-heal.js): a row Claude is repairing, or that needs the PM, carries its repair
40
40
  const sources = F.sources({ id: w.id, root: w.root, repoStateDir: repoStateDir(ctx, w) }).map((r) => (heal[r.id] ? { ...r, heal: heal[r.id] } : r));
41
41
  let health = null; try { health = ctx.health ? ctx.health() : null; } catch { health = null; }
42
+ // the learning loop's issues (harness and memory build): a demoted job, a silent or failing verifier
43
+ try { if (health && ctx.workspaceList) { const LH = require('./loop-health.js'), t = Date.now(); health = LH.withLoop(health, LH.read({ workspaces: ctx.workspaceList(), stateDirFor: ctx.stateDirFor, now: t }), t); } } catch { /* the line stays as it was */ }
42
44
  let all = null; try { all = ctx.refreshAllState ? ctx.refreshAllState() : null; } catch { all = null; }
43
45
  let derived = []; try { derived = ctx.refreshDerived ? ctx.refreshDerived(w.id) : []; } catch { derived = []; }
44
46
  ctx.json(res, { ok: true, ws: w.id, version: F.versions()[w.id] || 0, sources, health, all, derived });
@@ -1,12 +1,18 @@
1
1
  'use strict';
2
2
  /* routes-your-move.js — what Your move reads from a product beside its Board rows (workspace grill W3, frame WgW3Move).
3
3
  *
4
- * GET /api/your-move?ws=<id> → { ok, ws, today, verdicts: [lib/your-move.js verdict + board], kr: lib/your-move.js krOf | null }
4
+ * GET /api/your-move?ws=<id> → { ok, ws, today, verdicts: [lib/your-move.js verdict + board], kr: lib/your-move.js krOf | null,
5
+ * expired: [{ ini, id, group, title, why, at }], done: lib/done-feed.js doneOf }
5
6
  *
6
7
  * verdicts: the outcome checks past their date with no verdict (lib/outcomes.js scan, less Intelligence's verdicts in
7
8
  * lib/insights-records.js), each with Claude's draft from the board's Jira tickets and the board it is on (the ✓ records it there through
8
9
  * POST /api/insights-records/verdict). kr: the first key result of the OKR file that waits on a source (lib/goal-source.js source(), the kr-metrics records
9
- * as its readers). Read only: nothing is written. A part that cannot be read is left out, never guessed. */
10
+ * as its readers). A part that cannot be read is left out, never guessed.
11
+ *
12
+ * EXPIRY (chief-of-staff C3, board CsE). The one write: a filed ✦ the PM left unanswered for 14 days expires here, as upkeep with one right
13
+ * answer. Nothing on the initiative changes; one `expire` line per proposal goes to proposals.jsonl with its reason (lib/proposals.js
14
+ * staleOf), and `expired` lists the ones of the last 7 days, so Your move says it once. Idempotent: an expired proposal folds as dropped.
15
+ * DONE (C2, board CsD): what an agent kept by itself in the last 14 days, one line per batch with its Undo (lib/done-feed.js). */
10
16
  const YM = require('./your-move.js');
11
17
 
12
18
  const localDay = (ms = Date.now()) => { const d = new Date(ms); return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); };
@@ -45,7 +51,19 @@ function kr(ctx, w, today) {
45
51
  return YM.krOf(OG.build({ okr: src.okr, goals, initiatives: [], records: {}, today }));
46
52
  }
47
53
 
54
+ /** Expire the stale ✦ of the workspace and list the ones of the last 7 days. */
55
+ function expire(ctx, w, now = Date.now()) {
56
+ const dir = ctx.stateDirFor ? ctx.stateDirFor(w) : null;
57
+ if (!dir) return [];
58
+ const PR = require('./proposals.js');
59
+ let F = PR.read(dir);
60
+ const stale = PR.staleOf(F, now);
61
+ if (stale.length) { for (const l of stale) PR.append(dir, { by: 'claude' }, l); F = PR.read(dir); }
62
+ return PR.expiredSince(F, now - 7 * 864e5).map((e) => ({ ini: e.ini, id: e.id, group: e.group, title: e.title, why: e.why, at: e.at }));
63
+ }
64
+
48
65
  module.exports = {
66
+ expire,
49
67
  prefixes: ['/api/your-move'],
50
68
  handle: async (req, res, url, ctx) => {
51
69
  if (url.pathname !== '/api/your-move') return false;
@@ -54,10 +72,13 @@ module.exports = {
54
72
  try { w = ctx.getWs(url.searchParams.get('ws') || null); } catch { w = null; }
55
73
  if (!w || !w.root) { ctx.json(res, { ok: false, error: 'no such workspace' }, 404); return true; }
56
74
  const today = localDay();
57
- let V = [], K = null;
75
+ let V = [], K = null, X = [];
58
76
  try { V = verdicts(ctx, w, today); } catch { V = []; }
59
77
  try { K = kr(ctx, w, today); } catch { K = null; }
60
- ctx.json(res, { ok: true, ws: w.id, today, verdicts: V, kr: K });
78
+ try { X = expire(ctx, w); } catch { X = []; }
79
+ let D = [];
80
+ try { const dir = ctx.stateDirFor ? ctx.stateDirFor(w) : null; D = dir ? require('./done-feed.js').doneOf(require('./proposals.js').read(dir)) : []; } catch { D = []; }
81
+ ctx.json(res, { ok: true, ws: w.id, today, verdicts: V, kr: K, expired: X, done: D });
61
82
  return true;
62
83
  },
63
84
  };
@@ -4,6 +4,7 @@
4
4
  * off(env) → true when PMOS_VERIFY=off (or 0, false, no)
5
5
  * startsToday(queueText, day) PURE → how many verifier claims the queue holds for that day (YYYY-MM-DD, UTC)
6
6
  * create(deps) → { tick({ now }), active() }
7
+ * statusOf(queueText, evalsText) PURE → { owed, lastAt, failAt, failRun } for the health line (lib/harness-health.js loop.verifier)
7
8
  *
8
9
  * WHAT ONE TURN DOES (bg-queue job `verify`, step 4, at most one run at a time):
9
10
  * 1. For each open repository that is a PMOS checkout (it has scripts/verifier.js and planning/runs/verify-queue.jsonl), run
@@ -59,6 +60,26 @@ const nodeRun = (root, args) => {
59
60
  };
60
61
  const parse = (s) => { try { return JSON.parse(String(s || '').trim().split('\n').pop()); } catch { return null; } };
61
62
 
63
+ /* The verifier's health, from the two files alone (no git, cheap enough for every health read): owed = runs the queue asked a verdict for
64
+ * that have no row in evals.jsonl; lastAt = the newest verdict the verifier recorded; failAt/failRun = that verdict when it is a FAIL. */
65
+ function statusOf(queueText, evalsText) {
66
+ const asked = new Set(), graded = new Set();
67
+ for (const l of String(queueText || '').split('\n')) {
68
+ if (!l.includes('"requested"')) continue;
69
+ try { const o = JSON.parse(l); if (o.event === 'requested' && o.run_id) asked.add(o.run_id); } catch { /* a torn line */ }
70
+ }
71
+ let last = null;
72
+ for (const l of String(evalsText || '').split('\n')) {
73
+ if (!l.trim()) continue;
74
+ let o; try { o = JSON.parse(l); } catch { continue; }
75
+ if (o && o.run_id) graded.add(o.run_id);
76
+ if (o && o.source === 'verifier-after-merge' && (!last || String(o.recorded_at || '') >= String(last.recorded_at || ''))) last = o;
77
+ }
78
+ let owed = 0; for (const id of asked) if (!graded.has(id)) owed++;
79
+ const fail = last && String(last.verdict || '').toUpperCase() === 'FAIL';
80
+ return { owed, lastAt: last ? last.recorded_at || null : null, failAt: fail ? last.recorded_at || null : null, failRun: fail ? last.run_id : null };
81
+ }
82
+
62
83
  function create(deps) {
63
84
  const warn = deps.warn || (() => {});
64
85
  const run = deps.run || nodeRun;
@@ -109,4 +130,4 @@ function create(deps) {
109
130
  return { tick, active: () => (active ? active.run_id : null) };
110
131
  }
111
132
 
112
- module.exports = { off, startsToday, create, isCheckout, PER_DAY };
133
+ module.exports = { off, startsToday, create, isCheckout, PER_DAY, statusOf };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /* verify-work-cli.js — `pmos verify-work`: mark work items integrated from the default branch (pm-os-absorb Run 4,
3
- * PRD R7 and R24, map-spec X26, D70). Guide page: guide/integrated-work.md.
3
+ * PRD R7 and R24, map-spec X26, D70). Guide page: guide/cli.md.
4
4
  *
5
5
  * pmos verify-work [--branch <ref>] [--dry-run] [--json] [--root <dir>]
6
6
  *
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.540.0",
3
+ "version": "0.542.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.540.0",
9
+ "version": "0.542.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.540.0",
3
+ "version": "0.542.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",