create-pmos 0.484.0 → 0.485.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 +14 -14
- package/payload/AGENTS.md +2 -0
- 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 +13 -0
- package/workspace/lib/routes-report-structure.js +12 -2
- package/workspace/lib/task-cli.js +6 -5
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/server.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.485.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": {
|
|
@@ -32,6 +32,19 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.485.0",
|
|
37
|
+
"at": "2026-11-02T02:54:02.793Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1145,
|
|
42
|
+
"t": "Task dates read through pmos (item 19); a report draft says why it ended (item 20)",
|
|
43
|
+
"s": "Task dates read through pmos (item 19); a report draft says why it ended (item 20)",
|
|
44
|
+
"k": "fix"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
35
48
|
{
|
|
36
49
|
"v": "0.484.0",
|
|
37
50
|
"at": "2026-11-02T02:00:11.221Z",
|
|
@@ -282,19 +295,6 @@
|
|
|
282
295
|
"k": "new"
|
|
283
296
|
}
|
|
284
297
|
]
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"v": "0.465.0",
|
|
288
|
-
"at": "2026-10-31T03:26:05.595Z",
|
|
289
|
-
"f": 3,
|
|
290
|
-
"prs": [
|
|
291
|
-
{
|
|
292
|
-
"n": 1117,
|
|
293
|
-
"t": "A folder with no profile file and no code is a document repository (D68)",
|
|
294
|
-
"s": "A folder with no profile file and no code is a document repository",
|
|
295
|
-
"k": "new"
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
298
|
}
|
|
299
299
|
]
|
|
300
300
|
}
|
package/payload/AGENTS.md
CHANGED
|
@@ -52,6 +52,8 @@ It refuses frontmatter, fenced and indented code, table rows, headings, delibera
|
|
|
52
52
|
|
|
53
53
|
State files are **append-only**: never rewrite or delete an existing line or initiative record; correct by appending. When a vendored skill names a hosted tool, apply this table — the skill bodies are single-sourced from the PMOS kernel and are not forked for file mode.
|
|
54
54
|
|
|
55
|
+
**Read current state through `pmos`, never from a ledger line.** A `.jsonl` ledger is a log of changes: a later line replaces an earlier one, so its first line for a task can hold dates that were changed long ago. Read an initiative's tasks, with the state and the start and due day the Board timeline shows, with `pmos task list <initiative> --all` (add `--json` for fields). Read the Board with `pmos board`, and initiatives with `pmos initiative list`. Never quote a date, owner or state that you read from `boards.jsonl` or another ledger by hand. When `pmos` cannot answer, say so; do not fall back to the raw file.
|
|
56
|
+
|
|
55
57
|
## Work-type lanes (D56)
|
|
56
58
|
|
|
57
59
|
Every initiative carries a `type` — the lane picks what the gate requires **before** work; the kernel (anchor — a KR **or** `health:<id>` from `planning/okrs/health-budgets.md` (D59) — eval-before-work in lane-appropriate form, human Acceptance, append-only state) holds in every lane. Unknown/missing type = `feature`, the strictest lane. The enum is closed — never invent a lane; a work shape with no lane escalates to the PM.
|
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-02T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T02:53:58Z"}
|
|
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-02T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T02:53:58Z"}
|
|
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-02T02:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T02:53:58Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.485.0",
|
|
4
|
+
"at": "2026-11-02T02:54:02.793Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1145,
|
|
9
|
+
"t": "Task dates read through pmos (item 19); a report draft says why it ended (item 20)",
|
|
10
|
+
"s": "Task dates read through pmos (item 19); a report draft says why it ended (item 20)",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.484.0",
|
|
4
17
|
"at": "2026-11-02T02:00:11.221Z",
|
|
@@ -588,6 +588,14 @@ function landedSince(root, id, since) {
|
|
|
588
588
|
return hit ? { slot: hit.f.replace(/\.md$/, ''), path: `${p.rel}/${hit.f}` } : null;
|
|
589
589
|
} catch { return null; }
|
|
590
590
|
}
|
|
591
|
+
/** Why a drafting run ended with no draft, in the PM's words, from the run's outcome (lib/headless.js outcomeOf) when there is one. Pure. */
|
|
592
|
+
function endedWhy(out) {
|
|
593
|
+
const clip = (t) => String(t || '').replace(/\s+/g, ' ').trim().slice(0, 280);
|
|
594
|
+
if (out && Array.isArray(out.denied) && out.denied.length) return `The drafting run was not allowed to use ${out.denied.slice(0, 3).map(clip).join(', ')}, so it wrote no draft. Press Draft it now to try again.`;
|
|
595
|
+
if (out && out.ok === false && out.why) return `The drafting run stopped: ${clip(out.why)}`;
|
|
596
|
+
if (out && out.ok && out.headline) return `The drafting run finished without writing a draft. It said: "${clip(out.headline)}"`;
|
|
597
|
+
return 'The drafting session ended before a draft was written. Press Draft it now to try again.';
|
|
598
|
+
}
|
|
591
599
|
/**
|
|
592
600
|
* What a row shows for a report's draft: null, or { state: 'drafting' | 'held' | 'ended', since, saved, sources?, session?, reason? }.
|
|
593
601
|
* A held draft waits for a Chrome or computer check; an ended one lost its session before a draft landed.
|
|
@@ -607,7 +615,9 @@ function draftState(ctx, w, id) {
|
|
|
607
615
|
if (landedSince(root, id, m.since)) { try { fs.unlinkSync(draftingFile(root, id)); } catch { /* gone */ } return null; }
|
|
608
616
|
const alive = m.session && typeof ctx.sessionAlive === 'function' ? ctx.sessionAlive(m.session) : true;
|
|
609
617
|
if (!alive) {
|
|
610
|
-
|
|
618
|
+
// say why it ended (batch 22 item 20, Wawan: "It never reach draft successful state"): the run's own outcome, not a bare retry
|
|
619
|
+
const out = typeof ctx.sessionOutcome === 'function' ? ctx.sessionOutcome(m.session) : null;
|
|
620
|
+
const o = { ...m, ended: true, reason: endedWhy(out) };
|
|
611
621
|
try { fs.writeFileSync(draftingFile(root, id), JSON.stringify(o) + '\n'); } catch { /* shown again next time */ }
|
|
612
622
|
return { state: 'ended', since: m.since, saved: m.saved, reason: o.reason };
|
|
613
623
|
}
|
|
@@ -806,5 +816,5 @@ async function handle(req, res, url, ctx) {
|
|
|
806
816
|
return send(bad(404, 'no such route'));
|
|
807
817
|
}
|
|
808
818
|
|
|
809
|
-
module.exports = { prefixes: ['/api/report-structure', '/api/charts'], handle, sweep, beforeDraft, draftBlock, draftNow, draftState, markDrafting, startCheck, settleChecks, readHold, savedPlan, computerRule, resultJson, promptFor,
|
|
819
|
+
module.exports = { prefixes: ['/api/report-structure', '/api/charts'], handle, sweep, beforeDraft, draftBlock, draftNow, draftState, endedWhy, markDrafting, startCheck, settleChecks, readHold, savedPlan, computerRule, resultJson, promptFor,
|
|
810
820
|
_jobs: jobs, _checks: checkJobs, _pulls: pullJobs };
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* place tasks under a workflow stage of their initiative, or change their dates, owner or notes, by the same function as the Viewer's
|
|
10
10
|
* edit (lib/routes-boards.js taskEdit, POST /api/boards/tasks/edit). The Tasks section groups tasks by stage (feedback batch 6:
|
|
11
11
|
* an agent asked to group tasks by stage had no command for it).
|
|
12
|
-
* pmos task list <initiative> [--all] its open tasks (To do, In progress); --all adds Done, Won't do and Archived
|
|
12
|
+
* pmos task list <initiative> [--all] its open tasks (To do, In progress); --all adds Done, Won't do and Archived.
|
|
13
|
+
* Each line carries the start and due day the Board timeline shows: the folded ledger, where a later edit replaces an earlier line.
|
|
13
14
|
* pmos task state <task> [<task> …] --to <state> [--why <text>]
|
|
14
15
|
* set each task's state: To do, In progress, Done, Won't do or Archived, by the same function as the Board's press
|
|
15
16
|
* (lib/routes-boards.js taskState, POST /api/boards/tasks/state), with the agent as the writer.
|
|
@@ -43,7 +44,7 @@ const USAGE = [
|
|
|
43
44
|
' --milestone makes a task a milestone: its due date shows as ◇ on the Board and the timeline. Set it only when the PM asks.',
|
|
44
45
|
' --pin shows a milestone on the Board timeline, --no-pin hides it, --pin-default goes back to the rule (the last milestone',
|
|
45
46
|
' shows). Set it only when the PM asks.',
|
|
46
|
-
' pmos task list <initiative> [--all] its open tasks; --all adds Done, Won\'t do and Archived',
|
|
47
|
+
' pmos task list <initiative> [--all] its open tasks, with the start and due day the Board shows; --all adds Done, Won\'t do and Archived',
|
|
47
48
|
' pmos task remove <task> [<task> …] [--why <text>]',
|
|
48
49
|
' Delete a task added by mistake (a placeholder, a duplicate) when the PM asks. It goes from every list; the page\'s Undo brings',
|
|
49
50
|
' it back. Work that stopped is Archived or Won\'t do instead. A breakdown item is not deleted: set it to Won\'t do.',
|
|
@@ -105,7 +106,7 @@ function boardsCtx(root, stateDir) {
|
|
|
105
106
|
const w = { id: driver.wsIdOf(root), name: path.basename(root), root };
|
|
106
107
|
return { w, ctx: { getWs: () => w, workspaceList: () => [w], stateDirFor: () => stateDir, selfRoot: path.resolve(__dirname, '..', '..') } };
|
|
107
108
|
}
|
|
108
|
-
const line = (t) => `${t.id} · ${t.state} · ${t.title}${t.kind === 'Epic' ? ' (epic)' : ''}${t.milestone ? ' · ◇ milestone' : ''}${t.pinned === true ? ' · pinned' : t.pinned === false ? ' · not pinned' : ''}${t.stage ? ' · under ' + t.stage : ''}${t.due ? ' · due ' + t.due : ''}`;
|
|
109
|
+
const line = (t) => `${t.id} · ${t.state} · ${t.title}${t.kind === 'Epic' ? ' (epic)' : ''}${t.milestone ? ' · ◇ milestone' : ''}${t.pinned === true ? ' · pinned' : t.pinned === false ? ' · not pinned' : ''}${t.stage ? ' · under ' + t.stage : ''}${t.start ? ' · starts ' + String(t.start).slice(0, 10) : ''}${t.due ? ' · due ' + String(t.due).slice(0, 10) : ''}`;
|
|
109
110
|
/** The workflow row of an initiative, deriving the rows when they are still being read. */
|
|
110
111
|
function rowOf(boards, ctx, w, id) {
|
|
111
112
|
let r = boards.initiativeWorkflow(ctx, w, id);
|
|
@@ -151,7 +152,7 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
|
|
|
151
152
|
const msOf = (tid, own) => (MS.has(tid) ? MS.get(tid) : !!own); // the PM's ◇ flag (feedback batch 11 item 3)
|
|
152
153
|
const stageOf = (tid, from) => (S.has(tid) ? S.get(tid) : (from && from.stage) || ''); // the group the Tasks section shows it under
|
|
153
154
|
const own = [...(F.tasks || new Map()).values()].filter((t) => t.initiative === id).map((t) => ({ ...t, stage: stageOf(t.id, t.from), milestone: msOf(t.id), ...pinOf(t.id) }));
|
|
154
|
-
const items = TI.rowsOf(root, new Set([id]), board).map((x) => ({ id: x.uid, board, kind: 'Task', title: x.title, state: x.status, owner: x.owner, due: x.end, store: 'item', stage: stageOf(x.uid), milestone: msOf(x.uid, x.milestone), ...pinOf(x.uid) }));
|
|
155
|
+
const items = TI.rowsOf(root, new Set([id]), board).map((x) => ({ id: x.uid, board, kind: 'Task', title: x.title, state: x.status, owner: x.owner, start: x.start || null, due: x.end, store: 'item', stage: stageOf(x.uid), milestone: msOf(x.uid, x.milestone), ...pinOf(x.uid) }));
|
|
155
156
|
return own.concat(items);
|
|
156
157
|
};
|
|
157
158
|
|
|
@@ -182,7 +183,7 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
|
|
|
182
183
|
try { boards.seedInitiative(ctx, w, id); } catch { /* the To finish tasks are made on the next read */ }
|
|
183
184
|
const all = tasksOf(id);
|
|
184
185
|
const shown = flags.all ? all : all.filter((t) => OPEN.has(t.state));
|
|
185
|
-
if (json) { say(JSON.stringify({ ok: true, tasks: shown.map((t) => ({ id: t.id, board: t.board, kind: t.kind, title: t.title, state: t.state, owner: t.owner, due: t.due, stage: t.stage || '', ...(t.milestone ? { milestone: true } : {}), ...(typeof t.pinned === 'boolean' ? { pinned: t.pinned } : {}), ...(t.from ? { from: t.from } : {}) })) })); return 0; }
|
|
186
|
+
if (json) { say(JSON.stringify({ ok: true, tasks: shown.map((t) => ({ id: t.id, board: t.board, kind: t.kind, title: t.title, state: t.state, owner: t.owner, start: t.start || null, due: t.due, stage: t.stage || '', ...(t.milestone ? { milestone: true } : {}), ...(typeof t.pinned === 'boolean' ? { pinned: t.pinned } : {}), ...(t.from ? { from: t.from } : {}) })) })); return 0; }
|
|
186
187
|
if (!shown.length) { say(all.length ? `No open task on ${id}. --all lists the ${all.length} closed.` : `No task on ${id}.`); return 0; }
|
|
187
188
|
for (const t of shown) say(line(t));
|
|
188
189
|
return 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.485.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.485.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
package/workspace/server.js
CHANGED
|
@@ -2863,7 +2863,7 @@ try { require('./lib/routes-report-design.js').attach(reportDesignCtx); } catch
|
|
|
2863
2863
|
// The tick collects check answers and starts the drafts that waited for a failing source (4 hours, then without it).
|
|
2864
2864
|
// agent-orchestrator: the checks of a draft the schedule tick fired, and the tick's retries of them, use spawnScheduled (the capacity governor). A press uses spawnSession.
|
|
2865
2865
|
const reportStructureCtx = () => ({ getWs, workspaceList: () => [...workspaces.values()], runtimeDir: STATE, stepFlags: STEP_FLAGS,
|
|
2866
|
-
scheduleStore: { read: readSchedules, write: writeSchedules }, sessionAlive: (id) => { const x = sessions.get(String(id || '')); return !!x && x.state !== 'exited'; },
|
|
2866
|
+
scheduleStore: { read: readSchedules, write: writeSchedules }, sessionAlive: (id) => { const x = sessions.get(String(id || '')); return !!x && x.state !== 'exited'; }, sessionOutcome: (id) => { const x = sessions.get(String(id || '')); return (x && x.outcome) || null; },
|
|
2867
2867
|
spawnSession: (spec) => spawnSession({ ...spec, autoDelete: undefined }),
|
|
2868
2868
|
spawnScheduled: (spec) => orchSpawn.spawn({ ...spec, autoDelete: undefined }),
|
|
2869
2869
|
skillPrompt: (skillId, w) => { const t = taskById(skillId, w ? w.root : SELF_ROOT); return t && t.prompt ? t.prompt : null; },
|
|
@@ -3137,7 +3137,7 @@ refreshRun = refreshRunLib.create({
|
|
|
3137
3137
|
proactive: () => proSettings(),
|
|
3138
3138
|
schedules: { read: readSchedules, write: writeSchedules },
|
|
3139
3139
|
startSkill: (wsId, skill, name, origin) => startSkillSession(wsId, skill, name, origin),
|
|
3140
|
-
sessionAlive: (id) => { const x = sessions.get(String(id || '')); return !!x && x.state !== 'exited'; },
|
|
3140
|
+
sessionAlive: (id) => { const x = sessions.get(String(id || '')); return !!x && x.state !== 'exited'; }, sessionOutcome: (id) => { const x = sessions.get(String(id || '')); return (x && x.outcome) || null; },
|
|
3141
3141
|
// popup context slice 3b: how many opened popups have no lead newer than the newest stored read
|
|
3142
3142
|
leadsDue: () => require('./lib/popup-leads.js').due(STATE, { readAt: require('./lib/lead-cli.js').newestRead(STATE) }).length,
|
|
3143
3143
|
freshRows: (wsIdArg) => { const w = getWs(wsIdArg || ''); return w ? freshness.sources({ id: w.id, root: w.root, repoStateDir: (() => { try { return stateDirFor(w); } catch { return null; } })() }) : []; },
|