create-pmos 0.346.0 → 0.347.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 +13 -13
- 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 +12 -0
- package/workspace/lib/driver.js +5 -3
- package/workspace/lib/orchestrator-spawn.js +9 -5
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/server.js +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.347.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,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.347.0",
|
|
37
|
+
"at": "2026-10-20T06:13:15.916Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 945,
|
|
42
|
+
"t": "Background runs yield to working chat and /goal sessions; no new draft while one waits",
|
|
43
|
+
"s": "A chat or /goal session that is working counts toward the governor's parallel cap (3 while working, 8 while away), so background runs wait for it."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.346.0",
|
|
37
49
|
"at": "2026-10-20T05:59:24.111Z",
|
|
@@ -279,18 +291,6 @@
|
|
|
279
291
|
"s": "Both open as a tab in the premium viewer, showing only what PMOS holds."
|
|
280
292
|
}
|
|
281
293
|
]
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"v": "0.327.0",
|
|
285
|
-
"at": "2026-10-19T23:09:42.241Z",
|
|
286
|
-
"f": 2,
|
|
287
|
-
"prs": [
|
|
288
|
-
{
|
|
289
|
-
"n": 921,
|
|
290
|
-
"t": "Meeting prep on the Before stage of the note sheet",
|
|
291
|
-
"s": "Before opens with a \"Prepared for this meeting\" box holding that brief: In short, What matters today (To settle in planning for a planning meeting) with each item's tag and date, Since the last one with its decisions…"
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
294
|
}
|
|
295
295
|
]
|
|
296
296
|
}
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-20T06:13:12Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-20T06:13:12Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-20T06:13:12Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.347.0",
|
|
4
|
+
"at": "2026-10-20T06:13:15.916Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 945,
|
|
9
|
+
"t": "Background runs yield to working chat and /goal sessions; no new draft while one waits",
|
|
10
|
+
"s": "A chat or /goal session that is working counts toward the governor's parallel cap (3 while working, 8 while away), so background runs wait for it."
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.346.0",
|
|
4
16
|
"at": "2026-10-20T05:59:24.111Z",
|
package/workspace/lib/driver.js
CHANGED
|
@@ -372,14 +372,16 @@ function detect(facts, state, { now, stalledDays } = {}) {
|
|
|
372
372
|
return out;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
/** The lines the sweep appends now: one `blocker` per blocker per day, and for an agent blocker one `wake`. A target
|
|
376
|
-
*
|
|
377
|
-
*
|
|
375
|
+
/** The lines the sweep appends now: one `blocker` per blocker per day, and for an agent blocker one `wake`. A target with any
|
|
376
|
+
* undecided proposal starts no run, so its blockers wake nothing until the PM decides: the agent drafts no more on a target than
|
|
377
|
+
* the PM has read. Only a proposal older than a day makes the PM the blocker (pm-open); that line is written once a day, which is
|
|
378
|
+
* what raises its Needs you row again. */
|
|
378
379
|
function sweepLines(facts, state, { now, stalledDays } = {}) {
|
|
379
380
|
const t = now == null ? facts.now : now;
|
|
380
381
|
const day = facts.day || localDay(t);
|
|
381
382
|
const blockers = detect(facts, state, { now: t, stalledDays });
|
|
382
383
|
const pmBlocked = new Set(blockers.filter((b) => b.owner === 'pm').map((b) => targetKey(b.target)));
|
|
384
|
+
for (const b of blockers) if (openProposals(state, b.target).length) pmBlocked.add(targetKey(b.target));
|
|
383
385
|
const lines = [];
|
|
384
386
|
for (const b of blockers) {
|
|
385
387
|
if (state.blockerDays.has(`${b.key}|${day}`)) continue;
|
|
@@ -2,21 +2,25 @@
|
|
|
2
2
|
/* orchestrator-spawn.js — puts the scheduled background jobs under the orchestrator gate (initiative agent-orchestrator, PRD "Capacity
|
|
3
3
|
* governor" and "Gates that stay yours").
|
|
4
4
|
*
|
|
5
|
-
* wrap({ gate, spawn, driverRunning }) → { spawn(spec), running() }
|
|
5
|
+
* wrap({ gate, spawn, driverRunning, pmWorking }) → { spawn(spec), running(), own() }
|
|
6
6
|
*
|
|
7
7
|
* `spawn(spec)` is used ONLY by the schedule ticks (the core documents, the weekly report finder). A run the PM starts by a press uses the
|
|
8
8
|
* plain spawn and is never counted or held. Before it starts a run the wrapper asks gate.mayStart. A held start returns an exited session
|
|
9
9
|
* row with a note and `held: true`, which the callers already read as "could not start"; they try again on their next tick, so nothing is
|
|
10
10
|
* lost or refused. The report design and report structure ticks also use it (lib/routes-report-design.js sweep, routes-report-structure.js checks).
|
|
11
11
|
* A run that started is counted toward the day's cap (gate.granted). The count of running runs adds the Driver's runs to the runs
|
|
12
|
-
* started here that have not ended, so the cap covers all orchestrator work together.
|
|
13
|
-
|
|
12
|
+
* started here that have not ended, so the cap covers all orchestrator work together. It also adds `pmWorking`: the PM's chat-panel
|
|
13
|
+
* sessions (a /goal included) that are working now. Those are never held or counted toward the daily cap, but they use the same
|
|
14
|
+
* machine and the same usage, so background work yields to them. `own()` is the runs started here alone, for the Driver's own ask. */
|
|
15
|
+
function wrap({ gate, spawn, driverRunning = () => 0, pmWorking = () => 0 }) {
|
|
14
16
|
const live = new Set();
|
|
15
17
|
const prune = () => { for (const s of [...live]) if (!s || s.state === 'exited') live.delete(s); };
|
|
16
|
-
const
|
|
18
|
+
const n = (f) => { try { return Number(f()) || 0; } catch { return 0; } };
|
|
19
|
+
const own = () => { prune(); return live.size; };
|
|
20
|
+
const running = () => own() + n(driverRunning) + n(pmWorking);
|
|
17
21
|
function held(reason) { return { id: null, state: 'exited', headless: null, held: true, note: `held by the capacity governor: ${reason}` }; }
|
|
18
22
|
return {
|
|
19
|
-
running,
|
|
23
|
+
running, own,
|
|
20
24
|
spawn(spec) {
|
|
21
25
|
let g = { allowed: true };
|
|
22
26
|
try { g = gate.mayStart({ running: running() }) || g; } catch { /* a broken gate must not stop the PM's schedules */ }
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.347.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.347.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
package/workspace/server.js
CHANGED
|
@@ -2592,7 +2592,7 @@ const dashboardScheduleTick = () => {
|
|
|
2592
2592
|
const orchQuota = require('./lib/orchestrator-quota.js');
|
|
2593
2593
|
const orchGate = require('./lib/orchestrator-gate.js').create({ dir: STATE, quota: () => orchQuota.gateQuota(STATE), ...(process.env.PMOS_TICK_MS ? { load: () => null } : { defaultBackupDir: path.join(require('os').homedir(), 'pmos-backups') }) });
|
|
2594
2594
|
const driver = driverRunLib.create({
|
|
2595
|
-
mayStart: ({ running }) => orchGate.mayStart({ running }),
|
|
2595
|
+
mayStart: ({ running }) => orchGate.mayStart({ running: running + orchSpawn.own() + chatWorking() }),
|
|
2596
2596
|
started: () => orchGate.granted(),
|
|
2597
2597
|
workspaces: () => [...workspaces.values()],
|
|
2598
2598
|
isLead: (w) => isPlanNeedsTree(w),
|
|
@@ -2614,7 +2614,14 @@ const driverTick = () => { try { driver.tick({}); } catch (e) { warnWriteFail('d
|
|
|
2614
2614
|
let orchLastTickAt = null, orchBackupRunning = false;
|
|
2615
2615
|
// agent-orchestrator: the scheduled background jobs (core documents, the weekly finder) start through the gate, so the stop switch, the
|
|
2616
2616
|
// away/working caps and the daily cap govern them with the Driver. A press by the PM uses the plain spawnSession and is never held.
|
|
2617
|
-
|
|
2617
|
+
// The PM's chat-panel sessions (origin chat:<key>, a /goal included) that are working now count toward the parallel cap, so background
|
|
2618
|
+
// runs yield to them; they are never held and never count toward the daily cap (a press by the PM).
|
|
2619
|
+
function chatWorking(now = Date.now()) {
|
|
2620
|
+
let k = 0;
|
|
2621
|
+
for (const s of sessions.values()) if (String(s.origin || '').startsWith('chat:') && s.state !== 'exited' && harness.deriveState(s.state, s.lastOutputAt, now).state === 'working') k++;
|
|
2622
|
+
return k;
|
|
2623
|
+
}
|
|
2624
|
+
const orchSpawn = require('./lib/orchestrator-spawn.js').wrap({ gate: orchGate, spawn: (spec) => spawnSession(spec), driverRunning: () => driver.active().length, pmWorking: () => chatWorking() });
|
|
2618
2625
|
// agent-orchestrator: the keep rate of the agent's items, read from every registered repository's Driver and core-document ledgers (cached a minute)
|
|
2619
2626
|
let orchKeepCache = null;
|
|
2620
2627
|
const orchKeepRate = () => {
|