create-pmos 0.763.0 → 0.764.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.763.0",
3
+ "version": "0.764.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,19 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.764.0",
38
+ "at": "2026-11-24T06:08:25.279Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1720,
43
+ "t": "A risky change on shared text only asks the owner",
44
+ "s": "A risky change on shared text only asks the owner",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.763.0",
38
51
  "at": "2026-11-24T05:36:34.102Z",
@@ -345,31 +358,6 @@
345
358
  "k": "fix"
346
359
  }
347
360
  ]
348
- },
349
- {
350
- "v": "0.744.0",
351
- "at": "2026-11-23T10:01:07.752Z",
352
- "f": 4,
353
- "prs": [
354
- {
355
- "n": 1664,
356
- "t": "Approvals, card picks, drops and parks write the decision journal, with Undo (A475)",
357
- "s": "Approvals, card picks, drops and parks write the decision journal, with Undo (A475)",
358
- "k": "new"
359
- },
360
- {
361
- "n": 1665,
362
- "t": "Every merged job keeps a PR and a cost; the verifier reaches every run; Library keys tested by pressing them (A484, A9, A437)",
363
- "s": "Every merged job keeps a PR and a cost; the verifier reaches every run; Library keys tested by pressing them (A484, A9, A437)",
364
- "k": "fix"
365
- },
366
- {
367
- "n": 1659,
368
- "t": "Start a chat about a product from Work, and a program's chat answers its first message",
369
- "s": "Start a chat about a product from Work, and a program's chat answers its first message",
370
- "k": "fix"
371
- }
372
- ]
373
361
  }
374
362
  ]
375
363
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@ba67a30c
1
+ kernel-source: pmos@4915181c
2
2
  assembled: 2026-11-24
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-24T05:36:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T06:08:21Z"}
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-24T05:36:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T06:08:21Z"}
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-24T05:36:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T06:08:21Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.764.0",
4
+ "at": "2026-11-24T06:08:25.279Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1720,
9
+ "t": "A risky change on shared text only asks the owner",
10
+ "s": "A risky change on shared text only asks the owner",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.763.0",
4
17
  "at": "2026-11-24T05:36:34.102Z",
@@ -51,7 +51,7 @@ const STEPS = [{ text: 'Calendar', state: 'done' }, { text: 'Mail', state: 'done
51
51
  await page.route('**/api/briefing-premium/**', (r) => { const rq = r.request(); if (rq.method() !== 'GET') posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}') }); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false, session: 's-asks' }) }); });
52
52
  await page.route('**/api/sessions/conversation**', (r) => r.fulfill({ json: { ok: true, ...st.conv } }));
53
53
  await page.goto(BASE + '/premium-chat.html?about=' + encodeURIComponent(KEY), { waitUntil: 'domcontentloaded' });
54
- await page.waitForFunction(() => { const i = document.querySelector('#hmIn'); return !!i && !!i.offsetParent; }, null, { timeout: 15000 }); // on a desktop the chat is the popup's: wait until it shows
54
+ await page.waitForFunction(() => { const i = document.querySelector('#hmIn'); return !!i && !!i.offsetParent; }, null, { timeout: 45000 }); // on a desktop the chat is the popup's: wait until it shows (a cold CI runner took over 15 s on the first open, #1715 and #1720)
55
55
  return { page, ctx, errors, posts, st };
56
56
  };
57
57
  const card = (page, kind) => until(async () => page.evaluate((k) => { const c = document.querySelector(`#hmLog .hm-askk[data-ask-kind="${k}"]`); if (!c) return null; const w = c.closest('.hm-askw, .hm-askc');
@@ -21,7 +21,7 @@ const isObj = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
21
21
  const plural = (n, a, b) => n + ' ' + (n === 1 ? a : b);
22
22
  const one = (v, n) => String(v == null ? '' : v).replace(/\s+/g, ' ').trim().slice(0, n);
23
23
  const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
24
- const { KIND_NAMES } = require('./source-guard.js');
24
+ const { KIND_NAMES, namesOf } = require('./source-guard.js');
25
25
  const md = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); return m ? +m[3] + ' ' + MON[+m[2] - 1] : ''; };
26
26
 
27
27
  /** The owner of a held proposal: the first owner its items name, or the dates proposal's ask. '' when the plan names none. */
@@ -36,7 +36,8 @@ function partOf(p, hold) {
36
36
  const first = items[0] || {};
37
37
  const name = one(first.title || p.title || '', 80);
38
38
  const kind = hold && hold.kinds && hold.kinds.length === 1 ? hold.kinds[0] : '';
39
- const only = kind ? ` Only ${KIND_NAMES[kind] || 'one source'} says so.` : '';
39
+ // shared-text-needs-a-record (A58): two kinds, all shared text; the owner sees which ones
40
+ const only = hold && hold.shared ? ` Only shared text says so (${namesOf(hold.kinds)}).` : kind ? ` Only ${KIND_NAMES[kind] || 'one source'} says so.` : '';
40
41
  if (p.group === 'dates' && (p.noReason || !kind)) {
41
42
  const n = items.length;
42
43
  return `${plural(n, 'task', 'tasks')} passed ${n === 1 ? 'its' : 'their'} date with no news${name ? ' (for example ' + name + ')' : ''}. Re-plan from today, or new dates?`;
@@ -101,6 +102,9 @@ function today(stateDir, held, { day, pm, now, extra = [] } = {}) {
101
102
  let fixed = stateDir ? readDays(stateDir).filter((l) => l.day === day).pop() : null;
102
103
  if (!fixed && stateDir && (list.length || asks.length)) {
103
104
  fixed = { day, at: new Date(now == null ? Date.now() : now).toISOString(), ids: [...new Set([...list.map((h) => h.prop.id), ...asks.map((x) => x.id)])].slice(0, MAX_IDS) };
105
+ // shared-text-needs-a-record: how many on the list rest on shared text only (the initiative's health number)
106
+ const shared = list.filter((h) => isObj(h.hold) && h.hold.shared).length;
107
+ if (shared) fixed.shared = shared;
104
108
  try { fs.mkdirSync(stateDir, { recursive: true }); fs.appendFileSync(path.join(stateDir, LEDGER), JSON.stringify(fixed) + '\n'); } catch { /* the list still shows; tomorrow tries again */ }
105
109
  }
106
110
  const on = new Set(fixed ? fixed.ids : []);
@@ -189,6 +189,7 @@ function autoKeep(ctx, w, { modeOf = () => 'auto', now } = {}) {
189
189
  const cls = A.classOfProposal(x);
190
190
  const src = SGc.citedOf(x); // no source, no auto (A443), in every group
191
191
  if (SGc.trackerMoveOf(x)) logTrackerWait(w.id, ini, x);
192
+ else logSharedHold(w.id, ini, x);
192
193
  const d = A.decide({ stateDir: dir, job: `propose:${x.group}`, product: w.id, cls, mode: modeOf(board.id), undoable: true, now, settingsDir: ctx.runtimeDir || null, sources: src });
193
194
  if (!d.apply && !src.length) A.logHeld(`propose:${x.group}`, w.id, x.id);
194
195
  if (!d.apply) { out.held++; continue; }
@@ -206,6 +207,19 @@ function autoKeep(ctx, w, { modeOf = () => 'auto', now } = {}) {
206
207
 
207
208
  /** tracker-date-moves-wait-for-owner: one [tracker-date-wait] line per held tracker move per process (its health log). */
208
209
  const trackerLogged = new Set();
210
+ /** shared-text-needs-a-record: one [shared-text-hold] line per change held because it rests on shared text only. → true when it logged. */
211
+ const sharedLogged = new Set();
212
+ function logSharedHold(product, ini, x, log = console.error) {
213
+ const h = require('./source-guard.js').holdOf(x);
214
+ if (!h || !h.shared) return false;
215
+ const k = product + '|' + x.id + '|' + x.sig;
216
+ if (sharedLogged.has(k)) return false;
217
+ if (sharedLogged.size > 5000) sharedLogged.clear();
218
+ sharedLogged.add(k);
219
+ try { log(`[shared-text-hold] held ${product} ${ini} ${x.id}: ${x.group} on shared text only (${h.kinds.join(', ')}); asks the owner`); } catch { /* a log never stops the apply step */ }
220
+ return true;
221
+ }
222
+
209
223
  function logTrackerWait(product, ini, x, log = console.error) {
210
224
  const k = product + '|' + x.id + '|' + x.sig;
211
225
  if (trackerLogged.has(k)) return;
@@ -618,7 +632,7 @@ const WRITES = {
618
632
 
619
633
  module.exports = {
620
634
  prefixes: ['/api/proposals'],
621
- viewFor, saidOf, prdRename, keepCore, undoCore, autoKeep, heldOf, keepDefault, keepText,
635
+ viewFor, saidOf, prdRename, keepCore, undoCore, autoKeep, heldOf, keepDefault, keepText, logSharedHold,
622
636
  handle: async (req, res, url, ctx) => {
623
637
  const p0 = url.pathname;
624
638
  if (req.method === 'GET') {
@@ -16,6 +16,9 @@
16
16
  * 2. A close (status done), a rename (names), or a date moved more than BIG_DAYS days needs two different kinds of source. Anyone who can
17
17
  * post in a channel PMOS reads can write one line of text (A58), so one kind is not enough for a change that is hard to see afterwards.
18
18
  * Two Slack lines are one kind. With one kind: held.
19
+ * 2b. Two kinds are not enough when every one is SHARED text: Slack, mail, a meeting note, a document or chat. The same person can write a Slack line and the meeting notes (A58, initiative shared-text-needs-a-record), so one of the
20
+ * kinds must be a record shared text cannot write: the tracker (Jira or another), the repository, or the plan itself. Else: held,
21
+ * with `shared: true`, and the owner answers on the day's question list.
19
22
  * 3. A date move of BIG_DAYS days or less whose only kind of source is the tracker (Jira, or another tracker by name) waits for the
20
23
  * owner the plan names on the work (initiative tracker-date-moves-wait-for-owner, idea A449: 23 of 35 such moves after an import
21
24
  * were applied with nobody told). It joins the day's question list with the old and the new date, and when nobody answers by the
@@ -74,6 +77,11 @@ function bigOf(p) {
74
77
  return '';
75
78
  }
76
79
  const TRACKER_KINDS = new Set(['jira', 'tracker']);
80
+ /** The kinds anyone who can post in a channel PMOS reads can write (rule 2b). A record kind (jira, tracker, repo, plan) is not one, and
81
+ * neither is a source no rule names ('other'): it is not known to be shared text, and the one-kind rule still covers it alone. */
82
+ const SHARED = new Set(['slack', 'mail', 'meeting', 'docs', 'chat']);
83
+ const sharedOnly = (kinds) => kinds.length > 0 && kinds.every((k) => SHARED.has(k));
84
+ const namesOf = (kinds) => { const n = kinds.map((k) => KIND_NAMES[k] || k); return n.length < 2 ? n.join('') : n.slice(0, -1).join(', ') + ' and ' + n[n.length - 1]; };
77
85
  /** A date move of BIG_DAYS days or less that only the tracker says: the owner confirms it, or PMOS takes it after the deadline. PURE. */
78
86
  function trackerMoveOf(p) {
79
87
  if (!isObj(p) || p.group !== 'dates' || p.noReason === true || bigOf(p)) return false;
@@ -90,6 +98,7 @@ function holdOf(p) {
90
98
  if (p.noReason === true || !kinds.length) return { why: 'It cites no source, so PMOS asks instead of changing the plan.', kinds };
91
99
  const big = bigOf(p);
92
100
  if (big && kinds.length < 2) return { why: `It ${BIG_WORDS[big]} on one kind of source (${KIND_NAMES[kinds[0]] || kinds[0]}). PMOS needs two kinds, or the owner's answer.`, kinds };
101
+ if (big && sharedOnly(kinds)) return { why: `It ${BIG_WORDS[big]} on shared text only (${namesOf(kinds)}). Anyone in those channels can write it, so PMOS needs the tracker, the repository or the owner's answer.`, kinds, shared: true };
93
102
  if (trackerMoveOf(p)) return { why: TRACKER_WHY(kinds[0]), kinds, tracker: true };
94
103
  return null;
95
104
  }
@@ -116,4 +125,4 @@ function citedOf(x) {
116
125
  return [...new Set(out)];
117
126
  }
118
127
 
119
- module.exports = { citedOf, noReason, LINK_SOURCES, holdOf, trackerMoveOf, TRACKER_KINDS, kindsOf, kindOf, bigOf, shiftOf, PLAN, BIG_DAYS, KIND_NAMES };
128
+ module.exports = { SHARED, sharedOnly, namesOf, citedOf, noReason, LINK_SOURCES, holdOf, trackerMoveOf, TRACKER_KINDS, kindsOf, kindOf, bigOf, shiftOf, PLAN, BIG_DAYS, KIND_NAMES };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.763.0",
3
+ "version": "0.764.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.763.0",
9
+ "version": "0.764.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.763.0",
3
+ "version": "0.764.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",