create-pmos 0.821.0 → 0.822.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 +20 -3
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +19 -2
- package/workspace/guide/agent-capabilities.md +1 -0
- package/workspace/guide/cli.md +1 -0
- package/workspace/lib/ai-cli.js +17 -2
- package/workspace/lib/worth-it.js +66 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/test-lists/worth-it-by-kind.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.822.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,8 @@
|
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
36
|
{
|
|
37
|
-
"v": "0.
|
|
38
|
-
"at": "2026-11-25T09:15
|
|
37
|
+
"v": "0.822.0",
|
|
38
|
+
"at": "2026-11-25T09:18:15.859Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
41
|
{
|
|
@@ -61,6 +61,23 @@
|
|
|
61
61
|
"s": "A stage's sign-offs reach You on Today (job #1861, Factory page slice A)",
|
|
62
62
|
"k": "new",
|
|
63
63
|
"i": "factory-signoffs-reach-you"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"n": 1886,
|
|
67
|
+
"t": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
68
|
+
"s": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
69
|
+
"k": "new",
|
|
70
|
+
"h": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
71
|
+
"try": {
|
|
72
|
+
"steps": [
|
|
73
|
+
"Open Today and ask the chat: is each kind of AI run worth what it costs?",
|
|
74
|
+
"Read the line for each kind: its runs and cost this month, and what you kept of its work",
|
|
75
|
+
"Find any kind marked costs most, kept least"
|
|
76
|
+
],
|
|
77
|
+
"see": "One line per kind of background run: its runs and cost this month, and how many of its ✦ proposals you kept of those you decided. A kind that costs a large share and is kept less than half the time…",
|
|
78
|
+
"open": "/today.html"
|
|
79
|
+
},
|
|
80
|
+
"i": "worth-it-by-kind"
|
|
64
81
|
}
|
|
65
82
|
]
|
|
66
83
|
},
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-25T09:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T09:18:11Z"}
|
|
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-25T09:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T09:18:11Z"}
|
|
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-25T09:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T09:18:11Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-25T09:15
|
|
3
|
+
"v": "0.822.0",
|
|
4
|
+
"at": "2026-11-25T09:18:15.859Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
7
|
{
|
|
@@ -27,6 +27,23 @@
|
|
|
27
27
|
"s": "A stage's sign-offs reach You on Today (job #1861, Factory page slice A)",
|
|
28
28
|
"k": "new",
|
|
29
29
|
"i": "factory-signoffs-reach-you"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"n": 1886,
|
|
33
|
+
"t": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
34
|
+
"s": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
35
|
+
"k": "new",
|
|
36
|
+
"h": "Pmos ai worth puts each run kind's cost beside what was kept (job #1884)",
|
|
37
|
+
"try": {
|
|
38
|
+
"steps": [
|
|
39
|
+
"Open Today and ask the chat: is each kind of AI run worth what it costs?",
|
|
40
|
+
"Read the line for each kind: its runs and cost this month, and what you kept of its work",
|
|
41
|
+
"Find any kind marked costs most, kept least"
|
|
42
|
+
],
|
|
43
|
+
"see": "One line per kind of background run: its runs and cost this month, and how many of its ✦ proposals you kept of those you decided. A kind that costs a large share and is kept less than half the time…",
|
|
44
|
+
"open": "/today.html"
|
|
45
|
+
},
|
|
46
|
+
"i": "worth-it-by-kind"
|
|
30
47
|
}
|
|
31
48
|
]
|
|
32
49
|
},
|
|
@@ -166,6 +166,7 @@ When you ask an agent session to do a piece of work, it can finish it, including
|
|
|
166
166
|
- `pmos ai status`: whether each AI job is on, whether its replay passed, and what its last run filed. It also shows the keep rate of each job that files under ✦ for the last 14 days: how many you kept of the ones you decided, and how many wait. It shows each product too. A job with 3 or more decided and none kept is listed to pause. You decide: `pmos ai off <job>`.
|
|
167
167
|
- `pmos ai status` also shows the background runs of the last 7 days: for each kind of run, how many ran, the tokens each run read, and the cost. Lean and full starts show side by side.
|
|
168
168
|
- `pmos ai log [<job>]`: the last audit lines. Each dropped proposal shows why.
|
|
169
|
+
- `pmos ai worth`: each kind of background run this month, its cost next to how much of its ✦ work you kept. A kind that costs most and is kept least is flagged for you to decide. It pauses nothing.
|
|
169
170
|
- `pmos ai off [<job>]` and `pmos ai on [<job>]`: turn every AI job, or one job, off or on. `PMOS_AI=off` in the environment wins over the setting.
|
|
170
171
|
|
|
171
172
|
The AI jobs are `past-repeat`, `report-readers`, `report-translate`, `decision-memory`, `outcomes`, `descriptions`, `drift`, `rehearse`, `next-prompt`, `sharpen-prompt`, `idle-lab` and `live-round` (`pmos ai off live-round` stops new live rounds; one that runs ends by itself). The switch also covers each job in the queue by its queue name: `schedules`, `proactive`, `prepare`, `day`, `refresh`, `reports`, `meeting-prewarm`, `driver`, `goal-loops`, `finder`, `coredocs`, `milestones`, `propose`, `grill`, `metric-drafts`, `impact`, `metric-reads`, `forecast`, `report-design`, `report-structure`, `team`, `scan` and `idle-lab`. `pmos ai off` with no job stops all of them. Git sync uses no model, so the switch does not stop it. A background run cannot change the switch.
|
package/workspace/guide/cli.md
CHANGED
|
@@ -224,6 +224,7 @@ Before you share a spec, a strategy, a roadmap or a report, PMOS reads it as a s
|
|
|
224
224
|
- `pmos ai status`: whether each AI job is on, whether its replay passed, and what its last run filed. It also shows the keep rate of each job that files under ✦ for the last 14 days, and each product.
|
|
225
225
|
- `pmos ai log [<job>]`: the last audit lines. Each dropped proposal shows why.
|
|
226
226
|
- `pmos ai off [<job>]` and `pmos ai on [<job>]`: turn every AI job, or one job, off or on. `PMOS_AI=off` in the environment wins over the setting.
|
|
227
|
+
- `pmos ai worth`: each kind of background run this month, with its runs and cost next to how many of its ✦ proposals you kept of those you decided. A kind that takes at least a quarter of the month's cost and is kept less than half the time (with 3 or more decided) is flagged with the `pmos ai off <kind>` that would pause it. It reads only and pauses nothing: you decide. `--json` prints the rows.
|
|
227
228
|
|
|
228
229
|
[What PMOS does behind the scenes](agent-capabilities.md) lists the jobs and their queue names.
|
|
229
230
|
|
package/workspace/lib/ai-cli.js
CHANGED
|
@@ -9,18 +9,21 @@
|
|
|
9
9
|
* pmos ai off [<job>] turn every AI job off, or one job
|
|
10
10
|
* pmos ai on [<job>] turn every AI job on again, or one job
|
|
11
11
|
* pmos ai log [<job>] [--n N] the last audit lines: filed, dropped (with why), held, off, replay
|
|
12
|
+
* pmos ai worth [--json] each kind of background run this month: its cost next to how much of its ✦ work the PM kept, and the
|
|
13
|
+
* kinds that cost most and are kept least, flagged for the PM (lib/worth-it.js; reads only, pauses nothing)
|
|
12
14
|
*
|
|
13
15
|
* A background run never changes the switch: inside one (PMOS_AI_RUN set) off and on refuse. PMOS_AI=off in the environment wins
|
|
14
16
|
* over Settings. Exit codes: 0 done, 1 refused, 2 usage. Nothing is sent. */
|
|
15
17
|
const AG = require('./ai-guard.js');
|
|
16
18
|
|
|
17
|
-
const COMMANDS = { ai: ['status', 'off', 'on', 'log'] };
|
|
19
|
+
const COMMANDS = { ai: ['status', 'off', 'on', 'log', 'worth'] };
|
|
18
20
|
const USAGE = [
|
|
19
|
-
'usage: pmos ai status|off|on|log — the AI jobs: their kill switch and what each one filed or dropped',
|
|
21
|
+
'usage: pmos ai status|off|on|log|worth — the AI jobs: their kill switch and what each one filed or dropped',
|
|
20
22
|
' pmos ai status [--json] is each job on, has its replay passed, what did its last run file',
|
|
21
23
|
' pmos ai off [<job>] every AI job off, or one job',
|
|
22
24
|
' pmos ai on [<job>] every AI job on again, or one job',
|
|
23
25
|
' pmos ai log [<job>] [--n N] the last audit lines',
|
|
26
|
+
' pmos ai worth [--json] each kind of run this month: its cost next to what you kept of its work',
|
|
24
27
|
'A job files only proposals. Each one cites its sources and waits under ✦ for your ✓. Nothing is sent.',
|
|
25
28
|
];
|
|
26
29
|
const flag = (args, k) => { const i = args.indexOf('--' + k); return i >= 0 ? (args[i + 1] === undefined || args[i + 1].startsWith('--') ? true : args[i + 1]) : undefined; };
|
|
@@ -85,6 +88,18 @@ function run(argv, { say = (s) => console.log(s), env = process.env, stateDir =
|
|
|
85
88
|
}
|
|
86
89
|
return 0;
|
|
87
90
|
}
|
|
91
|
+
if (verb === 'worth') {
|
|
92
|
+
const W = require('./worth-it.js');
|
|
93
|
+
const since = W.monthStart(now);
|
|
94
|
+
let runs = []; try { runs = require('./run-tokens.js').read(dir, { sinceMs: since }); } catch { runs = []; }
|
|
95
|
+
let items = []; try { items = require('./orchestrator-keeprate.js').readAll(roots || rootsOf(dir, cwd)).items; } catch { items = []; }
|
|
96
|
+
const w = W.worthOf({ runs, items, since });
|
|
97
|
+
try { require('./use-log.js').record(dir, [{ kind: 'use', page: 'today', control: 'aiWorth', device: 'desk' }], now); } catch { /* a count, never a reason to fail */ }
|
|
98
|
+
console.info(`[ai-worth] kinds=${w.rows.length} flagged=${w.rows.filter((r) => r.flag).length}`);
|
|
99
|
+
if (flag(args, 'json')) { say(JSON.stringify({ ok: true, ...w })); return 0; }
|
|
100
|
+
for (const l of W.lines(w)) say(l);
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
88
103
|
if (verb === 'log') {
|
|
89
104
|
const n = Math.min(500, Math.max(1, Number(flag(args, 'n')) || 20));
|
|
90
105
|
const lines = AG.readAudit(dir, { job, limit: n });
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* worth-it.js — is each kind of AI run worth what it costs? (initiative worth-it-by-kind, job #1884, idea A160). `pmos ai worth`.
|
|
3
|
+
*
|
|
4
|
+
* `pmos ai status` shows the background runs' cost per kind (lib/run-tokens.js) and, apart, the keep rate of each ✦ job
|
|
5
|
+
* (lib/orchestrator-keeprate.js). This puts them side by side for the month: what each kind of run cost, and how much of what it filed
|
|
6
|
+
* under ✦ the PM kept. It reads only. It pauses nothing; the PM decides with `pmos ai off <kind>`.
|
|
7
|
+
*
|
|
8
|
+
* monthStart(now) → epoch ms of the first of this month, 00:00 local
|
|
9
|
+
* worthOf({ runs, items, since }) PURE → { since, cost, rows: [row] }
|
|
10
|
+
* runs run-token lines ({ at, kind, origin, costUsd }) : a run's kind is its origin (propose, grill, …), else its headless kind
|
|
11
|
+
* items keep-rate items (orchestrator-keeprate readAll): a ✦ proposal's job, by its switch name (JOBS off), decided since `since`
|
|
12
|
+
* row { kind, runs, costUsd, share (of the month's cost, 0–1), decided, kept, keepRate | null, flag }
|
|
13
|
+
* flag share ≥ FLAG_SHARE and keepRate < FLAG_KEEP with decided ≥ MIN_DECIDED: costs most, kept least. Never for fewer decided.
|
|
14
|
+
* lines(W) PURE → [string] what `pmos ai worth` prints
|
|
15
|
+
* No line here writes, sends or calls a model. */
|
|
16
|
+
const FLAG_SHARE = 0.25;
|
|
17
|
+
const FLAG_KEEP = 0.5;
|
|
18
|
+
const MIN_DECIDED = 3;
|
|
19
|
+
|
|
20
|
+
function monthStart(now = Date.now()) { const d = new Date(now); return new Date(d.getFullYear(), d.getMonth(), 1).getTime(); }
|
|
21
|
+
const ms = (v) => (typeof v === 'number' ? v : Date.parse(v));
|
|
22
|
+
|
|
23
|
+
/** PURE. */
|
|
24
|
+
function worthOf({ runs = [], items = [], since = 0 } = {}) {
|
|
25
|
+
const K = require('./orchestrator-keeprate.js');
|
|
26
|
+
const offOf = new Map(K.JOBS.map((j) => [j.job, j.off || j.job]));
|
|
27
|
+
const by = new Map();
|
|
28
|
+
const row = (kind) => { if (!by.has(kind)) by.set(kind, { kind, runs: 0, costUsd: 0, decided: 0, kept: 0 }); return by.get(kind); };
|
|
29
|
+
for (const r of runs || []) {
|
|
30
|
+
if (!r || !(ms(r.at) >= since)) continue;
|
|
31
|
+
const kind = String(r.origin || r.kind || 'other');
|
|
32
|
+
const x = row(kind); x.runs += 1; x.costUsd += Number(r.costUsd) || 0;
|
|
33
|
+
}
|
|
34
|
+
for (const it of items || []) {
|
|
35
|
+
if (!it || it.src !== 'proposal' || it.outcome === 'open' || !(it.decidedAt >= since)) continue;
|
|
36
|
+
const kind = offOf.get(it.type); if (!kind) continue;
|
|
37
|
+
const x = row(kind); x.decided += 1; if (it.outcome === 'kept') x.kept += 1;
|
|
38
|
+
}
|
|
39
|
+
const cost = [...by.values()].reduce((a, x) => a + x.costUsd, 0);
|
|
40
|
+
const rows = [...by.values()].map((x) => {
|
|
41
|
+
const share = cost > 0 ? x.costUsd / cost : 0;
|
|
42
|
+
const keepRate = x.decided ? x.kept / x.decided : null;
|
|
43
|
+
return { ...x, costUsd: Math.round(x.costUsd * 100) / 100, share, keepRate,
|
|
44
|
+
flag: x.decided >= MIN_DECIDED && keepRate < FLAG_KEEP && share >= FLAG_SHARE };
|
|
45
|
+
}).sort((a, b) => b.costUsd - a.costUsd || b.runs - a.runs || a.kind.localeCompare(b.kind));
|
|
46
|
+
return { since, cost: Math.round(cost * 100) / 100, rows };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const pct = (r) => Math.round(r * 100) + '%';
|
|
50
|
+
const usd = (n) => '$' + n.toFixed(2);
|
|
51
|
+
/** PURE. */
|
|
52
|
+
function lines(W) {
|
|
53
|
+
const day = new Date(W.since);
|
|
54
|
+
const from = `${day.getDate()} ${['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][day.getMonth()]}`;
|
|
55
|
+
if (!W.rows.length) return [`No background run and no ✦ decided since ${from}.`];
|
|
56
|
+
const out = [`Each kind of AI run since ${from}: ${usd(W.cost)} in all. Cost next to what you kept of its ✦ proposals.`];
|
|
57
|
+
for (const r of W.rows) {
|
|
58
|
+
const cost = r.runs ? `${r.runs} run${r.runs === 1 ? '' : 's'}, ${usd(r.costUsd)}${W.cost > 0 ? ' (' + pct(r.share) + ')' : ''}` : 'no run logged';
|
|
59
|
+
const kept = r.decided ? `kept ${r.kept} of ${r.decided} (${pct(r.keepRate)})` : 'no ✦ decided to judge it on';
|
|
60
|
+
out.push(` ${r.kind}: ${cost} · ${kept}${r.flag ? ` · costs most, kept least: pause it? pmos ai off ${r.kind}` : ''}`);
|
|
61
|
+
}
|
|
62
|
+
if (W.rows.some((r) => r.flag)) out.push('You decide. PMOS pauses nothing by itself.');
|
|
63
|
+
return out;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
module.exports = { FLAG_SHARE, FLAG_KEEP, MIN_DECIDED, monthStart, worthOf, lines };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.822.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.822.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Is each kind of AI run worth it (initiative worth-it-by-kind, done test K1-K5, N1, N2): the pure cost-beside-keep per kind, the flag, and pmos ai worth on a scratch state folder. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"worth-it.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"worth-it.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|