create-pmos 0.843.0 → 0.845.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.843.0",
3
+ "version": "0.845.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": {
@@ -34,8 +34,22 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.843.0",
38
- "at": "2026-11-25T17:32:30.120Z",
37
+ "v": "0.845.0",
38
+ "at": "2026-11-25T18:02:38.683Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 2041,
43
+ "t": "Main's browser reds — stage-card-tasks, adddoc, task-views, task-press T3, vw-jira dark, viewer-trail, vw-rec and day-run hold under load",
44
+ "s": "Main's browser reds — stage-card-tasks, adddoc, task-views, task-press T3, vw-jira dark, viewer-trail, vw-rec and day-run hold under load",
45
+ "k": "fix",
46
+ "i": "ci-main-unblock"
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "v": "0.844.0",
52
+ "at": "2026-11-25T17:36:00.349Z",
39
53
  "f": 4,
40
54
  "prs": [
41
55
  {
@@ -43,6 +57,7 @@
43
57
  "t": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
44
58
  "s": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
45
59
  "k": "new",
60
+ "i": "copy-tests",
46
61
  "h": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
47
62
  "try": {
48
63
  "steps": [
@@ -52,14 +67,14 @@
52
67
  ],
53
68
  "see": "With nothing typed in the chat, the Copy test block shows its ✦ offer; ✦ drafts A against B with Undo. Then a Copy test block with one table (Variant, Copy, the rate and how sure), one ✦ line such…",
54
69
  "open": "/premium-board.html"
55
- },
56
- "i": "copy-tests"
70
+ }
57
71
  },
58
72
  {
59
73
  "n": 2027,
60
74
  "t": "Events says what to bring on each meeting (job #2012, TbEvents)",
61
75
  "s": "Events says what to bring on each meeting (job #2012, TbEvents)",
62
76
  "k": "new",
77
+ "i": "tb-events-bring",
63
78
  "h": "Events says what to bring on each meeting (job #2012, TbEvents)",
64
79
  "try": {
65
80
  "steps": [
@@ -69,14 +84,14 @@
69
84
  ],
70
85
  "see": "Each meeting tied to your work says what to bring, for example \"Bring two calls: …\", naming dates that Events lists; a meeting with nothing to decide says \"Nothing new for this one yet.\"; focus time…",
71
86
  "open": "/premium-events.html"
72
- },
73
- "i": "tb-events-bring"
87
+ }
74
88
  },
75
89
  {
76
90
  "n": 1958,
77
91
  "t": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
78
92
  "s": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
79
93
  "k": "new",
94
+ "i": "initiative-cost",
80
95
  "h": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
81
96
  "try": {
82
97
  "steps": [
@@ -86,8 +101,24 @@
86
101
  ],
87
102
  "see": "One row per initiative the factory worked on: agent hours, spend in dollars and how many pull requests merged. An initiative that spent for 7 days with no merge shows one ✦ asking to pause its jobs.…",
88
103
  "open": "/premium-board.html?work=cost"
89
- },
90
- "i": "initiative-cost"
104
+ }
105
+ },
106
+ {
107
+ "n": 2022,
108
+ "t": "This sprint's Summary card with a ✦ sentence per count, Ticket and Epic columns (job #2018)",
109
+ "s": "This sprint's Summary card with a ✦ sentence per count, Ticket and Epic columns (job #2018)",
110
+ "k": "new",
111
+ "i": "tb-sprint-balanced",
112
+ "h": "This sprint, with a Summary that says what is going on",
113
+ "try": {
114
+ "steps": [
115
+ "Open Work and press This sprint",
116
+ "Read the Summary card above Tasks: To do, In progress and Done with one bar, a ✦ sentence under each, and who holds what",
117
+ "In Tasks, press a Ticket or an Epic to open it in Jira"
118
+ ],
119
+ "see": "The Summary card gives the same To do, In progress and Done counts as the Tasks tabs, all work in the sprint's dates, Jira and not. Each count with work has one ✦ sentence written from the tickets,…",
120
+ "open": "/premium-board.html"
121
+ }
91
122
  }
92
123
  ]
93
124
  },
@@ -1043,54 +1074,6 @@
1043
1074
  "i": "report-three-audiences"
1044
1075
  }
1045
1076
  ]
1046
- },
1047
- {
1048
- "v": "0.822.0",
1049
- "at": "2026-11-25T09:18:15.859Z",
1050
- "f": 4,
1051
- "prs": [
1052
- {
1053
- "n": 1880,
1054
- "t": "Pmos hire drafts the next hire from the work that waits (job #1876)",
1055
- "s": "Pmos hire drafts the next hire from the work that waits (job #1876)",
1056
- "k": "new",
1057
- "i": "next-hire-draft",
1058
- "h": "Pmos hire drafts the next hire from the work that waits (job #1876)",
1059
- "try": {
1060
- "steps": [
1061
- "Open Today and ask the chat: draft the next hire",
1062
- "Open the file it names, under planning/hires",
1063
- "Read the role, why now, the 90-day outcomes and the work it takes"
1064
- ],
1065
- "see": "One page names the role most loaded or missing (open tasks and waiting asks per person, or work with no owner), why now with the numbers, three outcomes for 90 days from the initiatives that carry…",
1066
- "open": "/today.html"
1067
- }
1068
- },
1069
- {
1070
- "n": 1869,
1071
- "t": "A stage's sign-offs reach You on Today (job #1861, Factory page slice A)",
1072
- "s": "A stage's sign-offs reach You on Today (job #1861, Factory page slice A)",
1073
- "k": "new",
1074
- "i": "factory-signoffs-reach-you"
1075
- },
1076
- {
1077
- "n": 1886,
1078
- "t": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
1079
- "s": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
1080
- "k": "new",
1081
- "i": "worth-it-by-kind",
1082
- "h": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
1083
- "try": {
1084
- "steps": [
1085
- "Open Today and ask the chat: is each kind of AI run worth what it costs?",
1086
- "Read the line for each kind: its runs and cost this month, and what you kept of its work",
1087
- "Find any kind marked costs most, kept least"
1088
- ],
1089
- "see": "One line per kind of background run: its runs and cost this month, and how many of its ✦ proposals you kept of those you decided. A kind that costs a large share and is kept less than half the time…",
1090
- "open": "/today.html"
1091
- }
1092
- }
1093
- ]
1094
1077
  }
1095
1078
  ]
1096
1079
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@b534252a3
1
+ kernel-source: pmos@4669bd89c
2
2
  assembled: 2026-11-25
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-25T17:32:26Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T18:02:34Z"}
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-25T17:32:26Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T18:02:34Z"}
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-25T17:32:26Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T18:02:34Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -87,15 +87,19 @@ function probe(port, ms = PROBE_MS) {
87
87
  // old 5 s limit made `pmos proactive day show` say the server was not running (day-run D8b, 2026-11-25). The same commands find the
88
88
  // server with discover(API_TIMEOUT_MS): the 2.5 s launcher probe alone still read a busy server as not running (Checker, 2026-11-25).
89
89
  const API_TIMEOUT_MS = 30000;
90
+ // Why the last request answered nothing: 'timeout', a socket error code (ECONNREFUSED: no server), or 'not JSON (HTTP n)'.
91
+ // A command says which, so "not running" is said only when nothing listens (lib/proactive-cli.js).
92
+ let LAST_API_ERR = null;
90
93
  function api(port, method, pathname, body, extraHeaders) {
94
+ LAST_API_ERR = null;
91
95
  return new Promise((res) => {
92
96
  const data = body ? JSON.stringify(body) : null;
93
97
  const req = http.request(`${urlOf(port)}${pathname}`, {
94
98
  method, timeout: API_TIMEOUT_MS,
95
99
  headers: { ...(data ? { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(data) } : {}), ...(extraHeaders || {}) },
96
- }, (r) => { let b = ''; r.on('data', (c) => (b += c)); r.on('end', () => { try { res(JSON.parse(b)); } catch { res(null); } }); });
97
- req.on('error', () => res(null));
98
- req.on('timeout', () => { req.destroy(); res(null); });
100
+ }, (r) => { let b = ''; r.on('data', (c) => (b += c)); r.on('end', () => { try { res(JSON.parse(b)); } catch { LAST_API_ERR = 'not JSON (HTTP ' + r.statusCode + ')'; res(null); } }); });
101
+ req.on('error', (e) => { if (!LAST_API_ERR) LAST_API_ERR = (e && e.code) || 'error'; res(null); });
102
+ req.on('timeout', () => { LAST_API_ERR = 'timeout'; req.destroy(); res(null); });
99
103
  if (data) req.write(data);
100
104
  req.end();
101
105
  });
@@ -608,7 +612,7 @@ function doctor() {
608
612
  else if (cmd === 'proactive') {
609
613
  const port = await serverPort();
610
614
  code = await require('../lib/proactive-cli').run(process.argv.slice(2), {
611
- say, call: async (m, p, b) => (port ? pressApi(port, m, p, b) : null) });
615
+ say, call: async (m, p, b) => (port ? pressApi(port, m, p, b) : null), port, why: () => LAST_API_ERR });
612
616
  }
613
617
  else if (cmd === 'kg') {
614
618
  // Reads tracked .md files straight from disk (lib/kg-cli.js); needs no running server.
@@ -159,6 +159,7 @@ const iso = (ms) => new Date(Date.now() + ms).toISOString();
159
159
  ok('G1 on a phone Shared with me is the last item of the view button (batch 28 item 3, BhA; no Docs chip), and it opens Shared', await (async () => { await s.p.waitForSelector('#bdView'); await s.p.click('#bdView'); const last = await s.p.evaluate(() => { const m = document.querySelector('#bdViewMenu'); const b = [...m.querySelectorAll('button')].pop(); return !document.getElementById('chDocs') && !document.getElementById('chShared') && b && b.hasAttribute('data-vshared') && /Shared with me/.test(b.textContent); }); await s.p.click('#bdViewMenu [data-vshared]'); await s.p.waitForSelector('.bdsh-list .bdsh-card'); return last; })());
160
160
  const g = await s.p.evaluate(() => ({ side: document.documentElement.scrollWidth > innerWidth + 1, cards: document.querySelectorAll('#cShared .bdsh-card').length }));
161
161
  ok('G2 a row is a card that fits the phone, with no sideways scroll', g.cards === 4 && !g.side, JSON.stringify(g));
162
+ await s.p.waitForFunction(() => [...document.styleSheets].some((x) => /bd-shared\.css/.test(x.href || '')), null, { timeout: 10000 }).catch(() => {}); // bd-shared.css loads lazily (css()): measure after it applies
162
163
  const small = await s.p.locator('#cShared button:visible').evaluateAll((els) => els.filter((e) => e.getBoundingClientRect().height < 34).map((e) => e.className + ':' + Math.round(e.getBoundingClientRect().height)));
163
164
  ok('G3 every control on the phone is at least 34 px high', small.length === 0, small.join(' '));
164
165
  ok('G4 no page error in any section', s.errs.length === 0, s.errs.join(' | '));
@@ -16,7 +16,9 @@ const BASE = T.BASE;
16
16
  // the phone design (Ph2_init): a phone shows an initiative as the popup's phone page; the old page is ⋯ › Every part
17
17
  const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); await pg.evaluate(() => { const r = (window.__czVwMore ? window.__czVwMore(document.body) : []).find((x) => x.label === 'Every part'); if (r) r.go(); }); await pg.waitForTimeout(800); };
18
18
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
19
- const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
19
+ // 30 s by default: every wait here is for something to show, and with four browser suites at once on 4 cores the Viewer's
20
+ // form and redraws took over 10 s (2026-11-25); a pass returns as soon as it shows
21
+ const until = async (fn, ms = 30000, step = 100) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
20
22
  const results = [];
21
23
  const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
22
24
  let srv = null; let browser = null;
@@ -59,9 +61,12 @@ const PAGES = {
59
61
  await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
60
62
  await page.goto(BASE + P.file + P.qs + theme);
61
63
  if (w <= 760 && kind === 'initiative') await everyPart(page);
62
- let up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.ready), 20000);
63
- if (up && kind === 'initiative') { /* the page holds the Tasks (batch 11 item 20) */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 20000); } // the Overview holds the button
64
- return { ctx, page, errors, posts, up, calls: () => calls, setCustom: (c) => { current = c; }, reply: (a) => { reply = a; } };
64
+ // 40 s, not 20: with four browser suites at once on 4 cores the first draw of today.html can take over 20 s (2026-11-25)
65
+ let up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.ready), 40000);
66
+ if (up && kind === 'initiative') { /* the page holds the Tasks (batch 11 item 20) */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 40000); } // the Overview holds the button
67
+ // when it did not draw: what was on screen, so a failure says which step stopped
68
+ const seen = up ? '' : await page.evaluate(() => { const v = document.querySelector('#czViewer'); return JSON.stringify({ url: location.pathname + location.search, viewer: v ? (v.hidden ? 'hidden' : 'open') : 'none', mc: !!document.querySelector('#czViewer .iv-mc'), views: [...document.querySelectorAll('#czViewer [data-hi-v], #czViewer [data-hi-view]')].map((x) => x.dataset.hiV || x.dataset.hiView), head: ((v && v.querySelector('.cz-vw-hd')) || {}).textContent || '' }); }).catch((e) => String(e));
69
+ return { ctx, page, errors, posts, up, seen, calls: () => calls, setCustom: (c) => { current = c; }, reply: (a) => { reply = a; } };
65
70
  };
66
71
  const txt = (p, s) => p.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
67
72
  const viaMore = async (pg, label) => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); await pg.click(`#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${label}"))`); }; // the Overview's other views, Open the full record and Sprint sit under ⋯ (XvATasks)
@@ -69,7 +74,7 @@ const PAGES = {
69
74
  // Documents is shell A (XvADocs): Add a document is under its ⋯, with Group by and Show
70
75
  async function addDoc(page) { await page.click('#czViewer [data-cz-vw="more"]'); await page.click('#czViewer .cz-vw-menu button:has-text("Add a document")'); }
71
76
  // the initiative's page (canvas HbC): its Documents' "Show all N" drills into the Documents view
72
- async function docsView(page) { if (await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')), 20000)) await (async (pg) => { if (await pg.$('#czViewer [data-hi-v="page"] [data-iv-docs]')) await pg.click('#czViewer [data-iv-docs]'); else if (await pg.$('#czViewer [data-hi-view="docs"]')) await pg.click('#czViewer [data-hi-view="docs"]'); else await viaMore(pg, 'Documents'); })(page); }
77
+ async function docsView(page) { if (await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')), 40000)) await (async (pg) => { if (await pg.$('#czViewer [data-hi-v="page"] [data-iv-docs]')) await pg.click('#czViewer [data-iv-docs]'); else if (await pg.$('#czViewer [data-hi-view="docs"]')) await pg.click('#czViewer [data-hi-view="docs"]'); else await viaMore(pg, 'Documents'); })(page); }
73
78
 
74
79
  /* the Board had its own Add a document on its Documents tab; batch 24 item 7 took that tab off the Board, so only the initiative's is checked */
75
80
  for (const kind of ['initiative']) {
@@ -77,7 +82,7 @@ const PAGES = {
77
82
  const A = await open(kind), p = A.page;
78
83
  const F = '#czViewer:not([hidden])';
79
84
  const dlgShut = () => p.evaluate(() => { const d = document.querySelector('#dlg'); return !d || !d.classList.contains('on'); });
80
- ok(`${kind} 0 the page draws (Home with the initiative, its Overview open)`, A.up);
85
+ ok(`${kind} 0 the page draws (Home with the initiative, its Overview open)`, A.up, A.seen + (A.errors.length ? ' errors: ' + A.errors.join(' | ') : ''));
81
86
  if (!A.up) return finish(1);
82
87
  await p.click('#czViewer [data-cz-vw="more"]');
83
88
  ok(`${kind} A1 the Overview's Documents view has Add a document under ⋯`, await p.evaluate(() => [...document.querySelectorAll('#czViewer .cz-vw-menu button')].some((b) => /^Add a document/.test(b.textContent.trim()))));
@@ -106,8 +111,8 @@ const PAGES = {
106
111
  ok(`${kind} A3 nothing else was posted`, A.posts.every((x) => x.path === '/api/custom-docs/add'));
107
112
  ok(`${kind} A1 the form closes, the initiative is read again and its Overview comes back`, await until(() => A.calls() > calls0) && await until(() => p.evaluate(() => !document.querySelector('#czViewer #adT') && !!document.querySelector('#czViewer [data-hi-v="docs"]'))));
108
113
  A.setCustom(CUSTOM.map((d) => Object.assign({}, d, { scope: P.scope }))); await p.reload();
109
- await until(() => p.evaluate((s) => !!document.querySelector(s), P.ready), 20000); if (!ini) await p.click(P.ready); await docsView(p);
110
- await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-ov-doc="custom:cd-2"]')), 20000);
114
+ await until(() => p.evaluate((s) => !!document.querySelector(s), P.ready), 40000); if (!ini) await p.click(P.ready); await docsView(p);
115
+ await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-ov-doc="custom:cd-2"]')), 40000);
111
116
  // a row: the title, its state pill, then what it is (when, who writes it, where it lives) and the link as text (InDocs)
112
117
  // shell A (XvADocs): a row is one press, its title then one quiet line (when, who writes it, the state) and the link as text
113
118
  const rows = await p.evaluate(() => [...document.querySelectorAll('#czViewer [data-ov-doc]')].map((r) => { const w = r.querySelector('.w') || r, sub = [...w.querySelectorAll(':scope > span')].map((x) => x.textContent); return { t: (w.firstChild && w.firstChild.nodeType === 3 ? w.firstChild.textContent : '').trim(), meta: sub.filter((x) => !/: https?:/.test(x)).join(' · '), small: sub.filter((x) => /: https?:/.test(x)).join(' '), btn: r.querySelectorAll('button:not([disabled]):not([data-ov-none])').length, none: !!r.querySelector('[data-ov-none]') }; })); // a document with no file says so when pressed (testing fixes); it opens nothing
@@ -122,8 +127,9 @@ const PAGES = {
122
127
  ok(`${kind} A8 Escape closes the form`, await p.evaluate(() => !document.querySelector('#czViewer #adT')));
123
128
  ok(`${kind} no page error`, A.errors.length === 0, A.errors.join(' | '));
124
129
  await A.ctx.close();
125
- const N = await open(kind, { w: 390, h: 844 }); await addDoc(N.page); await until(() => N.page.evaluate(() => !!document.querySelector('#czViewer #adT')));
126
- const floors = await N.page.evaluate(() => { const h = (s) => Math.round(document.querySelector('#czViewer ' + s).getBoundingClientRect().height); return { go: h('.cz-vw-hd [data-cz-vw-p="add"]'), no: h('.cz-vw-hd [data-cz-vw="back"]'), t: h('#adT'), k: h('#adK'), w: h('#adW button'), fs: getComputedStyle(document.querySelector('#czViewer #adT')).fontSize }; });
130
+ const N = await open(kind, { w: 390, h: 844 }); if (N.up) await addDoc(N.page); await until(() => N.page.evaluate(() => !!document.querySelector('#czViewer #adT')), 30000);
131
+ // a part that is not there reads 0 (a miss with its name), not a TypeError that stops the suite
132
+ const floors = await N.page.evaluate(() => { const h = (s) => { const e = document.querySelector('#czViewer ' + s); return e ? Math.round(e.getBoundingClientRect().height) : 0; }; return { go: h('.cz-vw-hd [data-cz-vw-p="add"]'), no: h('.cz-vw-hd [data-cz-vw="back"]'), t: h('#adT'), k: h('#adK'), w: h('#adW button'), fs: document.querySelector('#czViewer #adT') ? getComputedStyle(document.querySelector('#czViewer #adT')).fontSize : '0' }; });
127
133
  ok(`${kind} A8 at 390 px the presses and fields are at least 44 px and the fields do not zoom the page`, [floors.go, floors.no, floors.t, floors.k, floors.w].every((v) => v >= 44) && parseFloat(floors.fs) >= 16, JSON.stringify(floors));
128
134
  ok(`${kind} A8 no sideways scroll at 390 px with the form open`, await N.page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelector('#czViewer').getBoundingClientRect().right <= innerWidth + 1));
129
135
  await N.ctx.close();
@@ -1,7 +1,21 @@
1
1
  [
2
2
  {
3
- "v": "0.843.0",
4
- "at": "2026-11-25T17:32:30.120Z",
3
+ "v": "0.845.0",
4
+ "at": "2026-11-25T18:02:38.683Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 2041,
9
+ "t": "Main's browser reds — stage-card-tasks, adddoc, task-views, task-press T3, vw-jira dark, viewer-trail, vw-rec and day-run hold under load",
10
+ "s": "Main's browser reds — stage-card-tasks, adddoc, task-views, task-press T3, vw-jira dark, viewer-trail, vw-rec and day-run hold under load",
11
+ "k": "fix",
12
+ "i": "ci-main-unblock"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "v": "0.844.0",
18
+ "at": "2026-11-25T17:36:00.349Z",
5
19
  "f": 4,
6
20
  "prs": [
7
21
  {
@@ -9,6 +23,7 @@
9
23
  "t": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
10
24
  "s": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
11
25
  "k": "new",
26
+ "i": "copy-tests",
12
27
  "h": "Copy and layout tests on an initiative, drafted from plain words (job #1905, A351)",
13
28
  "try": {
14
29
  "steps": [
@@ -18,14 +33,14 @@
18
33
  ],
19
34
  "see": "With nothing typed in the chat, the Copy test block shows its ✦ offer; ✦ drafts A against B with Undo. Then a Copy test block with one table (Variant, Copy, the rate and how sure), one ✦ line such…",
20
35
  "open": "/premium-board.html"
21
- },
22
- "i": "copy-tests"
36
+ }
23
37
  },
24
38
  {
25
39
  "n": 2027,
26
40
  "t": "Events says what to bring on each meeting (job #2012, TbEvents)",
27
41
  "s": "Events says what to bring on each meeting (job #2012, TbEvents)",
28
42
  "k": "new",
43
+ "i": "tb-events-bring",
29
44
  "h": "Events says what to bring on each meeting (job #2012, TbEvents)",
30
45
  "try": {
31
46
  "steps": [
@@ -35,14 +50,14 @@
35
50
  ],
36
51
  "see": "Each meeting tied to your work says what to bring, for example \"Bring two calls: …\", naming dates that Events lists; a meeting with nothing to decide says \"Nothing new for this one yet.\"; focus time…",
37
52
  "open": "/premium-events.html"
38
- },
39
- "i": "tb-events-bring"
53
+ }
40
54
  },
41
55
  {
42
56
  "n": 1958,
43
57
  "t": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
44
58
  "s": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
45
59
  "k": "new",
60
+ "i": "initiative-cost",
46
61
  "h": "What each initiative and merged pull request cost, and a pause for a stall (job #1906)",
47
62
  "try": {
48
63
  "steps": [
@@ -52,8 +67,24 @@
52
67
  ],
53
68
  "see": "One row per initiative the factory worked on: agent hours, spend in dollars and how many pull requests merged. An initiative that spent for 7 days with no merge shows one ✦ asking to pause its jobs.…",
54
69
  "open": "/premium-board.html?work=cost"
55
- },
56
- "i": "initiative-cost"
70
+ }
71
+ },
72
+ {
73
+ "n": 2022,
74
+ "t": "This sprint's Summary card with a ✦ sentence per count, Ticket and Epic columns (job #2018)",
75
+ "s": "This sprint's Summary card with a ✦ sentence per count, Ticket and Epic columns (job #2018)",
76
+ "k": "new",
77
+ "i": "tb-sprint-balanced",
78
+ "h": "This sprint, with a Summary that says what is going on",
79
+ "try": {
80
+ "steps": [
81
+ "Open Work and press This sprint",
82
+ "Read the Summary card above Tasks: To do, In progress and Done with one bar, a ✦ sentence under each, and who holds what",
83
+ "In Tasks, press a Ticket or an Epic to open it in Jira"
84
+ ],
85
+ "see": "The Summary card gives the same To do, In progress and Done counts as the Tasks tabs, all work in the sprint's dates, Jira and not. Each count with work has one ✦ sentence written from the tickets,…",
86
+ "open": "/premium-board.html"
87
+ }
57
88
  }
58
89
  ]
59
90
  },
@@ -607,10 +607,11 @@ PMOS lists the asks in the product's Jira readings that were closed without bein
607
607
  - `pmos declined draft <KEY>` shows the reply draft for one ask. `--reason "<why>"` gives your own reason instead of the one PMOS reads from the ticket.
608
608
  - `pmos declined record <KEY>` records the ask in `planning/out-of-scope/<key>.md` and in `declined-asks.jsonl` in the product's records folder. `--reason "<why>"` gives your reason. When a later idea repeats the ask, "You decided this before" raises it. Once you edit the file, PMOS does not write over it.
609
609
 
610
- ### pmos sprint: the retro of a closed sprint and one tracked change
610
+ ### pmos sprint: the sprint running now, the retro of a closed sprint and one tracked change
611
611
 
612
612
  The same block as One change in a past sprint on Work › Backlog. PMOS writes the retro from its own close numbers for every sprint it saw open and then closed: done of total, and why work was carried (never started, started, in review, carried two sprints in a row, added after the start). It tracks one change for the next sprint: the biggest reason with 2 or more tickets. At the next sprint's close, the retro says whether that change helped, with the number before and after. Run the commands in the product's repository, or pass `--root <dir>`. Your overrides are in `_sprint-retro.jsonl` beside the kept sprint history. Nothing is sent and Jira is not written.
613
613
 
614
+ - `pmos sprint now` shows the sprint running now, the same as the Summary card on Work › This sprint: how much it holds and when it ends, To do, In progress and Done, and who holds what ("By person: Wawan 4 to do · no one 5"). The counts cover all work in the sprint's dates, Jira and not. `--sprint "<name>"` picks another running sprint, `--ws <id>` another workspace, and `--json` prints the fields. It asks the running PMOS and writes nothing.
614
615
  - `pmos sprint retro` shows the retro of the newest closed sprint PMOS kept. `--sprint "<name>"` shows another one. `--json` prints the fields.
615
616
  - `pmos sprint change --sprint "<name>" --pick <reason>` tracks another change. The reasons are `twice`, `never`, `review`, `started` and `added`.
616
617
  - `pmos sprint change --sprint "<name>" --drop` tracks no change for that sprint. `--undo` goes back to PMOS's pick.
@@ -105,6 +105,8 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
105
105
  - On a phone the line shows only the next open milestone's name. Press the line to unfold the stages and milestones as a list under it.
106
106
  - On a wide Viewer the stage's dates, ⋯ and the next stage always show under the picture, and the milestones are in their own **Milestones** card under it. When the dates are too long for the row, they take their own line. They are never cut.
107
107
  - **Group by** (Stage, Owner, Status or Epic) is saved for the initiative. It stays after you change a task.
108
+ - The view button stays marked as open while its sheet is open, also when the list refreshes behind it.
109
+ - When you add a task with **+** on a stage, the field stays open and keeps your text and the cursor, also when another change saves at the same time.
108
110
  - When the list is folded, the Live pill above the menu button shows its marks in a column.
109
111
  - The picture spans the card from edge to edge. The telescope stands at the left, the launch pad in the middle and the dish at the right, whatever the stages' dates. The rocket gets smaller as it flies toward the planet.
110
112
  - Under the card are the 3 most urgent tasks and the documents that need a look. **Show N more** opens all the tasks and **Show all N** opens all the documents. ← goes back to the page. A task or a document that you open from the page also has ← back to the page.
@@ -226,7 +226,7 @@ const VERBS = Object.freeze({
226
226
  help: 'pmos declined list|draft|record — asks closed without being done, each with a kind reply draft PMOS never sends; record one in the out-of-scope list (pmos declined help)' }),
227
227
  // Not a pm-os-absorb verb (run: null): initiative sprint-retro-one-change (bet A76) added it through the same table.
228
228
  sprint: Object.freeze({ module: 'sprint-cli.js', run: null, guide: 'cli.md',
229
- help: 'pmos sprint retro|change — a closed sprint\'s retro from PMOS\'s own close numbers, and its one tracked change (pmos sprint help)' }),
229
+ help: 'pmos sprint now|retro|change — the sprint running now and who holds what, and a closed sprint\'s retro with its one tracked change (pmos sprint help)' }),
230
230
  // Not a pm-os-absorb verb (run: null): initiative parked-reason-way-back (bet A446) added it through the same table.
231
231
  parked: Object.freeze({ module: 'parked-cli.js', run: null, guide: 'cli.md',
232
232
  help: 'pmos parked list|hold|back|coverage — parked initiatives: why each is parked, what brings it back, and bringing it back (pmos parked help)' }),
@@ -41,14 +41,21 @@ const COMMANDS = { proactive: ['today', 'scan', 'settings', 'feedback', 'brief',
41
41
  const BRIEF_SOURCES = ['calendar', 'wispr', 'mail', 'slack', 'jira', 'confluence', 'github', 'drive', 'figma', 'website'];
42
42
  const onOff = (v, what) => (v === 'on' || v === 'true' ? true : v === 'off' || v === 'false' ? false : { err: `${what} takes on or off` });
43
43
 
44
- async function run(argv, { call, say, cwd = process.cwd() }) {
44
+ async function run(argv, { call, say, cwd = process.cwd(), port = null, why = () => null }) {
45
45
  const [group, verb, ...rest] = argv;
46
46
  const { pos, flags } = parseArgs(rest);
47
47
  const fail = (m) => { say('✗ ' + m); return 1; };
48
48
  if (group !== 'proactive' || !verb || flags.help || verb === 'help') { say(`usage: pmos proactive <${COMMANDS.proactive.join('|')}> …`); return verb ? 0 : 1; }
49
49
  if (!COMMANDS.proactive.includes(verb)) return fail(`unknown command "${verb}" — use ${COMMANDS.proactive.join(', ')}`);
50
- const probe = await call('GET', '/api/proactive/settings');
51
- if (!probe) return fail('the workspace server is not running — start it with: pmos');
50
+ // A server that is not running refuses at once. A busy one can let an ask run past its 30 s wait while agent sessions start
51
+ // (day-run D8b in CI, 2026-11-25), so a timeout is asked again, up to three times, and only a refusal is called not running.
52
+ let probe = null;
53
+ for (let i = 0; i < 3 && !probe; i++) { probe = await call('GET', '/api/proactive/settings'); if (!probe && why() !== 'timeout') break; }
54
+ if (!probe) {
55
+ const w = why();
56
+ if (!w || w === 'ECONNREFUSED' || !port) return fail('the workspace server is not running — start it with: pmos');
57
+ return fail(`the workspace server on port ${port} did not answer (${w === 'timeout' ? 'no answer in 30 s, three times' : w}) — try again`);
58
+ }
52
59
 
53
60
  if (verb === 'today') {
54
61
  const t = await call('GET', '/api/proactive/today');
@@ -2,6 +2,8 @@
2
2
  /* sprint-cli.js — `pmos sprint`: the retro of a closed sprint and its one tracked change, the same block the past sprint view on Work ›
3
3
  * Backlog shows (initiative sprint-retro-one-change). The store is lib/sprint-retro.js (_sprint-retro.jsonl beside the kept sprint history).
4
4
  *
5
+ * pmos sprint now [--sprint "<name>"] [--ws <id>] [--json] the sprint running now: To do, In progress, Done and who holds what,
6
+ * the Summary card of Work › This sprint (asks the running PMOS)
5
7
  * pmos sprint retro [--sprint "<name>"] [--json] the retro (default: the newest closed sprint PMOS kept)
6
8
  * pmos sprint change --sprint "<name>" --pick <reason> | --drop | --undo the PM's override of the tracked change (the chat writes it)
7
9
  * every command: [--root <dir>] (default: this repository)
@@ -12,16 +14,18 @@ const { execFileSync } = require('child_process');
12
14
  const SR = require('./sprint-retro.js');
13
15
  const SH = require('./sprint-history.js');
14
16
 
15
- const COMMANDS = { sprint: ['retro', 'change'] };
17
+ const COMMANDS = { sprint: ['now', 'retro', 'change'] };
18
+ const SN = require('./sprint-now.js');
16
19
  const REASONS = SR.REASONS.map((x) => x.reason);
17
20
  const USAGE = [
18
- 'usage: pmos sprint retro|change — a closed sprint\'s retro, from PMOS\'s own close numbers, and its one tracked change',
21
+ 'usage: pmos sprint now|retro|change — the sprint running now, and a closed sprint\'s retro with its one tracked change',
22
+ ' pmos sprint now [--sprint "<name>"] [--ws <id>] [--json] To do, In progress, Done and who holds what, as Work › This sprint shows it',
19
23
  ' pmos sprint retro [--sprint "<name>"] [--json] the retro (default: the newest closed sprint PMOS kept)',
20
24
  ' pmos sprint change --sprint "<name>" --pick <reason> track another change (reasons: ' + REASONS.join(', ') + ')',
21
25
  ' pmos sprint change --sprint "<name>" --drop | --undo track no change, or go back to PMOS\'s pick',
22
26
  'Run it in the product\'s repository, or pass --root <dir>.',
23
27
  ];
24
- const ALLOWED = { retro: ['json', 'root', 'sprint'], change: ['json', 'root', 'sprint', 'pick', 'drop', 'undo'] };
28
+ const ALLOWED = { now: ['json', 'sprint', 'ws'], retro: ['json', 'root', 'sprint'], change: ['json', 'root', 'sprint', 'pick', 'drop', 'undo'] };
25
29
  const BOOL = new Set(['json', 'drop', 'undo']);
26
30
 
27
31
  function parse(args) {
@@ -39,7 +43,7 @@ function repoRoot(cwd) {
39
43
  try { return execFileSync('git', ['rev-parse', '--show-toplevel'], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() || cwd; } catch { return cwd; }
40
44
  }
41
45
 
42
- async function run(argv, { say = (s) => console.log(s), cwd = process.cwd() } = {}) {
46
+ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), call } = {}) {
43
47
  const args = argv[0] === 'sprint' ? argv.slice(1) : argv.slice();
44
48
  const sub = args[0];
45
49
  if (!sub || ['help', '--help', '-h'].includes(sub)) { for (const l of USAGE) say(l); return sub ? 0 : 1; }
@@ -47,6 +51,7 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd() } =
47
51
  const { pos, flags } = parse(args.slice(1));
48
52
  for (const k of Object.keys(flags)) if (!ALLOWED[sub].includes(k)) { say(`✗ --${k} is not an option of pmos sprint ${sub}`); return 2; }
49
53
  if (pos.length) { say(`✗ pmos sprint ${sub} takes options, not an argument (pmos sprint help)`); return 2; }
54
+ if (sub === 'now') return now(flags, { say, call });
50
55
  const root = path.resolve(flags.root || repoRoot(cwd));
51
56
  const fail = (error, code = 1) => { say(flags.json ? JSON.stringify({ ok: false, error }) : '✗ ' + error); return code; };
52
57
  const lines = SH.read(root);
@@ -76,4 +81,25 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd() } =
76
81
  return 0;
77
82
  }
78
83
 
84
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
85
+ const dayText = (d) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(d || '')); return m ? +m[3] + ' ' + MON[+m[2] - 1] : ''; };
86
+ /** pmos sprint now: the Summary card of Work › This sprint, read from the running PMOS (GET /api/backlog sprintNow). Writes nothing. */
87
+ async function now(flags, { say, call }) {
88
+ const fail = (error) => { say(flags.json ? JSON.stringify({ ok: false, error }) : '✗ ' + error); return 1; };
89
+ if (typeof call !== 'function') return fail('no PMOS server answers: start PMOS, then ask again');
90
+ let r = null; try { r = await call('GET', '/api/backlog' + (flags.ws ? '?ws=' + encodeURIComponent(flags.ws) : '')); } catch { r = null; }
91
+ if (!r) return fail('no PMOS server answers: start PMOS, then ask again');
92
+ if (r.ok === false) return fail(r.error || 'PMOS could not read the backlog');
93
+ const L = Array.isArray(r.sprintNow) ? r.sprintNow : [];
94
+ const sp = flags.sprint ? L.find((x) => x.name === flags.sprint || x.label === flags.sprint) : L[0];
95
+ if (!sp) return fail(flags.sprint ? `no sprint named ${flags.sprint} is running now` : 'no sprint is running now. When Jira has one, its work and the tasks outside Jira in its dates show here');
96
+ const S = sp.summary || SN.summaryOf(sp.rows);
97
+ if (flags.json) { say(JSON.stringify({ ok: true, sprint: { name: sp.name, label: sp.label, start: sp.start, end: sp.end, jira: sp.jira, other: sp.other, summary: S } })); return 0; }
98
+ const unit = sp.other ? (S.all === 1 ? 'task' : 'tasks') : (S.all === 1 ? 'ticket' : 'tickets');
99
+ say([sp.label || sp.name, S.all + ' ' + unit, sp.end ? 'ends ' + dayText(sp.end) : ''].filter(Boolean).join(' · '));
100
+ say(`To do ${S.todo} · In progress ${S.doing} · Done ${S.done} of ${S.all}`);
101
+ const by = SN.byTextOf(S); if (by) say(by);
102
+ return 0;
103
+ }
104
+
79
105
  module.exports = { run, COMMANDS, USAGE };