create-pmos 0.538.0 → 0.540.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.
Files changed (53) hide show
  1. package/package.json +39 -39
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/changelog.json +38 -0
  7. package/workspace/guide/agent-capabilities.md +9 -5
  8. package/workspace/guide/agents-act.md +68 -0
  9. package/workspace/guide/index.md +2 -1
  10. package/workspace/guide/initiative-driver.md +16 -7
  11. package/workspace/guide/settings.md +1 -1
  12. package/workspace/guide/today.md +8 -4
  13. package/workspace/guide/workflows.md +14 -12
  14. package/workspace/ini-workflow-test.js +1 -1
  15. package/workspace/lib/agent-inbox.js +2 -2
  16. package/workspace/lib/ai-cli.js +12 -1
  17. package/workspace/lib/ai-guard.js +16 -6
  18. package/workspace/lib/auto-keep.js +33 -0
  19. package/workspace/lib/autonomy-cli.js +53 -0
  20. package/workspace/lib/autonomy.js +234 -0
  21. package/workspace/lib/bg-queue.js +2 -1
  22. package/workspace/lib/driver-cli.js +26 -10
  23. package/workspace/lib/driver-decide.js +76 -8
  24. package/workspace/lib/driver.js +15 -4
  25. package/workspace/lib/goal-loop.js +221 -0
  26. package/workspace/lib/headless.js +75 -1
  27. package/workspace/lib/job-graph.js +5 -0
  28. package/workspace/lib/loop-cli.js +84 -0
  29. package/workspace/lib/pm-lines-needs.js +3 -0
  30. package/workspace/lib/pmos-verbs.js +6 -1
  31. package/workspace/lib/route-modules.js +1 -0
  32. package/workspace/lib/routes-autonomy.js +95 -0
  33. package/workspace/lib/routes-proposals.js +101 -46
  34. package/workspace/lib/run-tokens.js +70 -0
  35. package/workspace/lib/stage-tools.js +11 -1
  36. package/workspace/lib/today-cli.js +57 -4
  37. package/workspace/lib/today.js +2 -8
  38. package/workspace/package-lock.json +2 -2
  39. package/workspace/package.json +1 -1
  40. package/workspace/public/pm/cozy-news.js +1 -1
  41. package/workspace/public/pm/cozy-onboard.js +2 -2
  42. package/workspace/public/pm/cozy-settings.js +42 -11
  43. package/workspace/public/pm/home-app.js +10 -1
  44. package/workspace/public/pm/home-around.js +2 -2
  45. package/workspace/public/pm/ini-wf.js +3 -3
  46. package/workspace/public/pm/wf-page.css +26 -15
  47. package/workspace/public/pm/wf-page.js +96 -72
  48. package/workspace/public/premium-workflows.html +8 -23
  49. package/workspace/replaced-tests.json +17 -0
  50. package/workspace/server.js +33 -16
  51. package/workspace/test-lists/full-autonomy.json +11 -0
  52. package/workspace/test-run.js +3 -0
  53. package/workspace/workflows-setup-test.js +50 -50
@@ -77,12 +77,12 @@ export async function openPicker(anchor, ui, id) {
77
77
  openSwitch(anchor, ui, id, k);
78
78
  }, { menu: true, label: 'Pick a workflow', role: 'listbox' });
79
79
  }
80
- /** New workflow…: the PM describes it in the chat and PMOS drafts it in the Viewer (wfRules), on the Workflows page (premium-workflows.html ?new=1). */
80
+ /** New workflow…: the PM describes it in Home's chat, scoped "New workflow", and PMOS drafts it (wfRules); the draft waits in Settings ›
81
+ * Workspaces › Workflows (UI grill U1: no Workflows page, no second chat). */
81
82
  function newWorkflow(ui, id) {
82
83
  const ev = new CustomEvent('pmos:wf-new', { cancelable: true, detail: { initiative: id } });
83
84
  if (!window.dispatchEvent(ev)) return;
84
- const ws = new URLSearchParams(location.search).get('ws');
85
- location.href = '/premium-workflows.html?new=1' + (ws ? '&ws=' + encodeURIComponent(ws) : '');
85
+ import('./wf-page.js').then((M) => M.newWorkflowChat()).catch(() => {});
86
86
  }
87
87
 
88
88
  /* ── switch to another workflow (WfAChange; A's bridge, WmB) ── */
@@ -1,6 +1,23 @@
1
1
  /* pm/wf-page.css — Settings › Workflows (canvas WfAModel, WfAStage, WfACond, WfARemove, WfANew, WfADraft). Token vars only (cozy.css).
2
- * The desk is Home's (cozy-home.css .hm-desk): the list well, the main column (the workflow or the New workflow chat), the Viewer. */
3
- body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans); color: var(--cz-ink); background: var(--cz-well2); }
2
+ * A sub-panel of the Settings dialog (UI grill U1): the list well, the main column (the workflow, or the New workflow draft), the Viewer
3
+ * docked beside it. pm/wf-page.js loads this sheet when the panel first mounts. */
4
+ .wf-in { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; font-family: var(--cz-sans); color: var(--cz-ink); }
5
+ .wf-desk { flex: 1; min-width: 0; min-height: 0; display: flex; gap: 18px; position: relative; }
6
+ .wf-list { box-sizing: border-box; flex: 0 0 248px; width: 248px; background: var(--cz-well); border-radius: 22px; padding: 12px 10px 16px; min-height: 0; display: flex; flex-direction: column; }
7
+ .wf-vw { flex: none; display: flex; min-height: 0; }
8
+ .wf-vw:empty { display: none; }
9
+ /* narrow: the Viewer lies over the workflow and the list stays (cozy-viewer.js body.cz-vw-over) */
10
+ body.cz-vw-over .wf-in .wf-vw { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; }
11
+ body.cz-vw-over .wf-in .wf-vw .cz-vw { box-shadow: var(--cz-vlift); }
12
+ /* Settings on Workflows takes the window: the list, three columns and a stage beside them do not fit 920 px */
13
+ .ev-st.ev-wide { width: calc(100vw - 32px); height: calc(100vh - 32px); }
14
+ .ev-st.ev-wide .ev-st-main { padding-bottom: 18px; }
15
+ /* the sections give way to the workflow and its stage (‹ goes back to Workspaces, the title says where); on a phone they stay a row */
16
+ @media (min-width: 761px) { .ev-st.ev-wide .ev-st-nav { display: none; } }
17
+ .ev-st .ev-wfh { flex: 1; min-width: 0; min-height: 0; display: flex; }
18
+ .wf-in .wf-list .lhead h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the sub-panel's head names it once */
19
+ .wf-in .wf-list .lhead { justify-content: flex-end; padding-bottom: 4px; }
20
+ .wf-newb { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
4
21
  .wf-page button { font-family: var(--cz-sans); }
5
22
  .wf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
6
23
  .wf-small { font-size: var(--fs-meta); line-height: 1.45; }
@@ -131,12 +148,7 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
131
148
  .wf-trow .wf-pill { margin-top: 3px; }
132
149
  .wf-dacts { margin-top: auto; padding-top: 12px; }
133
150
 
134
- /* ── the chat of New workflow (Home's chat, cozy-home.css) ── */
135
- .wf-chatw { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
136
- .wf-chatw[hidden] { display: none; }
137
- .wf-chatw .hm-chat { flex: 1; }
138
- .wf-chatw .hm-chip { flex: none; } /* "In: New workflow" stays whole; the Enter hint gives way first */
139
- .wf-hint { text-align: center; padding: 6px 0 0; }
151
+ .wf-hint { padding: 12px 10px 0; margin-top: auto; }
140
152
 
141
153
  /* ── remove a stage in use (WfARemove), the menu, the toast ── */
142
154
  .wf-scrim { position: fixed; inset: 0; background: rgba(20,22,26,.28); z-index: 80; }
@@ -145,7 +157,7 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
145
157
  .wf-mv { display: flex; align-items: center; gap: 10px; }
146
158
  .wf-mv b { flex: 1; }
147
159
  .wf-mvl { display: flex; flex-direction: column; gap: 8px; }
148
- .wf-menu { position: fixed; z-index: 90; min-width: 180px; background: var(--cz-card); border-radius: 14px; box-shadow: var(--cz-sheet); padding: 6px; display: flex; flex-direction: column; }
160
+ .wf-menu { position: fixed; z-index: 96; min-width: 180px; background: var(--cz-card); border-radius: 14px; box-shadow: var(--cz-sheet); padding: 6px; display: flex; flex-direction: column; }
149
161
  .wf-menu button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 10px; font: var(--fw-strong) var(--fs-row)/var(--lh-row) var(--cz-sans); color: var(--cz-ink); cursor: pointer; }
150
162
  .wf-menu button:hover, .wf-menu button:focus { background: var(--cz-well); outline: none; }
151
163
  .wf-menu button.danger { color: var(--cz-red); }
@@ -155,11 +167,11 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
155
167
 
156
168
  /* ── a phone: the list is the page; a workflow opens over it with ← (the columns stack) ── */
157
169
  @media (max-width: 760px) {
158
- body.wf-page { overflow: auto; background: var(--cz-card); }
159
- .wf-page .hm-desk { position: static; display: block; padding: 12px 16px 96px; background: none; box-shadow: none; border-radius: 0; }
160
- .wf-page .hm-list { display: flex; width: auto; padding: 12px 10px; }
161
- .wf-page.wf-open .hm-list { display: none; }
162
- .wf-page:not(.wf-open) .wf-main, .wf-page:not(.wf-open) .wf-chatw { display: none; }
170
+ .ev-st.ev-wide { width: 100vw; height: 100%; }
171
+ .wf-desk { display: block; }
172
+ .wf-list { width: auto; padding: 12px 10px; }
173
+ .wf-in.wf-open .wf-list { display: none; }
174
+ .wf-in:not(.wf-open) .wf-main { display: none; }
163
175
  .wf-main { padding: 0; overflow: visible; }
164
176
  .wf-cols { flex-direction: column; min-height: 0; }
165
177
  .wf-col.wf-end { flex: none; }
@@ -167,7 +179,6 @@ body.wf-page { min-height: 100vh; overflow: hidden; font-family: var(--cz-sans);
167
179
  .wf-head { flex-wrap: wrap; }
168
180
  .wf-head > .wf-small { flex-basis: 100%; order: 3; padding-left: 40px; }
169
181
  .wf-ren input { min-width: 0; width: 100%; }
170
- .wf-chatw { height: calc(100vh - 120px); }
171
182
  .wf-card, .wfl { min-height: 44px; }
172
183
  .wf-pill { max-width: 46%; }
173
184
  .wf-stage .wf-row { flex-wrap: wrap; }
@@ -1,23 +1,22 @@
1
1
  /* pm/wf-page.js — Settings › Workflows (initiative workflows per initiative, D99; canvas WfAModel, WfAStage, WfACond, WfARemove, WfANew,
2
- * WfADraft). One page, reached from Settings:
2
+ * WfADraft). A sub-panel of Settings › Workspaces (UI grill U1): pm/cozy-settings.js mounts it with mount(host) and lets it go with
3
+ * release(). The old page /premium-workflows.html redirects to Home with ?settings=workflows, which opens it there.
3
4
  * the list every workflow with its count of initiatives and +; Product feature first, archived ones last and quiet. The star on a row
4
5
  * (batch 24 item 3, canvas DfA) makes that workflow the default a new initiative starts on (POST /api/workflows/default)
5
6
  * the picked workflow one numbered list across the To do, In progress and Done columns; drag a stage to reorder it or to move it to
6
7
  * another column; Add a stage per column; the dashed Won't do · Archived column (in every workflow); ⋯ = Copy, Archive.
7
8
  * The name is the rename press (RnA*: tap it, one field with a check).
8
9
  * a stage opens in the Viewer (the docked, resizable side panel): pm/wf-stage.js
9
- * + New workflow: the normal chat, scoped "New workflow". The PM describes the work; PMOS drafts it (skill workflow-setup,
10
- * `pmos workflow draft`) and the draft shows in the Viewer with Create workflow and Edit by hand. "Start blank" and
11
- * "from a copy" sit under the box.
10
+ * + New workflow: Home's own chat, scoped "New workflow" (newWorkflowChat(); no second chat column). The PM describes the
11
+ * work; PMOS drafts it (skill workflow-setup, `pmos workflow draft`). The draft waits here as the "New workflow · draft"
12
+ * row: it shows in the Viewer with Create workflow and Edit by hand. "Start blank" and "from a copy" sit under the list.
12
13
  * the bridge (batch 20 item 3, canvas WmB right) a workflow that replaces another (its saved bridge, or it began as a copy) shows
13
14
  * "Replaces <name>": each old stage with a picker of this workflow's stages, Claude's proposal until the PM changes one. A change
14
15
  * saves at once (POST /api/workflows/bridge); every later switch from the old workflow uses it.
15
16
  * Reads GET /api/workflows and GET /api/workflows/draft. Every write is the PM's press: POST /api/workflows/save | copy | archive | draft.
16
17
  * Product feature ships with PMOS and is read-only here: Copy makes an editable one. */
17
- import { pmGet, pmPost, pmHeaders } from './http.js';
18
+ import { pmGet, pmPost } from './http.js';
18
19
  import { esc, svg, ICON, wsParam, wsQ } from './cozy-evui.js';
19
- import { mountNav } from './cozy-nav.js';
20
- import { mountLivePill } from './cozy-live-pill.js';
21
20
  import * as VW from './cozy-viewer.js';
22
21
  import { CATS, wfIcon, PRODUCT_FEATURE_ID } from './wf-model.js';
23
22
  import * as E from './wf-edit.js';
@@ -33,7 +32,7 @@ const store = { get(k) { try { return localStorage.getItem(k); } catch { return
33
32
  const DRAG = 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01', PLUS = 'M12 5v14M5 12h14', BRANCH = ICON.branch, OK = 'M5 12l5 5 9-10';
34
33
 
35
34
  /* S.list: [wf + { count }] | null while reading; S.sel: the picked id, 'new' for New workflow; S.edit: a draft opened by hand (not saved yet) */
36
- const S = { list: null, sel: null, draft: null, edit: null, err: '', msg: '', renaming: false, renErr: '', busy: false, pop: null, chat: null, poll: 0, phoneOpen: false };
35
+ const S = { list: null, sel: null, draft: null, edit: null, err: '', msg: '', renaming: false, renErr: '', busy: false, pop: null, poll: 0, phoneOpen: false, want: null };
37
36
  const wfOf = (id) => (S.edit && id === S.edit.id ? S.edit : (S.list || []).find((w) => w.id === id) || null);
38
37
  const cur = () => (S.sel && S.sel !== 'new' ? wfOf(S.sel) : null);
39
38
  /** A New workflow chat is still going (its key is kept until Create), or PMOS has drafted one. */
@@ -53,12 +52,13 @@ async function load() {
53
52
  const r = await pmGet('/api/workflows' + wsQ());
54
53
  if (r && r.ok && Array.isArray(r.workflows)) { S.list = r.workflows; S.err = ''; }
55
54
  else { S.list = S.list || []; S.err = (r && r.error) || 'The workflows could not be read.'; }
56
- const want = new URLSearchParams(location.search).get('wf');
57
- if (!S.sel || (S.sel !== 'new' && !wfOf(S.sel))) S.sel = want && wfOf(want) ? want : (S.list[0] && S.list[0].id) || null;
55
+ // mount(host, { wf, stage }) or the address (?wf=, ?stage=): that workflow is picked, and that stage opens once, on the first read
56
+ const W = S.want || {}, want = W.wf;
57
+ if (want && wfOf(want)) S.sel = want;
58
+ else if (!S.sel || (S.sel !== 'new' && !wfOf(S.sel))) S.sel = (S.list[0] && S.list[0].id) || null;
58
59
  draw();
59
- // ?stage=<key> (the Board's "Add an exit step", XipB): that stage opens once, on the first read
60
- const stage = new URLSearchParams(location.search).get('stage');
61
- if (stage && !S.stageOpened && S.sel === want) { S.stageOpened = true; openKey(stage); }
60
+ S.want = null;
61
+ if (W.stage && S.sel === want) openKey(W.stage); // the Board's "Add an exit step" (XipB)
62
62
  }
63
63
  async function readDraft() {
64
64
  const r = await pmGet('/api/workflows/draft' + wsQ());
@@ -66,7 +66,7 @@ async function readDraft() {
66
66
  const was = JSON.stringify(S.draft), now = JSON.stringify(d);
67
67
  S.draft = d;
68
68
  if (was !== now && S.sel !== 'new') drawList(); // the draft row's name follows the draft
69
- if (was !== now && S.sel === 'new') { drawList(); if (d) showDraft(); else if (VW.current() && VW.current().id === 'wf-draft') VW.close(); }
69
+ if (was !== now && S.sel === 'new') { draw(); if (d) showDraft(); else if (VW.current() && VW.current().id === 'wf-draft') VW.close(); }
70
70
  }
71
71
 
72
72
  /* ── the list (WfAModel's left column) ── */
@@ -91,7 +91,9 @@ function drawList() {
91
91
  const newRow = onNew || draftLive() ? `<button type="button" class="wfl${onNew ? ' sel' : ''}" data-wf="new"${onNew ? ' aria-current="true"' : ''}><span class="wfi new" aria-hidden="true">${svg(PLUS, 14)}</span><span class="t">${esc((S.draft && S.draft.name) || 'New workflow')}</span><span class="n">draft</span></button>` : '';
92
92
  el.innerHTML = `<div class="lhead"><h2>Workflows</h2><button type="button" class="ib sm" data-wf-new aria-label="New workflow: describe it and PMOS drafts it" title="New workflow: describe it and PMOS drafts it">${svg(PLUS, 16)}</button></div>`
93
93
  + (L === null ? '<p class="wf-mut wf-small wf-pad">Reading the workflows.</p>' : on.map(rowHtml).join('') + newRow
94
- + (off.length ? `<p class="wf-sub">Archived</p>${off.map(rowHtml).join('')}` : ''));
94
+ + (off.length ? `<p class="wf-sub">Archived</p>${off.map(rowHtml).join('')}` : '')
95
+ // + describes it to Claude in the chat; these two start one without a conversation (WfANew's "start blank or from a copy")
96
+ + '<p class="wf-hint wf-small wf-mut">Or start one <button type="button" class="wf-link" data-wf-blank>blank</button> or <button type="button" class="wf-link" data-wf-fromcopy aria-haspopup="menu">from a copy</button>.</p>');
95
97
  }
96
98
 
97
99
  /* ── the picked workflow (WfAModel) ── */
@@ -154,14 +156,9 @@ async function saveBridge(wf, key, to) {
154
156
  await load();
155
157
  }
156
158
  function drawMain() {
157
- const m = $('#wfMain'), c = $('#wfChat'); if (!m) return;
158
- const isNew = S.sel === 'new';
159
- m.hidden = isNew; c.hidden = !isNew;
160
- // the draft sits beside the chat (WfADraft); a stage's panel lies over the columns and the list stays (WfAStage)
161
- // beside the chat, a narrow desk folds the list to a rail rather than laying the draft over the chat (bug 2026-10-25: the chat was a sliver)
162
- const host = $('#wfVwHost'); if (host) { host.toggleAttribute('data-cz-viewer-host', isNew); host.toggleAttribute('data-cz-vw-overlay', !isNew); }
163
- document.body.classList.toggle('wf-open', !!S.sel && (S.phoneOpen || !isPhone()));
164
- if (isNew) return;
159
+ const m = $('#wfMain'); if (!m) return;
160
+ const R = $('#wfRoot'); if (R) R.classList.toggle('wf-open', !!S.sel && (S.phoneOpen || !isPhone()));
161
+ if (S.sel === 'new') { m.innerHTML = newHtml(); return; }
165
162
  const wf = cur();
166
163
  if (S.list === null) { m.innerHTML = '<p class="wf-mut">Reading the workflows.</p>'; return; }
167
164
  if (!wf) { m.innerHTML = `<div class="wf-box">${S.err ? `<p class="wf-err">${esc(S.err)}</p>` : ''}<p>No workflow yet. Press + to describe one, and PMOS drafts it.</p><button type="button" class="wf-btn dark sm" data-wf-new>New workflow</button></div>`; return; }
@@ -282,42 +279,45 @@ function stageCtx() {
282
279
  }
283
280
  function openKey(key, o = {}) { const wf = cur(); if (wf) openStage(wf, key, o); }
284
281
 
285
- /* ── New workflow (WfANew, WfADraft) ── */
286
- async function startNew() {
287
- S.sel = 'new'; S.edit = null; S.phoneOpen = true; VW.close();
288
- draw();
282
+ /* ── New workflow (WfANew, WfADraft): Home's own chat, scoped "New workflow" (UI grill U1: no second chat column) ── */
283
+ const NEW_ICON = 'M6 3v12M18 9a3 3 0 1 0 0-6a3 3 0 1 0 0 6M6 21a3 3 0 1 0 0-6a3 3 0 1 0 0 6M18 9a9 9 0 0 1-9 9';
284
+ /** What Home's chat opens on: the conversation's key (kept until Create, so the PM comes back to the same one), its scope and context. */
285
+ export function newWorkflowTopic() {
289
286
  let key = store.get(CHAT_KEY);
290
287
  if (!key) { key = 'pop:workflow:new-' + Date.now().toString(36); store.set(CHAT_KEY, key); }
291
- const chat = await mountWfChat();
292
- chat.open({
293
- key, title: 'New workflow', scope: { text: 'New workflow', icon: 'flow' }, role: { name: 'Claude', initial: 'C' },
294
- context: { title: 'New workflow', subject: 'Settings › Workflows', say: 'The PM is describing a new workflow. Follow the workflow-setup skill: draft it with pmos workflow draft, and explain each choice in the chat.' },
295
- intro: { role: { name: 'Claude', initial: 'C' }, text: 'Tell me how this work goes, in your own words: who does what, in what order, and what has to be true before each step. Add a policy or an old checklist if you have one. I will draft the stages and show them beside the chat.' },
296
- });
297
- hint();
298
- await readDraft();
299
- if (S.draft) showDraft();
300
- clearInterval(S.poll); S.poll = setInterval(() => { if (S.sel === 'new' && !document.hidden) readDraft(); }, 3000);
301
- }
302
- /** "You can also start blank or from a copy." under the box (WfANew). */
303
- function hint() {
304
- const c = $('#wfChat'); if (!c) return;
305
- let h = c.querySelector('.wf-hint');
306
- if (!h) { h = document.createElement('p'); h.className = 'wf-hint wf-small wf-mut'; c.appendChild(h); }
307
- h.innerHTML = 'You can also start <button type="button" class="wf-link" data-wf-blank>blank</button> or <button type="button" class="wf-link" data-wf-fromcopy aria-haspopup="menu">from a copy</button>.';
308
- }
309
- let chatMod = null;
310
- async function mountWfChat() {
311
- if (S.chat) return S.chat;
312
- chatMod = chatMod || await import('./home-chat.js');
313
- const noop = () => {};
314
- S.chat = chatMod.mountChat($('#wfChatIn'), {
315
- esc, toast: (t) => toast(t), pmGet, pmPost, pressHeaders: () => { const h = pmHeaders(); delete h['Content-Type']; return h; },
316
- roles: () => [], seen: () => null, markSeen: noop, session: () => null, queued: () => [], queue: noop, unqueue: noop,
317
- onScope: noop, suggestLink: () => null, linkTo: noop, dismissLink: noop, onLink: noop, onTo: noop, workItem: noop, openTerminal: noop,
318
- viewerClosed: () => !VW.isOpen() && !isPhone(), desk: () => !isPhone(), reopenViewer: () => { if (S.draft) showDraft(); }, head: () => '',
319
- });
320
- return S.chat;
288
+ return {
289
+ key, title: 'New workflow', scope: { text: 'New workflow', icon: NEW_ICON },
290
+ context: 'The PM is describing a new workflow (Settings › Workflows' + (wsParam() ? ', workspace ' + wsParam() : '') + '). Follow the workflow-setup skill: draft it with pmos workflow draft, and explain each choice in the chat. '
291
+ + 'The draft waits in Settings › Workspaces › Workflows as the "New workflow · draft" row, with Create workflow and Edit by hand: say so once it is written. Never create the workflow yourself: the PM does.',
292
+ intro: 'Tell me how this work goes, in your own words: who does what, in what order, and what has to be true before each step. Add a policy or an old checklist if you have one. I will draft the stages and it waits in Settings › Workflows for you to create.',
293
+ placeholder: 'How does this work go?',
294
+ };
295
+ }
296
+ /** + : Home's chat opens on the New workflow conversation. On Home it opens in place (pmos-chat-about); another page goes to Home, and
297
+ * the conversation's context waits in sessionStorage for Home to read (the report chat's way, premium-report-read.js openChat). */
298
+ export function newWorkflowChat(o = {}) {
299
+ const t = newWorkflowTopic();
300
+ if (o.close) o.close();
301
+ if (!dispatchEvent(new CustomEvent('pmos-chat-about', { detail: t, cancelable: true }))) return t; // Home took it
302
+ try { sessionStorage.setItem('pmos-chat-about', JSON.stringify(t)); } catch { /* Home opens the chat with no context */ }
303
+ const q = new URLSearchParams({ about: t.key, label: t.title }); if (wsParam()) q.set('ws', wsParam());
304
+ location.href = '/premium.html?' + q.toString();
305
+ return t;
306
+ }
307
+ let HOST = { close: null };
308
+ function startNew() { S.edit = null; clearInterval(S.poll); newWorkflowChat({ close: HOST.close }); }
309
+ /** The draft row picked: the draft in the Viewer, and here the way back to its chat, or a start without one. */
310
+ function openNew() {
311
+ S.sel = 'new'; S.edit = null; S.phoneOpen = true; S.renaming = false; S.msg = '';
312
+ draw();
313
+ readDraft().then(() => { if (S.draft) showDraft(); });
314
+ clearInterval(S.poll); S.poll = setInterval(() => { if (S.sel === 'new' && !document.hidden && $('#wfMain')) readDraft(); }, 3000);
315
+ }
316
+ function newHtml() {
317
+ const d = S.draft, n = d && d.stages ? d.stages.length : 0;
318
+ const head = `<div class="wf-head">${isPhone() ? `<button type="button" class="ib sm" data-wf-back aria-label="All workflows" title="All workflows">${svg(ICON.back, 18)}</button>` : ''}<h1 class="wf-h1">${esc((d && d.name) || 'New workflow')}</h1>${d ? `<span class="wf-small wf-mut">${n} stage${n === 1 ? '' : 's'} · a draft</span>` : ''}</div>`;
319
+ return head + `<div class="wf-box wf-small wf-newb"><p>${d ? 'Claude drafted it in the chat. It shows in the Viewer: Create workflow, or Edit by hand.' : 'Claude drafts it in the chat while you describe it. The draft shows here.'}</p>`
320
+ + '<div class="wf-acts"><button type="button" class="wf-btn dark sm" data-wf-new>Continue in the chat</button></div></div>';
321
321
  }
322
322
  function draftHtml(d) {
323
323
  const st = d.stages || [];
@@ -389,7 +389,6 @@ function select(id) {
389
389
  S.sel = id; S.renaming = false; S.msg = ''; S.phoneOpen = true;
390
390
  if (S.edit && id !== S.edit.id) S.edit = null;
391
391
  VW.close();
392
- const u = new URL(location.href); if (id && id !== 'new') u.searchParams.set('wf', id); else u.searchParams.delete('wf'); VW.replaceUrl(u.pathname + u.search);
393
392
  draw();
394
393
  }
395
394
 
@@ -414,10 +413,12 @@ function bindDrag(main) {
414
413
  function bind() {
415
414
  $('#wfList').addEventListener('click', (e) => {
416
415
  if (e.target.closest('[data-wf-new]')) { startNew(); return; }
416
+ if (e.target.closest('[data-wf-blank]')) { startBlank(); return; }
417
+ const fc = e.target.closest('[data-wf-fromcopy]'); if (fc) { menu(fc, (S.list || []).filter((w) => !w.archived).map((w) => ({ label: w.name, go: () => copy(w) }))); return; }
417
418
  const star = e.target.closest('[data-wf-star]'); if (star) { makeDefault(star.dataset.wfStar); return; }
418
419
  const row = e.target.closest('.wfl');
419
420
  const b = e.target.closest('[data-wf]') || (row && row.querySelector('[data-wf]')); if (!b) return;
420
- if (b.dataset.wf === 'new') { if (S.sel !== 'new') startNew(); return; } // back to the live draft: its chat and draft viewer
421
+ if (b.dataset.wf === 'new') { if (S.sel !== 'new') openNew(); return; } // the live draft: in the Viewer, and the way back to its chat
421
422
  select(b.dataset.wf);
422
423
  });
423
424
  const main = $('#wfMain');
@@ -439,25 +440,48 @@ function bind() {
439
440
  main.addEventListener('change', (e) => { const k = e.target.dataset && e.target.dataset.wfBr; const wf = cur(); if (k && wf) saveBridge(wf, k, e.target.value); });
440
441
  main.addEventListener('submit', (e) => { if (e.target.closest('[data-wf-ren]')) { e.preventDefault(); const i = $('#wfName'); const wf = cur(); if (wf && i) rename(wf, i.value); } });
441
442
  main.addEventListener('keydown', (e) => { if (e.key === 'Escape' && e.target.closest('[data-wf-ren]')) { e.preventDefault(); e.stopPropagation(); S.renaming = false; S.renErr = ''; drawMain(); const b = main.querySelector('[data-wf-rn]'); if (b) b.focus(); } });
442
- $('#wfChat').addEventListener('click', (e) => {
443
- if (e.target.closest('[data-wf-blank]')) { startBlank(); return; }
444
- const c = e.target.closest('[data-wf-fromcopy]');
445
- if (c) menu(c, (S.list || []).filter((w) => !w.archived).map((w) => ({ label: w.name, go: () => copy(w) })));
446
- });
447
443
  $('#wfPop').addEventListener('click', (e) => { if (e.target.closest('[data-wf-moverm]')) moveAndRemove(); else if (e.target.closest('[data-wf-popx]')) { S.pop = null; drawPop(); } });
448
444
  $('#wfPop').addEventListener('keydown', (e) => { if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); S.pop = null; drawPop(); } });
449
445
  $('#wfScrim').addEventListener('click', () => { S.pop = null; drawPop(); });
450
- addEventListener('resize', () => drawMain());
446
+ addEventListener('resize', () => { if ($('#wfMain')) drawMain(); });
451
447
  }
452
448
 
453
- export function boot() {
454
- mountNav('settings');
455
- mountLivePill();
449
+ /* ── the panel: Settings mounts it in its own dialog ── */
450
+ const SKELETON = '<div class="wf-desk" id="wfDesk"><aside class="wf-list" id="wfList" aria-label="Workflows"></aside><section class="wf-main" id="wfMain" aria-label="Workflow"></section><div class="wf-vw" id="wfVwHost"></div></div>'
451
+ + '<div class="wf-scrim" id="wfScrim" hidden></div><div class="wf-pop" id="wfPop" role="dialog" aria-modal="true" hidden></div><div class="wf-toast" id="wfToast" role="status" aria-live="polite" hidden></div>';
452
+ let ROOT = null;
453
+ const CSS_HREF = new URL('./wf-page.css', import.meta.url).href;
454
+ /** Draws Settings › Workflows into host (the same node each time, so a redraw of Settings keeps what is open).
455
+ * o: { close() closes Settings (New workflow goes to the chat), wf, stage: pick that workflow and open that stage once }.
456
+ * While it shows, the Viewer docks inside it (data-cz-viewer-host), so a stage opens over Settings, not under it. */
457
+ export function mount(host, o = {}) {
458
+ if (!document.querySelector(`link[href="${CSS_HREF}"]`)) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS_HREF; document.head.appendChild(l); }
459
+ HOST = { close: o.close || null };
460
+ if (o.wf || o.stage) S.want = { wf: o.wf || null, stage: o.stage || null };
461
+ // a redraw of Settings while the panel shows: the same node goes back in, and reads again only when asked for a workflow
462
+ if (S.live && ROOT) { if (ROOT.parentNode !== host) host.appendChild(ROOT); if (S.want) load(); return ROOT; }
463
+ S.live = true;
464
+ const fresh = !ROOT;
465
+ if (fresh) { ROOT = document.createElement('div'); ROOT.className = 'wf-page wf-in'; ROOT.id = 'wfRoot'; ROOT.innerHTML = SKELETON; }
466
+ if (ROOT.parentNode !== host) host.appendChild(ROOT);
467
+ const vh = ROOT.querySelector('#wfVwHost'); vh.setAttribute('data-cz-viewer-host', ''); vh.setAttribute('data-cz-vw-overlay', '');
468
+ ROOT.querySelector('#wfList').setAttribute('data-cz-vw-list', '');
456
469
  setStageHost(stageCtx());
457
- bind();
470
+ if (fresh) bind();
458
471
  draw();
459
472
  load();
460
- if (new URLSearchParams(location.search).get('new') === '1') startNew();
461
- else if (store.get(CHAT_KEY)) readDraft(); // a draft from before shows as its row, by name
473
+ readDraft(); // a draft PMOS wrote (in this chat or another) shows as its row, by name
474
+ return ROOT;
475
+ }
476
+ /** Settings leaves the panel (another section, or closed): the Viewer leaves the dialog, and nothing keeps reading. */
477
+ export function release() {
478
+ if (!S.live) return;
479
+ S.live = false; clearInterval(S.poll); closeMenu();
480
+ if (S.pop) { S.pop = null; drawPop(); }
481
+ const c = VW.current();
482
+ if (c && /^wf-/.test(String(c.id || ''))) VW.close();
483
+ if (!ROOT) return;
484
+ const vh = ROOT.querySelector('#wfVwHost'); vh.removeAttribute('data-cz-viewer-host'); vh.removeAttribute('data-cz-vw-overlay');
485
+ ROOT.querySelector('#wfList').removeAttribute('data-cz-vw-list');
486
+ const v = ROOT.querySelector('#czViewer'); if (v) { VW.close(); document.body.appendChild(v); } // the Viewer goes back to the page
462
487
  }
463
- if (typeof document !== 'undefined' && document.getElementById('wfMain')) boot();
@@ -3,30 +3,15 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
  <title>PMOS · Workflows</title>
8
- <!-- Settings › Workflows (initiative workflows per initiative, D99; canvas WfAModel, WfAStage, WfACond, WfARemove, WfANew, WfADraft). The list of
9
- workflows on the left; the picked one as one numbered list across To do, In progress and Done; a stage opens in the Viewer. + opens the normal
10
- chat, scoped "New workflow", and PMOS drafts the workflow into the Viewer. pm/wf-page.js draws it; pm/wf-stage.js is the stage panel. -->
11
- <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
12
- <link rel="stylesheet" href="/pm/cozy.css" />
13
- <link rel="stylesheet" href="/pm/cozy-home.css" />
14
- <link rel="stylesheet" href="/pm/cozy-today.css" />
15
- <link rel="stylesheet" href="/pm/wf-page.css" />
8
+ <!-- UI grill U1: Workflows is a sub-panel of Settings (Workspaces › Workflows), not a page. This address opens Home with Settings on it;
9
+ the query goes along (?wf=, ?stage=, ?new=1, ?ws=), and pm/home-app.js reads it. -->
10
+ <script>
11
+ (function () { var q = new URLSearchParams(location.search); q.set('settings', 'workflows'); location.replace('/premium.html?' + q.toString() + location.hash); })();
12
+ </script>
16
13
  </head>
17
- <body class="cz wf-page">
18
- <h1 class="wf-vh">Workflows</h1>
19
- <main class="hm-desk wf-desk" id="wfDesk">
20
- <aside class="hm-list wf-list" id="wfList" aria-label="Workflows" data-cz-vw-list></aside>
21
- <section class="wf-main" id="wfMain" aria-label="Workflow"></section>
22
- <section class="wf-chatw" id="wfChat" aria-label="New workflow" hidden><div class="hm-chat" id="wfChatIn"></div></section>
23
- <div class="hm-vw" id="wfVwHost" data-cz-vw-overlay></div>
24
- </main>
25
- <div class="wf-scrim" id="wfScrim" hidden></div>
26
- <div class="wf-pop" id="wfPop" role="dialog" aria-modal="true" hidden></div>
27
- <div class="wf-toast" id="wfToast" role="status" aria-live="polite" hidden></div>
28
- <div class="hm-toast" id="toast" role="status" aria-live="polite"></div>
29
- <noscript>This page needs JavaScript.</noscript>
30
- <script type="module" src="/pm/wf-page.js"></script>
14
+ <body>
15
+ <p>Workflows moved to <a href="/premium.html?settings=workflows">Settings › Workspaces › Workflows</a>.</p>
31
16
  </body>
32
17
  </html>
@@ -3639,6 +3639,23 @@
3639
3639
  "names": [
3640
3640
  "C5 the runner is called from the existing 60-second interval and nowhere else is a second timer made"
3641
3641
  ]
3642
+ },
3643
+ {
3644
+ "id": "E82",
3645
+ "group": "E",
3646
+ "file": "workspace/test.js",
3647
+ "section": "E3 / E3b derived needs",
3648
+ "change": "replaced",
3649
+ "slice": "full-autonomy-d106",
3650
+ "reason": "D94 (agents merge on green CI; acceptance is the PM's standing instruction) and D106 (Full autonomy now, PM wawan 2026-11-08): an eval with no acceptance no longer derives an Acceptance Gate needs row. It was 33 of the cards `pmos today` showed, none of them a call the PM still makes.",
3651
+ "replacement": "test.js 'D94/D106: an eval with no acceptance derives no needs row' and 'D94/D106: an eval recorded ONLY in planning/runs/ derives no Acceptance Gate row'; today.test.js 3 asserts the same for `pmos today`; routes-today.test.js 1 and 4.",
3652
+ "pm_approval": null,
3653
+ "names": [
3654
+ "an eval with no acceptance derives an open Acceptance Gate (D12)",
3655
+ "E3b: an eval recorded ONLY in planning/runs/ derives an open Acceptance Gate",
3656
+ "E3b: an acceptance recorded ONLY in planning/runs/ settles its run",
3657
+ "E3b: doc resolves from the LEGACY `rubric` key, not only `rubric_path`"
3658
+ ]
3642
3659
  }
3643
3660
  ]
3644
3661
  }
@@ -2965,7 +2965,21 @@ const proposalRuns = require('./lib/proposal-runs.js').create({
2965
2965
  homeWs: () => homeWorkspace(),
2966
2966
  warn: (what, e) => warnWriteFail(what, e),
2967
2967
  });
2968
- const proposalTick = () => { try { proposalRuns.tick({}); } catch (e) { warnWriteFail('proposal tick', e); } };
2968
+ // D106 (Full autonomy now): after the runs, every open class A or B ✦ proposal is applied by itself, with Undo (lib/auto-keep.js).
2969
+ const autoKeeper = require('./lib/auto-keep.js').create({
2970
+ workspaces: () => workspaces.values(),
2971
+ // a server whose runtime state is redirected (PMOS_STATE_DIR: a suite, a sandbox) never applies into the checkout it runs from: that
2972
+ // checkout's workspace/state is tracked, and a suite's server must not write it
2973
+ isLead: (w) => isPlanNeedsTree(w) && !(process.env.PMOS_STATE_DIR && path.resolve(w.root) === PARENT_DIR),
2974
+ stateDirFor: (w) => stateDirFor(w),
2975
+ proposalCtx: () => proposalCtx(),
2976
+ settingsDir: () => STATE,
2977
+ warn: (what, e) => warnWriteFail(what, e),
2978
+ });
2979
+ const proposalTick = () => {
2980
+ try { proposalRuns.tick({}); } catch (e) { warnWriteFail('proposal tick', e); }
2981
+ autoKeeper.tick();
2982
+ };
2969
2983
  // Grill and Forecast, part G-A (lib/grill.js, lib/grill-runs.js): Claude grills an initiative by itself before it leaves a stage, when its
2970
2984
  // forecast turns at risk or will miss (lib/forecast.js), when its scope or dates move a lot, and monthly on every running initiative with open work.
2971
2985
  // Each finding is a proposal under its ✦; only the PM's ✓ writes. Settings grill.mode and grill.cap (a monthly credit cap). PMOS_GRILL=off.
@@ -3314,6 +3328,16 @@ bgQueue.register('refresh', () => { try { refreshRun.tick(); } catch (e) { warnW
3314
3328
  bgQueue.register('reports', () => dashboardScheduleTick());
3315
3329
  bgQueue.register('sync', gated('sync', () => autoSync.tick().catch(() => {})));
3316
3330
  bgQueue.register('driver', gated('driver', driverTick));
3331
+ // D106: long-running goals (lib/goal-loop.js, `pmos loop`): each tick closes a round whose run is gone (a restart) and starts the next round
3332
+ // of every running goal, through the capacity governor. `pmos ai off` and PMOS_AUTONOMY=off stop every loop.
3333
+ const goalLoops = require('./lib/goal-loop.js').create({
3334
+ dir: () => STATE,
3335
+ getWs: (id) => getWs(id),
3336
+ killed: () => require('./lib/autonomy.js').killed({ env: process.env, settingsDir: STATE }) || (headlessLib.switchedOff(process.env) ? 'background runs are off' : null),
3337
+ spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, autoDelete: undefined, onDone: spec.onDone }),
3338
+ warn: (what, e) => warnWriteFail(what, e),
3339
+ });
3340
+ bgQueue.register('goal-loops', () => { try { goalLoops.tick(); } catch (e) { warnWriteFail('goal loop tick', e); } });
3317
3341
  bgQueue.register('finder', gated('finder', reportFinderTick));
3318
3342
  bgQueue.register('coredocs', gated('coredocs', coreDocsTick));
3319
3343
  bgQueue.register('milestones', () => msReviewTick());
@@ -4588,11 +4612,14 @@ function startHeadless(base, workdir, kind, launchArgs, env, initialInput, addDi
4588
4612
  const prompt = safeFirstInput(String(initialInput).replace(/\r+$/, ''));
4589
4613
  // report-design-studio: writePaths names the one render file a report-design run may write; for a skill run, the folders it may write in (lib/headless.js ignores it for every other kind).
4590
4614
  // A kind that reads the PM's sources gets the read-shaped connector tools of this login (lib/headless.js CONNECTOR_READ_KINDS).
4591
- const args = headlessLib.argsFor(kind, { modelArgs: launchArgs, addDirs: Array.isArray(addDirs) ? addDirs : [], writePaths: Array.isArray(writePaths) ? writePaths : [],
4615
+ // Lean launch (lib/headless.js LEAN LAUNCH): the PM's user settings no longer load, so their model is passed when no tier chose one.
4616
+ const lean = headlessLib.leanOf(kind, env);
4617
+ if (lean && !launchArgs.includes('--model')) { const m = headlessLib.userModelOf(env); if (m) launchArgs = ['--model', m, ...launchArgs]; }
4618
+ const args = headlessLib.argsFor(kind, { lean, modelArgs: launchArgs, addDirs: Array.isArray(addDirs) ? addDirs : [], writePaths: Array.isArray(writePaths) ? writePaths : [],
4592
4619
  budgetUsd: !env ? null : kind === 'grill' ? env.PMOS_GRILL_BUDGET : kind === 'lab-proto' || kind === 'lab-scan' ? env.PMOS_LAB_BUDGET : null,
4593
4620
  connectorTools: headlessLib.CONNECTOR_READ_KINDS.includes(kind) ? knownConnectorTools(env) : [],
4594
4621
  team: kind === 'team' && env ? { role: env.PMOS_TEAM_ROLE, mode: env.PMOS_TEAM_MODE } : null });
4595
- const s = { ...base, cwd: workdir, state: 'working', pty: null, tmux: null, headless: kind, child: null,
4622
+ const s = { ...base, cwd: workdir, state: 'working', pty: null, tmux: null, headless: kind, child: null, ...(lean ? { lean: true } : {}),
4596
4623
  note: '', buf: '', cols: 80, rows: 24, clients: new Set(), created: nowISO(), lastOutputAt: Date.now() };
4597
4624
  const say = (text) => {
4598
4625
  const d = String(text).replace(/\r?\n/g, '\r\n');
@@ -4660,6 +4687,8 @@ function startHeadless(base, workdir, kind, launchArgs, env, initialInput, addDi
4660
4687
  if (s.scratchDir) { try { fs.rmSync(s.scratchDir, { recursive: true, force: true }); } catch { /* the temp folder goes with the next clean-up */ } }
4661
4688
  if (part) { feed(part); part = ''; }
4662
4689
  const r = headlessLib.parseResult(resultLine || out);
4690
+ // The token log (lib/run-tokens.js): one line per finished run, for `pmos ai status`.
4691
+ require('./lib/run-tokens.js').record(STATE, { kind, origin: s.origin, lean, result: { ...r, ...headlessLib.usageOf(resultLine || out) }, ok: code === 0 && r.ok && !r.isError });
4663
4692
  if (r.ok) say('\n' + headlessLib.logLines(r, code).join('\n') + '\n');
4664
4693
  else if (out.trim() && !resultLine) say(r.text.split('\n').slice(-20).join('\n') + '\n');
4665
4694
  if (err.trim()) say(dim(err.trim().split('\n').slice(-20).join('\n')) + '\n');
@@ -6130,19 +6159,7 @@ function deriveNeeds(w) {
6130
6159
  needs = needs.concat(needsProviders.rowsFor(w, { lead: isPlanNeedsTree(w) }));
6131
6160
  const dir = stateDirFor(w);
6132
6161
  if (!dir) return needs;
6133
- const settled = new Set();
6134
- for (const a of readLedger(w, 'acceptances.jsonl')) if (a.run_id) settled.add(a.run_id);
6135
- for (const e of readLedger(w, 'evals.jsonl')) {
6136
- if (!e.run_id || settled.has(e.run_id)) continue;
6137
- const verdict = e.verdict ? String(e.verdict) : 'no verdict';
6138
- needs.push({
6139
- run_id: e.run_id, initiative_id: e.initiative_id || null, kind: 'accept', derived: true,
6140
- question: `Acceptance Gate open — evaluator says ${verdict}${e.score != null ? ` (${e.score})` : ''}`,
6141
- // `rubric` is the deprecated alias every one of the 26 legacy rows uses; scripts/record-eval.js
6142
- // requires `rubric_path` going forward. Read both, write only the new one.
6143
- doc: e.rubric_path || e.rubric || null,
6144
- });
6145
- }
6162
+ // D94/D106: an eval with no acceptance is no needs row (lib/today.js gather agrees, row by row).
6146
6163
  const disposed = new Set();
6147
6164
  for (const c of readLedger(w, 'outcome_checks.jsonl')) if (c.initiative_id) disposed.add(c.initiative_id);
6148
6165
  const today = nowISO().slice(0, 10);
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "D106 Full autonomy now: lib/autonomy.js (the three classes, the setback ledger, automatic demotion, the Done group, the stop switches) and lib/goal-loop.js (long-running goals). Pure, node.",
3
+ "modules": [
4
+ "autonomy.test.js",
5
+ "goal-loop.test.js"
6
+ ],
7
+ "seconds": {
8
+ "autonomy.test.js": 1,
9
+ "goal-loop.test.js": 1
10
+ }
11
+ }
@@ -110,6 +110,9 @@ function configure({ name = 'run', port = null } = {}) {
110
110
  process.env.PMOS_FORECAST = 'off';
111
111
  // No suite's server grills by itself (Grill and Forecast, part G-A): a run would take the one grill slot and spend. grill.test.js drives it.
112
112
  process.env.PMOS_GRILL = 'off';
113
+ // No suite's server applies ✦ proposals by itself (D106 auto-keep): it would write the checkout's own workspace/state. proposals.test.js
114
+ // and autonomy.test.js drive autoKeep in-process with their own env.
115
+ process.env.PMOS_AUTONOMY = 'off';
113
116
  // A private tmux socket, never the PM's own ('pmos'), so a suite cannot reach their sessions.
114
117
  const tmuxSock = `pmos-${name}-${process.pid}`;
115
118
  process.env.PMOS_TMUX_SOCK = tmuxSock;