create-pmos 0.491.0 → 0.493.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 (60) hide show
  1. package/package.json +27 -27
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/mods/pmos-cockpit/README.md +1 -1
  4. package/payload/mods/pmos-cockpit/hooks/lib/guard.mjs +2 -2
  5. package/payload/planning/evals/eval-calibration.md +1 -1
  6. package/payload/planning/okrs/health-budgets.md +1 -1
  7. package/payload/state/discoveries.md +1 -1
  8. package/workspace/changelog.json +26 -0
  9. package/workspace/fixtures/initiatives-api/list.json +0 -4
  10. package/workspace/fixtures/initiatives-api/roadmap.json +255 -275
  11. package/workspace/fixtures/initiatives-api/sheet.json +2 -3
  12. package/workspace/fixtures/report-api/draft.json +4 -4
  13. package/workspace/fixtures/reports-page/draft-biweekly-2026-10-16.md +4 -4
  14. package/workspace/guide/board.md +2 -2
  15. package/workspace/guide/home.md +1 -0
  16. package/workspace/guide/index.md +2 -2
  17. package/workspace/guide/initiative-boards.md +2 -2
  18. package/workspace/guide/initiatives-roadmap.md +38 -39
  19. package/workspace/guide/initiatives-screen.md +20 -20
  20. package/workspace/guide/initiatives-timeline.md +7 -9
  21. package/workspace/guide/integrated-work.md +7 -8
  22. package/workspace/guide/layout.md +2 -2
  23. package/workspace/guide/lifecycle.md +2 -2
  24. package/workspace/guide/notes.md +1 -1
  25. package/workspace/guide/pm-only-acts.md +5 -5
  26. package/workspace/guide/pm-only-lines.md +3 -3
  27. package/workspace/guide/reports.md +2 -2
  28. package/workspace/guide/today.md +2 -2
  29. package/workspace/lib/board-cli.js +1 -1
  30. package/workspace/lib/board-fold.js +6 -6
  31. package/workspace/lib/board-premium.js +3 -3
  32. package/workspace/lib/calendar-tidy.js +1 -1
  33. package/workspace/lib/core-docs.js +2 -2
  34. package/workspace/lib/engine/boards.js +11 -11
  35. package/workspace/lib/engine/signals/detectors.js +13 -13
  36. package/workspace/lib/engine/signals/facts.js +5 -3
  37. package/workspace/lib/health-rules-factory.js +13 -14
  38. package/workspace/lib/health-rules-plan.js +8 -7
  39. package/workspace/lib/initiative-cli.js +59 -63
  40. package/workspace/lib/initiative-needs.js +6 -6
  41. package/workspace/lib/initiative-premium.js +2 -2
  42. package/workspace/lib/initiative-writer.js +2 -2
  43. package/workspace/lib/lifecycle-stage.js +39 -0
  44. package/workspace/lib/placements.js +117 -95
  45. package/workspace/lib/plan-rules.js +7 -5
  46. package/workspace/lib/pm-guard.js +1 -3
  47. package/workspace/lib/pm-lines-needs.js +1 -1
  48. package/workspace/lib/report-draft.js +17 -16
  49. package/workspace/lib/report-slides-data.js +11 -7
  50. package/workspace/lib/routes-boards.js +8 -7
  51. package/workspace/lib/routes-initiatives.js +29 -43
  52. package/workspace/lib/routes-notes.js +24 -15
  53. package/workspace/lib/routes-onboard.js +13 -2
  54. package/workspace/lib/split-merge.js +2 -3
  55. package/workspace/package-lock.json +2 -2
  56. package/workspace/package.json +1 -1
  57. package/workspace/public/pm/home-app.js +3 -2
  58. package/workspace/public/pm/http.js +1 -1
  59. package/workspace/public/pm/view-notes.js +8 -8
  60. package/workspace/replaced-tests.json +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.491.0",
3
+ "version": "0.493.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -32,6 +32,32 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.493.0",
37
+ "at": "2026-11-02T14:33:09.369Z",
38
+ "f": 3,
39
+ "prs": [
40
+ {
41
+ "n": 1152,
42
+ "t": "Retire Now / Next / Later; the Roadmap is one ranked list (D105)",
43
+ "s": "Retire Now / Next / Later; the Roadmap is one ranked list",
44
+ "k": "new"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "v": "0.492.0",
50
+ "at": "2026-11-02T10:37:47.505Z",
51
+ "f": 3,
52
+ "prs": [
53
+ {
54
+ "n": 1155,
55
+ "t": "A new user's empty PMOS folder no longer skips the setup conversation",
56
+ "s": "A new user's empty PMOS folder no longer skips the setup conversation",
57
+ "k": "fix"
58
+ }
59
+ ]
60
+ },
35
61
  {
36
62
  "v": "0.491.0",
37
63
  "at": "2026-11-02T09:09:04.158Z",
@@ -269,32 +295,6 @@
269
295
  "k": "fix"
270
296
  }
271
297
  ]
272
- },
273
- {
274
- "v": "0.473.0",
275
- "at": "2026-11-01T01:14:19.818Z",
276
- "f": 3,
277
- "prs": [
278
- {
279
- "n": 1128,
280
- "t": "Shared tab — a name that cannot open is plain text, with the reason",
281
- "s": "Shared tab — a name that cannot open is plain text, with the reason",
282
- "k": "fix"
283
- }
284
- ]
285
- },
286
- {
287
- "v": "0.472.0",
288
- "at": "2026-11-01T00:41:46.421Z",
289
- "f": 3,
290
- "prs": [
291
- {
292
- "n": 1126,
293
- "t": "Popover in view, published copy opens on the publisher's view, stage track opens initiatives",
294
- "s": "Popover in view, published copy opens on the publisher's view, stage track opens initiatives",
295
- "k": "fix"
296
- }
297
- ]
298
298
  }
299
299
  ]
300
300
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@bd7f8188
1
+ kernel-source: pmos@af2b38f6
2
2
  assembled: 2026-11-02
3
3
  mode: vendor
@@ -35,7 +35,7 @@ A grant is one line in `grants.jsonl`. You mint it by typing `/pmos-grant merge:
35
35
  **PM-only acts (pm-os-absorb Run 2, D86 point 2).** The guards deny a model call that does one of the PM's acts in the workspace: Move to Now, adopt a proposal, Issue, acceptance, lifecycle, the anchor change, Keep and Release. A call is denied when it:
36
36
 
37
37
  - sends a write (a body, or a method other than GET) to a PM-only workspace route on a loopback address and a workspace port: `/api/gate`, `/api/lifecycle`, `/api/plan-items`, `/api/placements`, `/api/doc/save`, `/api/align/apply`, `/api/ingest/confirm`, `/api/session/initiative`, `/api/report/issue` or `/api/board/release`. The workspace ports are 7433 to 7445, the port in `PMOS_ROUTE_URL` and a `PMOS_WS_PORT` pin. The check reads each spelling of a loopback address (`127.1`, `0`, `[::1]`, …), removes `/./` and `/x/../` from the path, and reads a URL that the command keeps in a variable. A call to a product's own server on another port is allowed;
38
- - runs a PM-only `pmos` verb (`pmos initiative now`, `adopt`, `anchor` or `lifecycle`; `pmos report issue`; `pmos board release`), also through `node $PMOS_BIN`, `env`, `script` or a launcher;
38
+ - runs a PM-only `pmos` verb (`pmos initiative adopt`, `anchor` or `lifecycle`; `pmos report issue`; `pmos board release`), also through `node $PMOS_BIN`, `env`, `script` or a launcher;
39
39
  - loads the writer of a D86 ledger (`workspace/lib/plan-items.js`, `placements.js`, `measurements.js`, `issues.js`) from inline code (`-e`, `--eval=`, `-r`, `--require=`, `--import=`, a here-document, a here-string, or a program sent through a pipe), or writes and runs such a script in one command, or writes one outside the repository that calls the writer's PM path. The module path must name `workspace/lib/`. In PMOS's own repository, `lib/<name>` and `./<name>` also count. A product's own `src/github/issues.js` is not a writer, and a kit install loads it freely.
40
40
 
41
41
  The four D86 ledgers are listed as ledgers, so a hand write to one is denied and the message names the `pmos` verb that writes it. Two grant scopes join `merge` and `publish`: `release:<initiative>:<batch-id>` (one factory batch) and `lifecycle-bulk:<state>:<id>,<id>,…` (one state for at most 20 initiatives). Both are single use and live 120 minutes unless you give a shorter time.
@@ -327,7 +327,7 @@ export const PM_ROUTES = Object.freeze(['gate', 'lifecycle', 'plan-items', 'plac
327
327
  'session/initiative', 'report/issue', 'board/release']);
328
328
  // The `pmos` subverbs that do a PM-only act. The verb asks the PM to type a confirmation at a terminal; an agent's
329
329
  // Bash tool has none, and `script` makes one (bypass b), so the model's call is refused here as well.
330
- export const PM_VERBS = Object.freeze({ initiative: ['now', 'adopt', 'anchor', 'lifecycle'], report: ['issue'], board: ['release'] });
330
+ export const PM_VERBS = Object.freeze({ initiative: ['adopt', 'anchor', 'lifecycle'], report: ['issue'], board: ['release'] });
331
331
  const reEsc = (t) => t.replace(/[.*+?^${}()|[\]\\/-]/g, '\\$&');
332
332
  // The workspace's ports (workspace/lib/server-discovery.js): DEFAULT_PORT 7433 and the FALLBACK_SPAN of 12 the launcher
333
333
  // rolls forward over. A port pinned with PMOS_WS_PORT is added from the session's environment (wsPortsOf; register.tsx
@@ -781,7 +781,7 @@ export function looseDeny(e) {
781
781
  const c = e.command;
782
782
  if (/\bgh\b[^\n;|&]*\b(pr\s+merge|api)\b|\bnpm\b[^\n;|&]*\bpublish\b|\b(pnpm|yarn)\b[^\n;|&]*\bpublish\b|\bgit\b[^\n;|&]*\bpush\b|\bsupabase\b[^\n;|&]*\b(db push|functions deploy|projects create|secrets set)\b/.test(c)) return say('a merge, push or publish');
783
783
  if (/\.jsonl\b|record-acceptance|record-grant|pmos-log\.sh\s+(accept|grant)|pmos\/mods|pmos-cockpit\.json|settings\.json/.test(c)) return say('a write that names a ledger or governing file');
784
- if (pmRouteIn(c, null) || LOOSE_REQUIRE.test(c) || /\b(initiative\s+(now|adopt|anchor|lifecycle)|report\s+issue|board\s+release)\b/.test(c)) return say('a PM-only act');
784
+ if (pmRouteIn(c, null) || LOOSE_REQUIRE.test(c) || /\b(initiative\s+(adopt|anchor|lifecycle)|report\s+issue|board\s+release)\b/.test(c)) return say('a PM-only act');
785
785
  return null;
786
786
  }
787
787
  if (isFileWriteTool(tool)) {
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-02T09:09:01Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-02T14:33:05Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-11-02T09:09:01Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-02T14:33:05Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-11-02T09:09:01Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-02T14:33:05Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,30 @@
1
1
  [
2
+ {
3
+ "v": "0.493.0",
4
+ "at": "2026-11-02T14:33:09.369Z",
5
+ "f": 3,
6
+ "prs": [
7
+ {
8
+ "n": 1152,
9
+ "t": "Retire Now / Next / Later; the Roadmap is one ranked list (D105)",
10
+ "s": "Retire Now / Next / Later; the Roadmap is one ranked list",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.492.0",
17
+ "at": "2026-11-02T10:37:47.505Z",
18
+ "f": 3,
19
+ "prs": [
20
+ {
21
+ "n": 1155,
22
+ "t": "A new user's empty PMOS folder no longer skips the setup conversation",
23
+ "s": "A new user's empty PMOS folder no longer skips the setup conversation",
24
+ "k": "fix"
25
+ }
26
+ ]
27
+ },
2
28
  {
3
29
  "v": "0.491.0",
4
30
  "at": "2026-11-02T09:09:04.158Z",
@@ -13,7 +13,6 @@
13
13
  "stall_days": 5,
14
14
  "dormant_days": 45,
15
15
  "report_cycle_days": 14,
16
- "now_cap": null,
17
16
  "via_required_from": null
18
17
  },
19
18
  "groups": [
@@ -42,7 +41,6 @@
42
41
  "lane": "feature",
43
42
  "anchor": "KR 2.1",
44
43
  "anchor_kind": "kr",
45
- "horizon": "now",
46
44
  "rank": 0,
47
45
  "confirmed": true,
48
46
  "dormant": false,
@@ -142,7 +140,6 @@
142
140
  "lane": "chore",
143
141
  "anchor": "health:tech",
144
142
  "anchor_kind": "health",
145
- "horizon": "now",
146
143
  "rank": 1,
147
144
  "confirmed": false,
148
145
  "dormant": false,
@@ -236,7 +233,6 @@
236
233
  "lane": "chore",
237
234
  "anchor": "health:tech",
238
235
  "anchor_kind": "health",
239
- "horizon": "later",
240
236
  "rank": 0,
241
237
  "confirmed": true,
242
238
  "dormant": true,