create-pmos 0.770.0 → 0.771.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.770.0",
3
+ "version": "0.771.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.771.0",
38
+ "at": "2026-11-24T09:13:38.789Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1732,
43
+ "t": "Connectors that work no longer show as down",
44
+ "s": "Connectors that work no longer show as down",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.770.0",
38
51
  "at": "2026-11-24T09:01:51.310Z",
@@ -486,28 +499,6 @@
486
499
  }
487
500
  }
488
501
  ]
489
- },
490
- {
491
- "v": "0.751.0",
492
- "at": "2026-11-23T23:33:04.160Z",
493
- "f": 4,
494
- "prs": [
495
- {
496
- "n": 1690,
497
- "t": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
498
- "s": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
499
- "k": "fix",
500
- "try": {
501
- "steps": [
502
- "Open the Board for one product and write all five strategy lines",
503
- "Press ✦ beside Positioning under the strategy",
504
- "Edit one drafted line and press ✓ to keep it"
505
- ],
506
- "see": "A positioning statement and 2 to 5 key messages appear, each showing the strategy lines it comes from; the line you kept stays under the strategy",
507
- "open": "/premium-board.html"
508
- }
509
- }
510
- ]
511
502
  }
512
503
  ]
513
504
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d81e0cdf
1
+ kernel-source: pmos@105c1b91
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-24T09:01:48Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T09:13: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-24T09:01:48Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T09:13: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-24T09:01:48Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T09:13:34Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.771.0",
4
+ "at": "2026-11-24T09:13:38.789Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1732,
9
+ "t": "Connectors that work no longer show as down",
10
+ "s": "Connectors that work no longer show as down",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.770.0",
4
17
  "at": "2026-11-24T09:01:51.310Z",
@@ -10,9 +10,15 @@ const words = (s) => String(s).replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A
10
10
 
11
11
  // Read tools whose name has no read verb. The Atlassian MCP connector's account lookup (2026-11-23): without it the Jira mentions read
12
12
  // cannot find the PM's account and saves "not reached".
13
- const READ_NAMES = new Set(['atlassianUserInfo']);
13
+ // whoami (Figma, 2026-11-24) is the same kind of account lookup.
14
+ const READ_NAMES = new Set(['atlassianUserInfo', 'whoami']);
15
+ // Exact tools, by full name, that are reads although their name holds a write verb. Figma (2026-11-24): its server tells every client to
16
+ // call create_session before any file tool, "read-only tasks too". create_session opens a server-side tracking session and changes no file.
17
+ // Without it the Briefing's Figma read was refused in every background run and saved "not reached".
18
+ const READ_TOOLS = new Set(['mcp__claude_ai_Figma__create_session']);
14
19
  /** A tool may be granted only when its own name (after the server prefix) leads with a read verb and holds no write verb. */
15
20
  function readTool(toolName, prefix) {
21
+ if (READ_TOOLS.has(toolName)) return true;
16
22
  const own = prefix && toolName.startsWith(prefix) ? toolName.slice(prefix.length) : toolName.replace(/^mcp__[^_]+(?:_[^_]+)*?__/, '');
17
23
  if (READ_NAMES.has(own)) return true;
18
24
  const w = words(own);
@@ -20,4 +26,4 @@ function readTool(toolName, prefix) {
20
26
  return w.slice(0, 3).some((x) => READ_VERBS.has(x));
21
27
  }
22
28
 
23
- module.exports = { readTool, READ_VERBS, WRITE_VERBS, READ_NAMES };
29
+ module.exports = { readTool, READ_VERBS, WRITE_VERBS, READ_NAMES, READ_TOOLS };
@@ -79,13 +79,23 @@ function calendarAsOfText(f) {
79
79
  return best;
80
80
  }
81
81
 
82
- /** The newest Jira status snapshot of a repository (lib/jira-status.js writes <state>/tracker/jira/<initiative>.md). */
82
+ /** The newest Jira status snapshot of a repository (lib/jira-status.js writes <state>/tracker/jira/<initiative>.md), or the newest
83
+ * tiered check that asked Jira and found nothing new (lib/jira-tiers.js applyChanged sets `checked` in _tiers.json and writes no
84
+ * snapshot). Fix 2026-11-24: on the Mac three Jira reads asked, found no change, and were logged "ended without saving a new read";
85
+ * a confirmed "no change" is a fresh read. */
83
86
  function jiraAsOf(repoStateDir) {
84
87
  if (!repoStateDir) return 0;
85
88
  const dir = path.join(repoStateDir, 'tracker', 'jira');
86
89
  let names = [];
87
90
  try { names = fs.readdirSync(dir).filter((n) => n.endsWith('.md') && !n.endsWith('-tickets.md')); } catch { return 0; }
88
- return names.reduce((m, n) => Math.max(m, mtime(path.join(dir, n))), 0);
91
+ const snap = names.reduce((m, n) => Math.max(m, mtime(path.join(dir, n))), 0);
92
+ let checked = 0;
93
+ try {
94
+ const t = JSON.parse(fs.readFileSync(path.join(dir, '_tiers.json'), 'utf8'));
95
+ for (const v of Object.values((t && t.checked) || {})) { const c = Date.parse(v); if (Number.isFinite(c) && c > checked) checked = c; }
96
+ } catch { /* no tiered check yet */ }
97
+ // a check time in the future is a wrong clock, not a read
98
+ return Math.max(snap, checked <= Date.now() + 60000 ? checked : 0);
89
99
  }
90
100
 
91
101
  function create(o) {
@@ -379,6 +379,13 @@ function create(host) {
379
379
  }
380
380
  if (!alive || t - o.at > LOST_MS) {
381
381
  delete st.open[sid]; st.retry_at = null; changed = true;
382
+ // fix 2026-11-24: on the Mac the 09:00 My work and Tracker reads were stopped at 09:05 when PMOS restarted, and the Sources
383
+ // banner stayed red until the next day's slot. A scheduled read whose session was gone is tried once more, like a failed one.
384
+ const src1 = R.BY_ID.get(id);
385
+ if (!alive && ['schedule', 'catch-up'].includes(o.trigger) && src1 && src1.run === 'skill' && rules.retry !== 'no' && !st.retried) {
386
+ st.retry_at = t + Number(rules.retry) * 60000; st.retried = true;
387
+ if (o.svcs) st.retry_svcs = o.svcs;
388
+ }
382
389
  R.append(dir, { source: id, ev: 'end', run: o.run, result: 'interrupted', took_ms: t - o.at, error: alive ? 'no end after 6 hours' : 'the session was gone (PMOS restarted, or the session was closed)' }, t);
383
390
  continue;
384
391
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.770.0",
3
+ "version": "0.771.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.770.0",
9
+ "version": "0.771.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.770.0",
3
+ "version": "0.771.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",
@@ -63,7 +63,9 @@ const SHOTS = process.env.PMOS_SHOTS || '';
63
63
  await page.route('**/api/doc?*', (r) => r.fulfill({ status: 200, contentType: 'text/plain', headers: { 'X-Doc-Kind': 'html' }, body: REPORT }));
64
64
  // premium-agreed-design: the session's conversation is Home's chat (?session= names it) and the file it names opens in the Viewer card
65
65
  await page.goto(BASE + '/today.html?session=s-flicker&theme=' + theme);
66
- const fp = await until(() => page.$('#hmLog button.fpath[data-file]'), 15000);
66
+ // Home's first draw took 12 s in a cloud checkout and over 15 s on a busy CI shard (2026-11-24, PR #1732): the press then never
67
+ // happened and the frame check failed. The wait is for a slow first load, not for the behaviour under test.
68
+ const fp = await until(() => page.$('#hmLog button.fpath[data-file]'), 45000);
67
69
  if (fp) await fp.evaluate((b) => b.click()); // on a phone the dialog opens on the Detail side, so the press goes through the button's own handler
68
70
  return { ctx, page, errors, conv };
69
71
  };