create-pmos 0.750.0 → 0.751.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.750.0",
3
+ "version": "0.751.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.751.0",
38
+ "at": "2026-11-23T23:33:04.160Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1690,
43
+ "t": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
44
+ "s": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.750.0",
38
51
  "at": "2026-11-23T17:16:14.272Z",
@@ -616,25 +629,6 @@
616
629
  }
617
630
  }
618
631
  ]
619
- },
620
- {
621
- "v": "0.727.0",
622
- "at": "2026-11-23T04:50:40.142Z",
623
- "f": 4,
624
- "prs": [
625
- {
626
- "n": 1605,
627
- "t": "Update PMOS from the phone",
628
- "s": "Update PMOS from the phone",
629
- "k": "new",
630
- "try": {
631
- "steps": [
632
- "On the phone, open Settings."
633
- ],
634
- "see": "An Update icon when a newer PMOS exists; pressing it updates the computer and reloads."
635
- }
636
- }
637
- ]
638
632
  }
639
633
  ]
640
634
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@57d83500
1
+ kernel-source: pmos@b19fec11
2
2
  assembled: 2026-11-23
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-23T17:16:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T23:33:00Z"}
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-23T17:16:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T23:33:00Z"}
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-23T17:16:11Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T23:33:00Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.751.0",
4
+ "at": "2026-11-23T23:33:04.160Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1690,
9
+ "t": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
10
+ "s": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.750.0",
4
17
  "at": "2026-11-23T17:16:14.272Z",
@@ -5,7 +5,7 @@
5
5
  * draft(ctx, card, opts) → { state: 'ready', key, by, lines } | { state: 'pending', key } | { state: 'missing', missing: [field] }
6
6
  * opts.again: the PM pressed draft again, so a new run starts even when a draft is kept for this strategy
7
7
  * peek(ctx, card) → the kept draft for this strategy, or null (never starts a run)
8
- * normalize(answer, card) → [line] | null the model's answer made honest
8
+ * normalize(answer, card) → [line] | null the model's answer made honest; null when fewer than MIN_MESSAGES key messages survive
9
9
  * template(card) → [line] the lines put together from the strategy word for word (no AI)
10
10
  * keep(dir, line, card, now?) → { ok, line } | { ok: false, error } appends { at, ev: 'keep', … } to <dir>/positioning.jsonl
11
11
  * drop(dir, id, now?) → { ok } | { ok: false, error } appends { at, ev: 'drop', id }
@@ -31,6 +31,7 @@ const FILE = 'positioning.jsonl';
31
31
  const KINDS = ['positioning', 'message'];
32
32
  const MAX_LEN = 200;
33
33
  const MAX_MESSAGES = 5;
34
+ const MIN_MESSAGES = 2;
34
35
  const MODEL = 'claude-sonnet-5-5';
35
36
  const LEAN = Object.freeze([{ flag: '--strict-mcp-config' }, { flag: '--disable-slash-commands' }, { flag: '--setting-sources', value: 'user' }, { flag: '--tools', value: 'Read' }]);
36
37
  const TIMEOUT_MS = 180000;
@@ -85,7 +86,8 @@ function normalize(text, card) {
85
86
  let o; try { o = JSON.parse(t.slice(at, end + 1)); } catch { return null; }
86
87
  if (!o || !Array.isArray(o.lines)) return null;
87
88
  const lines = shape(o.lines.slice(0, 20).map((l) => lineOf(l, card)));
88
- return lines.length ? lines : null;
89
+ // a draft is one statement and MIN_MESSAGES to MAX_MESSAGES key messages; fewer honest messages → null, so the template stands in
90
+ return lines.length && lines.filter((l) => l.kind === 'message').length >= MIN_MESSAGES ? lines : null;
89
91
  }
90
92
 
91
93
  /** The lines put together from the strategy word for word: honest when no session can run. */
@@ -196,7 +198,7 @@ function drop(dir, id, now = Date.now()) {
196
198
 
197
199
  const count = (dirs) => (dirs || []).filter((d) => read(d).length > 0).length;
198
200
 
199
- module.exports = { FILE, KINDS, MAX_LEN, MAX_MESSAGES, missingOf, keyOf, promptOf, normalize, template, draft, peek, keep, drop, read, readLines, count };
201
+ module.exports = { FILE, KINDS, MAX_LEN, MAX_MESSAGES, MIN_MESSAGES, missingOf, keyOf, promptOf, normalize, template, draft, peek, keep, drop, read, readLines, count };
200
202
 
201
203
  if (require.main === module) {
202
204
  const args = process.argv.slice(2), cmd = args[0];
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.750.0",
3
+ "version": "0.751.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.750.0",
9
+ "version": "0.751.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.750.0",
3
+ "version": "0.751.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",