create-pmos 0.815.0 → 0.817.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.815.0",
3
+ "version": "0.817.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,31 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.815.0",
38
- "at": "2026-11-25T07:43:14.274Z",
37
+ "v": "0.817.0",
38
+ "at": "2026-11-25T08:16:43.538Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1878,
43
+ "t": "Pmos approver shows what each approver asked before",
44
+ "s": "Pmos approver shows what each approver asked before",
45
+ "k": "new",
46
+ "h": "Pmos approver shows what each approver asked before",
47
+ "try": {
48
+ "steps": [
49
+ "In the chat on Today, ask: what did Ana ask on earlier sign-offs?",
50
+ "Open an initiative in Work that waits on a sign-off and ask the chat: what did its approvers ask before?"
51
+ ],
52
+ "see": "The chat lists what that person had to sign off, what they answered and what they objected to, newest first, each with its source. A person with nothing recorded is left out.",
53
+ "open": "/premium-board.html"
54
+ },
55
+ "i": "approver-memory"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "v": "0.816.0",
61
+ "at": "2026-11-25T07:54:58.764Z",
39
62
  "f": 4,
40
63
  "prs": [
41
64
  {
@@ -43,6 +66,7 @@
43
66
  "t": "File a typed Today line to its initiative (job #1870)",
44
67
  "s": "File a typed Today line to its initiative (job #1870)",
45
68
  "k": "new",
69
+ "i": "capture-to-initiative",
46
70
  "h": "File a typed Today line to its initiative (job #1870)",
47
71
  "try": {
48
72
  "steps": [
@@ -52,8 +76,21 @@
52
76
  ],
53
77
  "see": "The line shows a chip with the initiative and its stage, and a toast says where it was filed with Undo. A typed task also appears as a task on that initiative in Work. Picking Not filed removes the…",
54
78
  "open": "/today.html"
55
- },
56
- "i": "capture-to-initiative"
79
+ }
80
+ },
81
+ {
82
+ "n": 1856,
83
+ "t": "Away days, a handover note drafted in the Library, and what moved while you were away (job #1841, A152)",
84
+ "s": "Away days, a handover note drafted in the Library, and what moved while you were away (job #1841, A152)",
85
+ "k": "new",
86
+ "i": "away-handover"
87
+ },
88
+ {
89
+ "n": 1865,
90
+ "t": "Unblock CI on main — answer cache watches folders one by one on Linux; pmos commands wait for a busy server",
91
+ "s": "Unblock CI on main — answer cache watches folders one by one on Linux; pmos commands wait for a busy server",
92
+ "k": "fix",
93
+ "i": "ci-main-unblock"
57
94
  }
58
95
  ]
59
96
  },
@@ -383,19 +420,6 @@
383
420
  "k": "new"
384
421
  }
385
422
  ]
386
- },
387
- {
388
- "v": "0.791.0",
389
- "at": "2026-11-24T18:45:09.361Z",
390
- "f": 4,
391
- "prs": [
392
- {
393
- "n": 1764,
394
- "t": "Ask PMOS answers with the real rows and a picker (ask-cards-and-pickers, job #1747)",
395
- "s": "Ask PMOS answers with the real rows and a picker (ask-cards-and-pickers, job #1747)",
396
- "k": "new"
397
- }
398
- ]
399
423
  }
400
424
  ]
401
425
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@3ff578222
1
+ kernel-source: pmos@66f8f6661
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-25T07:43:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T08:16:39Z"}
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-25T07:43:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T08:16:39Z"}
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-25T07:43:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T08:16:39Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -82,11 +82,15 @@ function probe(port, ms = PROBE_MS) {
82
82
  req.on('timeout', () => { req.destroy(); res(null); });
83
83
  });
84
84
  }
85
+ // How long a `pmos` command waits for the workspace server to answer. A server that is not running refuses at once, so this only
86
+ // matters when it is busy: while several agent sessions start in tmux at once, a request on a 2-CPU machine took over 5 s, and the
87
+ // old 5 s limit made `pmos proactive day show` say the server was not running (day-run D8b, 2026-11-25).
88
+ const API_TIMEOUT_MS = 30000;
85
89
  function api(port, method, pathname, body, extraHeaders) {
86
90
  return new Promise((res) => {
87
91
  const data = body ? JSON.stringify(body) : null;
88
92
  const req = http.request(`${urlOf(port)}${pathname}`, {
89
- method, timeout: 5000,
93
+ method, timeout: API_TIMEOUT_MS,
90
94
  headers: { ...(data ? { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(data) } : {}), ...(extraHeaders || {}) },
91
95
  }, (r) => { let b = ''; r.on('data', (c) => (b += c)); r.on('end', () => { try { res(JSON.parse(b)); } catch { res(null); } }); });
92
96
  req.on('error', () => res(null));
@@ -1,7 +1,30 @@
1
1
  [
2
2
  {
3
- "v": "0.815.0",
4
- "at": "2026-11-25T07:43:14.274Z",
3
+ "v": "0.817.0",
4
+ "at": "2026-11-25T08:16:43.538Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1878,
9
+ "t": "Pmos approver shows what each approver asked before",
10
+ "s": "Pmos approver shows what each approver asked before",
11
+ "k": "new",
12
+ "h": "Pmos approver shows what each approver asked before",
13
+ "try": {
14
+ "steps": [
15
+ "In the chat on Today, ask: what did Ana ask on earlier sign-offs?",
16
+ "Open an initiative in Work that waits on a sign-off and ask the chat: what did its approvers ask before?"
17
+ ],
18
+ "see": "The chat lists what that person had to sign off, what they answered and what they objected to, newest first, each with its source. A person with nothing recorded is left out.",
19
+ "open": "/premium-board.html"
20
+ },
21
+ "i": "approver-memory"
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ "v": "0.816.0",
27
+ "at": "2026-11-25T07:54:58.764Z",
5
28
  "f": 4,
6
29
  "prs": [
7
30
  {
@@ -9,6 +32,7 @@
9
32
  "t": "File a typed Today line to its initiative (job #1870)",
10
33
  "s": "File a typed Today line to its initiative (job #1870)",
11
34
  "k": "new",
35
+ "i": "capture-to-initiative",
12
36
  "h": "File a typed Today line to its initiative (job #1870)",
13
37
  "try": {
14
38
  "steps": [
@@ -18,8 +42,21 @@
18
42
  ],
19
43
  "see": "The line shows a chip with the initiative and its stage, and a toast says where it was filed with Undo. A typed task also appears as a task on that initiative in Work. Picking Not filed removes the…",
20
44
  "open": "/today.html"
21
- },
22
- "i": "capture-to-initiative"
45
+ }
46
+ },
47
+ {
48
+ "n": 1856,
49
+ "t": "Away days, a handover note drafted in the Library, and what moved while you were away (job #1841, A152)",
50
+ "s": "Away days, a handover note drafted in the Library, and what moved while you were away (job #1841, A152)",
51
+ "k": "new",
52
+ "i": "away-handover"
53
+ },
54
+ {
55
+ "n": 1865,
56
+ "t": "Unblock CI on main — answer cache watches folders one by one on Linux; pmos commands wait for a busy server",
57
+ "s": "Unblock CI on main — answer cache watches folders one by one on Linux; pmos commands wait for a busy server",
58
+ "k": "fix",
59
+ "i": "ci-main-unblock"
23
60
  }
24
61
  ]
25
62
  },
@@ -288,6 +288,14 @@ The idle lab run uses only the first three commands:
288
288
  - `pmos lab critic checks [--root <dir>]`: the checks the critic uses for the product in that folder. No server is needed.
289
289
  - `pmos lab critic label <run> <n> real|noise`: your word on finding `n` of a critic run. `pmos lab critic stats` counts the runs, the findings, and how many you called real or noise.
290
290
 
291
+ ### pmos away: away days and the handover note
292
+
293
+ - `pmos away set <YYYY-MM-DD> [--cover "<name>"]` sets you as away from today until that day. PMOS drafts a handover note as `planning/handovers/away-<from>.md` (kind Handover). The Library lists it once you commit it. PMOS runs no git command for it. The note has who covers, the open asks, and the dates that fall while you are away. It is a draft: read it, change it and share it yourself. PMOS sends nothing.
294
+ - `pmos away note` drafts the note again when there is none. A note you edited is kept as it is.
295
+ - `pmos away` (or `pmos away status`) says whether you are set as away, until when and who covers.
296
+ - `pmos away back` ends the away days and lists what moved while you were away: each date and scope change of those days, with its source or the person to ask. `pmos away while` lists it again.
297
+ - Ask for any of these in the chat, and PMOS runs them.
298
+
291
299
  ### pmos try: try what your updates brought
292
300
 
293
301
  On a computer that follows the beta line, each update brings a short list of changes to try. Today shows one row for it, and Settings › Updates shows the list.
@@ -946,6 +954,17 @@ An outside sign-off is a yes that someone outside the team must give before the
946
954
 
947
955
  An open sign-off that waited 3 days, or is past its due date, goes on your question list for the day, on the same card as the dry-run gaps of your tickets ([Jira tickets](jira.md)). Nothing is sent. Every command takes `--json` and `--root <dir>`.
948
956
 
957
+ ### pmos approver
958
+
959
+ Walk into a sign-off with what that person asked last time. PMOS reads the sign-offs above and the decision journal, and groups what each approver had to say yes to, what they answered, and what they objected to. It writes nothing.
960
+
961
+ - `pmos approver list` lists the people who signed off or objected before, with the most items first.
962
+ - `pmos approver show "<name>"` lists one person's past asks, answers and objections, newest first, each with its source. "Ana" also finds "Ana Lim".
963
+ - `pmos approver brief <initiative>` is for before a sign-off: for each open sign-off of the initiative, at most 3 things that approver asked or objected to on other work. A person with nothing recorded is left out.
964
+ - An objection counts only when a decision's `--against` starts with the person's name, for example `--against "Ana: the ROI is not shown"`. PMOS never guesses a name from other text.
965
+
966
+ Every command takes `--json` and `--root <dir>`.
967
+
949
968
  ## Intelligence and reports
950
969
 
951
970
  ### pmos forecast
@@ -90,21 +90,32 @@ function idle() { lastReq = Date.now(); }
90
90
  * the server. The folders the records live in are watched: planning/ and pmos/ of each workspace, each with every folder under it, and
91
91
  * the workspace folder itself (so a planning/ or pmos/ made later is watched from then on). .git and node_modules are never watched. */
92
92
  const SKIP = /(^|[\\/])(\.git|node_modules)([\\/]|$)/;
93
+ // Linux has no native recursive watch: Node 20 emulates `recursive: true` in JavaScript by watching every FILE under the folder, which
94
+ // on a checkout with thousands of records took hundreds of MB and ran CI's 2-CPU runners out of memory (kind-workflows.test.js died in
95
+ // V8's RegExpCompiler, day-run's server reset its connections, Home's chat box never showed: ci-dynamic-shards, 2026-11-25). There each
96
+ // folder is watched on its own, without `recursive`, and a folder made later is watched when it appears. macOS and Windows watch natively.
97
+ const NATIVE_RECURSIVE = process.platform === 'darwin' || process.platform === 'win32';
93
98
  const watched = new Map(); // folder → FSWatcher | 'none' (not there) | 'blind' (there, but it cannot be watched)
94
99
  let blind = false;
95
100
  function watchDir(dir, recursive) {
96
101
  if (watched.has(dir) && watched.get(dir) !== 'none') return;
97
102
  let there = false; try { there = fs.statSync(dir).isDirectory(); } catch { there = false; }
98
- if (!there) { watched.set(dir, 'none'); return; }
103
+ if (!there) { if (!recursive) watched.set(dir, 'none'); return; }
104
+ const tree = recursive && !NATIVE_RECURSIVE; // one folder of a tree: its sub-folders get their own watchers
99
105
  try {
100
- const w = fs.watch(dir, { recursive, persistent: false }, (ev, f) => {
106
+ const w = fs.watch(dir, { recursive: recursive && !tree, persistent: false }, (ev, f) => {
101
107
  if (f && SKIP.test(String(f))) return;
102
108
  n.outside++; drop();
103
109
  if (!recursive && (f === 'planning' || f === 'pmos')) watchDir(path.join(dir, f), true);
110
+ else if (tree && f) watchDir(path.join(dir, String(f)), true); // a new sub-folder (a file is not a folder: it is skipped)
104
111
  });
105
112
  w.on('error', () => { try { w.close(); } catch { /* closed */ } watched.set(dir, 'blind'); blind = true; drop(); });
106
113
  watched.set(dir, w);
107
- } catch { watched.set(dir, 'blind'); blind = true; }
114
+ } catch { watched.set(dir, 'blind'); blind = true; return; }
115
+ if (tree) {
116
+ let subs = []; try { subs = fs.readdirSync(dir, { withFileTypes: true }); } catch { /* read again on the next event */ }
117
+ for (const d of subs) if (d.isDirectory() && !SKIP.test(d.name)) watchDir(path.join(dir, d.name), true);
118
+ }
108
119
  }
109
120
  function watch(roots) {
110
121
  for (const root of roots || []) {
@@ -0,0 +1,98 @@
1
+ 'use strict';
2
+ /* approver-cli.js — `pmos approver`: what each approver asked or objected to before (initiative approver-memory, bet A190;
3
+ * lib/approver-memory.js).
4
+ *
5
+ * pmos approver list [--json] the people who signed off or objected before, most items first
6
+ * pmos approver show <name> [--json] one person's past asks, answers and objections, newest first, each with its source
7
+ * pmos approver brief <initiative> [--json] before a sign-off: for each open sign-off of the initiative, what that approver asked or
8
+ * objected to on other work (at most 3 each). Nothing when nobody has history
9
+ * every command: [--root <dir>] (default: this repository)
10
+ *
11
+ * Read only: it writes nothing and sends nothing. Each run writes one `[approver]` line to the server log for the health number.
12
+ * Exit codes: 0 done, 1 refused, 2 usage.
13
+ */
14
+ const fs = require('fs');
15
+ const path = require('path');
16
+ const A = require('./approver-memory.js');
17
+
18
+ const COMMANDS = { approver: ['list', 'show', 'brief'] };
19
+ const USAGE = [
20
+ 'usage: pmos approver list|show|brief — what each approver asked or objected to before, from the sign-offs and the decision journal',
21
+ ' pmos approver list [--json] the people who signed off or objected before',
22
+ ' pmos approver show <name> [--json] one person\'s past asks, answers and objections, newest first, with sources',
23
+ ' pmos approver brief <initiative> [--json] before a sign-off: what each open sign-off\'s approver asked on other work',
24
+ 'Run it in the product\'s repository, or pass --root <dir>. It writes nothing.',
25
+ ];
26
+ const ID_RE = /^[a-z0-9][a-z0-9._-]{0,80}$/;
27
+ const KIND = { signoff: 'had to sign off', answer: 'answered', objection: 'objected' };
28
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
29
+ const short = (d) => { const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(d || '')); return m ? +m[3] + ' ' + MON[+m[2] - 1] + ' ' + m[1] : String(d || ''); };
30
+
31
+ /** The repository this runs in: the nearest folder up from cwd that holds .git (no program is run), else cwd. */
32
+ function repoRoot(cwd) {
33
+ let d = path.resolve(cwd);
34
+ for (;;) {
35
+ if (fs.existsSync(path.join(d, '.git'))) return d;
36
+ const up = path.dirname(d);
37
+ if (up === d) return path.resolve(cwd);
38
+ d = up;
39
+ }
40
+ }
41
+ function parse(args) {
42
+ const pos = [], flags = {};
43
+ for (let i = 0; i < args.length; i++) {
44
+ const a = args[i];
45
+ if (!a.startsWith('--')) { pos.push(a); continue; }
46
+ const k = a.slice(2);
47
+ if (k === 'json') flags.json = true;
48
+ else flags[k] = args[i + 1] !== undefined && !String(args[i + 1]).startsWith('--') ? args[++i] : '';
49
+ }
50
+ return { pos, flags };
51
+ }
52
+ const itemLine = (it) => ` ${short(it.date)} · ${KIND[it.kind]}: ${it.text}${it.ini ? ' (' + it.ini + ')' : ''} · ${it.source}`;
53
+
54
+ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), log = (s) => console.error(s) } = {}) {
55
+ const args = argv[0] === 'approver' ? argv.slice(1) : argv.slice();
56
+ const sub = args[0];
57
+ if (!sub || ['help', '--help', '-h'].includes(sub)) { for (const l of USAGE) say(l); return sub ? 0 : 1; }
58
+ if (!COMMANDS.approver.includes(sub)) { say(`unknown approver command "${sub}". Use one of: ${COMMANDS.approver.join(', ')}`); return 2; }
59
+ const { pos, flags } = parse(args.slice(1));
60
+ for (const k of Object.keys(flags)) if (!['json', 'root'].includes(k)) { say(`✗ --${k} is not an option of pmos approver ${sub}`); return 2; }
61
+ const fail = (error, code = 1) => { say(flags.json ? JSON.stringify({ ok: false, error }) : '✗ ' + error); return code; };
62
+ const root = path.resolve(flags.root || repoRoot(cwd));
63
+ const note = (s) => { try { log(`${A.TAG} ${sub} ${s}`); } catch { /* no log */ } };
64
+ const items = A.itemsOf(root);
65
+
66
+ if (sub === 'list') {
67
+ if (pos.length) return fail('usage: pmos approver list', 2);
68
+ const rows = A.approvers(items);
69
+ note(`${rows.length}`);
70
+ if (flags.json) { say(JSON.stringify({ ok: true, approvers: rows })); return 0; }
71
+ if (!rows.length) { say('No approver has asked or objected yet. Sign-offs (pmos signoff) and decisions with --against "<Name>: <why>" fill this.'); return 0; }
72
+ for (const r of rows) say(`${r.who} · ${r.n} item${r.n === 1 ? '' : 's'} · last ${short(r.last)}`);
73
+ return 0;
74
+ }
75
+ if (sub === 'show') {
76
+ if (pos.length !== 1) return fail('usage: pmos approver show "<name>"', 2);
77
+ const h = A.historyOf(items, pos[0]);
78
+ note(`${h.length}`);
79
+ if (flags.json) { say(JSON.stringify({ ok: true, who: pos[0], items: h })); return 0; }
80
+ if (!h.length) { say(`Nothing recorded for ${pos[0]} yet.`); return 0; }
81
+ say(`${h[0].who}, newest first:`);
82
+ for (const it of h) say(itemLine(it));
83
+ return 0;
84
+ }
85
+ // brief
86
+ if (pos.length !== 1 || !ID_RE.test(pos[0])) return fail('usage: pmos approver brief <initiative id>', 2);
87
+ const B = A.briefOf(root, pos[0], { items });
88
+ note(`${pos[0]} ${B.length}`);
89
+ if (flags.json) { say(JSON.stringify({ ok: true, initiative: pos[0], brief: B })); return 0; }
90
+ if (!B.length) { say(`No open sign-off on ${pos[0]} has an approver with past asks.`); return 0; }
91
+ for (const b of B) {
92
+ say(`${b.who} must sign off: ${b.what}${b.due ? ' (due ' + short(b.due) + ')' : ''}. Before, on other work:`);
93
+ for (const it of b.past) say(itemLine(it));
94
+ }
95
+ return 0;
96
+ }
97
+
98
+ module.exports = { run, COMMANDS, USAGE };
@@ -0,0 +1,119 @@
1
+ 'use strict';
2
+ /* approver-memory.js — what each approver asked or objected to before (initiative approver-memory, bet A190). THE PURE-ISH CORE of
3
+ * `pmos approver` (lib/approver-cli.js).
4
+ *
5
+ * A sign-off goes better when the PM walks in with what that person asked last time. PMOS already records the sign-offs
6
+ * (lib/signoffs.js: who, what, and the answer with its source) and the decision journal records who disagreed and why
7
+ * (lib/decision-journal.js `against`). Neither is read back by person. This reads both, groups them by approver, and, before an open
8
+ * sign-off, lists what that approver asked or objected to on earlier work.
9
+ *
10
+ * itemsOf(root) → [item] every past ask, answer and objection, oldest first. An item:
11
+ * { who, kind: 'signoff' | 'answer' | 'objection', text, ini, date, source }
12
+ * signoff a sign-off asked of them: what they had to say yes to (signoffs.jsonl)
13
+ * answer their recorded answer to it, with where it was given
14
+ * objection a journal decision's `against` that starts with a name: "Ana: the ROI is not shown" (never a guess from other text)
15
+ * whoOf(text) → { who, text } | null the name an `against` starts with, before ':', ' - ', ' — ', or ' said'/' asked'
16
+ * same(a, b) → true when two names are the same person: equal, or one is the other's first name ("Ana" and "Ana Lim")
17
+ * approvers(items) → [{ who, n, last }] one row per person, most items first
18
+ * historyOf(items, who, o) → [item] that person's items, newest first; o.except leaves out one initiative
19
+ * briefOf(root, ini, o) → [{ who, what, due, past: [item] }] for each OPEN sign-off of the initiative, at most MAX_PAST of the
20
+ * approver's items from OTHER initiatives, newest first. A person with none is left out (zero is silence)
21
+ * CLI: node lib/approver-memory.js count <root> prints `[approver] …` and the open sign-offs whose approver has history, alone on
22
+ * the last line (the health number)
23
+ *
24
+ * READ ONLY. It keeps no store of its own and writes nothing: every item comes from a record the PM or the Driver already wrote, and
25
+ * carries its source. Nothing is sent. Works on any product built with PMOS, in either layout.
26
+ */
27
+ const path = require('path');
28
+
29
+ const MAX_PAST = 3;
30
+ const TAG = '[approver]';
31
+ const NAME_RE = /^\s*(\p{Lu}[\p{L}.'’-]*(?:\s+\p{Lu}[\p{L}.'’-]*){0,2})\s*(?::|\s[-—–]\s|\s(?:said|asked|wants|objected)\b)\s*(.+)$/u;
32
+ const one = (s, n = 300) => String(s == null ? '' : s).replace(/\s+/g, ' ').trim().slice(0, n);
33
+ const norm = (s) => one(s, 80).toLowerCase();
34
+
35
+ function whoOf(text) {
36
+ const m = NAME_RE.exec(one(text, 600));
37
+ if (!m) return null;
38
+ return { who: m[1].trim(), text: one(m[2]) };
39
+ }
40
+
41
+ function same(a, b) {
42
+ const x = norm(a), y = norm(b);
43
+ if (!x || !y) return false;
44
+ if (x === y) return true;
45
+ const fx = x.split(' ')[0], fy = y.split(' ')[0];
46
+ return (x === fy && !x.includes(' ')) || (y === fx && !y.includes(' '));
47
+ }
48
+
49
+ function signoffsOf(root) {
50
+ try {
51
+ const SO = require('./signoffs.js');
52
+ const JT = require('./jira-tickets.js');
53
+ return SO.list(SO.fileOf(JT.stateDirOf(root)));
54
+ } catch { return []; }
55
+ }
56
+ function decisionsOf(root) {
57
+ try { const J = require('./decision-journal.js'); return J.fold(J.read(root).rows); } catch { return []; }
58
+ }
59
+
60
+ function itemsOf(root) {
61
+ root = path.resolve(root);
62
+ const out = [];
63
+ for (const s of signoffsOf(root)) {
64
+ if (!s || !s.who) continue;
65
+ const date = String(s.asked || s.at || '').slice(0, 10);
66
+ out.push({ who: one(s.who, 80), kind: 'signoff', text: one(s.what), ini: s.ini || '', date, source: s.source || 'sign-off ' + s.id });
67
+ if (s.state === 'answered' && s.answer) out.push({ who: one(s.who, 80), kind: 'answer', text: one(s.answer), ini: s.ini || '', date: String(s.answeredAt || '').slice(0, 10) || date, source: s.answerSource || 'sign-off ' + s.id });
68
+ }
69
+ for (const e of decisionsOf(root)) {
70
+ const w = e && e.against ? whoOf(e.against) : null;
71
+ if (!w) continue;
72
+ out.push({ who: w.who, kind: 'objection', text: w.text, ini: e.initiative || '', date: e.date || '', source: 'decision ' + e.id, decided: one(e.decided, 160) });
73
+ }
74
+ return out.sort((a, b) => String(a.date).localeCompare(String(b.date)));
75
+ }
76
+
77
+ function approvers(items) {
78
+ const rows = [];
79
+ for (const it of items || []) {
80
+ const r = rows.find((x) => same(x.who, it.who));
81
+ if (r) { r.n++; if (String(it.date) > String(r.last)) r.last = it.date; if (it.who.length > r.who.length) r.who = it.who; }
82
+ else rows.push({ who: it.who, n: 1, last: it.date });
83
+ }
84
+ return rows.sort((a, b) => b.n - a.n || String(b.last).localeCompare(String(a.last)) || a.who.localeCompare(b.who));
85
+ }
86
+
87
+ function historyOf(items, who, { except } = {}) {
88
+ return (items || []).filter((it) => same(it.who, who) && (!except || it.ini !== except))
89
+ .sort((a, b) => String(b.date).localeCompare(String(a.date)));
90
+ }
91
+
92
+ function briefOf(root, ini, { items } = {}) {
93
+ const all = items || itemsOf(root);
94
+ const open = signoffsOf(path.resolve(root)).filter((s) => s.ini === ini && s.state === 'open');
95
+ const out = [];
96
+ for (const s of open) {
97
+ const past = historyOf(all, s.who, { except: ini }).slice(0, MAX_PAST);
98
+ if (past.length) out.push({ who: s.who, what: s.what, due: s.due || null, past });
99
+ }
100
+ return out;
101
+ }
102
+
103
+ /** The health number: open sign-offs (any initiative) whose approver has at least one item on other work. */
104
+ function countBriefed(root) {
105
+ const all = itemsOf(root);
106
+ const open = signoffsOf(path.resolve(root)).filter((s) => s.state === 'open');
107
+ const briefed = open.filter((s) => historyOf(all, s.who, { except: s.ini }).length > 0).length;
108
+ return { open: open.length, briefed, approvers: approvers(all).length };
109
+ }
110
+
111
+ module.exports = { MAX_PAST, TAG, whoOf, same, itemsOf, approvers, historyOf, briefOf, countBriefed };
112
+
113
+ if (require.main === module) {
114
+ const a = process.argv.slice(2);
115
+ if (a[0] !== 'count') { console.error('usage: node lib/approver-memory.js count <root>'); process.exit(2); }
116
+ const C = countBriefed(path.resolve(a[1] || '.'));
117
+ console.log(`${TAG} ${C.briefed} of ${C.open} open sign-offs have an approver with past asks (${C.approvers} approvers known)`);
118
+ console.log(String(C.briefed));
119
+ }
@@ -0,0 +1,202 @@
1
+ 'use strict';
2
+ /* away-handover.js — away and back (away-handover, job #1841, idea A152). `pmos away …`.
3
+ *
4
+ * Before the PM is away, PMOS drafts a handover note: the open asks that wait on the PM, the dates that fall while the PM is away, and who
5
+ * covers. The note is a DRAFT in the Library (a Handover document the PM reads, edits and shares by hand). Nothing is sent, and nobody is
6
+ * told. When the PM is back, PMOS shows one "while you were away" list: the date and scope moves of the away days (lib/week-moves.js).
7
+ * No model call; every line comes from a record.
8
+ *
9
+ * THE LEDGER. <state>/away.jsonl, append-only, one line per press: { at, kind: 'away', from, until, cover? } | { at, kind: 'back' }.
10
+ * stateOf(lines, today) PURE → { away: { from, until, cover } | null, back: { from, until } | null }
11
+ * away the latest away line not ended by a back line, while today ≤ until
12
+ * back the latest away that ended (a back line, or today past until): the window "while you were away" reads
13
+ * noteOf({ from, until, cover, asks, tasks, today }) PURE → Markdown, the handover note (frontmatter type: Handover)
14
+ * asks open-questions register lines (lib/open-questions.js read): one row per person and initiative, the PM's first
15
+ * tasks [{ id, title, due, owner, initiative, done }]: the open ones due from `from` to `until` (and the late ones), by date
16
+ * whileAway(root, { from, until }) → the week-moves rows of the away days (lib/week-moves.js movesOf)
17
+ * set(dir, { until, cover }, { now }) · back(dir, { now }) · draft(root, dir, { now, sources }) → { ok, file }
18
+ * CLI: pmos away [status] | pmos away set <YYYY-MM-DD> [--cover "<name>"] | pmos away note | pmos away back | pmos away while
19
+ * The note is a plain file: PMOS runs no git command and leaves the git index alone. The Library lists it once the PM commits it.
20
+ * Each command records one use-log line (control awayHandover), the count the kill reads. */
21
+ const fs = require('fs');
22
+ const path = require('path');
23
+
24
+ const TAG = '[away]';
25
+ const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
26
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
27
+ const short = (d) => (DAY_RE.test(String(d || '')) ? (+d.slice(8, 10)) + ' ' + MON[+d.slice(5, 7) - 1] : '');
28
+ const one = (s, n = 200) => String(s == null ? '' : s).replace(/\s+/g, ' ').trim().slice(0, n);
29
+ const localDay = (t = Date.now()) => { const d = new Date(t); return new Date(d.getTime() - d.getTimezoneOffset() * 60000).toISOString().slice(0, 10); };
30
+ const ledgerFile = (dir) => path.join(String(dir || ''), 'away.jsonl');
31
+
32
+ function readLines(dir) {
33
+ try { return fs.readFileSync(ledgerFile(dir), 'utf8').split('\n').filter(Boolean).map((l) => { try { return JSON.parse(l); } catch { return null; } }).filter(Boolean); }
34
+ catch { return []; }
35
+ }
36
+ function append(dir, line) {
37
+ fs.mkdirSync(dir, { recursive: true });
38
+ fs.appendFileSync(ledgerFile(dir), JSON.stringify(line) + '\n');
39
+ }
40
+
41
+ function stateOf(lines, today) {
42
+ let cur = null, last = null;
43
+ for (const l of lines || []) {
44
+ if (!l || typeof l !== 'object') continue;
45
+ if (l.kind === 'away' && DAY_RE.test(String(l.from || '')) && DAY_RE.test(String(l.until || ''))) cur = { from: l.from, until: l.until, cover: one(l.cover, 80) };
46
+ else if (l.kind === 'back' && cur) { last = { from: cur.from, until: String(l.at || '').slice(0, 10) || cur.until }; cur = null; }
47
+ }
48
+ if (cur && today > cur.until) { last = { from: cur.from, until: cur.until }; cur = null; }
49
+ return { away: cur, back: cur ? null : last };
50
+ }
51
+
52
+ function set(dir, { until, cover } = {}, { now = Date.now() } = {}) {
53
+ if (!dir) return { ok: false, error: 'this computer has no PMOS state folder' };
54
+ const from = localDay(now);
55
+ if (!DAY_RE.test(String(until || '')) || until < from) return { ok: false, error: 'until is a day from today on, YYYY-MM-DD' };
56
+ const line = { at: new Date(now).toISOString(), kind: 'away', from, until, ...(one(cover, 80) ? { cover: one(cover, 80) } : {}) };
57
+ append(dir, line);
58
+ console.log(`${TAG} away ${from}..${until}`);
59
+ return { ok: true, line };
60
+ }
61
+ function back(dir, { now = Date.now() } = {}) {
62
+ if (!dir) return { ok: false, error: 'this computer has no PMOS state folder' };
63
+ const S = stateOf(readLines(dir), localDay(now));
64
+ if (!S.away) return { ok: false, error: 'you are not set as away' };
65
+ const line = { at: new Date(now).toISOString(), kind: 'back' };
66
+ append(dir, line);
67
+ console.log(`${TAG} back`);
68
+ return { ok: true, line, window: { from: S.away.from, until: localDay(now) } };
69
+ }
70
+
71
+ /** The tasks of the PM's products as the records say now: the last due, owner and state of each. */
72
+ function tasksNow(root) {
73
+ try {
74
+ const Facts = require('./drift-facts.js');
75
+ const stateDir = require('./driver.js').stateDirOf(root);
76
+ let storeFile = null; try { const s = require('./task-store.js').storeFor(root); storeFile = s && s.file; } catch { storeFile = null; }
77
+ const T = Facts.tasksOf(root, stateDir ? path.join(stateDir, 'boards.jsonl') : null, storeFile, []).tasks;
78
+ const out = [];
79
+ for (const t of (T instanceof Map ? T.values() : T || [])) {
80
+ let due, owner, state, gone = false;
81
+ for (const l of t.lines || []) {
82
+ if (l.kind === 'task-remove') gone = true; else if (l.kind === 'task-restore') gone = false;
83
+ if (l.due !== undefined) due = l.due; if (l.owner !== undefined) owner = l.owner; if (l.state !== undefined) state = l.state;
84
+ }
85
+ if (!gone) out.push({ id: t.id, title: t.title, initiative: t.initiative, due: due || '', owner: owner || '', done: /^done$/i.test(String(state || '')) });
86
+ }
87
+ return out;
88
+ } catch { return []; }
89
+ }
90
+
91
+ function noteOf({ from, until, cover = '', asks = [], tasks = [], today = from } = {}) {
92
+ const T = (tasks || []).filter((t) => t && !t.done && DAY_RE.test(String(t.due || '')) && t.due <= until)
93
+ .sort((a, b) => a.due.localeCompare(b.due) || String(a.title).localeCompare(String(b.title)));
94
+ const A = (asks || []).filter((l) => l && (l.n || (l.ids || []).length || (l.parts || []).length)).sort((a, b) => (b.toPm ? 1 : 0) - (a.toPm ? 1 : 0));
95
+ const out = ['---', 'type: Handover', `title: "Handover: away ${short(from)} to ${short(until)}"`, `timestamp: ${today}`, '---', '',
96
+ `# Handover: away ${short(from)} to ${short(until)}`, '',
97
+ `PMOS drafted this note from the records on ${short(today)}. It is a draft: read it, change it, and share it yourself. PMOS sends nothing.`, '',
98
+ '## Who covers', '', cover ? `${cover} covers while I am away.` : 'Nobody is named yet. Write who covers here.', '',
99
+ '## Open asks', ''];
100
+ if (A.length) for (const l of A.slice(0, 20)) out.push(`- **${one(l.title || l.ini, 100)}**: ${l.toPm ? 'waits on me' : 'waits on ' + one(l.owner, 60)}${(l.parts || []).length ? ': ' + one(l.parts[0], 160) : ''}.`);
101
+ else out.push('Nothing waits on an answer.');
102
+ out.push('', '## Dates while I am away', '');
103
+ if (T.length) for (const t of T.slice(0, 30)) out.push(`- ${t.due < from ? '**Late**, was ' : ''}${short(t.due)}: ${one(t.title, 120)}${t.owner ? ' (' + one(t.owner, 60) + ')' : ''}${t.initiative ? ', ' + t.initiative : ''}.`);
104
+ else out.push('No task is due while I am away.');
105
+ return out.join('\n') + '\n';
106
+ }
107
+
108
+ /** The handover note's file: planning/handovers/away-<from>.md (a kit layout: pmos/planning/…), where the Library reads documents. */
109
+ function noteFile(root, from) {
110
+ const kit = fs.existsSync(path.join(root, 'pmos', 'state'));
111
+ return path.join(root, ...(kit ? ['pmos', 'planning'] : ['planning']), 'handovers', `away-${from}.md`);
112
+ }
113
+ function draft(root, dir, { now = Date.now(), sources = {} } = {}) {
114
+ const S = stateOf(readLines(dir), localDay(now));
115
+ if (!S.away) return { ok: false, error: 'set the away days first: pmos away set <YYYY-MM-DD>' };
116
+ let asks = sources.asks; if (!Array.isArray(asks)) { try { asks = require('./open-questions.js').read(root, { now }).lines; } catch { asks = []; } }
117
+ const tasks = Array.isArray(sources.tasks) ? sources.tasks : tasksNow(root);
118
+ const file = noteFile(root, S.away.from);
119
+ if (fs.existsSync(file)) return { ok: true, file, kept: true }; // the PM may have edited it: a draft is never written over
120
+ fs.mkdirSync(path.dirname(file), { recursive: true });
121
+ fs.writeFileSync(file, noteOf({ ...S.away, asks, tasks, today: localDay(now) }));
122
+ // the Library lists tracked markdown (lib/kg-cli.js loadFiles), so the note shows there once the PM commits it; PMOS leaves the git index alone
123
+ console.log(`${TAG} note drafted ${path.basename(file)}`);
124
+ return { ok: true, file };
125
+ }
126
+
127
+ function whileAway(root, { from, until }, { facts } = {}) {
128
+ const WM = require('./week-moves.js');
129
+ const F = facts || (() => { const Dr = require('./driver.js'); return require('./drift-facts.js').factsOf({ id: Dr.wsIdOf(root), name: path.basename(root), root }, { stateDir: Dr.stateDirOf(root) }); })();
130
+ const ms = (d) => { const [y, m, dd] = d.split('-').map(Number); return new Date(y, m - 1, dd).getTime(); };
131
+ return WM.movesOf(F, { from: ms(from), to: ms(until) + 864e5 });
132
+ }
133
+
134
+ /* ── pmos away ─────────────────────────────────────────────────────────────────────────────────────────── */
135
+ const COMMANDS = { away: ['status', 'set', 'note', 'back', 'while'] };
136
+ const USAGE = [
137
+ 'usage: pmos away [status|set|note|back|while] — away days, the handover note and what moved while you were away',
138
+ ' pmos away whether you are set as away, until when and who covers',
139
+ ' pmos away set <YYYY-MM-DD> [--cover "<name>"] you are away from today until that day; PMOS drafts the handover note',
140
+ ' pmos away note draft the handover note again into the Library (an edited note is kept as it is)',
141
+ ' pmos away back you are back: the list of what moved while you were away',
142
+ ' pmos away while that list again, for the last away days',
143
+ 'The note is a draft for you to read and share. Nothing is sent.',
144
+ ];
145
+ function stateDirOf(o) { return o.stateDir || require('./state-root.js').defaultRoot({ env: o.env || process.env }); }
146
+ /** The nearest folder up from cwd that has a .git entry (a folder, or a worktree's file); cwd when there is none. No git command runs. */
147
+ function repoOf(cwd) {
148
+ let d = path.resolve(cwd);
149
+ for (;;) { try { if (fs.existsSync(path.join(d, '.git'))) return d; } catch { /* unreadable: look further up */ } const up = path.dirname(d); if (up === d) return path.resolve(cwd); d = up; }
150
+ }
151
+ function used(dir, now) { try { require('./use-log.js').record(dir, [{ kind: 'use', page: 'today', control: 'awayHandover', device: 'desk' }], now); } catch { /* a count, never a reason to fail */ } }
152
+ function sayMoves(say, M, w) {
153
+ if (!M.moves.length) { say(`Nothing moved while you were away (${short(w.from)} to ${short(w.until)}).`); return; }
154
+ say(`While you were away (${short(w.from)} to ${short(w.until)}): ${M.total} ${M.total === 1 ? 'change' : 'changes'}${M.unsourced ? `, ${M.unsourced} with no source` : ''}.`);
155
+ for (const m of M.moves.slice(0, 20)) say(`- ${m.say || m.title}${m.sourced ? '' : ' · No source: ask ' + (m.owner || 'the owner')}`);
156
+ }
157
+
158
+ function run(argv, o = {}) {
159
+ const say = o.say || ((s) => console.log(s)), now = o.now || Date.now();
160
+ const args = argv[0] === 'away' ? argv.slice(1) : argv.slice();
161
+ const pos = [], flags = {};
162
+ for (let i = 0; i < args.length; i++) { const a = args[i]; if (a === '--cover' || a === '--root') flags[a.slice(2)] = args[++i]; else if (a === '--json') flags.json = true; else pos.push(a); }
163
+ const [cmd = 'status', arg] = pos;
164
+ if (cmd === 'help' || cmd === '--help') { USAGE.forEach((l) => say(l)); return 0; }
165
+ if (!COMMANDS.away.includes(cmd)) { say(`✗ ${cmd} is not a command of pmos away`); USAGE.forEach((l) => say(l)); return 2; }
166
+ const dir = stateDirOf(o), root = path.resolve(flags.root || o.root || repoOf(o.cwd || process.cwd())), today = localDay(now);
167
+ used(dir, now);
168
+ const S = stateOf(readLines(dir), today);
169
+ if (cmd === 'status') {
170
+ say(S.away ? `Away from ${short(S.away.from)} until ${short(S.away.until)}${S.away.cover ? '; ' + S.away.cover + ' covers' : ''}.` : 'You are not set as away.');
171
+ return 0;
172
+ }
173
+ if (cmd === 'set') {
174
+ const r = set(dir, { until: arg, cover: flags.cover }, { now });
175
+ if (!r.ok) { say('✗ ' + r.error); return arg ? 1 : 2; }
176
+ const d = draft(root, dir, { now, sources: o.sources || {} });
177
+ say(`✓ Away until ${short(arg)}${flags.cover ? '; ' + flags.cover + ' covers' : ''}. Undo: pmos away back`);
178
+ if (d.ok) say(`The handover note is a draft: ${path.relative(root, d.file)}. The Library lists it once you commit it. Read it and share it yourself; PMOS sends nothing.`);
179
+ return 0;
180
+ }
181
+ if (cmd === 'note') {
182
+ const d = draft(root, dir, { now, sources: o.sources || {} });
183
+ if (!d.ok) { say('✗ ' + d.error); return 1; }
184
+ say(d.kept ? `The handover note is already there, and PMOS keeps your edits: ${path.relative(root, d.file)}.` : `The handover note is a draft: ${path.relative(root, d.file)}. The Library lists it once you commit it.`);
185
+ return 0;
186
+ }
187
+ if (cmd === 'back') {
188
+ const r = back(dir, { now });
189
+ if (!r.ok) { say('✗ ' + r.error); return 1; }
190
+ say('✓ Welcome back.');
191
+ const M = whileAway(root, r.window, { facts: o.facts });
192
+ flags.json ? say(JSON.stringify({ ok: true, window: r.window, ...M })) : sayMoves(say, M, r.window);
193
+ return 0;
194
+ }
195
+ const w = S.back;
196
+ if (!w) { say(S.away ? 'You are still away. pmos away back ends the away days.' : 'No away days yet.'); return 0; }
197
+ const M = whileAway(root, w, { facts: o.facts });
198
+ flags.json ? say(JSON.stringify({ ok: true, window: w, ...M })) : sayMoves(say, M, w);
199
+ return 0;
200
+ }
201
+
202
+ module.exports = { TAG, COMMANDS, USAGE, ledgerFile, readLines, stateOf, set, back, noteOf, noteFile, draft, tasksNow, whileAway, run };
@@ -92,7 +92,7 @@ const VERBS = Object.freeze({
92
92
  blueprint: Object.freeze({ module: 'blueprint-cli.js', run: null, guide: 'cli.md',
93
93
  help: 'pmos blueprint [list|show|unplaced|check] — every feature of the product with a status worked out from its evidence (pmos blueprint help)' }),
94
94
  program: Object.freeze({ module: 'program-cli.js', run: null, guide: 'cli.md',
95
- help: 'pmos program new|charter|join|leave|milestone|check|task|archive|line|draft|order|capacity|decide|outcome|suggest — make and change programs from the chat, the program line (Charter, Sequence, Track, Land) and the milestone suggestions (pmos program help)' }),
95
+ help: 'pmos program new|charter|join|leave|milestone|check|task|archive|line|draft|order|capacity|decide|outcome|steering|suggest — make and change programs from the chat, the program line (Charter, Sequence, Track, Land), the steering pack and the milestone suggestions (pmos program help)' }),
96
96
  // Not a pm-os-absorb verb (run: null): c3-meet-extension added it through the same table.
97
97
  extension: Object.freeze({ module: 'extension-cli.js', run: null, guide: 'cli.md',
98
98
  help: 'pmos extension — the folder of the Chrome extension for Google Meet, and the three steps to load it' }),
@@ -139,6 +139,9 @@ const VERBS = Object.freeze({
139
139
  // Not a pm-os-absorb verb (run: null): initiative open-questions-register (bet A420) added it through the same table.
140
140
  questions: Object.freeze({ module: 'questions-cli.js', run: null, guide: 'cli.md',
141
141
  help: 'pmos questions [age] — every unanswered question across initiatives, oldest first, with who can answer, its age and its default (pmos questions help)' }),
142
+ // Not a pm-os-absorb verb (run: null): initiative away-handover (job #1841, A152) added it through the same table.
143
+ away: Object.freeze({ module: 'away-handover.js', run: null, guide: 'cli.md',
144
+ help: 'pmos away [set|note|back|while] — your away days, the handover note PMOS drafts in the Library, and what moved while you were away (pmos away help)' }),
142
145
  // Not a pm-os-absorb verb (run: null): initiative try-what-shipped added it through the same table.
143
146
  try: Object.freeze({ module: 'try-it.js', run: null, guide: 'cli.md',
144
147
  help: 'pmos try [works|broken|note|undo|later|count] — the changes your recent updates brought, how to try each, and your answer (beta only; pmos try help)' }),
@@ -160,6 +163,9 @@ const VERBS = Object.freeze({
160
163
  // Not a pm-os-absorb verb (run: null): initiative decision-journal-outcome-checks added it through the same table.
161
164
  decisions: Object.freeze({ module: 'decisions-cli.js', run: null, guide: 'cli.md',
162
165
  help: 'pmos decisions add|list|show|check|record — a decision journal: what you decided, what you expect, a date to check, and how your calls turned out (pmos decisions help)' }),
166
+ // Not a pm-os-absorb verb (run: null): initiative approver-memory (bet A190) added it through the same table.
167
+ approver: Object.freeze({ module: 'approver-cli.js', run: null, guide: 'cli.md',
168
+ help: 'pmos approver list|show|brief — what each approver asked or objected to before, from the sign-offs and the decision journal, before the next sign-off (pmos approver help)' }),
163
169
  // Not a pm-os-absorb verb (run: null): initiative balance-meter (bet A448) added it through the same table.
164
170
  balance: Object.freeze({ module: 'balance-cli.js', run: null, guide: 'cli.md',
165
171
  help: 'pmos balance show — the mix of a list in one line: feature, fix, debt, discovery, or with and without an expected outcome, with a note when one kind is over your line (pmos balance help)' }),
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.815.0",
3
+ "version": "0.817.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.815.0",
9
+ "version": "0.817.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.815.0",
3
+ "version": "0.817.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",
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "approver-memory (bet A190): what each approver asked or objected to before, from the sign-offs and the decision journal (lib/approver-memory.js, pmos approver).",
3
+ "modules": ["approver-memory.test.js"],
4
+ "seconds": { "approver-memory.test.js": 1 }
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "away-handover (job #1841, A152): away days, the handover note PMOS drafts in the Library, and what moved while the PM was away. No browser, no network.",
3
+ "modules": [
4
+ "away-handover.test.js"
5
+ ],
6
+ "seconds": {
7
+ "away-handover.test.js": 3
8
+ }
9
+ }