create-pmos 0.846.0 → 0.847.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 +19 -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 +18 -2
- package/workspace/guide/settings-and-switches.md +1 -1
- package/workspace/lib/routes-board-premium.js +13 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/premium-board.js +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.847.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-25T18:
|
|
37
|
+
"v": "0.847.0",
|
|
38
|
+
"at": "2026-11-25T18:22:14.213Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
41
|
{
|
|
@@ -60,6 +60,22 @@
|
|
|
60
60
|
"open": "/premium-board.html"
|
|
61
61
|
},
|
|
62
62
|
"i": "raid-fold"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"n": 2044,
|
|
66
|
+
"t": "Work checks for new rows instead of re-reading the board every 2 s",
|
|
67
|
+
"s": "Work checks for new rows instead of re-reading the board every 2 s",
|
|
68
|
+
"k": "imp",
|
|
69
|
+
"i": "page-open-200ms",
|
|
70
|
+
"try": {
|
|
71
|
+
"steps": [
|
|
72
|
+
"Open Today, then Work, then an initiative from Work.",
|
|
73
|
+
"Change something on the initiative (a task title), wait a second, then open Work again.",
|
|
74
|
+
"Open the same initiative again."
|
|
75
|
+
],
|
|
76
|
+
"see": "each page shows its rows at once, in about the blink of an eye; the change you made shows on Work and on the initiative.",
|
|
77
|
+
"open": "/premium-board.html"
|
|
78
|
+
}
|
|
63
79
|
}
|
|
64
80
|
]
|
|
65
81
|
},
|
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-25T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T18:22:10Z"}
|
|
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-25T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T18:22:10Z"}
|
|
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-25T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T18:22:10Z"}
|
|
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-25T18:
|
|
3
|
+
"v": "0.847.0",
|
|
4
|
+
"at": "2026-11-25T18:22:14.213Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
7
|
{
|
|
@@ -26,6 +26,22 @@
|
|
|
26
26
|
"open": "/premium-board.html"
|
|
27
27
|
},
|
|
28
28
|
"i": "raid-fold"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"n": 2044,
|
|
32
|
+
"t": "Work checks for new rows instead of re-reading the board every 2 s",
|
|
33
|
+
"s": "Work checks for new rows instead of re-reading the board every 2 s",
|
|
34
|
+
"k": "imp",
|
|
35
|
+
"i": "page-open-200ms",
|
|
36
|
+
"try": {
|
|
37
|
+
"steps": [
|
|
38
|
+
"Open Today, then Work, then an initiative from Work.",
|
|
39
|
+
"Change something on the initiative (a task title), wait a second, then open Work again.",
|
|
40
|
+
"Open the same initiative again."
|
|
41
|
+
],
|
|
42
|
+
"see": "each page shows its rows at once, in about the blink of an eye; the change you made shows on Work and on the initiative.",
|
|
43
|
+
"open": "/premium-board.html"
|
|
44
|
+
}
|
|
29
45
|
}
|
|
30
46
|
]
|
|
31
47
|
},
|
|
@@ -509,7 +509,7 @@ A refresh waits for the sources it uses. The briefing waits for work assigned to
|
|
|
509
509
|
- **One server runs the schedules.** When several PMOS servers run on one computer (for example an npm install and a checkout), only one of them runs the schedules and starts background runs; the others serve pages only. If that server stops, another one takes over within 3 minutes. A refresh you press runs on the server where you press it.
|
|
510
510
|
- **Quiet start**: a server starts no background run in its first 5 minutes, so the first pages load quickly. A missed refresh catches up after that.
|
|
511
511
|
- **Warm start**: 5 seconds after PMOS starts, it reads what Today and Work show once, so your first page opens as fast as later ones. This read writes nothing you would see as read or seen. `PMOS_WARM=off` turns it off.
|
|
512
|
-
- **Pages open from their last answer**: Today, Work and an initiative show the answer PMOS read last, while nothing changed since, and PMOS reads them again quietly when it is not busy. A change you, the chat or an agent make shows on the next open, also when it is written outside PMOS (PMOS watches the planning and pmos folders): the change makes every kept answer too old, and PMOS reads the newest pages again about a second later. Work also reads its first twelve initiatives ahead, so opening one from Work is fast too. A restart starts empty.
|
|
512
|
+
- **Pages open from their last answer**: Today, Work and an initiative show the answer PMOS read last, while nothing changed since, and PMOS reads them again quietly when it is not busy. A change you, the chat or an agent make shows on the next open, also when it is written outside PMOS (PMOS watches the planning and pmos folders): the change makes every kept answer too old, and PMOS reads the newest pages again about a second later. Work also reads its first twelve initiatives ahead, so opening one from Work is fast too. A restart starts empty. While PMOS reads the initiative rows again, Work asks every 2 s only whether the new rows are there, and reads the whole board once, when they are.
|
|
513
513
|
- **Fresh answers, asked once**: when two parts of a page ask for the same thing at the same moment, the server is asked once and both get the same answer. Nothing is kept after it arrives, so the next look always reads again.
|
|
514
514
|
- **Last view while Today reads**: Today shows the list from your last visit at once, with a hollow ring next to "Good morning". You can read that list, but you cannot use it until the new read is in. Then the ring goes away. Before a section has data, it shows grey shapes with no names and no counts. Each section fills in when its own data arrives. If the Viewer was open on your last visit, its space stays empty, so the chat does not change width. Adler's face next to the greeting thinks while Today reads, and changes to handled when the read is in. If the read fails, it changes to honest.
|
|
515
515
|
- **Work while it reads**: the toolbar and the tabs show at once, with grey rows below them. If the read takes more than 2 seconds, the line "Still reading the board." shows. There is no progress bar and no percent.
|
|
@@ -62,6 +62,19 @@ module.exports = {
|
|
|
62
62
|
handle: async (req, res, url, ctx) => {
|
|
63
63
|
if (url.pathname === '/api/board-metrics-premium') return metrics(req, res, url, ctx);
|
|
64
64
|
if (url.pathname === '/api/board-pack') return require('./board-pack-route.js').handle(req, res, url, ctx); // the data pack of a published board (board-publish), made from this route's own answer
|
|
65
|
+
/* GET /api/board-premium/stale?ws=<id>[,<id>] → { ok, stale } whether the rows of those workspaces (every one when none is named) are
|
|
66
|
+
* still derived again. Work asks this while its answer says `stale`, and reads the whole board again only when it says false: the board
|
|
67
|
+
* read takes a second or more, the check a few milliseconds (page-open-200ms). It starts a derivation when the rows are old and none runs. */
|
|
68
|
+
if (url.pathname === '/api/board-premium/stale') {
|
|
69
|
+
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
70
|
+
const want = String(url.searchParams.get('ws') || '').split(',').filter(Boolean);
|
|
71
|
+
const one = (id) => { try { return ctx.getWs ? ctx.getWs(id) : null; } catch { return null; } };
|
|
72
|
+
const list = (want.length ? want.map(one) : ctx.workspaceList ? ctx.workspaceList() : []).filter((w) => w && w.root);
|
|
73
|
+
let stale = false;
|
|
74
|
+
for (const w of list) { try { const r = Rows.rowsFor(w.root); if (r && (r.pending || r.stale)) stale = true; } catch { /* unreadable rows are not a derivation */ } }
|
|
75
|
+
ctx.json(res, { ok: true, stale });
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
65
78
|
if (url.pathname !== '/api/board-premium') return false;
|
|
66
79
|
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
67
80
|
const fail = (error) => { ctx.json(res, { ok: false, state: 'error', error: String(error).slice(0, 240) }, 500); return true; };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.847.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.847.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -1562,9 +1562,21 @@ async function load() {
|
|
|
1562
1562
|
RFA.refresh($('#cRoadFor'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1563
1563
|
CMAP.mount($('#cCode'), { ws: M.board.ws || null, single: !ALL });
|
|
1564
1564
|
focusOnce(); taskOnce(); programOnce(); newOnce(); loadOthers(); loadWorkflows();
|
|
1565
|
-
if (r.stale)
|
|
1565
|
+
if (r.stale) settle(); // the rows are still derived again: the board is read again once they land
|
|
1566
1566
|
else { loadTrail(); loadGrill(); }
|
|
1567
1567
|
}
|
|
1568
|
+
/* While the answer says `stale`, ask only whether the rows landed (GET /api/board-premium/stale, a few ms) every 2 s, and read the whole
|
|
1569
|
+
* board (a second or more of the server's one thread) once, when they did. A derivation is given up on after 3 minutes, as the server does. */
|
|
1570
|
+
let settleTimer = null;
|
|
1571
|
+
function settle(t0 = Date.now()) {
|
|
1572
|
+
clearTimeout(settleTimer);
|
|
1573
|
+
const ws = (M && M.board && M.board.all ? (M.board.products || []).map((x) => x.ws) : [M && M.board && M.board.ws]).filter(Boolean);
|
|
1574
|
+
settleTimer = setTimeout(async () => {
|
|
1575
|
+
let r = null;
|
|
1576
|
+
try { r = await pmGet('/api/board-premium/stale' + (ws.length ? '?ws=' + encodeURIComponent(ws.join(',')) : '')); } catch { r = null; }
|
|
1577
|
+
if (r && r.ok && r.stale && Date.now() - t0 < 180000) settle(t0); else load();
|
|
1578
|
+
}, 2000);
|
|
1579
|
+
}
|
|
1568
1580
|
/** What PMOS changed by itself in the last 24 h, per product on this Board (pm/changed-mark.js, bet A456): read after each read of the board,
|
|
1569
1581
|
* at most once a minute per product; a press of a row's Undo reads the board again. */
|
|
1570
1582
|
function readChanges() {
|