create-pmos 0.779.0 → 0.781.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 (33) hide show
  1. package/package.json +36 -44
  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/changelog.json +35 -0
  7. package/workspace/guide/agent-capabilities.md +2 -1
  8. package/workspace/guide/claude-proposes.md +11 -1
  9. package/workspace/guide/cli.md +2 -2
  10. package/workspace/guide/initiatives-and-next-steps.md +1 -1
  11. package/workspace/guide/positioning.md +4 -2
  12. package/workspace/lib/card-catalog.js +67 -0
  13. package/workspace/lib/card-catalog.json +2032 -0
  14. package/workspace/lib/routes-card-catalog.js +19 -0
  15. package/workspace/lib/routes-slash.js +7 -1
  16. package/workspace/lib/routes-star-drafts.js +36 -0
  17. package/workspace/lib/star-draft.js +99 -0
  18. package/workspace/lib/strategy-card.js +6 -3
  19. package/workspace/lib/strategy-cli.js +7 -3
  20. package/workspace/lib/strategy-sources.js +46 -10
  21. package/workspace/package-lock.json +2 -2
  22. package/workspace/package.json +1 -1
  23. package/workspace/public/pm/action-run.js +120 -0
  24. package/workspace/public/pm/bd-pop-ds.js +2 -2
  25. package/workspace/public/pm/bd-positioning.js +19 -7
  26. package/workspace/public/pm/bd-strategy.js +9 -2
  27. package/workspace/public/pm/card-run.js +25 -0
  28. package/workspace/public/pm/cozy-pop-work.js +91 -10
  29. package/workspace/public/pm/goals-open.js +14 -2
  30. package/workspace/public/pm/star-draft.js +63 -0
  31. package/workspace/public/pm/state-blocks.js +18 -1
  32. package/workspace/skills/strategy-draft.skill +6 -3
  33. package/workspace/test-lists/star-buttons-act-directly.json +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.779.0",
3
+ "version": "0.781.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": {
@@ -33,6 +33,41 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.781.0",
38
+ "at": "2026-11-24T16:04:56.192Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1756,
43
+ "t": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
44
+ "s": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
45
+ "k": "new",
46
+ "try": {
47
+ "steps": [
48
+ "On Work, open an initiative whose Overview says Goal: Not written yet, and press ✓ on its ✦",
49
+ "Wait for the line to say PMOS is drafting it, then read the goal it saved",
50
+ "Press Undo on the toast"
51
+ ],
52
+ "see": "The goal line fills in by itself with no chat opening, and Undo puts it back to Not written yet",
53
+ "open": "/premium-board.html"
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "v": "0.780.0",
60
+ "at": "2026-11-24T15:38:49.543Z",
61
+ "f": 4,
62
+ "prs": [
63
+ {
64
+ "n": 1754,
65
+ "t": "The strategy draft speaks for the whole product; Positioning folds to one line",
66
+ "s": "The strategy draft speaks for the whole product; Positioning folds to one line",
67
+ "k": "new"
68
+ }
69
+ ]
70
+ },
36
71
  {
37
72
  "v": "0.779.0",
38
73
  "at": "2026-11-24T15:18:38.678Z",
@@ -405,49 +440,6 @@
405
440
  }
406
441
  }
407
442
  ]
408
- },
409
- {
410
- "v": "0.761.0",
411
- "at": "2026-11-24T04:56:21.207Z",
412
- "f": 4,
413
- "prs": [
414
- {
415
- "n": 1716,
416
- "t": "The standup digest sees every status change, from one daily search",
417
- "s": "The standup digest sees every status change, from one daily search",
418
- "k": "new",
419
- "try": {
420
- "steps": [
421
- "In the chat, ask \"refresh Jira\" (or wait for the morning refresh)",
422
- "Then ask \"what moved in Jira since yesterday?\""
423
- ],
424
- "see": "The answer lists tickets that changed status in Jira even when no PMOS initiative or task names them, under \"Not in PMOS yet\", each with its new state and person, and says how many moved tickets…",
425
- "open": "/today.html"
426
- }
427
- }
428
- ]
429
- },
430
- {
431
- "v": "0.760.0",
432
- "at": "2026-11-24T02:57:16.535Z",
433
- "f": 4,
434
- "prs": [
435
- {
436
- "n": 1707,
437
- "t": "The weekly digest (quiet rows slice C)",
438
- "s": "The weekly digest (quiet rows slice C)",
439
- "k": "new",
440
- "try": {
441
- "steps": [
442
- "On a Monday, open Today",
443
- "Press \"last week's digest\" in the Overview sentence",
444
- "Switch it off in its header, then on again in Settings › General"
445
- ],
446
- "see": "A read-only page in the Viewer: the line this week in one sentence, What moved, What PMOS did by itself (with what you undid and the Checker's samples), Not sent, and Next week. No button acts on…",
447
- "open": "/today.html"
448
- }
449
- }
450
- ]
451
443
  }
452
444
  ]
453
445
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@6af86862
1
+ kernel-source: pmos@67dccaa0
2
2
  assembled: 2026-11-24
3
3
  mode: vendor
@@ -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-24T15:18:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
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-24T15:18:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
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-24T15:18:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,39 @@
1
1
  [
2
+ {
3
+ "v": "0.781.0",
4
+ "at": "2026-11-24T16:04:56.192Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1756,
9
+ "t": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
10
+ "s": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
11
+ "k": "new",
12
+ "try": {
13
+ "steps": [
14
+ "On Work, open an initiative whose Overview says Goal: Not written yet, and press ✓ on its ✦",
15
+ "Wait for the line to say PMOS is drafting it, then read the goal it saved",
16
+ "Press Undo on the toast"
17
+ ],
18
+ "see": "The goal line fills in by itself with no chat opening, and Undo puts it back to Not written yet",
19
+ "open": "/premium-board.html"
20
+ }
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "v": "0.780.0",
26
+ "at": "2026-11-24T15:38:49.543Z",
27
+ "f": 4,
28
+ "prs": [
29
+ {
30
+ "n": 1754,
31
+ "t": "The strategy draft speaks for the whole product; Positioning folds to one line",
32
+ "s": "The strategy draft speaks for the whole product; Positioning folds to one line",
33
+ "k": "new"
34
+ }
35
+ ]
36
+ },
2
37
  {
3
38
  "v": "0.779.0",
4
39
  "at": "2026-11-24T15:18:38.678Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "What PMOS does behind the scenes, and what stays yours"
4
4
  description: "Every job PMOS runs by itself, what agents apply by themselves with Undo (D106), long-running goals, the team of role agents, the live round, the idle lab, and the PM-only acts."
5
- timestamp: 2026-11-20
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # What PMOS does behind the scenes
@@ -115,6 +115,7 @@ A loop never sends a message, moves a Jira ticket, merges into a product reposit
115
115
  | [New dates, done and tidy names](claude-proposes.md) | Each morning, and when a date passes | The tasks of the initiative, and the evidence that work happened | The initiative's ✦ | `PMOS_PROPOSE=off` |
116
116
  | [Grill](claude-proposes.md) | Before an initiative leaves a stage, when a forecast turns at risk, when scope or dates move a lot, and once a month on running work with late work. Also when you write "grill this" in the initiative's chat. | The initiative, your stored research, your meeting notes and the decisions that stand | "PMOS grilled it" under the initiative's ✦ | Settings › Checks: Off. `PMOS_GRILL=off` |
117
117
  | [You decided this before](claude-proposes.md) | You add an initiative that repeats an earlier decision | `DECISIONS.md`, the decision records, the PM journal, `planning/out-of-scope/` and the initiative records | The initiative's ✦ | `pmos ai off past-repeat` |
118
+ | [✦ drafts](claude-proposes.md#drafts-from-a-) | You press ✓ on a ✦ that offers a draft: a line of the Overview, a program's For or Goal, the documents a gate needs, a goal or initiatives from the strategy, an outcome verdict or a goal's name. One short run for each press. | The records in the product's folder. It writes nothing and sends nothing. | The row you pressed: "PMOS is drafting it", then the draft | Press ✕ on the draft. Nothing is kept until you keep it. |
118
119
  | [Report readers](claude-proposes.md) | A report draft is written | The draft, read as the CFO, the engineering lead and the sceptic | The ✦ of each initiative the question quotes | `pmos ai off report-readers` |
119
120
  | [Initiative descriptions](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. | The PRD's first Problem or Why paragraph, or the record's own first paragraph | "Description" under the initiative's ✦ | `pmos ai off descriptions`. `PMOS_DESCRIPTIONS=off` |
120
121
  | [Expected outcomes](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. When a check date passes: the verdict, from the goal's reading or one short run. | The PRD's success criteria, or the anchored key result. For a verdict: the goal's reading, or the lines the run cites | "Expected outcome" under the initiative's ✦. A verdict is recorded with Undo. Your move when PMOS cannot tell. | `pmos ai off outcomes`. `PMOS_OUTCOMES=off` |
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "PMOS proposes: the ✦, drafts and checks you keep or drop"
4
4
  description: "The one ✦ on each initiative, the grill, descriptions, expected outcomes, metric drafts, rehearsals, ask the past, your impact and the weekly drift check."
5
- timestamp: 2026-11-22
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # PMOS proposes
@@ -113,6 +113,16 @@ When a PRD is written later and says more than the description, PMOS drafts **A
113
113
  - ✓ saves the draft to the record. Undo puts back what was there.
114
114
  - ✕ drops it. PMOS does not draft the same one again.
115
115
 
116
+ ### Drafts from a ✦
117
+
118
+ A ✦ that offers a draft no longer writes into the chat. When you press ✓, PMOS drafts it in the background and the row says **PMOS is drafting it**. Then the draft shows on the same row:
119
+
120
+ - A line of the Overview (Problem, Goal, Done when) and a program's For and Goal are saved on the line at once. **Undo** puts the line back.
121
+ - The documents a gate needs start their own draft runs and show in Artefacts as drafts. A done test is saved as its checks, with **Undo**.
122
+ - A goal, initiatives or a verdict show under the row you pressed. Press ✓ to keep the draft or ✕ to drop it.
123
+
124
+ If PMOS cannot draft it, the row says why and shows **Try again**. A ✦ that needs your own words, such as a list to paste, still opens Ask PMOS.
125
+
116
126
  ### Ask PMOS to draft it
117
127
 
118
128
  **Ask PMOS to draft it** opens Today's chat with a prompt. PMOS reads what it can, shows you a draft, and saves it after you say yes.
@@ -403,8 +403,8 @@ PMOS drafts 4 to 6 principles for a product from its past decisions. Each draft
403
403
  The same five lines as the Strategy card on Work ([The strategy in five lines](initiatives-and-next-steps.md)). The keys are `for`, `problem`, `bet`, `win` and `wont`. Run the commands in the product's repository, or pass `--root <dir>`. The lines are in `strategy-card.jsonl` in the product's records folder, and the card shows what these commands write.
404
404
 
405
405
  - `pmos strategy show` shows the five lines. A line PMOS drafted shows ✦ and the files it came from.
406
- - `pmos strategy sources` lists the product's files a drafted line can cite: initiative records, PRDs, done tests, goal files and docs.
407
- - `pmos strategy draft --line <key> --text "<line>" --source <file>` is PMOS's draft of one blank line. It needs 1 to 5 `--source` values: a file of the product, or a tracker key such as `ABC-123`. A line that is already written is not changed.
406
+ - `pmos strategy sources` lists the product's files a drafted line can cite. The whole-product files come first (README and docs, decisions, goals, briefs, out-of-scope, research), then the work as evidence (initiative records, PRDs, done tests).
407
+ - `pmos strategy draft --line <key> --text "<line>" --source <file>` is PMOS's draft of one blank line. It needs 1 to 5 `--source` values: a file of the product, or a tracker key such as `ABC-123`. At least one must be a whole-product file, or the sources must come from 2 or more initiatives: one initiative's files are refused, because they describe a feature, not the product. A line that is already written is not changed.
408
408
  - `pmos strategy set --line <key> --text "<line>"` writes your own line. `--text ""` blanks it.
409
409
  - `pmos strategy undo` takes back every line PMOS drafted. `--line <key>` takes back one.
410
410
 
@@ -115,7 +115,7 @@ A published copy of a board does not show customer signals.
115
115
 
116
116
  A Work that shows one product has a **Strategy** card above its initiatives. It holds five lines: who the product is for, the problem, the bet, how you win, and what you won't do. Press the pencil to write or change them. Press the tick or Enter to save, or Esc to cancel. A save offers Undo.
117
117
 
118
- You do not have to write the lines yourself. When a product has no strategy, PMOS drafts the five lines from that product's own files: its initiatives, PRDs, goals and docs. While it works, the card says "drafting from this product's files…". Each line it drafts shows ✦ and, under it, the files it came from. A line the files do not support stays blank. PMOS never writes over a line you wrote. Change a drafted line with the pencil and it becomes yours. The Undo icon in the card's head takes back every drafted line, and then PMOS does not draft again by itself; press ✦ on the empty card to draft again. PMOS starts at most once a day for each product. Turn it off with `pmos ai off strategy-draft`.
118
+ You do not have to write the lines yourself. When a product has no strategy, PMOS drafts the five lines for the whole product, not for one initiative. It reads the product's own files first (its README and docs, goals, briefs, out-of-scope list, research and decisions) and uses the initiatives only as evidence. A line must come from a product file or from 2 or more initiatives. While it works, the card says "drafting from this product's files…". Each line it drafts shows ✦ and, under it, the files it came from. A line the files do not support stays blank. PMOS never writes over a line you wrote. Change a drafted line with the pencil and it becomes yours. ✦ in the card's head drafts PMOS's lines again; your own lines stay. The Undo icon takes back every drafted line, and then PMOS does not draft again by itself; press ✦ on the empty card to draft again. PMOS starts at most once a day for each product. Turn it off with `pmos ai off strategy-draft`.
119
119
 
120
120
  When all five lines are written, PMOS checks the initiatives that are not built yet (Triage to Prioritize, not chore or incident). An initiative gets a short note when:
121
121
 
@@ -10,7 +10,9 @@ When all five lines of a product's strategy are written (see [the strategy in fi
10
10
 
11
11
  ## Draft
12
12
 
13
- Press **✦** beside "Positioning · not drafted yet". PMOS drafts one positioning statement and two to five key messages from the five lines. Under each line, PMOS shows the strategy lines it comes from, with their words, for example "From The bet: One weekly plan per child".
13
+ Press **✦** beside "Positioning · not drafted yet". PMOS drafts one positioning statement and two to five key messages from the five lines. Point at a line to see the strategy lines it comes from, with their words, for example "From The bet: One weekly plan per child".
14
+
15
+ The part is folded: it shows only the positioning statement. Press "4 key messages" (the number of messages) to open the rest, and press it again to fold them.
14
16
 
15
17
  PMOS uses only the words of the strategy. It does not add customers, numbers, prices or competitors. A drafted line that names no strategy line is not shown. When PMOS cannot run a draft, it puts the lines together from the strategy word for word and says "without AI". Edit them before you keep them.
16
18
 
@@ -22,7 +24,7 @@ PMOS uses only the words of the strategy. It does not add customers, numbers, pr
22
24
 
23
25
  ## Kept lines
24
26
 
25
- Kept lines stay under the strategy, the positioning statement first. When a strategy line that a kept line comes from changes, the kept line says "the strategy changed since you kept this". Press **✕** on a kept line to drop it.
27
+ Kept lines stay under the strategy, the positioning statement first. When a strategy line that a kept line comes from changes, the kept line says "The strategy changed since you kept this". Press **✕** on a kept line to drop it.
26
28
 
27
29
  The lines are kept in `positioning.jsonl` in the product's records folder. Every keep and drop adds a line, so earlier versions are kept.
28
30
 
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+ /* card-catalog.js — the one card catalog (A2UI v2, Wawan 2026-11-24): every kind of row PMOS can show, the Komorebi part that
3
+ * draws it, and its buttons. Each button runs ONE pmos command and says who acts: 'you' (one press with Undo), 'agent' (PMOS
4
+ * starts a run; the row shows the result) or 'waits' (outward or cannot be undone: it waits for the PM's yes).
5
+ *
6
+ * load() → the catalog object, read once from lib/card-catalog.json (a committed copy; nothing reads outside the repo)
7
+ * kinds() → [{ group, id, name, part, reader, actions }]
8
+ * kindOf(id) → that kind, or null
9
+ * actionOf(kindId, label) → that kind's button with that label, or null
10
+ * parseRun(run) → { verb, sub, pos: [..], flags: { name: placeholder | true } } for "pmos <verb> <sub> …", or null when the
11
+ * button runs no command ("opens the task popup")
12
+ * commands() → [{ verb, sub, run, uses: [{ kind, label }] }], one per distinct "<verb> <sub>"
13
+ *
14
+ * The page reads the same file through GET /api/card-catalog (lib/routes-card-catalog.js) and runs a button with
15
+ * public/pm/action-run.js. Pure apart from the one read. */
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+
19
+ const FILE = path.join(__dirname, 'card-catalog.json');
20
+ let CAT = null;
21
+ function load() {
22
+ if (!CAT) CAT = Object.freeze(JSON.parse(fs.readFileSync(FILE, 'utf8')));
23
+ return CAT;
24
+ }
25
+ function kinds() {
26
+ const out = [];
27
+ for (const g of load().groups || []) for (const k of g.kinds || []) out.push({ group: g.id, id: k.id, name: k.name, part: k.part, reader: k.reader || null, actions: k.actions || [] });
28
+ return out;
29
+ }
30
+ function kindOf(id) { return kinds().find((k) => k.id === id) || null; }
31
+ function actionOf(kindId, label) {
32
+ const k = kindOf(kindId);
33
+ return k ? k.actions.find((a) => a.label === label) || null : null;
34
+ }
35
+ /** Split a run string into words, keeping "<a b>" and "\"…\"" whole. */
36
+ function words(s) {
37
+ const out = []; const re = /"[^"]*"|<[^>]*>|\S+/g; let m;
38
+ while ((m = re.exec(s))) out.push(m[0]);
39
+ return out;
40
+ }
41
+ function parseRun(run) {
42
+ const w = words(String(run || '').trim());
43
+ if (w[0] !== 'pmos' || !w[1]) return null;
44
+ const verb = w[1];
45
+ const sub = w[2] && !w[2].startsWith('-') && !w[2].startsWith('<') && !w[2].startsWith('"') ? w[2] : '';
46
+ const pos = [], flags = {};
47
+ for (let i = sub ? 3 : 2; i < w.length; i++) {
48
+ const x = w[i];
49
+ if (x.startsWith('--')) {
50
+ const nx = w[i + 1];
51
+ if (nx !== undefined && !nx.startsWith('--')) { flags[x.slice(2)] = nx; i++; } else flags[x.slice(2)] = true;
52
+ } else pos.push(x);
53
+ }
54
+ return { verb, sub, pos, flags };
55
+ }
56
+ function commands() {
57
+ const by = new Map();
58
+ for (const k of kinds()) for (const a of k.actions) {
59
+ const p = parseRun(a.run); if (!p) continue;
60
+ const key = p.verb + ' ' + p.sub;
61
+ if (!by.has(key)) by.set(key, { verb: p.verb, sub: p.sub, run: a.run, uses: [] });
62
+ by.get(key).uses.push({ kind: k.id, label: a.label });
63
+ }
64
+ return [...by.values()];
65
+ }
66
+
67
+ module.exports = { FILE, load, kinds, kindOf, actionOf, parseRun, commands, words };