create-pmos 0.563.0 → 0.564.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.563.0",
3
+ "version": "0.564.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.564.0",
38
+ "at": "2026-11-11T14:08:23.553Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1295,
43
+ "t": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
44
+ "s": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.563.0",
38
51
  "at": "2026-11-11T12:32:19.496Z",
@@ -291,19 +304,6 @@
291
304
  "k": "new"
292
305
  }
293
306
  ]
294
- },
295
- {
296
- "v": "0.544.0",
297
- "at": "2026-11-08T14:45:01.680Z",
298
- "f": 4,
299
- "prs": [
300
- {
301
- "n": 1272,
302
- "t": "Claude calls and sign-in advice follow the chosen Claude profile; a session stuck at sign-in ends",
303
- "s": "Claude calls and sign-in advice follow the chosen Claude profile; a session stuck at sign-in ends",
304
- "k": "fix"
305
- }
306
- ]
307
307
  }
308
308
  ]
309
309
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@677aafe4
1
+ kernel-source: pmos@61ef01d0
2
2
  assembled: 2026-11-11
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-11T12:32:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T14:08:19Z"}
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-11T12:32:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T14:08:19Z"}
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-11T12:32:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T14:08:19Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.564.0",
4
+ "at": "2026-11-11T14:08:23.553Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1295,
9
+ "t": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
10
+ "s": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.563.0",
4
17
  "at": "2026-11-11T12:32:19.496Z",
@@ -602,13 +602,15 @@ The fields of a schedule:
602
602
 
603
603
  | Command | What it does |
604
604
  |---|---|
605
- | `pmos blueprint list [--surface <id>] [--status <status>]` | Lists every feature with its status: Idea, Exploring, Agreed, In build, Live <version> or Retired. `pmos blueprint` alone does the same. |
605
+ | `pmos blueprint list [--surface <id>] [--status <status>]` | Lists every feature with its status: Idea, Exploring, Agreed, In build, Live <version> or Retired, and Unknown on a shallow clone. `pmos blueprint` alone does the same. |
606
606
  | `pmos blueprint show <feature-id>` | Prints one feature: its status and why, its PRs, files, record, guide sections and design. |
607
607
  | `pmos blueprint unplaced [--all]` | Lists the guide sections and the feature changes since the first release of the range that no feature cites. `--all` also lists the fixes, chores and docs. |
608
608
  | `pmos blueprint check` | Checks the registry: no `status` key anywhere, known surfaces, known guide sections, one id each. The exit code is 1 when it finds a problem. |
609
609
 
610
610
  Every command takes `--json`, `--root <dir>` and `--offline`. Live <version> is the first version whose `gitHead` contains the feature. The command reads the versions from npm and saves the read. With `--offline`, or when npm does not answer, it uses the saved read and says so. With no saved read, a merged feature shows `Live ?`.
611
611
 
612
+ On a shallow clone (a cloud session, CI, `git clone --depth`) the command warns that the history is shallow. A status that depends on the missing history shows Unknown, and a Live version that may be earlier shows as `Live ≤<version>`. Run `git fetch --unshallow`, then the command again, for the full answer.
613
+
612
614
  ### pmos kg: find knowledge without reading whole files
613
615
 
614
616
  | Command | What it does |
@@ -6,7 +6,8 @@
6
6
  * pmos blueprint unplaced [--all] [--json] guide sections and release changes no feature cites
7
7
  * pmos blueprint check [--json] the registry's own rules (no status key, known surfaces, …)
8
8
  * every command: [--offline] [--root <dir>]
9
- * Exit codes: 0 done, 1 refused (no registry, unknown feature, check found problems), 2 usage. Reads only; writes nothing
9
+ * On a shallow clone every command but check warns, and a status the missing history decides shows Unknown (lib/blueprint.js).
10
+ * The command never fetches: git's network verbs live only in lib/sync.js (D70), so the warning names `git fetch --unshallow`. Exit codes: 0 done, 1 refused (no registry, unknown feature, check found problems), 2 usage. Reads only; writes nothing
10
11
  * but the saved read of the releases (pmos/state/blueprint-releases.json, gitignored).
11
12
  */
12
13
  const path = require('path');
@@ -21,7 +22,7 @@ const USAGE = [
21
22
  ' pmos blueprint unplaced [--all] [--json] guide sections and release changes that no feature cites',
22
23
  ' pmos blueprint check [--json] the registry\'s own rules',
23
24
  ' every command: [--offline] (no npm read; use the saved one) [--root <dir>]',
24
- 'Statuses: Idea, Exploring, Agreed, In build, Live <version>, Retired. The registry is planning/blueprint/features.json.',
25
+ 'Statuses: Idea, Exploring, Agreed, In build, Live <version>, Retired, and Unknown on a shallow clone. The registry is planning/blueprint/features.json.',
25
26
  ];
26
27
 
27
28
  function parse(args) {
@@ -43,6 +44,10 @@ function releaseLine(r) {
43
44
  return `Releases: unknown (${r.error}). A merged feature shows "Live ?": its version cannot be worked out.`;
44
45
  }
45
46
 
47
+ function shallowLine(d, unknown) {
48
+ return `⚠ This clone's git history is shallow (${d.commits} commit${d.commits === 1 ? '' : 's'}), so ${unknown} status${unknown === 1 ? ' is' : 'es are'} Unknown and a Live version marked ≤ may be earlier. Run \`git fetch --unshallow\`, then this command again, for the full answer.`;
49
+ }
50
+
46
51
  function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), readReleases = B.readReleases, git } = {}) {
47
52
  const args = argv[0] === 'blueprint' ? argv.slice(1) : argv.slice();
48
53
  if (['help', '--help', '-h'].includes(args[0])) { for (const l of USAGE) say(l); return 0; }
@@ -66,12 +71,15 @@ function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), readRelea
66
71
  if (problems.length) { say('✗ the registry breaks its own rules; run `pmos blueprint check`.'); for (const p of problems) say(' ' + p); return 1; }
67
72
  const rels = { ...readReleases({ root, pkg: reg.package, offline: !!flags.offline }), offline: !!flags.offline };
68
73
  const opts = { root, releases: rels.list }; if (git) opts.git = git;
69
- const { features } = B.derive(reg, opts);
74
+ const derived = B.derive(reg, opts);
75
+ const { features } = derived;
76
+ const nUnknown = features.filter((f) => f.status === 'Unknown').length;
77
+ const shallowJson = { shallow: !!derived.shallow, commits: derived.commits };
70
78
 
71
79
  if (verb === 'show') {
72
80
  const f = features.find((x) => x.id === pos[0]);
73
81
  if (!f) { say(pos[0] ? `✗ no feature "${pos[0]}" — \`pmos blueprint\` lists them` : 'usage: pmos blueprint show <feature-id>'); return pos[0] ? 1 : 2; }
74
- if (flags.json) { say(JSON.stringify({ ok: true, releases: rels.source, feature: f })); return 0; }
82
+ if (flags.json) { say(JSON.stringify({ ok: true, releases: rels.source, ...shallowJson, feature: f })); return 0; }
75
83
  const surface = reg.surfaces.find((s) => s.id === f.surface);
76
84
  say(`${f.name} (${f.id})`);
77
85
  say(` Status: ${B.label(f)} — ${f.why.join('; ')}`);
@@ -85,15 +93,17 @@ function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), readRelea
85
93
  for (const d of f.design || []) say(` Design: ${d}`);
86
94
  if (f.note) say(` Note: ${f.note}`);
87
95
  say(' ' + releaseLine(rels));
96
+ if (derived.shallow) say(' ' + shallowLine(derived, nUnknown));
88
97
  return 0;
89
98
  }
90
99
 
91
100
  if (verb === 'unplaced') {
92
101
  const u = B.unplaced(reg, opts);
93
- if (flags.json) { say(JSON.stringify({ ok: true, releases: rels.source, range: u.range, guide: u.guide, changes: u.changes, other: flags.all ? u.other : u.other.length })); return 0; }
102
+ if (flags.json) { say(JSON.stringify({ ok: true, releases: rels.source, ...shallowJson, range: u.range, guide: u.guide, changes: u.changes, other: flags.all ? u.other : u.other.length })); return 0; }
94
103
  say(`Guide sections no feature cites: ${u.guide.length}`);
95
104
  for (const g of u.guide) say(' ' + g);
96
- if (!u.range) say('Release changes: not checked — no release data, so the first release of the range is unknown.');
105
+ if (!u.range) say(derived.shallow ? 'Release changes: not checked — this shallow clone does not hold the release the range starts from. Run `git fetch --unshallow` first.'
106
+ : 'Release changes: not checked — no release data, so the first release of the range is unknown.');
97
107
  else {
98
108
  say(`Feature changes since ${u.range.from} that no feature cites: ${u.changes.length}`);
99
109
  for (const c of u.changes) say(` ${c.sha} ${c.subject}`);
@@ -110,13 +120,14 @@ function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), readRelea
110
120
  const u = B.unplaced(reg, opts);
111
121
  const counts = {}; for (const s of B.STATUSES) counts[s] = features.filter((f) => f.status === s).length;
112
122
  if (flags.json) {
113
- say(JSON.stringify({ ok: true, what: reg.what, releases: { source: rels.source, at: rels.at, count: rels.list.length },
123
+ say(JSON.stringify({ ok: true, what: reg.what, releases: { source: rels.source, at: rels.at, count: rels.list.length }, ...shallowJson,
114
124
  counts, unplaced: { guide: u.guide.length, changes: u.range ? u.changes.length : null },
115
- features: shown.map((f) => ({ id: f.id, name: f.name, surface: f.surface, status: f.status, version: f.version, why: f.why })) }));
125
+ features: shown.map((f) => ({ id: f.id, name: f.name, surface: f.surface, status: f.status, version: f.version, ...(f.atMost ? { version_at_most: true } : {}), why: f.why })) }));
116
126
  return 0;
117
127
  }
118
128
  say(`${reg.name || 'Product'} blueprint — ${features.length} features`);
119
129
  say(' ' + B.STATUSES.filter((s) => counts[s]).map((s) => `${s} ${counts[s]}`).join(' · '));
130
+ if (derived.shallow) say(shallowLine(derived, nUnknown));
120
131
  for (const s of reg.surfaces) {
121
132
  const rows = shown.filter((f) => f.surface === s.id);
122
133
  if (!rows.length) continue;
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * load(root) → { ok, registry, file } | { ok:false, error }
6
6
  * check(registry, { root }) → [problem] the registry's own rules (no status key, known surfaces, …)
7
- * derive(registry, { root, releases }) → { features, releases } every feature with { status, version, why }
7
+ * derive(registry, { root, releases }) → { features, releases, shallow, commits } every feature with { status, version, why }
8
8
  * unplaced(registry, { root, releases }) → { guide, changes, other, range }
9
9
  * readReleases({ root, pkg, npmView, offline, now }) → { list, source, at, error } npm `gitHead` per version, cached
10
10
  * STATUSES
@@ -20,6 +20,10 @@
20
20
  * Agreed its experiment record has a done test (D107: the done test is the agreed spec)
21
21
  * Exploring its experiment record has no done test yet, or a cited prototype/ path exists
22
22
  * Idea nothing above: the entry alone
23
+ * Unknown a SHALLOW clone (cloud sessions, CI, `git clone --depth`) lacks the history the status depends on: a cited
24
+ * PR whose merge is older than the clone's first commit reads as "not merged" there, so it would show In build
25
+ * although it shipped long ago. derive() never guesses in that case. It never fetches the history itself:
26
+ * git's network verbs live only in lib/sync.js (D70), so the CLI names `git fetch --unshallow` instead. A Live version that older, missing releases could precede is marked `atMost` (≤).
23
27
  *
24
28
  * "In a release" means: the release's gitHead (from `npm view <pkg> version gitHead`) has the commit as an ancestor, or
25
29
  * has the file in its tree. Without release data (no network and no saved read) a merged feature says `Live ?`.
@@ -28,7 +32,7 @@ const fs = require('fs');
28
32
  const path = require('path');
29
33
  const cp = require('child_process');
30
34
 
31
- const STATUSES = Object.freeze(['Idea', 'Exploring', 'Agreed', 'In build', 'Live', 'Retired']);
35
+ const STATUSES = Object.freeze(['Idea', 'Exploring', 'Agreed', 'In build', 'Live', 'Retired', 'Unknown']);
32
36
  const REGISTRY = path.join('planning', 'blueprint', 'features.json');
33
37
  const CACHE = path.join('pmos', 'state', 'blueprint-releases.json');
34
38
  const FORBIDDEN_KEYS = ['status', 'stage', 'state'];
@@ -103,9 +107,16 @@ function gitIn(root) {
103
107
  const lines = out.split('\n');
104
108
  return shas.map((_, i) => / commit \d+$/.test(lines[i] || ''));
105
109
  };
106
- return { mainLine, contains, present, knownAll };
110
+ /** Is this a shallow clone? Its history stops at a cut-off, so a merge older than that is invisible here. */
111
+ let shallowAns = null;
112
+ const shallow = () => {
113
+ if (shallowAns === null) shallowAns = (run(['rev-parse', '--is-shallow-repository']) || '').trim() === 'true';
114
+ return shallowAns;
115
+ };
116
+ return { mainLine, contains, present, knownAll, shallow };
107
117
  }
108
118
 
119
+
109
120
  /* ---------- releases (npm gitHead) ---------- */
110
121
 
111
122
  function semverCmp(a, b) {
@@ -219,7 +230,11 @@ function derive(registry, { root, releases = [], git = gitIn(root) } = {}) {
219
230
  const known = git.knownAll(releases.map((r) => r.gitHead));
220
231
  const rel = releases.filter((_, i) => known[i]);
221
232
  const L = git.mainLine();
233
+ const shallow = typeof git.shallow === 'function' && git.shallow();
234
+ const relMissing = shallow && rel.length < releases.length; // older releases whose commits this clone does not hold
235
+ const cut = 'older than this shallow clone\'s history';
222
236
  const firstReleaseWith = (sha) => { for (const r of rel) if (git.contains(r.gitHead, sha)) return r.version; return null; };
237
+ const unknown = (out, reason) => { out.status = 'Unknown'; out.version = null; out.why.push(reason); return out; };
223
238
  const feats = (registry.features || []).map((f) => {
224
239
  const why = [];
225
240
  const prs = (f.prs || []).map((n) => ({ n, c: L.byPr.get(n) || null }));
@@ -229,9 +244,13 @@ function derive(registry, { root, releases = [], git = gitIn(root) } = {}) {
229
244
  const protos = (f.files || []).filter((p) => p.startsWith('prototype/'));
230
245
  const headHas = git.present(files.map((p) => ['HEAD', p]));
231
246
  const out = { ...f, status: 'Idea', version: null, why };
247
+ const missing = shallow ? open : []; // on a shallow clone a PR not found may simply be merged before the cut-off
248
+ const list = (ps) => ps.map((p) => '#' + p.n).join(', ');
232
249
 
233
250
  // Retired: a retiring PR is merged, or every cited file is gone now and was in a release.
234
- const retiring = (f.retired_by || []).map((n) => ({ n, c: L.byPr.get(n) || null })).filter((p) => p.c);
251
+ const retiringAll = (f.retired_by || []).map((n) => ({ n, c: L.byPr.get(n) || null }));
252
+ const retiring = retiringAll.filter((p) => p.c);
253
+ if (!retiring.length && shallow && retiringAll.length) return unknown(out, `retiring ${list(retiringAll)} not found: it may be ${cut}`);
235
254
  if (retiring.length) {
236
255
  const first = retiring.sort((a, b) => b.c.idx - a.c.idx)[0];
237
256
  out.status = 'Retired'; out.version = rel.length ? firstReleaseWith(first.c.sha) : null;
@@ -247,10 +266,12 @@ function derive(registry, { root, releases = [], git = gitIn(root) } = {}) {
247
266
  return out;
248
267
  }
249
268
  }
269
+ if (shallow && files.length && headHas.every((x) => !x) && relMissing) return unknown(out, `its files are gone and in no release this clone holds: they may have shipped ${cut}`);
250
270
 
251
271
  // Live / In build: merged PRs and files present now.
252
272
  const built = merged.length > 0 || headHas.some(Boolean);
253
273
  if (built) {
274
+ if (!rel.length && relMissing) return unknown(out, 'merged, but this shallow clone holds none of the releases, so release or build cannot be told');
254
275
  if (!rel.length) { out.status = 'Live'; out.version = '?'; why.push('merged; no release data, so the version is unknown'); return out; }
255
276
  let best = null;
256
277
  for (const p of merged) { const v = firstReleaseWith(p.c.sha); if (v && (!best || semverCmp(v, best.v) < 0)) best = { v, by: `#${p.n}` }; }
@@ -261,14 +282,18 @@ function derive(registry, { root, releases = [], git = gitIn(root) } = {}) {
261
282
  }
262
283
  if (best) {
263
284
  out.status = 'Live'; out.version = best.v; why.push(`${best.by} first shipped in ${best.v}`);
285
+ // Older releases are missing here: a cited PR outside the history, or a file, may have shipped in one of them.
286
+ if (relMissing && (missing.length || files.length)) { out.atMost = true; why.push(`it may have shipped earlier, in a release ${cut}`); }
264
287
  const later = merged.filter((p) => !firstReleaseWith(p.c.sha)).map((p) => '#' + p.n);
265
288
  if (later.length) why.push(`${later.join(', ')} merged, not released yet`);
266
- if (open.length) why.push(`${open.map((p) => '#' + p.n).join(', ')} not merged yet`);
289
+ if (open.length) why.push(shallow ? `${list(open)} not in this clone's history` : `${list(open)} not merged yet`);
267
290
  return out;
268
291
  }
292
+ if (missing.length) return unknown(out, `${list(merged) || 'its files'} merged, in no release yet; ${list(missing)} not found: it may be ${cut}`);
269
293
  out.status = 'In build'; why.push(`${merged.map((p) => '#' + p.n).join(', ') || 'its files'} merged, in no release yet`);
270
294
  return out;
271
295
  }
296
+ if (missing.length) return unknown(out, `${list(missing)} not found: it may be merged ${cut}`);
272
297
  if (open.length) { out.status = 'In build'; why.push(`${open.map((p) => '#' + p.n).join(', ')} not merged yet`); return out; }
273
298
 
274
299
  // Agreed / Exploring: the experiment record, or a prototype.
@@ -279,10 +304,10 @@ function derive(registry, { root, releases = [], git = gitIn(root) } = {}) {
279
304
  why.push('no record, PR or file yet');
280
305
  return out;
281
306
  });
282
- return { features: feats, releases: rel };
307
+ return { features: feats, releases: rel, shallow, commits: L.list.length };
283
308
  }
284
309
 
285
- function label(f) { return f.status === 'Live' || (f.status === 'Retired' && f.version) ? `${f.status} ${f.version || ''}`.trim() : f.status; }
310
+ function label(f) { return f.status === 'Live' || (f.status === 'Retired' && f.version) ? `${f.status} ${f.atMost ? '≤' : ''}${f.version || ''}`.trim() : f.status; }
286
311
 
287
312
  /** What no feature cites: guide sections, and feature changes on the default line since the release before `from`. */
288
313
  function unplaced(registry, { root, releases = [], git = gitIn(root) } = {}) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.563.0",
3
+ "version": "0.564.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.563.0",
9
+ "version": "0.564.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.563.0",
3
+ "version": "0.564.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",