create-pmos 0.804.0 → 0.806.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.804.0",
3
+ "version": "0.806.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,44 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.806.0",
38
+ "at": "2026-11-25T05:20:35.133Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1846,
43
+ "t": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
44
+ "s": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
45
+ "k": "new"
46
+ },
47
+ {
48
+ "n": 1847,
49
+ "t": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
50
+ "s": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
51
+ "k": "new"
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "v": "0.805.0",
57
+ "at": "2026-11-25T04:31:28.431Z",
58
+ "f": 4,
59
+ "prs": [
60
+ {
61
+ "n": 1835,
62
+ "t": "Name the pages that keep their own layouts",
63
+ "s": "Name the pages that keep their own layouts",
64
+ "k": "x"
65
+ },
66
+ {
67
+ "n": 1827,
68
+ "t": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
69
+ "s": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
70
+ "k": "fix"
71
+ }
72
+ ]
73
+ },
36
74
  {
37
75
  "v": "0.804.0",
38
76
  "at": "2026-11-25T02:16:07.854Z",
@@ -48,16 +86,7 @@
48
86
  "n": 1830,
49
87
  "t": "A grill the chat said started always lands or says why",
50
88
  "s": "A grill the chat said started always lands or says why",
51
- "k": "fix",
52
- "try": {
53
- "steps": [
54
- "Open Work and open an initiative.",
55
- "In its chat, write 'grill this'.",
56
- "Look at Overview and the ✦."
57
- ],
58
- "see": "Overview and the ✦ say 'PMOS is grilling this now' while it runs; then the findings show under ✦ ('PMOS grilled it'), or one line says why it could not grill.",
59
- "open": "/premium-board.html"
60
- }
89
+ "k": "fix"
61
90
  }
62
91
  ]
63
92
  },
@@ -398,58 +427,6 @@
398
427
  "k": "new"
399
428
  }
400
429
  ]
401
- },
402
- {
403
- "v": "0.784.0",
404
- "at": "2026-11-24T16:59:38.052Z",
405
- "f": 4,
406
- "prs": [
407
- {
408
- "n": 1777,
409
- "t": "PMOS proposes the scope cuts that save a date",
410
- "s": "PMOS proposes the scope cuts that save a date",
411
- "k": "new",
412
- "h": "PMOS proposes the scope cuts that save a date",
413
- "try": {
414
- "steps": [
415
- "Open Work and open an initiative whose end date is still ahead but whose tasks run past it",
416
- "Press its ✦ and find Cut to keep the date",
417
- "Keep it, then press Undo"
418
- ],
419
- "see": "The ✦ lists the tasks that finish after the date, each with its forecast and the new dates after the date; Keep moves them and adds a note, and Undo puts them back",
420
- "open": "/premium-board.html"
421
- }
422
- }
423
- ]
424
- },
425
- {
426
- "v": "0.783.0",
427
- "at": "2026-11-24T16:37:58.744Z",
428
- "f": 4,
429
- "prs": [
430
- {
431
- "n": 1778,
432
- "t": "Name the catalog and draft routes outside routes-*, so d86-seams check 7 passes",
433
- "s": "Name the catalog and draft routes outside routes-*, so d86-seams check 7 passes",
434
- "k": "fix"
435
- },
436
- {
437
- "n": 1780,
438
- "t": "One-tap reason when work rolls to the next sprint",
439
- "s": "One-tap reason when work rolls to the next sprint",
440
- "k": "new",
441
- "h": "One-tap reason when work rolls to the next sprint",
442
- "try": {
443
- "steps": [
444
- "Open Work, then a product's Backlog, and press This sprint",
445
- "Press the sprint name and pick the last closed sprint",
446
- "Under Carried to, press one reason on a ticket, such as Blocked"
447
- ],
448
- "see": "The ticket shows Blocked with a clear button, and the Carried to block above counts it: 1 blocked, and one fewer not said yet.",
449
- "open": "/premium-board.html"
450
- }
451
- }
452
- ]
453
430
  }
454
431
  ]
455
432
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@fe5947380
1
+ kernel-source: pmos@7322e1de0
2
2
  assembled: 2026-11-25
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "PMOS design system: pages and their blocks"
4
4
  description: "Every workspace page with its layout and the blocks it is built from."
5
- timestamp: 2026-11-24
5
+ timestamp: 2026-11-25
6
6
  ---
7
7
 
8
8
  # Pages and their blocks
@@ -24,7 +24,8 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
24
24
  | Routine | Main + open item | Detail, List, Summary |
25
25
  | Workflows | Main + open item | List, Detail |
26
26
  | Viewer · item | Main + open item | Navigation, Detail, Summary, List |
27
- | Viewer · docs, specs, briefs, reports, weekly updates, meeting notes, guides, notes, notepad, copies, text files | Reading | Document, Summary |
27
+ | Viewer · docs, specs, briefs, weekly updates, guides, notes, notepad, copies, text files | Reading | Document, Summary |
28
+ | Viewer · reports, meeting notes | their own views | Document, Summary |
28
29
  | Viewer · slides, PDF, prototype | Stage | Navigation, Stage |
29
30
  | Meeting recording | Single column | Stage, Summary, List |
30
31
  | Meeting buddy | Single column | Summary |
@@ -32,3 +33,7 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
32
33
  | Welcome | Single column | Settings, Summary |
33
34
  | Search | slide-over | List |
34
35
  | Shared link | Reading (no comments, no chat) | Document, Table |
36
+
37
+ **Which pages carry the classes.** Work, Library and Routine are on `pm-layout-open`, and Events is on `pm-layout-side`. Each one tunes the layout with its own widths, so it looks as it did before it moved.
38
+
39
+ **Own shells.** Today, Settings and Meeting recording keep their own layouts. Today and Settings put their column at the left, and `pm-layout-side` puts it at the right. Meeting recording fills the screen. Goals and Intelligence move later. Backlog is a view in Work, Workflows is a section of Settings, and Welcome shows only on the first run.
@@ -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-25T02:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:20:32Z"}
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-25T02:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:20:32Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -331,20 +331,88 @@ function classify({ cwd = process.cwd(), base, head, branch = '', body = '', led
331
331
  * repository's work-item ledger can answer (scope, flag, verified, pmos-review): on this line the merge station merges on green CI.
332
332
  * It also leaves out changed tests and done tests (every build adds a done test and may fix a test; the Checker grades them) and the
333
333
  * D11 history flags (an L2 flag, not an irreversible kind).
334
- * lineVerdict({ cwd, base, head, body, job }) → { factory: true, item: job, verdict: 'auto'|'human', reasons, files } */
334
+ * A531: before any of that, the job's record and done test must be on the head; if not, the verdict is `refuse` (SEND BACK to the
335
+ * build thread) and `refuse` lists why. `reasons` still lists the irreversible kinds it will wait on afterwards.
336
+ * lineVerdict({ cwd, base, head, body, job }) → { factory: true, item: job, verdict: 'auto'|'human'|'refuse', reasons, refuse, files } */
335
337
  const LINE_SKIP = new Set(['eval-files']);
336
338
  function jobOf(body) {
337
339
  const m = /^(?:Factory-Job|Initiative):\s*([a-z0-9][a-z0-9-]*)\s*$/mi.exec(String(body || ''));
338
340
  return m ? m[1].toLowerCase() : null;
339
341
  }
342
+ /* A531 (initiative merge-needs-done-test): no merge without a done test. 6 of 159 Checker verdicts in 48 hours were NO_DONE_TEST:
343
+ * the build merged with nothing to grade it against. The job's record on the PR head must name a done_test_path, and that file
344
+ * must be on the head and not empty. Records sit in planning/initiatives (PMOS-self) or the kit layouts; the file is <id>.md, or
345
+ * any record there whose frontmatter says `id: <job>`. → null when it has one, else the reason (one sentence). */
346
+ const RECORD_DIRS = ['planning/initiatives', 'pmos/planning/initiatives', 'pmos/state/initiatives'];
347
+ function frontOf(text) {
348
+ const m = /^---\r?\n([\s\S]*?)\r?\n---/.exec(String(text || ''));
349
+ const fm = {};
350
+ if (m) for (const l of m[1].split(/\r?\n/)) { const kv = /^([A-Za-z_][\w-]*):\s*(.*)$/.exec(l); if (kv) fm[kv[1]] = kv[2].trim().replace(/^(["'])(.*)\1$/, '$2'); }
351
+ return fm;
352
+ }
353
+ function doneTestGap(cwd, head, item) {
354
+ if (!item) return 'the pull request names no job (no Initiative: or Factory-Job: line), so there is no record and no done test to grade it against';
355
+ let file = null, text = null;
356
+ for (const d of RECORD_DIRS) { const r = git(cwd, ['show', `${head}:${d}/${item}.md`]); if (r.ok) { file = `${d}/${item}.md`; text = r.out; break; } }
357
+ if (!file && /^[a-z0-9][a-z0-9_-]*$/i.test(item)) {
358
+ const g = git(cwd, ['grep', '-l', '-E', `^id:[[:space:]]*["']?${item}["']?[[:space:]]*$`, head, '--', ...RECORD_DIRS]);
359
+ const hit = g.ok && g.out.split('\n').map((l) => l.replace(/^[^:]+:/, '').trim()).filter((l) => /\.md$/.test(l))[0];
360
+ if (hit) { const r = git(cwd, ['show', `${head}:${hit}`]); if (r.ok) { file = hit; text = r.out; } }
361
+ }
362
+ if (!file) return `${item} has no record on the pull request head (looked in ${RECORD_DIRS.join(', ')})`;
363
+ const dt = frontOf(text).done_test_path;
364
+ if (!dt) return `${file} names no done_test_path`;
365
+ const t = git(cwd, ['show', `${head}:${dt.replace(/^\/+/, '')}`]);
366
+ if (!t.ok) return `${file} names the done test ${dt}, but it is not on the pull request head`;
367
+ if (!t.out.trim()) return `the done test ${dt} is empty`;
368
+ return null;
369
+ }
370
+ const isGitHubRevert = (body) => /^Reverts [\w.-]+\/[\w.-]+#\d+\s*$/m.test(String(body || ''));
371
+ /* Which job a line pull request is. Real bodies name it many ways ("Initiative: `issue-from-chat` (chore, …)", "Job: x (A334)",
372
+ * "follow-up to #1825 (initiative `page-open-200ms`)", "Done test: `planning/done-tests/x.md`"), and many name none but carry the
373
+ * record or the done test in the diff. → candidate ids, best first: --job, the strict line, the diff's records and done tests, then
374
+ * the body's mentions. The first candidate with its record and done test on the head is the job. */
375
+ const SLUG = /^[a-z0-9][a-z0-9_-]*[a-z0-9]$/;
376
+ function jobCandidates({ job, body, files = [], cwd, head }) {
377
+ const out = [], add = (x) => { const v = String(x || '').toLowerCase().replace(/^`|`$/g, ''); if (SLUG.test(v) && !out.includes(v)) out.push(v); };
378
+ const b = String(body || '');
379
+ add(job); add(jobOf(b));
380
+ const dtPaths = new Set();
381
+ for (const f of files) {
382
+ const p = f.path || f;
383
+ const m = /^(?:planning\/initiatives|pmos\/planning\/initiatives|pmos\/state\/initiatives)\/([^/]+)\.md$/.exec(p);
384
+ if (m) { const r = git(cwd, ['show', `${head}:${p}`]); add(r.ok && frontOf(r.out).id || m[1]); }
385
+ if (/(^|\/)done-tests\/[^/]+\.md$/.test(p)) dtPaths.add(p);
386
+ }
387
+ for (const m of b.matchAll(/\b((?:pmos\/)?(?:planning|state)\/done-tests\/[a-z0-9_-]+\.md)\b/gi)) dtPaths.add(m[1]);
388
+ for (const p of dtPaths) { // a done test names its initiative in its frontmatter, else by its file name
389
+ const r = git(cwd, ['show', `${head}:${p}`]);
390
+ add(r.ok && frontOf(r.out).initiative); add(path.posix.basename(p, '.md'));
391
+ }
392
+ for (const m of b.matchAll(/\b(?:initiative|factory-job|job)\b:?\s*`?([a-z0-9][a-z0-9_-]*[a-z0-9])`?/gi)) add(m[1]);
393
+ for (const m of b.matchAll(/`([a-z0-9][a-z0-9_-]*-[a-z0-9_-]*[a-z0-9])`/g)) add(m[1]);
394
+ return out.slice(0, 16);
395
+ }
396
+ // a pull request that changes only tests or prose has nothing a done test would grade: the tests are the check (A531)
397
+ const onlyTestsOrDocs = (files) => files.length > 0 && files.every((f) => { const l = String(f.path || f).toLowerCase();
398
+ return /\.(md|mdx|txt|rst|adoc)$/.test(l) || TEST_FILE.test(l) || TEST_NAME.test(l); });
399
+
340
400
  function lineVerdict({ cwd = process.cwd(), base, head, body = '', job = null } = {}) {
341
- const item = job || jobOf(body);
342
- const reasons = [];
401
+ let item = job || jobOf(body);
402
+ const reasons = [], refuse = [];
343
403
  const human = (rule, detail) => reasons.push({ rule, detail });
344
404
  if (/^PMOS-Merge:\s*human\s*$/mi.test(String(body || ''))) human('pmos-merge-human', 'the pull request asks for a person (PMOS-Merge: human)');
345
- if (!base || !head) { human('unreadable', 'no base or head to compare'); return { factory: true, line: true, item, verdict: 'human', reasons, files: [] }; }
405
+ if (!base || !head) { human('unreadable', 'no base or head to compare'); return { factory: true, line: true, item, verdict: 'human', reasons, refuse, files: [] }; }
346
406
  const d = diffOf(cwd, base, head);
347
- if (d.error) { human('unreadable', d.error); return { factory: true, line: true, item, verdict: 'human', reasons, files: [] }; }
407
+ if (d.error) { human('unreadable', d.error); return { factory: true, line: true, item, verdict: 'human', reasons, refuse, files: [] }; }
408
+ // A531: a pull request with no done test goes back to its build thread, not to Wawan. A GitHub revert removes a build, and a
409
+ // change to tests or prose only is its own check: both exempt.
410
+ if (!isGitHubRevert(body) && !onlyTestsOrDocs(d.files)) {
411
+ const cands = jobCandidates({ job, body, files: d.files, cwd, head });
412
+ const hit = cands.find((c) => !doneTestGap(cwd, head, c));
413
+ if (hit) item = item || hit;
414
+ else refuse.push({ rule: 'no-done-test', detail: doneTestGap(cwd, head, job || jobOf(body) || cands[0] || null) });
415
+ }
348
416
  const files = d.files, all = [];
349
417
  if (!files.length) human('empty', 'the pull request changes nothing');
350
418
  for (const f of files) {
@@ -372,10 +440,13 @@ function lineVerdict({ cwd = process.cwd(), base, head, body = '', job = null }
372
440
  }
373
441
  const seen = new Set();
374
442
  const uniq = reasons.filter((r) => { const k = r.rule + '|' + r.detail; if (seen.has(k)) return false; seen.add(k); return true; });
375
- return { factory: true, line: true, item, verdict: uniq.length ? 'human' : 'auto', reasons: uniq, files: files.map((f) => f.path) };
443
+ return { factory: true, line: true, item, verdict: refuse.length ? 'refuse' : uniq.length ? 'human' : 'auto', reasons: uniq, refuse, files: files.map((f) => f.path) };
376
444
  }
377
445
 
378
446
  function summaryOf(v) {
447
+ if (v.line && v.verdict === 'refuse') return [`pmos-guardrail (factory line): SEND BACK ${v.item || 'this pull request'} to its build thread. Do not merge, and do not ask Wawan:`,
448
+ ...v.refuse.map((r) => `- ${r.detail}`), ' Land the record and its done test on the pull request, then run this again.',
449
+ ...(v.reasons.length ? ['After that it will still WAIT FOR WAWAN, because:', ...v.reasons.map((r) => `- ${r.detail}`)] : [])].join('\n');
379
450
  if (v.line) return v.verdict === 'auto'
380
451
  ? `pmos-guardrail (factory line): MERGE ${v.item || 'this pull request'} when required CI is green. Nothing on the irreversible list.`
381
452
  : [`pmos-guardrail (factory line): WAIT FOR WAWAN on ${v.item || 'this pull request'}, because:`, ...v.reasons.map((r) => `- ${r.detail}`)].join('\n');
@@ -418,5 +489,5 @@ function cliMain(argv, { say = (s) => console.log(s), env = process.env, cwd = p
418
489
  return 0;
419
490
  }
420
491
 
421
- module.exports = { classify, lineVerdict, jobOf, harnessTriggers, HARNESS, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
492
+ module.exports = { classify, lineVerdict, jobOf, doneTestGap, jobCandidates, harnessTriggers, HARNESS, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
422
493
  if (require.main === module) process.exitCode = cliMain(process.argv.slice(2));
@@ -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-25T02:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:20:32Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,42 @@
1
1
  [
2
+ {
3
+ "v": "0.806.0",
4
+ "at": "2026-11-25T05:20:35.133Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1846,
9
+ "t": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
10
+ "s": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
11
+ "k": "new"
12
+ },
13
+ {
14
+ "n": 1847,
15
+ "t": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
16
+ "s": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
17
+ "k": "new"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "v": "0.805.0",
23
+ "at": "2026-11-25T04:31:28.431Z",
24
+ "f": 4,
25
+ "prs": [
26
+ {
27
+ "n": 1835,
28
+ "t": "Name the pages that keep their own layouts",
29
+ "s": "Name the pages that keep their own layouts",
30
+ "k": "x"
31
+ },
32
+ {
33
+ "n": 1827,
34
+ "t": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
35
+ "s": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
36
+ "k": "fix"
37
+ }
38
+ ]
39
+ },
2
40
  {
3
41
  "v": "0.804.0",
4
42
  "at": "2026-11-25T02:16:07.854Z",
@@ -14,16 +52,7 @@
14
52
  "n": 1830,
15
53
  "t": "A grill the chat said started always lands or says why",
16
54
  "s": "A grill the chat said started always lands or says why",
17
- "k": "fix",
18
- "try": {
19
- "steps": [
20
- "Open Work and open an initiative.",
21
- "In its chat, write 'grill this'.",
22
- "Look at Overview and the ✦."
23
- ],
24
- "see": "Overview and the ✦ say 'PMOS is grilling this now' while it runs; then the findings show under ✦ ('PMOS grilled it'), or one line says why it could not grill.",
25
- "open": "/premium-board.html"
26
- }
55
+ "k": "fix"
27
56
  }
28
57
  ]
29
58
  },
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "PMOS design system: pages and their blocks"
4
4
  description: "Every workspace page with its layout and the blocks it is built from."
5
- timestamp: 2026-11-24
5
+ timestamp: 2026-11-25
6
6
  ---
7
7
 
8
8
  # Pages and their blocks
@@ -24,7 +24,8 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
24
24
  | Routine | Main + open item | Detail, List, Summary |
25
25
  | Workflows | Main + open item | List, Detail |
26
26
  | Viewer · item | Main + open item | Navigation, Detail, Summary, List |
27
- | Viewer · docs, specs, briefs, reports, weekly updates, meeting notes, guides, notes, notepad, copies, text files | Reading | Document, Summary |
27
+ | Viewer · docs, specs, briefs, weekly updates, guides, notes, notepad, copies, text files | Reading | Document, Summary |
28
+ | Viewer · reports, meeting notes | their own views | Document, Summary |
28
29
  | Viewer · slides, PDF, prototype | Stage | Navigation, Stage |
29
30
  | Meeting recording | Single column | Stage, Summary, List |
30
31
  | Meeting buddy | Single column | Summary |
@@ -32,3 +33,7 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
32
33
  | Welcome | Single column | Settings, Summary |
33
34
  | Search | slide-over | List |
34
35
  | Shared link | Reading (no comments, no chat) | Document, Table |
36
+
37
+ **Which pages carry the classes.** Work, Library and Routine are on `pm-layout-open`, and Events is on `pm-layout-side`. Each one tunes the layout with its own widths, so it looks as it did before it moved.
38
+
39
+ **Own shells.** Today, Settings and Meeting recording keep their own layouts. Today and Settings put their column at the left, and `pm-layout-side` puts it at the right. Meeting recording fills the screen. Goals and Intelligence move later. Backlog is a view in Work, Workflows is a section of Settings, and Welcome shows only on the first run.
@@ -693,6 +693,7 @@ An initiative with no plan end is "can't tell". PMOS never guesses its date.
693
693
  - `pmos program capacity <team> <n>` sets how many initiatives a team builds at once. The default is 2. An initiative's team is its record's `team:` line, else its product. It prints the command that undoes it.
694
694
  - `pmos program decide <id> --keep-target` records that you keep the target date against the forecast. A new slip asks again. `pmos program decide --team <team> --first <initiative>` records which initiative a shared team builds first.
695
695
  - `pmos program outcome <id> "<text>"` records the outcome read, the last exit of Land.
696
+ - `pmos program steering <id>` prints the steering pack: one page with the status, the dates at risk and the decisions needed, each with its options and PMOS's recommendation where there is one. It writes nothing. After the meeting, `pmos program steering <id> --mark <key> --choice <number>` writes the decision taken to the decision journal and prints the command that undoes it (`--undo <decision id>`). Ask for the steering pack in the chat on Work, and PMOS runs it.
696
697
 
697
698
  ### pmos driver: the Initiative Driver
698
699
 
@@ -27,7 +27,7 @@ The workspace has one stylesheet for each part: `pm/brand.css`, `pm/charts.css`,
27
27
 
28
28
  These pages are on the UI system: the meeting buddy, the recording tab, the audience tab, the extension's capture popup and the Welcome page. On a moved page, `pm/ds-bridge.css` points the old colour names at the system's colours, so the parts that other modules draw there follow the system too. While a screen is shared, the recording tab's stage uses the Dark theme.
29
29
 
30
- **Five page layouts.** Every page is one of five layouts in `ui/`: Single column (`pm-layout-single`), Main + side (`pm-layout-side`), Main + open item (`pm-layout-open`), Full popup (`pm-layout-popup`) and Reading (`pm-layout-reading`). A page picks one and fills its slots with blocks. Gaps, widths and corners come from the system's tokens, so a change to a layout or a token reaches every page that uses it. The chat is always the slide-over, never a slot. On a phone every layout is one column. `ui/pages.md` says which page uses which layout; pages move onto them one at a time. Work, Library and Routine use Main + open item, and Events uses Main + side. A page can tune a layout with its own widths, for example the Events list stops at 1100 px, so a page looks the same after it moves.
30
+ **Five page layouts.** Every page is one of five layouts in `ui/`: Single column (`pm-layout-single`), Main + side (`pm-layout-side`), Main + open item (`pm-layout-open`), Full popup (`pm-layout-popup`) and Reading (`pm-layout-reading`). A page picks one and fills its slots with blocks. Gaps, widths and corners come from the system's tokens, so a change to a layout or a token reaches every page that uses it. The chat is always the slide-over, never a slot. On a phone every layout is one column. `ui/pages.md` says which page uses which layout; pages move onto them one at a time. Work, Library and Routine use Main + open item, and Events uses Main + side. A page can tune a layout with its own widths, for example the Events list stops at 1100 px, so a page looks the same after it moves. Today, Settings and Meeting recording keep their own layouts: Today and Settings have their column at the left, and Meeting recording fills the screen.
31
31
 
32
32
  Every block has three states, and one part of the UI system draws all three (`State` in `ui/components/`). The Viewer uses it for every tab:
33
33
 
@@ -225,9 +225,10 @@ The initiative popup shows five actions at most: **Ask PMOS** in the header and
225
225
  - **Add** goes to the List and puts the cursor in the add box.
226
226
  - **Who**, **Set the date** and **Stage** change the selected tasks. If no task is selected, the line "Pick the tasks to change · Esc to stop" shows. Click the tasks, then press the line's button, for example **Who for 2 tasks**. Press Esc to stop.
227
227
 
228
- Every other action is in the header's **⋯** menu, in three groups:
228
+ Every other action is in the header's **⋯** menu, in these groups:
229
229
 
230
- - **Plan**: **Move the dates** (with no task selected, it moves every open task), **Set the epic**, **Sprint**, **Priority**, **Under a parent** and **Mark them done**. Most of these show only while tasks are selected.
230
+ - **Change**: **Who**, **Set the date** or **Stage**, when your four leave one of them out. This group is first, and it shows only while tasks are selected.
231
+ - **Plan**: **Add a task or milestone** when your four leave it out, **Move the dates** (with no task selected, it moves every open task), **Set the epic**, **Sprint**, **Priority**, **Under a parent** and **Mark them done**. Most of these show only while tasks are selected.
231
232
  - **View**: **List** or **Gantt**, and in the Gantt **Columns**, **Span of the timeline** and **The whole popup**. **Source** and **Every part** are here too.
232
233
  - **Jira**: **Status in Jira**, when one Jira ticket is selected.
233
234
 
@@ -229,7 +229,7 @@ function check(root, { id, verdict, evidence, again } = {}, { now = Date.now(),
229
229
  }
230
230
 
231
231
  /* ── logged from a press (decisions-from-approvals) ── */
232
- const FROM = Object.freeze(['approval', 'card', 'drop', 'park']);
232
+ const FROM = Object.freeze(['approval', 'card', 'drop', 'park', 'steering']); // steering: a decision marked after a steering meeting (lib/steering-pack.js, A108)
233
233
  const TAG = '[decision-log]';
234
234
 
235
235
  /** The ids an `undo` line took out. */
@@ -15,7 +15,7 @@ const fs = require('fs');
15
15
  const pmItems = require('./pm-items.js');
16
16
  const MS = require('./milestone-suggest.js');
17
17
 
18
- const COMMANDS = { program: ['suggest', 'charter', 'new', 'join', 'leave', 'task', 'task-done', 'check', 'milestone', 'archive', 'unarchive', 'line', 'draft', 'order', 'capacity', 'decide', 'outcome'] };
18
+ const COMMANDS = { program: ['suggest', 'charter', 'new', 'join', 'leave', 'task', 'task-done', 'check', 'milestone', 'archive', 'unarchive', 'line', 'draft', 'order', 'capacity', 'decide', 'outcome', 'steering'] };
19
19
  const USAGE = [
20
20
  'usage: pmos program suggest — PMOS\'s milestone suggestions for a program',
21
21
  ' pmos program suggest --json <file|->',
@@ -52,6 +52,9 @@ const USAGE = [
52
52
  ' Record the user\'s decision on a forecast past the target, or which initiative a shared team builds first.',
53
53
  ' pmos program outcome <id> "<what the outcome read says>"',
54
54
  ' Record the outcome read against the program\'s goal (the last exit of Land).',
55
+ ' pmos program steering <id> [--json] | --mark <key> --choice <number|words> [--why "<text>"] | --undo <decision id>',
56
+ ' The steering pack: one page with the status, the dates at risk and the decisions needed, each with its options. Writes nothing.',
57
+ ' After the meeting, --mark writes the decision taken to the decision journal and prints the Undo.',
55
58
  ];
56
59
  const MAX_PER_RUN = 8;
57
60
 
@@ -250,7 +253,7 @@ function editVerb(verb, args, { say, cwd, now = Date.now() } = {}) {
250
253
  return done(msg, back || (dropped ? `pmos program milestone ${id} add ${q(dropped.name)} --date ${dropped.date}${(dropped.waits || []).length ? ' --waits ' + dropped.waits.join(',') : ''}` : ''));
251
254
  }
252
255
 
253
- const LINE_VERBS = ['line', 'draft', 'order', 'capacity', 'decide', 'outcome'];
256
+ const LINE_VERBS = ['line', 'draft', 'order', 'capacity', 'decide', 'outcome', 'steering'];
254
257
  const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
255
258
  const short = (d) => (d ? MON[+d.slice(5, 7) - 1] + ' ' + (+d.slice(8, 10)) + ' ' + d.slice(0, 4) : '');
256
259
 
@@ -258,7 +261,7 @@ const short = (d) => (d ? MON[+d.slice(5, 7) - 1] + ' ' + (+d.slice(8, 10)) + '
258
261
  * draft → the charter workspace's milestone-reviews.jsonl (suggestions the program page shows with Keep and Decline);
259
262
  * order, decide <id>, outcome → the charter workspace's programs.jsonl; capacity and decide --team → this repository's programs.jsonl
260
263
  * (a team spans products: extrasOf reads the lines of every product). Exit 0 done, 1 refused, 2 usage. */
261
- function lineVerb(verb, args, { say, cwd, env, now = Date.now(), read: readFn } = {}) {
264
+ function lineVerb(verb, args, { say, cwd, env, now = Date.now(), read: readFn, runtimeDir } = {}) {
262
265
  const path = require('path');
263
266
  const PL = require('./program-line.js');
264
267
  const driver = require('./driver.js');
@@ -266,13 +269,13 @@ function lineVerb(verb, args, { say, cwd, env, now = Date.now(), read: readFn }
266
269
  for (let k = 0; k < args.length; k++) {
267
270
  const a = args[k];
268
271
  if (a === '--json' || a === '--keep-target' || a === '--clear') flags[a.slice(2)] = true;
269
- else if (/^--(root|team|first)$/.test(a)) { const v = args[++k]; if (a === '--root') (flags.root = flags.root || []).push(v); else flags[a.slice(2)] = v; }
272
+ else if (/^--(root|team|first|mark|choice|why|undo)$/.test(a)) { const v = args[++k]; if (a === '--root') (flags.root = flags.root || []).push(v); else flags[a.slice(2)] = v; }
270
273
  else if (a.startsWith('--')) { say(`✗ unknown flag ${a}`); return 2; }
271
274
  else pos.push(a);
272
275
  }
273
276
  const here = (flags.root && flags.root[0]) ? path.resolve(cwd, flags.root[0]) : gitTop(cwd);
274
277
  const roots = flags.root ? PL.rootsOf(flags.root.map((r) => path.resolve(cwd, r)), env, false) : PL.rootsOf([here], env, true);
275
- const R = () => (readFn || PL.read)(roots, { now, only: verb === 'line' ? pos[0] || null : null, env });
278
+ const R = () => (readFn || PL.read)(roots, { now, only: verb === 'line' || verb === 'steering' ? pos[0] || null : null, env });
276
279
  const rootOfWs = (r, ws) => (r.products.find((x) => x.ws === ws) || {}).root || null;
277
280
  const progFile = (root) => { const d = driver.stateDirOf(root); return d ? path.join(d, 'programs.jsonl') : null; };
278
281
 
@@ -325,6 +328,8 @@ function lineVerb(verb, args, { say, cwd, env, now = Date.now(), read: readFn }
325
328
  const home = rootOfWs(r, L.home);
326
329
  if (!home) { say(`✗ the charter of ${id} is in a product this computer does not have`); return 1; }
327
330
 
331
+ if (verb === 'steering') return steeringVerb(L, r, home, flags, { say, now, env, runtimeDir });
332
+
328
333
  if (verb === 'order') {
329
334
  const P = require('./programs.js');
330
335
  const list = flags.clear ? [] : pos[1] ? String(pos[1]).split(',').map((x) => x.trim()).filter(Boolean) : L.order.proposed;
@@ -390,4 +395,31 @@ function gitTop(cwd) {
390
395
  try { return require('child_process').execFileSync('git', ['rev-parse', '--show-toplevel'], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() || cwd; } catch { return cwd; }
391
396
  }
392
397
 
393
- module.exports = { run, COMMANDS, USAGE, charter, editVerb, lineVerb };
398
+ /** `pmos program steering` (steering-pack, job #1842, A108): print the pack, or mark one decision taken in the meeting, or undo a mark.
399
+ * A mark is one decision-journal line in the charter's repository (lib/steering-pack.js mark); nothing else is written. Each pack printed
400
+ * adds one local use-log line (control steeringPack), the count the kill reads. */
401
+ function steeringVerb(L, r, home, flags, { say, now, env, runtimeDir }) {
402
+ const SP = require('./steering-pack.js');
403
+ const who = { now, by: 'agent:cli', via: 'cli' };
404
+ if (flags.undo) {
405
+ const u = SP.unmark(home, flags.undo, who);
406
+ say(u.ok ? `[steering-pack] ✓ undone ${u.id}` : `✗ ${u.error}`);
407
+ return u.ok ? 0 : 1;
408
+ }
409
+ const pack = SP.packOf(L, r.clashes, { now });
410
+ if (flags.mark) {
411
+ if (flags.choice == null) { say('usage: pmos program steering <id> --mark <key> --choice <number|words> [--why "<text>"]'); return 2; }
412
+ const m = SP.mark(home, pack, { key: flags.mark, choice: flags.choice, why: flags.why }, who);
413
+ if (!m.ok) { say(`✗ ${m.error}`); return 1; }
414
+ say(`[steering-pack] ✓ ${m.existed ? 'already marked' : 'marked'}: ${m.decided}. Undo: pmos program steering ${L.id} --undo ${m.id}`);
415
+ return 0;
416
+ }
417
+ try {
418
+ const dir = runtimeDir || require('./state-root.js').defaultRoot({ env });
419
+ require('./use-log.js').record(dir, [{ kind: 'use', page: 'work', control: 'steeringPack', device: 'desk' }], now);
420
+ } catch { /* the use log is a count, never a reason to fail */ }
421
+ say(flags.json ? JSON.stringify({ ok: true, pack }) : SP.markdown(pack).trimEnd());
422
+ return 0;
423
+ }
424
+
425
+ module.exports = { run, COMMANDS, USAGE, charter, editVerb, lineVerb, steeringVerb };
@@ -0,0 +1,105 @@
1
+ 'use strict';
2
+ /* steering-pack.js — the one-page steering pack of a program, and the decisions taken in the meeting (steering-pack, job #1842, idea A108).
3
+ *
4
+ * A steering meeting needs one page per program: where it stands, which dates are at risk, and the decisions to take, each with its options.
5
+ * Everything is read from the program line (lib/program-line.js lineOf, clashesOf): no model call, nothing invented. After the meeting the
6
+ * PM marks each decision; the mark is one line in the decision journal (lib/decision-journal.js logFrom, from `steering`) with an Undo.
7
+ *
8
+ * packOf(L, clashes, { now }) PURE → { id, title, today, status: [text], atRisk: [{ what, date, why }], decisions: [{ key, question, options,
9
+ * recommend }] }
10
+ * status the station and what it misses, the forecast against the target, the members (n live, n past Implementation)
11
+ * atRisk each member that slips (its date and why), each milestone that moves (from → to)
12
+ * decisions target: the forecast is past the target → Keep the target <t> · Move the target to <f> · Cut or reorder the work
13
+ * ms:<id>: a milestone moves → Accept <to> · Hold <from> and recover the work
14
+ * team:<team>: a team clash with this program's members → <first> goes first (PMOS recommends) · Another order
15
+ * None when nothing needs a decision: the page says so ("zero is silence" is for counts; the page says what to bring).
16
+ * markdown(pack) PURE → the one page, in Markdown
17
+ * choiceOf(pack, key, choice) PURE → { decision, option } | { error } choice: 1-based number or the option's words
18
+ * mark(root, pack, { key, choice, why }, { now, by, via }) → { ok, id, decided } | { ok: false, error } one journal line; ref
19
+ * steering:<program>:<key>:<today>, so the same mark on the same day is written once and another choice
20
+ * for a key marked today is refused until its Undo
21
+ * unmark(root, id, { now, by, via }) → the Undo: decision-journal undo
22
+ * The CLI is `pmos program steering <id> [--json] [--mark <key> --choice <n|words> [--why "<text>"]] [--undo <decision id>]` (lib/program-cli.js). */
23
+ const DJ = require('./decision-journal.js');
24
+
25
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
26
+ const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
27
+ const short = (d) => (DAY_RE.test(String(d || '')) ? (+d.slice(8, 10)) + ' ' + MON[+d.slice(5, 7) - 1] + ' ' + d.slice(0, 4) : '');
28
+ const plural = (n, a, b) => n + ' ' + (n === 1 ? a : b);
29
+
30
+ function packOf(L, clashes, { now = Date.now() } = {}) {
31
+ const today = new Date(now).toISOString().slice(0, 10);
32
+ if (!L || !L.id) return null;
33
+ const fc = L.forecast || {}, members = Array.isArray(L.members) ? L.members : [];
34
+ const past = members.filter((m) => m.passedImpl).length;
35
+ const status = [];
36
+ status.push(L.station ? `At ${L.station.name} (${L.station.n} of ${L.station.of})` + ((L.stations[L.station.n - 1] || {}).missing || []).map((x, i) => (i ? '; ' : ': missing ') + x).join('') + '.' : 'Landed.');
37
+ if (fc.state === 'past') status.push(`Forecast ${short(fc.date)}, past the target ${short(L.target)}.`);
38
+ else if (fc.state === 'inside') status.push(`Forecast ${short(fc.date)}, inside the target ${short(L.target)}.`);
39
+ else if (fc.state === 'cant-tell') status.push(`Can't tell the forecast: ${(fc.cantTell || []).join(', ')} ${(fc.cantTell || []).length === 1 ? 'has' : 'have'} no date.`);
40
+ else if (fc.state === 'no-target') status.push(`Forecast ${short(fc.date)}; the program has no target date.`);
41
+ if (members.length) status.push(`${plural(members.length, 'initiative', 'initiatives')}, ${past} past Implementation.`);
42
+ const atRisk = [];
43
+ for (const s of fc.slips || []) atRisk.push({ what: s.id, date: s.date, why: s.why });
44
+ for (const m of fc.moves || []) atRisk.push({ what: 'Milestone ' + m.name, date: m.to, why: `moves from ${short(m.from)} to ${short(m.to)}` });
45
+ const decisions = [];
46
+ if (fc.state === 'past' && !L.decision) {
47
+ decisions.push({ key: 'target', question: `The forecast ${short(fc.date)} is past the target ${short(L.target)}. Keep the target, or move it?`,
48
+ options: [`Keep the target ${short(L.target)}`, `Move the target to ${short(fc.date)}`, 'Cut or reorder the work'], recommend: null });
49
+ }
50
+ for (const m of fc.moves || []) {
51
+ decisions.push({ key: 'ms:' + m.id, question: `Milestone ${m.name} moves from ${short(m.from)} to ${short(m.to)}. Accept the new date?`,
52
+ options: [`Accept ${short(m.to)}`, `Hold ${short(m.from)} and recover the work`], recommend: null });
53
+ }
54
+ const mine = new Set(members.map((m) => m.id));
55
+ for (const c of clashes || []) {
56
+ if (!c || c.decided || !(c.want || []).some((w) => mine.has(w.id))) continue;
57
+ decisions.push({ key: 'team:' + c.team, question: c.text, options: [`${c.recommend.first} goes first`, 'Another order'], recommend: 0, why: c.recommend.why });
58
+ }
59
+ return { id: L.id, title: L.title || L.id, today, status, atRisk, decisions };
60
+ }
61
+
62
+ function markdown(p) {
63
+ if (!p) return '';
64
+ const out = [`# Steering pack: ${p.title}`, '', `${short(p.today)}. PMOS made this page from the program's records.`, '', '## Status', ''];
65
+ for (const s of p.status) out.push('- ' + s);
66
+ out.push('', '## Dates at risk', '');
67
+ if (p.atRisk.length) for (const r of p.atRisk) out.push(`- **${r.what}**, ${short(r.date)}: ${r.why}.`);
68
+ else out.push('No date is at risk.');
69
+ out.push('', '## Decisions needed', '');
70
+ if (p.decisions.length) {
71
+ p.decisions.forEach((d, i) => {
72
+ out.push(`${i + 1}. ${d.question} (key \`${d.key}\`)`);
73
+ d.options.forEach((o, j) => out.push(` ${j + 1}. ${o}${d.recommend === j ? ' (PMOS recommends' + (d.why ? ': ' + d.why : '') + ')' : ''}`));
74
+ });
75
+ out.push('', `After the meeting, mark each one: \`pmos program steering ${p.id} --mark <key> --choice <number>\`. It goes to the decision journal, with an Undo.`);
76
+ } else out.push('Nothing needs a decision.');
77
+ return out.join('\n') + '\n';
78
+ }
79
+
80
+ function choiceOf(p, key, choice) {
81
+ const d = p && p.decisions.find((x) => x.key === key);
82
+ if (!d) return { error: `no decision ${key} in the steering pack of ${p ? p.id : 'this program'}` + (p && p.decisions.length ? ` (keys: ${p.decisions.map((x) => x.key).join(', ')})` : '') };
83
+ const c = String(choice == null ? '' : choice).trim();
84
+ const n = /^\d+$/.test(c) ? Number(c) : 0;
85
+ const option = n >= 1 && n <= d.options.length ? d.options[n - 1] : d.options.find((o) => o.toLowerCase() === c.toLowerCase());
86
+ if (!option) return { error: `the choice is a number from 1 to ${d.options.length}, or the words of one option` };
87
+ return { decision: d, option };
88
+ }
89
+
90
+ function mark(root, p, { key, choice, why } = {}, { now = Date.now(), by, via } = {}) {
91
+ const c = choiceOf(p, key, choice);
92
+ if (c.error) return { ok: false, error: c.error };
93
+ const decided = `${p.title}, steering: ${c.option}`;
94
+ const r = DJ.logFrom(root, { from: 'steering', decided, ref: `steering:${p.id}:${key}:${p.today}`, why: why || c.decision.question }, { now, by, via });
95
+ if (!r.ok) return r;
96
+ if (r.existed) { // the key was marked today already: the same choice is a no-op, another one waits for the Undo of the first
97
+ const had = (DJ.read(root).rows.find((x) => x && x.type === 'decision' && x.id === r.id) || {}).decided;
98
+ if (had && had !== decided) return { ok: false, error: `${key} is already marked today: ${had}. Undo it first: pmos program steering ${p.id} --undo ${r.id}` };
99
+ }
100
+ return { ok: true, id: r.id, decided, existed: !!r.existed };
101
+ }
102
+
103
+ function unmark(root, id, o = {}) { return DJ.undo(root, { id }, o); }
104
+
105
+ module.exports = { packOf, markdown, choiceOf, mark, unmark, short };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.804.0",
3
+ "version": "0.806.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.804.0",
9
+ "version": "0.806.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.804.0",
3
+ "version": "0.806.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",
@@ -1320,7 +1320,7 @@ async function capGo(btn, act, c, h, x) {
1320
1320
  return dateMenu(btn, ids[0], c, h, x);
1321
1321
  }
1322
1322
  }
1323
- /** ⋯ under the cap (PopupCapDS): Plan, View and Jira, with a head line each; an action that does not apply is not there (CAP.moreGroups). A
1323
+ /** ⋯ under the cap (PopupCapDS): Change (what the toolbar's four leave off), Plan, View and Jira, with a head line each; an action that does not apply is not there (CAP.moreGroups). A
1324
1324
  * phone has no View group: it has no Gantt. */
1325
1325
  function capItems(body, hh) {
1326
1326
  if (RO || !body || !body.__pwcur || !body.querySelector || !body.querySelector('.pw') || body.querySelector('[data-pw-level]')) return [];
@@ -1330,11 +1330,11 @@ function capItems(body, hh) {
1330
1330
  const picked = all.filter((q) => q.kind === 'task' && S.sel.has(String(q.uid))), one = picked.length === 1 ? picked[0] : null;
1331
1331
  const epics = (c.r.epics || []).filter(Boolean), cnt = WT.sourceCounts(stagesOf(c.r, c.v, { ...o, today: c.W.today }, S), epics);
1332
1332
  const gantt = store.get(VIEW, 'list') === 'gantt';
1333
- const G = CAP.moreGroups({ picked: picked.length > 0, one: !!one, oneJira: !!(one && one.jira && !one.jsub), allJira: picked.length > 0 && WT.allJira(all, S.sel),
1333
+ const G = CAP.moreGroups({ bar: fourIds(), picked: picked.length > 0, one: !!one, oneJira: !!(one && one.jira && !one.jsub), allJira: picked.length > 0 && WT.allJira(all, S.sel),
1334
1334
  oneOpen: !!(one && !one.done && !one.jira), view: gantt ? 'gantt' : 'list', src: !!PD.sourceHtml(cnt, S.src || 'all'), tl: cols().tl }).filter((g) => desk || g.group !== 'View');
1335
1335
  const run = async (act, a) => {
1336
1336
  noteUse('pop-' + act);
1337
- if (act === 'shift') return capPress(a, 'shift', c, h, x, redraw);
1337
+ if (act === 'shift' || act === 'add' || act === 'who' || act === 'date' || act === 'stage') return capPress(a, act, c, h, x, redraw); // Change and a left-off Add
1338
1338
  if (act === 'epic' || act === 'parent' || act === 'done') return bulkPress(a, act, c, h, x);
1339
1339
  if (act === 'sprint' && one) return sprintMenu(a, String(one.uid), c, h, x);
1340
1340
  if (act === 'prio' && one) return prioMenu(a, String(one.uid), c, h, x);
@@ -3,15 +3,17 @@
3
3
  * its presses; pm/use-log.js notes each press as `pop-<action>`.
4
4
  *
5
5
  * THE CAP Ask PMOS (in the popup's header) and the four actions of the toolbar: five. Back and Close move you; they are not actions.
6
- * The ⋯ (More actions) holds the rest, grouped Plan, View and Jira. Keys (Ctrl K, the action keys) still reach every action.
6
+ * The ⋯ (More actions) holds the rest, grouped Change, Plan, View and Jira. Keys (Ctrl K, the action keys) still reach every action.
7
7
  * ACTIONS the toolbar's candidates: add, who, date, stage, shift, epic. DEFAULT: add, who, date, stage.
8
8
  * four(counts, span) → the four ids: the ones used most in the last 30 days; while there are fewer than 30 days of use, DEFAULT
9
9
  * due(saved, now) → true when the four are worked out again: none saved, or saved a week or more ago
10
10
  * toolbarHtml(ids, o) → the toolbar: the four icon buttons (data-pw-act). o: { picked, jiraPicked }
11
11
  * pickLineHtml(act, n) → the line while picking: "Pick the tasks to change · Esc to stop", then "Who for 2 tasks" with its button
12
12
  * moreGroups(o) → [{ group, items: [{ act, label, icon }] }] for ⋯. Plan and Jira only while rows are picked (Move the
13
- * dates always: with nothing picked it moves every open task); View always. o: { picked, one, oneJira,
14
- * allJira, oneOpen, view, src, tl }. An action that does not apply is not there.
13
+ * dates always: with nothing picked it moves every open task); View always. o: { bar, picked, one, oneJira,
14
+ * allJira, oneOpen, view, src, tl }. An action that does not apply is not there. bar (the toolbar's ids,
15
+ * default DEFAULT): Who, Set the date or Stage left off it go in a first group, Change, while rows are
16
+ * picked; a left-off Add is first in Plan. Toolbar plus ⋯ never loses an action.
15
17
  * countActions(html) → the visible actions a block's markup holds (data-pw-act and the old head tools); the guard test fails above
16
18
  * five with the header's Ask PMOS
17
19
  * ROW_MAX → a row's hover shows at most three: Who, Date, More
@@ -79,7 +81,11 @@ export function pickLineHtml(act, n) {
79
81
  /** The ⋯ groups. Zero is silence: an action that does not apply is left out, and so is a group with nothing in it. */
80
82
  export function moreGroups(o = {}) {
81
83
  const it = (act, label, icon) => ({ act, label, icon });
82
- const plan = [it('shift', o.picked ? 'Move the dates' : 'Move the dates of every open task', IC.shift)];
84
+ // ⋯ holds every action the toolbar leaves off (Checker flag after #1809): a four from the use log can leave out Who, Set the date or
85
+ // Stage; they go in a first group, Change, shown only while rows are picked, like Plan. A left-out Add is first in Plan at all times.
86
+ const bar = Array.isArray(o.bar) ? o.bar : DEFAULT, off = (k) => !bar.includes(k);
87
+ const change = o.picked ? ['who', 'date', 'stage'].filter(off).map((k) => it(k, ACTIONS[k].label, ACTIONS[k].icon)) : [];
88
+ const plan = [...(off('add') ? [it('add', ACTIONS.add.label, IC.plus)] : []), it('shift', o.picked ? 'Move the dates' : 'Move the dates of every open task', IC.shift)];
83
89
  if (o.picked) {
84
90
  if (o.allJira) plan.push(it('epic', 'Set the epic', IC.epic));
85
91
  if (o.one && o.oneOpen) plan.push(it('sprint', 'Sprint', IC.sprint), it('prio', 'Priority', IC.flag));
@@ -90,7 +96,7 @@ export function moreGroups(o = {}) {
90
96
  if (o.src) view.push(it('src', 'Source', IC.src));
91
97
  view.push(it('parts', 'Every part', IC.parts));
92
98
  const jira = o.picked && o.one && o.oneJira ? [it('jira', 'Status in Jira', IC.jira)] : [];
93
- return [{ group: 'Plan', items: plan }, { group: 'View', items: view }, { group: 'Jira', items: jira }].filter((g) => g.items.length);
99
+ return [{ group: 'Change', items: change }, { group: 'Plan', items: plan }, { group: 'View', items: view }, { group: 'Jira', items: jira }].filter((g) => g.items.length);
94
100
  }
95
101
  export const iconOf = (d, w = 14) => SV(d, w);
96
102
 
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "steering-pack (job #1842, A108): the one-page steering pack of a program and the decisions marked into the journal. No browser, no network.",
3
+ "modules": [
4
+ "steering-pack.test.js"
5
+ ],
6
+ "seconds": {
7
+ "steering-pack.test.js": 2
8
+ }
9
+ }