create-pmos 0.577.0 → 0.579.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 +27 -27
- 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 +26 -0
- package/workspace/guide/agent-capabilities.md +11 -1
- package/workspace/guide/cli.md +9 -0
- package/workspace/guide/settings-and-switches.md +3 -0
- package/workspace/lib/bg-queue.js +17 -2
- package/workspace/lib/grill-cli.js +10 -1
- package/workspace/lib/headless.js +10 -2
- package/workspace/lib/improve-cli.js +69 -0
- package/workspace/lib/improve-loop.js +453 -0
- package/workspace/lib/improve-runs.js +219 -0
- package/workspace/lib/job-graph.js +9 -0
- package/workspace/lib/lab-present.js +24 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/routes-autonomy.js +7 -2
- package/workspace/lib/routes-lab.js +12 -0
- package/workspace/lib/settings-store.js +3 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-lab.js +9 -3
- package/workspace/public/pm/cozy-present.css +33 -0
- package/workspace/public/pm/cozy-present.js +74 -0
- package/workspace/public/premium-present.html +21 -0
- package/workspace/run-tests.js +27 -3
- package/workspace/server.js +16 -1
- package/workspace/test-lists/improve-loop-engine.json +11 -0
- package/workspace/test-lists/live-round-present.json +7 -0
package/workspace/server.js
CHANGED
|
@@ -3125,6 +3125,20 @@ const verifyRuns = require('./lib/verify-runs.js').create({
|
|
|
3125
3125
|
warn: (what, e) => warnWriteFail(what, e),
|
|
3126
3126
|
});
|
|
3127
3127
|
const verifyTick = () => { try { verifyRuns.tick({}); } catch (e) { warnWriteFail('verify tick', e); } };
|
|
3128
|
+
// improve-loop-engine (Wawan 2026-11-17 "Ok build"): the self-improvement loop in every product (lib/improve-runs.js). bg-queue step 5, so it
|
|
3129
|
+
// runs only while the PM is away; one headless run at a time; its only writes are a curated-memory lesson with Undo or a class C ✦. A PMOS
|
|
3130
|
+
// checkout is skipped: PMOS itself runs the same loop through scripts/improve.js and a cloud trigger. Off with `pmos ai off improve`.
|
|
3131
|
+
const improveRuns = require('./lib/improve-runs.js').create({
|
|
3132
|
+
roots: () => [...workspaces.values()].map((w) => ({ id: w.id, root: w.root })),
|
|
3133
|
+
stateDirFor: (r) => { const w = workspaces.get(r.id); return w ? stateDirFor(w) : null; },
|
|
3134
|
+
selfRoot: () => (require('./lib/improve-runs.js').isSelf(SELF_ROOT) ? SELF_ROOT : null),
|
|
3135
|
+
quota: () => orchQuota.read(STATE),
|
|
3136
|
+
env: process.env,
|
|
3137
|
+
spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, extraEnv: spec.env, autoDelete: undefined }),
|
|
3138
|
+
stop: (s) => { if (s && s.child) stopHeadless(s); },
|
|
3139
|
+
warn: (what, e) => warnWriteFail(what, e),
|
|
3140
|
+
});
|
|
3141
|
+
const improveTick = () => { try { improveRuns.tick({}); } catch (e) { warnWriteFail('improve tick', e); } };
|
|
3128
3142
|
// weekly-drift-check (What would I have missed): each Monday the server reads every open product's records for quiet drift (lib/drift-runs.js).
|
|
3129
3143
|
// Structured signals only, no session and no model. Its only write is the person's own ledger <runtime>/drift/drift.jsonl, through the shared
|
|
3130
3144
|
// guard (lib/ai-guard.js). Off with PMOS_DRIFT=off or `pmos ai off drift`. Nothing is sent.
|
|
@@ -3342,6 +3356,7 @@ bgQueue.register('grill', () => grillTick());
|
|
|
3342
3356
|
bgQueue.register('metric-drafts', () => metricDraftTick());
|
|
3343
3357
|
bgQueue.register('impact', () => impactTick());
|
|
3344
3358
|
bgQueue.register('verify', () => verifyTick());
|
|
3359
|
+
bgQueue.register('improve', () => improveTick());
|
|
3345
3360
|
bgQueue.register('metric-reads', () => metricReadTick());
|
|
3346
3361
|
bgQueue.register('forecast', () => forecastTick());
|
|
3347
3362
|
bgQueue.register('report-design', () => reportDesignTick());
|
|
@@ -7196,7 +7211,7 @@ async function handleRequest(req, res) {
|
|
|
7196
7211
|
res.writeHead(302, { Location: '/premium.html?onboard=1', 'Cache-Control': 'no-store' });
|
|
7197
7212
|
return res.end();
|
|
7198
7213
|
}
|
|
7199
|
-
const PAGES = { '/': 'premium.html', '/index.html': 'premium.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html' };
|
|
7214
|
+
const PAGES = { '/': 'premium.html', '/index.html': 'premium.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
|
|
7200
7215
|
const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
|
|
7201
7216
|
if (page) {
|
|
7202
7217
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "improve-loop-engine (done test IL1-IL10): the self-improvement loop's pure engine (lib/improve-loop.js) and the workspace job `improve` (lib/improve-runs.js). Scratch folders; no model runs.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"improve-loop.test.js",
|
|
5
|
+
"improve-runs.test.js"
|
|
6
|
+
],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"improve-loop.test.js": 1,
|
|
9
|
+
"improve-runs.test.js": 2
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Live round W3, initiative live-round-present: present mode. lib/lab-present.js presentOf, GET /api/lab/present, the /pm/present page (premium-present.html, pm/cozy-present.js) and the compare view's present press. Backend and source reads only.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"idle-lab-present.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": { "idle-lab-present.test.js": 1 }
|
|
7
|
+
}
|