create-pmos 0.539.0 → 0.541.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 +39 -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/README.md +1 -1
- package/workspace/changelog.json +38 -0
- package/workspace/fixtures/doc-category-labelled.json +1 -1
- package/workspace/guide/agent-capabilities.md +238 -28
- package/workspace/guide/breakdown.md +5 -20
- package/workspace/guide/claude-proposes.md +269 -37
- package/workspace/guide/cli.md +603 -0
- package/workspace/guide/home.md +160 -12
- package/workspace/guide/index.md +23 -59
- package/workspace/guide/initiatives-and-next-steps.md +235 -5
- package/workspace/guide/intelligence-okr-goals.md +121 -4
- package/workspace/guide/jira.md +2 -15
- package/workspace/guide/knowledge-graph.md +143 -18
- package/workspace/guide/layout.md +209 -4
- package/workspace/guide/notes.md +74 -6
- package/workspace/guide/proactive-engine.md +3 -14
- package/workspace/guide/programs.md +199 -4
- package/workspace/guide/reports.md +405 -41
- package/workspace/guide/scheduled-tasks-and-cli.md +6 -28
- package/workspace/guide/settings-and-switches.md +396 -0
- package/workspace/guide/statuses.md +141 -4
- package/workspace/ini-workflow-test.js +1 -1
- package/workspace/lib/ai-cli.js +12 -1
- package/workspace/lib/headless.js +75 -1
- package/workspace/lib/job-graph.js +2 -0
- package/workspace/lib/pmos-verbs.js +41 -40
- package/workspace/lib/run-tokens.js +70 -0
- package/workspace/lib/today-cli.js +57 -4
- package/workspace/lib/verify-work-cli.js +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-news.js +1 -1
- package/workspace/public/pm/cozy-onboard.js +2 -2
- package/workspace/public/pm/cozy-settings.js +42 -11
- package/workspace/public/pm/home-app.js +10 -1
- package/workspace/public/pm/ini-wf.js +3 -3
- package/workspace/public/pm/wf-page.css +26 -15
- package/workspace/public/pm/wf-page.js +96 -72
- package/workspace/public/premium-workflows.html +8 -23
- package/workspace/replaced-tests.json +19 -1
- package/workspace/server.js +7 -2
- package/workspace/workflows-setup-test.js +50 -50
- package/workspace/guide/adler.md +0 -71
- package/workspace/guide/agents-act.md +0 -68
- package/workspace/guide/ask-the-past.md +0 -46
- package/workspace/guide/board.md +0 -58
- package/workspace/guide/briefing-premium.md +0 -14
- package/workspace/guide/console-calendar.md +0 -24
- package/workspace/guide/core-documents.md +0 -58
- package/workspace/guide/data-freshness.md +0 -164
- package/workspace/guide/descriptions.md +0 -43
- package/workspace/guide/docs.md +0 -39
- package/workspace/guide/forecast.md +0 -66
- package/workspace/guide/horizon-scan.md +0 -82
- package/workspace/guide/idle-lab.md +0 -46
- package/workspace/guide/initiative-driver.md +0 -102
- package/workspace/guide/initiatives-roadmap.md +0 -131
- package/workspace/guide/integrated-work.md +0 -93
- package/workspace/guide/launcher.md +0 -39
- package/workspace/guide/lifecycle.md +0 -64
- package/workspace/guide/metric-drafts.md +0 -75
- package/workspace/guide/moments.md +0 -43
- package/workspace/guide/my-work.md +0 -40
- package/workspace/guide/next-prompt.md +0 -64
- package/workspace/guide/outcomes.md +0 -39
- package/workspace/guide/people.md +0 -48
- package/workspace/guide/pm-only-acts.md +0 -88
- package/workspace/guide/pm-only-lines.md +0 -61
- package/workspace/guide/present-in-a-meeting.md +0 -57
- package/workspace/guide/published-board.md +0 -116
- package/workspace/guide/ready-made-dashboards.md +0 -62
- package/workspace/guide/rehearse.md +0 -52
- package/workspace/guide/report-design.md +0 -126
- package/workspace/guide/report-slides.md +0 -43
- package/workspace/guide/report-structure.md +0 -91
- package/workspace/guide/reports-needs-you.md +0 -34
- package/workspace/guide/reports-set-up.md +0 -68
- package/workspace/guide/settings.md +0 -67
- package/workspace/guide/today.md +0 -40
- package/workspace/guide/validate-with-typesafe.md +0 -144
- package/workspace/guide/welcome.md +0 -90
- package/workspace/guide/what-you-missed.md +0 -42
- package/workspace/guide/workflows.md +0 -105
- package/workspace/guide/your-impact.md +0 -57
package/workspace/server.js
CHANGED
|
@@ -4612,11 +4612,14 @@ function startHeadless(base, workdir, kind, launchArgs, env, initialInput, addDi
|
|
|
4612
4612
|
const prompt = safeFirstInput(String(initialInput).replace(/\r+$/, ''));
|
|
4613
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).
|
|
4614
4614
|
// A kind that reads the PM's sources gets the read-shaped connector tools of this login (lib/headless.js CONNECTOR_READ_KINDS).
|
|
4615
|
-
|
|
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 : [],
|
|
4616
4619
|
budgetUsd: !env ? null : kind === 'grill' ? env.PMOS_GRILL_BUDGET : kind === 'lab-proto' || kind === 'lab-scan' ? env.PMOS_LAB_BUDGET : null,
|
|
4617
4620
|
connectorTools: headlessLib.CONNECTOR_READ_KINDS.includes(kind) ? knownConnectorTools(env) : [],
|
|
4618
4621
|
team: kind === 'team' && env ? { role: env.PMOS_TEAM_ROLE, mode: env.PMOS_TEAM_MODE } : null });
|
|
4619
|
-
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 } : {}),
|
|
4620
4623
|
note: '', buf: '', cols: 80, rows: 24, clients: new Set(), created: nowISO(), lastOutputAt: Date.now() };
|
|
4621
4624
|
const say = (text) => {
|
|
4622
4625
|
const d = String(text).replace(/\r?\n/g, '\r\n');
|
|
@@ -4684,6 +4687,8 @@ function startHeadless(base, workdir, kind, launchArgs, env, initialInput, addDi
|
|
|
4684
4687
|
if (s.scratchDir) { try { fs.rmSync(s.scratchDir, { recursive: true, force: true }); } catch { /* the temp folder goes with the next clean-up */ } }
|
|
4685
4688
|
if (part) { feed(part); part = ''; }
|
|
4686
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 });
|
|
4687
4692
|
if (r.ok) say('\n' + headlessLib.logLines(r, code).join('\n') + '\n');
|
|
4688
4693
|
else if (out.trim() && !resultLine) say(r.text.split('\n').slice(-20).join('\n') + '\n');
|
|
4689
4694
|
if (err.trim()) say(dim(err.trim().split('\n').slice(-20).join('\n')) + '\n');
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
|
-
/* workflows-setup-test.js — Settings › Workflows (D99; canvas WfAModel, WfAStage, WfACond, WfARemove, WfANew, WfADraft).
|
|
4
|
-
*
|
|
3
|
+
/* workflows-setup-test.js — Settings › Workflows (D99; canvas WfAModel, WfAStage, WfACond, WfARemove, WfANew, WfADraft). A sub-panel of
|
|
4
|
+
* Settings › Workspaces since UI grill U1: the old address /premium-workflows.html redirects to Home with ?settings=workflows, and Home
|
|
5
|
+
* opens Settings on it. Serves the real pages from the real server; /api/workflows and its writes answer from an in-memory list (fixtures/workflows-facts.js), so every press is captured.
|
|
5
6
|
* M the list and the picked workflow: counts, one numbered list across To do / In progress / Done, Optional and Only-when pills, ◆,
|
|
6
7
|
* the dashed Won't do · Archived column; Product feature is read-only with Copy
|
|
7
8
|
* S a stage opens in the Viewer: its name is the title (rename), category, output kind, template, To finish, Then with the fallback, Unless,
|
|
8
9
|
* Milestone, Moves on by itself; each change saves the whole workflow
|
|
9
10
|
* C Only when: plain words, How it reads today from the Board rows, Who decides; Save writes the condition
|
|
10
11
|
* D drag a stage into another column; A add a stage; R remove a stage in use asks where its initiatives go; W rename the workflow
|
|
11
|
-
* N New workflow:
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* N New workflow: + closes Settings and opens Home's own chat scoped "New workflow" (no second chat column); the draft waits as the
|
|
13
|
+
* list's draft row and shows in the Viewer; Create workflow, Edit by hand; blank or from a copy under the list
|
|
14
|
+
* P a phone: the list is the panel, a workflow opens with ←, the columns stack
|
|
15
|
+
* G Settings › Workspaces has a Workflows row that opens the sub-panel; ← goes back to Workspaces
|
|
14
16
|
* WF_SHOTS=<dir> also writes the screenshots at 1440 and 390. */
|
|
15
17
|
const fs = require('fs');
|
|
16
18
|
const path = require('path');
|
|
@@ -82,9 +84,16 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
82
84
|
await page.route('**/api/board-premium*', (r) => json(r, { ok: true, state: 'ready', model: { rows: F.rows() } }));
|
|
83
85
|
await page.route('**/api/briefing-premium/thread*', (r) => json(r, { ok: true, title: '', subject: '', turns: [], session: null, history: { messages: [] } }));
|
|
84
86
|
await page.route('**/api/briefing-premium/ask*', (r) => { posts.push({ path: '/api/briefing-premium/ask', body: JSON.parse(r.request().postData() || '{}') }); return json(r, { ok: true, session: 's1', started: true }); });
|
|
85
|
-
await page.goto(BASE + '/premium-workflows.html' + qs);
|
|
87
|
+
await page.goto(BASE + '/premium-workflows.html' + qs); // redirects to Home, which opens Settings › Workspaces › Workflows
|
|
88
|
+
await page.waitForSelector('#evSettings #wfMain', { timeout: 15000 }).catch(() => {});
|
|
86
89
|
return { page, ctx: c, errors, posts, db };
|
|
87
90
|
};
|
|
91
|
+
// Settings › Workspaces › Workflows the PM's way: the menu, Settings, Workspaces, the Workflows row
|
|
92
|
+
const openWf = async (pg) => {
|
|
93
|
+
await pg.click('#czFab'); await pg.click('[data-cz-settings]');
|
|
94
|
+
await pg.click('#evSettings [data-ev-sec="workspaces"]'); await pg.click('#evSettings [data-ev-sub="workflows"]');
|
|
95
|
+
await pg.waitForSelector('#evSettings #wfMain', { timeout: 8000 }).catch(() => {});
|
|
96
|
+
};
|
|
88
97
|
const shot = async (p, name) => { if (SHOTS) await p.screenshot({ path: path.join(SHOTS, name + '.png') }); };
|
|
89
98
|
const saves = (posts) => posts.filter((x) => x.path === '/api/workflows/save');
|
|
90
99
|
const lastWf = (posts) => { const s = saves(posts); return s.length ? s[s.length - 1].body.wf : null; };
|
|
@@ -105,14 +114,14 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
105
114
|
opt: !!document.querySelector('.wf-card.opt .wf-pill.dash'), only: (document.querySelector('.wf-pill.y') || {}).textContent || '',
|
|
106
115
|
adds: document.querySelectorAll('[data-add]').length, drag: document.querySelectorAll('.wf-card[draggable="true"]').length,
|
|
107
116
|
triageDrag: document.querySelector('.wf-card[data-stage="triage"]').getAttribute('draggable'),
|
|
108
|
-
|
|
117
|
+
where: [location.pathname, location.search, !document.querySelector('#evSettings').hidden, document.querySelector('#evSettings').classList.contains('ev-wide'), (document.querySelector('#evSettings [aria-current="page"]') || {}).textContent, (document.querySelector('#evSettings .ev-dr-hd h4') || {}).textContent],
|
|
109
118
|
}));
|
|
110
119
|
ok('M the list names each workflow with its count; Tender is picked', M.rows.join('|') === 'Product feature:12|Tender:4|Procurement:3|Migration:2' && M.sel === 'Tender', JSON.stringify(M.rows));
|
|
111
120
|
ok('M the header: the name, "10 stages · used by 4 initiatives"', M.title === 'Tender' && M.meta === '10 stages · used by 4 initiatives', JSON.stringify([M.title, M.meta]));
|
|
112
121
|
ok('M one numbered list across To do, In progress, Done and the dashed Won\'t do · Archived column', M.cols.join('|') === "To do|In progress|Done|Won't do · Archived" && M.nums === '1,2,3,4,5,6,7,8,9,10' && M.todo.join() === 'Triage' && M.done.join() === '◆ Review', JSON.stringify(M));
|
|
113
122
|
ok('M Optional is dashed, Only when names its words, ◆ marks a milestone', M.opt && /Only when value over \$50k/.test(M.only), M.only);
|
|
114
123
|
ok('M Add a stage per column; every stage but Triage drags', M.adds === 3 && M.drag === 9 && M.triageDrag === null, JSON.stringify([M.adds, M.drag]));
|
|
115
|
-
ok('M the
|
|
124
|
+
ok('M the old address lands on Home with Settings › Workspaces › Workflows open, wide; the address forgets ?settings and ?wf', M.where[0] === '/premium.html' && !/settings=|wf=/.test(M.where[1]) && M.where[2] && M.where[3] && /^Workspaces/.test(M.where[4] || '') && M.where[5] === 'Workflows', JSON.stringify(M.where));
|
|
116
125
|
await shot(p, 'wf-model-1440');
|
|
117
126
|
|
|
118
127
|
/* ── S a stage in the Viewer (WfAStage) ── */
|
|
@@ -126,7 +135,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
126
135
|
unless: (b.querySelector('[data-st-ut]') || {}).value, uto: (b.querySelector('[data-st-uto]') || {}).value, ms: b.querySelector('[data-st-sw="milestone"]').getAttribute('aria-checked'), auto: b.querySelector('[data-st-sw="auto"]').getAttribute('aria-checked'),
|
|
127
136
|
rn: !!document.querySelector('#czViewer [data-cz-vw-rn]'), cols: getComputedStyle(b.querySelector('.wf-sgrid')).gridTemplateColumns.split(' ').length };
|
|
128
137
|
});
|
|
129
|
-
ok('S the stage opens in the Viewer, its name the title and the rename press: "Tender · stage 6 of 10"', v && S1.rn && S1.lbl === 'Tender · stage 6 of 10' && v.w >=
|
|
138
|
+
ok('S the stage opens in the Viewer, its name the title and the rename press: "Tender · stage 6 of 10"', v && S1.rn && S1.lbl === 'Tender · stage 6 of 10' && v.w >= 640, JSON.stringify([S1.lbl, v && v.w])); // inside Settings: the room beside the workflow
|
|
130
139
|
ok('S two columns: category, output kind, template, To finish; When it runs, Then, Unless, Milestone, Moves on by itself', S1.cols === 2 && S1.cat.join() === 'In progress' && S1.kind.join() === 'Document' && S1.when.join() === 'Always' && S1.tpl === 'Bid scoring sheet'
|
|
131
140
|
&& S1.fin.length === 2 && S1.then === '' && S1.unless === 'no bid scores above 60' && S1.uto === 'bids' && S1.ms === 'false' && S1.auto === 'true', JSON.stringify(S1));
|
|
132
141
|
ok('S Then shows the fallback when the next stage runs only sometimes', /Legal review runs only when its condition holds; otherwise it goes on to 8 · ◆ Award/.test(S1.note), S1.note);
|
|
@@ -196,7 +205,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
196
205
|
|
|
197
206
|
/* ── D drag a stage into another column ── */
|
|
198
207
|
await p.click('#czViewer [data-cz-vw="close"], #czViewer [aria-label="Close"]').catch(() => {});
|
|
199
|
-
await p.keyboard.press('Escape');
|
|
208
|
+
if (await viewer(p)) await p.keyboard.press('Escape'); // with no stage open, Escape would close Settings
|
|
200
209
|
await until(() => viewer(p).then((x) => !x));
|
|
201
210
|
const n1 = saves(D.posts).length;
|
|
202
211
|
await p.dragAndDrop('.wf-card[data-stage="contract"]', '.wf-drop[data-cat="done"]', { targetPosition: { x: 40, y: 4 } });
|
|
@@ -236,7 +245,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
236
245
|
await R.ctx.close();
|
|
237
246
|
|
|
238
247
|
/* ── W rename the workflow (RnA*) and ⋯ ── */
|
|
239
|
-
await p.keyboard.press('Escape'); await until(() => viewer(p).then((x) => !x));
|
|
248
|
+
if (await viewer(p)) { await p.keyboard.press('Escape'); await until(() => viewer(p).then((x) => !x)); }
|
|
249
|
+
ok('W Escape closed the stage first; Settings stays open', await p.evaluate(() => !document.querySelector('#evSettings').hidden));
|
|
240
250
|
await p.click('[data-wf-rn]');
|
|
241
251
|
await p.fill('#wfName', 'Public tender');
|
|
242
252
|
await p.press('#wfName', 'Enter');
|
|
@@ -264,50 +274,38 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
264
274
|
ok('M no page error on the editor', D.errors.length === 0, D.errors.join(' | '));
|
|
265
275
|
await D.ctx.close();
|
|
266
276
|
|
|
267
|
-
/* ── N New workflow (WfANew, WfADraft) ── */
|
|
277
|
+
/* ── N New workflow (WfANew, WfADraft): Home's own chat, the draft in Settings ── */
|
|
268
278
|
const N = await open({ qs: '' });
|
|
269
279
|
const q = N.page;
|
|
270
280
|
await until(() => q.evaluate(() => document.querySelectorAll('#wfList .wfl').length === 4));
|
|
281
|
+
ok('N blank and from a copy sit under the list', await q.evaluate(() => /Or start one blank or from a copy/.test(document.querySelector('#wfList').innerText)));
|
|
271
282
|
await q.click('[data-wf-new]');
|
|
272
|
-
const NW = await until(() => q.evaluate(() => { const c = document.querySelector('#
|
|
273
|
-
ok('N + opens
|
|
283
|
+
const NW = await until(() => q.evaluate(() => { const c = document.querySelector('#hmChat') || document.querySelector('.hm-chat'); if (!c) return null; return { text: c.innerText, scope: (document.querySelector('.hm-chip') || {}).textContent || '', settings: !document.querySelector('#evSettings').hidden, second: !!document.querySelector('#wfChat') }; }).then((x) => (x && /Tell me how this work goes/.test(x.text) ? x : null)));
|
|
284
|
+
ok('N + closes Settings and opens Home\'s own chat scoped "New workflow", with the opening ask; no second chat column', NW && !NW.settings && /New workflow/.test(NW.scope) && !NW.second, JSON.stringify(NW));
|
|
274
285
|
await shot(q, 'wf-new-1440');
|
|
275
|
-
|
|
276
|
-
const geo = () => q.evaluate(() => {
|
|
277
|
-
const r = (e) => e.getBoundingClientRect(), c = document.querySelector('#wfChat');
|
|
278
|
-
const btns = [...c.querySelectorAll('#hmFoot button, #hmFoot .hm-scope, #hmFoot [class*="chip"]')].filter((b) => r(b).width > 0).map(r);
|
|
279
|
-
const hit = btns.some((a, i) => btns.some((b, j) => j > i && a.left < b.right - 1 && b.left < a.right - 1 && a.top < b.bottom - 1 && b.top < a.bottom - 1));
|
|
280
|
-
return { main: getComputedStyle(document.querySelector('#wfMain')).display, w: Math.round(r(c).width), hit, out: btns.some((b) => b.right > r(c).right + 1) };
|
|
281
|
-
});
|
|
282
|
-
const G1 = await geo();
|
|
283
|
-
ok('N the workflow is gone while New workflow shows; the chat has the column; the composer buttons do not overlap', G1.main === 'none' && G1.w >= 400 && !G1.hit && !G1.out, JSON.stringify(G1));
|
|
284
|
-
await q.fill('#wfChatIn textarea', 'We onboard a new supplier. Procurement checks the contract and the insurance first.');
|
|
286
|
+
await q.fill('#hmIn', 'We onboard a new supplier. Procurement checks the contract and the insurance first.');
|
|
285
287
|
await q.keyboard.press('Enter');
|
|
286
288
|
const ask = await until(() => N.posts.find((x) => x.path === '/api/briefing-premium/ask'));
|
|
287
|
-
ok('N a message goes to the chat under a pop:workflow key, with the New workflow context', ask && /^pop:workflow:new-/.test(ask.body.key) &&
|
|
289
|
+
ok('N a message goes to the chat under a pop:workflow key, with the New workflow context', ask && /^pop:workflow:new-/.test(ask.body.key) && /workflow-setup skill/.test(JSON.stringify(ask.body.context || '')), JSON.stringify(ask && ask.body));
|
|
288
290
|
N.db.draft = F.draft();
|
|
291
|
+
await openWf(q);
|
|
292
|
+
await until(() => q.evaluate(() => /Vendor onboarding/.test((document.querySelector('#wfList [data-wf="new"]') || {}).innerText || '')));
|
|
293
|
+
ok('N the draft waits in Settings › Workflows as its row, by its name', await q.evaluate(() => /Vendor onboarding\s*draft/.test(document.querySelector('#wfList [data-wf="new"]').innerText)));
|
|
294
|
+
await q.click('#wfList [data-wf="new"]');
|
|
289
295
|
v = await until(() => viewer(q).then((x) => (x && x.title === 'Vendor onboarding' ? x : null)), 8000);
|
|
290
296
|
ok('N the draft shows in the Viewer as numbered stages per category, with Create workflow and Edit by hand', v && /To do\s*1\s*Triage/.test(v.text) && /In progress/.test(v.text) && /3\s*Security review/.test(v.text) && /Only when they touch customer data/.test(v.text) && /Done\s*6\s*◆ 90-day review/.test(v.text) && /Create workflow/.test(v.text) && /Edit by hand/.test(v.text), v && v.text);
|
|
291
|
-
ok('N the
|
|
297
|
+
ok('N beside it, the way back to its chat', await q.evaluate(() => !!document.querySelector('#wfMain [data-wf-new]') && /Continue in the chat/.test(document.querySelector('#wfMain').innerText)));
|
|
292
298
|
await shot(q, 'wf-draft-1440');
|
|
293
|
-
const G2 = await geo();
|
|
294
|
-
ok('N with the draft open beside it, the chat keeps a usable column and the composer does not overlap', G2.main === 'none' && G2.w >= 360 && !G2.hit && !G2.out, JSON.stringify(G2));
|
|
295
|
-
await q.setViewportSize({ width: 1180, height: 820 });
|
|
296
|
-
await q.waitForTimeout(200);
|
|
297
|
-
const G3 = await geo();
|
|
298
|
-
ok('N at 1180 wide with the draft open, the composer still does not overlap', G3.main === 'none' && G3.w >= 300 && !G3.hit && !G3.out, JSON.stringify(G3));
|
|
299
|
-
await shot(q, 'wf-draft-1180');
|
|
300
|
-
await q.setViewportSize({ width: 1440, height: 900 });
|
|
301
299
|
await q.click('#czViewer [data-wf-dcreate]');
|
|
302
300
|
await until(() => saves(N.posts).length);
|
|
303
301
|
const cw = lastWf(N.posts);
|
|
304
|
-
ok('N Create workflow saves the draft and opens it', cw && cw.id === 'vendor-onboarding' && cw.stages.length === 6 && await until(() => q.evaluate(() => (document.querySelector('.wf-h1') || {}).textContent === 'Vendor onboarding'
|
|
305
|
-
ok('N the next New workflow starts a new conversation', await q.evaluate(() => !localStorage.getItem('pmos.wf.chat')));
|
|
302
|
+
ok('N Create workflow saves the draft and opens it', cw && cw.id === 'vendor-onboarding' && cw.stages.length === 6 && await until(() => q.evaluate(() => (document.querySelector('.wf-h1') || {}).textContent === 'Vendor onboarding')), JSON.stringify(cw && cw.id));
|
|
303
|
+
ok('N the next New workflow starts a new conversation', await until(() => q.evaluate(() => !localStorage.getItem('pmos.wf.chat'))), await q.evaluate(() => localStorage.getItem('pmos.wf.chat')));
|
|
306
304
|
await N.ctx.close();
|
|
307
305
|
|
|
308
306
|
const E2 = await open({ qs: '', draft: F.draft() });
|
|
309
|
-
await until(() => E2.page.evaluate(() => document.querySelectorAll('#wfList .wfl').length ===
|
|
310
|
-
await E2.page.click('[data-wf
|
|
307
|
+
await until(() => E2.page.evaluate(() => document.querySelectorAll('#wfList .wfl').length === 5));
|
|
308
|
+
await E2.page.click('#wfList [data-wf="new"]');
|
|
311
309
|
await until(() => viewer(E2.page).then((x) => x && x.title === 'Vendor onboarding'));
|
|
312
310
|
await E2.page.click('#czViewer [data-wf-dedit]');
|
|
313
311
|
await until(() => E2.page.evaluate(() => document.querySelectorAll('.wf-card').length === 6));
|
|
@@ -316,15 +314,15 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
316
314
|
await until(() => E2.posts.some((x) => x.path === '/api/workflows/draft'));
|
|
317
315
|
ok('N an edit by hand saves to the draft, not to the workflows', saves(E2.posts).length === 0 && E2.posts.find((x) => x.path === '/api/workflows/draft').body.draft.stages.length === 7);
|
|
318
316
|
await until(() => E2.page.evaluate(() => !!document.querySelector('#czViewer .cz-vw-ren input')));
|
|
319
|
-
await E2.page.keyboard.press('Escape');
|
|
317
|
+
await E2.page.keyboard.press('Escape'); // the name field first, then the stage; with no stage open, Escape would close Settings
|
|
318
|
+
await until(() => E2.page.evaluate(() => !document.querySelector('#czViewer .cz-vw-ren input')), 2000);
|
|
319
|
+
if (await viewer(E2.page)) await E2.page.keyboard.press('Escape');
|
|
320
320
|
await until(() => viewer(E2.page).then((x) => !x), 2000);
|
|
321
321
|
await E2.page.click('[data-wf-create]');
|
|
322
322
|
await until(() => saves(E2.posts).length);
|
|
323
323
|
ok('N Create workflow from the editor saves it', lastWf(E2.posts).id === 'vendor-onboarding' && lastWf(E2.posts).stages.length === 7);
|
|
324
|
-
await E2.page.click('[data-wf-new]');
|
|
325
|
-
await until(() => E2.page.evaluate(() => !!document.querySelector('[data-wf-blank]')));
|
|
326
324
|
const nb = saves(E2.posts).length;
|
|
327
|
-
await E2.page.click('[data-wf-blank]');
|
|
325
|
+
await E2.page.click('#wfList [data-wf-blank]');
|
|
328
326
|
await until(() => saves(E2.posts).length > nb);
|
|
329
327
|
ok('N Start blank makes a workflow with only Triage and opens its name field', lastWf(E2.posts).stages.length === 1 && lastWf(E2.posts).stages[0].key === 'triage' && await until(() => E2.page.evaluate(() => !!document.querySelector('#wfName'))));
|
|
330
328
|
ok('N no page error in New workflow', N.errors.length === 0 && E2.errors.length === 0, N.errors.concat(E2.errors).join(' | '));
|
|
@@ -335,7 +333,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
335
333
|
const r = P.page;
|
|
336
334
|
await until(() => r.evaluate(() => document.querySelectorAll('#wfList .wfl').length === 4));
|
|
337
335
|
const P1 = await r.evaluate(() => ({ list: getComputedStyle(document.querySelector('#wfList')).display, main: getComputedStyle(document.querySelector('#wfMain')).display, sw: document.documentElement.scrollWidth }));
|
|
338
|
-
ok('P on a phone the list is the
|
|
336
|
+
ok('P on a phone the list is the panel', P1.list !== 'none' && P1.main === 'none' && P1.sw <= 390, JSON.stringify(P1));
|
|
339
337
|
await shot(r, 'wf-list-390');
|
|
340
338
|
await r.click('#wfList [data-wf="tender"]');
|
|
341
339
|
await until(() => r.evaluate(() => document.querySelectorAll('.wf-card').length === 10));
|
|
@@ -353,13 +351,15 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
353
351
|
await P.ctx.close();
|
|
354
352
|
if (SHOTS) { const K = await open({ dark: true }); await until(() => K.page.evaluate(() => document.querySelectorAll('.wf-card').length === 10)); await K.page.evaluate(() => { document.documentElement.dataset.theme = 'dark'; }); await shot(K.page, 'wf-model-1440-dark'); await K.ctx.close(); }
|
|
355
353
|
|
|
356
|
-
/* ── G Settings › Workflows ── */
|
|
357
|
-
const G = await open();
|
|
358
|
-
|
|
359
|
-
await
|
|
360
|
-
await
|
|
361
|
-
|
|
362
|
-
ok('G
|
|
354
|
+
/* ── G Settings › Workspaces › Workflows ── */
|
|
355
|
+
const G = await open({ qs: '' });
|
|
356
|
+
const g = G.page;
|
|
357
|
+
await g.click('#evSettings [data-ev-sub=""]');
|
|
358
|
+
ok('G ← goes back to Workspaces, the dialog its usual size, and the row "Workflows ›" is there', await until(() => g.evaluate(() => !document.querySelector('#evSettings #wfMain') && !document.querySelector('#evSettings').classList.contains('ev-wide') && !!document.querySelector('#evSettings [data-ev-sub="workflows"]'))));
|
|
359
|
+
await g.click('#evSettings [data-ev-sub="workflows"]');
|
|
360
|
+
ok('G the row opens the sub-panel in place, not a page', await until(() => g.evaluate(() => document.querySelectorAll('#evSettings .wf-card').length > 0 && location.pathname === '/premium.html')));
|
|
361
|
+
await g.click('#evSettings [data-ev-close]');
|
|
362
|
+
ok('G no page error in Settings', G.errors.length === 0, G.errors.join(' | '));
|
|
363
363
|
await G.ctx.close();
|
|
364
364
|
finish();
|
|
365
365
|
})();
|
package/workspace/guide/adler.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Adler, Claude's face"
|
|
4
|
-
description: "Who Adler is, where he shows in PMOS, what each of his six moods means, and how to choose how much of him you see in Settings."
|
|
5
|
-
timestamp: 2026-10-29
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Adler, Claude's face
|
|
9
|
-
|
|
10
|
-
Adler is a small blue character with a cream face and a gold ring. He is Claude's face in PMOS. When Claude says something, Adler's face shows the mood of what Claude says, so you can read the mood before you read the words.
|
|
11
|
-
|
|
12
|
-
## His six moods
|
|
13
|
-
|
|
14
|
-
Each mood comes from real state. When nothing happens, Adler is calm or he rests.
|
|
15
|
-
|
|
16
|
-
| Mood | What it means |
|
|
17
|
-
| --- | --- |
|
|
18
|
-
| Handled | Claude's part is done. This is the usual mood. |
|
|
19
|
-
| Celebrating | Something real happened, for example a full day of decisions done. He celebrates at most once a week. |
|
|
20
|
-
| Thinking (one lobe at his chin) | Claude is working for you now. |
|
|
21
|
-
| Needs you (a slightly worried face) | One call is yours. |
|
|
22
|
-
| Honest (a plain, sincere face) | Something is not right. Claude says it plainly. |
|
|
23
|
-
| Resting | There is nothing to report, or it is after hours. |
|
|
24
|
-
|
|
25
|
-
## Where he shows
|
|
26
|
-
|
|
27
|
-
- **Every toast.** A small face before the words: calm when the change worked, honest when it did not.
|
|
28
|
-
- **Chat.** Claude's avatar on the latest reply only, in that reply's mood. An empty chat shows Adler resting.
|
|
29
|
-
- **Home.** His face next to the greeting. While Home reads your work he shows his thinking face, and when Home cannot read the repository he says so with the honest face.
|
|
30
|
-
- **Your day (phone).** His face on the opening card. On the first open before noon, a small morning scene. When nothing else needs you, Adler with his tea. On a day you earned it, Adler celebrating. After 22:00, Adler asleep: press **Open anyway** to see your day. If something is wrong, PMOS does not hide it behind the night scene.
|
|
31
|
-
- **Claude's suggestions.** Adler asks with his worried face when Claude suggests a split or a merge, milestones, a goal or a success measure.
|
|
32
|
-
- **Intelligence.** His face in Claude's line at the top only. Charts, numbers and key results never show him.
|
|
33
|
-
- **Search.** Adler with a telescope when nothing matches.
|
|
34
|
-
- **Initiative mission.** The telemetry card at the top of an initiative uses the same art: the rocket on its pad (a blueprint, then built, then lift-off), the planet, the dish and the clouds. The rocket flies a path that runs from left to right in time. While Discover is open, Adler stands at the telescope; when Discover is done, he is gone. On a festival, the day's things hang in the sky in place of the clouds. When the news is bad (the initiative is late) the festival goes. With **Face only** or **Off**, neither he nor the festival shows.
|
|
35
|
-
- **Welcome.** Adler says hello once on the first step, and shows his thinking face while PMOS reads your folder.
|
|
36
|
-
- **Board.** His small face is the Jira control at the end of the top bar: calm when Jira was read in the last day and a half, honest (with an amber dot) when it was not, and his thinking face while a press reads it again. Hold the pointer on it to see when Jira was read. He heads **New asks**: needs you while asks wait. When a delivery is missed, his honest face stands once in the Deliveries lane's header; hover it to see which. When you open a milestone that was delivered, he celebrates once in the panel (at most once a week); after that his face is calm. The diamond on the timeline stays plain, and nothing is sent to anyone.
|
|
37
|
-
- **Program charter.** His face on the check line, with his thinking face while Claude checks the milestones.
|
|
38
|
-
- **Stage card.** While a session works on a step, that step shows Adler with his thinking face instead of a spinner. When every step is done, Adler stands by the **Move to** button. Your own steps keep their rings.
|
|
39
|
-
- **Sessions.** Only the session that asks you something shows his face in the list. The other sessions keep their dots. In that session's card, he asks the question.
|
|
40
|
-
- **Viewer.** Under a page that the agent wrote last, one quiet line: "I drafted this", and how many open questions are yours.
|
|
41
|
-
- **Recording a meeting.** Adler wears headphones: in the Live pill while the meeting records, and after the title in the recording tab. He wears the happy headphones while he listens, the resting headphones while you pause, and shows the honest face when PMOS cannot hear the meeting.
|
|
42
|
-
- **A source that could not be read (phone and desk).** When Jira, or another source, does not answer, Your day says so first, under a small rain cloud: when PMOS last had it, and an icon that reads it again.
|
|
43
|
-
- **Pull to refresh (phone).** Pull Your day down from the top. Adler peeks up while PMOS reads your day again.
|
|
44
|
-
- **The menu button (phone).** When a call is yours, his ears peek over the menu button. They go when no call waits, while the menu is open, and after Quiet after.
|
|
45
|
-
- **Weekly review.** When the review is done for the week, Adler is calm. It is upkeep, not a win, so he does not celebrate.
|
|
46
|
-
- **Settings.** In Updates he shows his thinking face while PMOS checks or installs, asks with his worried face when a version is ready, and is calm when PMOS is up to date. A line that says something failed shows his honest face.
|
|
47
|
-
|
|
48
|
-
Adler never sits in a list row, a bar, a chart or a report. Rows keep their own signals: a dot is a session and a box is a task.
|
|
49
|
-
|
|
50
|
-
## Adler dressed for the day
|
|
51
|
-
|
|
52
|
-
On a festival, a season or a day of your own, Adler wears a small charm: a hat, a scarf, something in his paws or at his feet, and a scene around him. Deepavali gives him a diya and a garland of marigolds. Christmas gives him a beanie, a gift and a tree. The charm changes what he wears, never his mood.
|
|
53
|
-
|
|
54
|
-
- **Where he wears it.** The scene on the first open of Your day, the night scene after 22:00, his face on the latest chat reply (a hat only), the first run, and a real milestone win on the Board.
|
|
55
|
-
- **Where he never wears it.** Toasts, the recording pill (the headphones win), Intelligence, list rows, charts, reports, and his smallest face.
|
|
56
|
-
- **The mood stays true.** When he needs you, the charm stays and the scene goes plain. When the news is bad, the charm comes off.
|
|
57
|
-
- **The greeting.** On the day itself, Your day says "Happy Deepavali, <your name>." It does not say this on a day with bad news.
|
|
58
|
-
- **Why is he dressed?** Press the scene. One line tells you why. The eye-off icon turns that day off for this year. The arrow opens **Settings › General › Adler › Dress for the day**.
|
|
59
|
-
|
|
60
|
-
## How his pictures load
|
|
61
|
-
|
|
62
|
-
PMOS sends each picture at the size it is drawn at. A small face (a toast, a chat avatar, a badge) uses a small copy of about 14 KB. A figure or a scene uses a larger file. After the first load, your browser keeps the pictures until PMOS updates, so a page does not fetch them again. A page that shows no Adler fetches no pictures.
|
|
63
|
-
|
|
64
|
-
## Choose how much of Adler you see
|
|
65
|
-
|
|
66
|
-
Open **Settings › General**, then **Adler ›** under Extras. Each choice saves on this computer when you press it.
|
|
67
|
-
|
|
68
|
-
- **How much Adler:** **Full** shows his face, his figure and his scenes. **Face only** keeps his face where Claude speaks and drops the figures and scenes. **Off** shows a plain mood dot.
|
|
69
|
-
- **Motion:** **Follow my computer** lets him breathe and blink slowly. **Still** stops all motion. When your computer asks for reduced motion, he is always still.
|
|
70
|
-
- **Celebrations:** **Real wins only** (at most once a week) or **Never**.
|
|
71
|
-
- **Quiet after:** **22:00** opens Your day on Adler asleep after 22:00. **Never** turns this off.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Agents act by themselves"
|
|
4
|
-
description: "D106, Full autonomy now: the three classes of change, what agents apply at once with Undo, what waits for you, how a job goes back to propose, the stop switches, long-running goals, and the pmos autonomy and pmos loop commands."
|
|
5
|
-
timestamp: 2026-11-08
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Agents act by themselves
|
|
9
|
-
|
|
10
|
-
PMOS agents finish work without waiting for you. A change that can be undone is applied at once and listed with Undo. A change that other people see, or that cannot be undone, waits for you. This is decision D106 (Full autonomy now, 2026-11-08).
|
|
11
|
-
|
|
12
|
-
## The three classes
|
|
13
|
-
|
|
14
|
-
| Class | What it is | Examples | What happens |
|
|
15
|
-
|---|---|---|---|
|
|
16
|
-
| A | Upkeep with one right answer | A tidy task name, a date moved by evidence, a note | Applied at once. Undo for 14 days. |
|
|
17
|
-
| B | A judgment that can be undone | A problem statement, evidence, an expected outcome, a description, a task, a grill fix, what was found elsewhere | Applied at once. Undo for 14 days. |
|
|
18
|
-
| C | Seen by others, or cannot be undone | A message to a person, a Jira move, a stage move, a merge into a product repository, a delete, spend | Waits for your ✓. |
|
|
19
|
-
|
|
20
|
-
A change with no Undo waits too, whatever its class. A "maybe" or a possible duplicate that Claude found elsewhere waits, because it is a question for you.
|
|
21
|
-
|
|
22
|
-
## Undo
|
|
23
|
-
|
|
24
|
-
Each change an agent applies is listed for 14 days with Undo. Undo puts the record back as it was. If someone changed the record since, Undo keeps that change.
|
|
25
|
-
|
|
26
|
-
- `pmos autonomy status` lists what agents applied in the last 14 days, each with its id.
|
|
27
|
-
- `pmos driver undo <proposal>` undoes a change of the Initiative Driver.
|
|
28
|
-
- A ✦ change is undone on its initiative's ✦, as before.
|
|
29
|
-
|
|
30
|
-
Each Undo counts as a correction, so the north star (human corrections per agent run) still sees it.
|
|
31
|
-
|
|
32
|
-
## A job goes back to propose
|
|
33
|
-
|
|
34
|
-
Undo is also the safety net. A job goes back to propose for 7 days on one product when:
|
|
35
|
-
|
|
36
|
-
- its last two changes were both undone, or
|
|
37
|
-
- one of its changes was reverted, or
|
|
38
|
-
- in the last 7 days it applied 4 or more changes and more than 30% of them were undone.
|
|
39
|
-
|
|
40
|
-
When the verifier is running, a change it fails counts like an Undo. Home says once that a job went back to propose. The job applies by itself again after the 7 days. `pmos autonomy restore <job>` ends it early.
|
|
41
|
-
|
|
42
|
-
## Stop it
|
|
43
|
-
|
|
44
|
-
- `pmos ai off` stops every agent job, and every change that would apply by itself. `pmos ai on` starts them again.
|
|
45
|
-
- `PMOS_AUTONOMY=off` in the environment stops only what applies by itself. Proposals still come.
|
|
46
|
-
- `pmos driver mode approve` makes every Driver proposal wait for you again.
|
|
47
|
-
- The spending limit in Settings › Claude's checks holds.
|
|
48
|
-
|
|
49
|
-
## Long-running goals
|
|
50
|
-
|
|
51
|
-
Set a goal once, and agents work on it round after round until it is done.
|
|
52
|
-
|
|
53
|
-
- `pmos loop start --goal "<one sentence>" --done "<criterion>"` starts a goal. Give one `--done` for each criterion that must be true, each one checkable. Add `--forbid "<action>"` for each thing it must never do. The budget is 20 rounds and 24 hours by default; `--rounds N` and `--hours H` change it.
|
|
54
|
-
- Each round is one background run: it plans the next step, does it, checks it against the criteria, and records a checkpoint. The next round starts when the queue allows.
|
|
55
|
-
- `pmos loop checkpoint <id> --note "<what and how checked>" --met "<criterion>"` is what a round runs last. You do not need to run it.
|
|
56
|
-
- The loop ends when every criterion is met, or when its rounds or hours are used. If the computer restarts, the loop goes on from its last checkpoint.
|
|
57
|
-
- A loop stops for you only with a named reason: it needs a class C act, it needs a sign-in or secret only you have, it cannot cut the goal into steps, its check failed with no retries left, its work conflicts with other work, an outcome check it depends on is overdue, or three rounds met nothing new.
|
|
58
|
-
- `pmos loop status` shows every goal, its state, its rounds and what is met.
|
|
59
|
-
- `pmos loop resume <id> --note "<your answer>"` answers a loop that waits for you.
|
|
60
|
-
- `pmos loop stop <id>` stops a goal.
|
|
61
|
-
|
|
62
|
-
A loop never sends a message, moves a Jira ticket, merges into a product repository, deletes or spends. It files those as proposals and goes on with the rest.
|
|
63
|
-
|
|
64
|
-
## What did not change
|
|
65
|
-
|
|
66
|
-
- Class C still waits for you (D65 point h: the factory proposes and never merges into a product repository).
|
|
67
|
-
- No request header is logged (D08).
|
|
68
|
-
- Every line an agent writes names the agent (D98).
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Ask about the past: why something was decided or dropped, with the record that says so"
|
|
4
|
-
timestamp: 2026-11-03
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Ask about the past
|
|
8
|
-
|
|
9
|
-
Ask in the initiative chat. There is no search box and no button.
|
|
10
|
-
|
|
11
|
-
- "Why did we drop the hosted backend?"
|
|
12
|
-
- "Did we ever decide on a graph store?"
|
|
13
|
-
- "What did we decide about Now, Next and Later?"
|
|
14
|
-
|
|
15
|
-
Claude answers from the records PMOS keeps, never from memory. Each claim has the file and line it rests on, for example `DECISIONS.md:243`. When no record answers the question, Claude says **No record found** and names what it read. It does not guess a reason.
|
|
16
|
-
|
|
17
|
-
A decision that a later one replaced is marked as superseded, with the decision that replaced it.
|
|
18
|
-
|
|
19
|
-
## What it reads
|
|
20
|
-
|
|
21
|
-
- `DECISIONS.md`: each decision and each line of the amendment log
|
|
22
|
-
- the decision records in `okf/products/pmos/adr/`
|
|
23
|
-
- `pm-decisions.md`, the PM journal
|
|
24
|
-
- `planning/out-of-scope/`, the requests that were declined
|
|
25
|
-
- `planning/initiatives/`, each initiative record and its status
|
|
26
|
-
- `discoveries.md`, the run log (it counts less)
|
|
27
|
-
- the decisions in your meeting notes, except a point you marked not right or deleted. A private note is never read.
|
|
28
|
-
|
|
29
|
-
It does not read chat transcripts or Jira tickets, because PMOS keeps no searchable copy of them on your machine. It says so in each answer.
|
|
30
|
-
|
|
31
|
-
## You decided this before
|
|
32
|
-
|
|
33
|
-
When you add an initiative that repeats something decided or declined before, one finding waits under the initiative's ✦. It quotes the earlier record and its line. The next step is to say what is different this time. Keep it to add that step as a task, or drop it. Nothing changes until you keep it. When nothing repeats, nothing shows.
|
|
34
|
-
|
|
35
|
-
It goes through the same guardrail as every AI job: every quote is checked at its line, it is tested on known cases before anything shows, and every run is in the audit. `pmos ai off past-repeat` turns it off.
|
|
36
|
-
|
|
37
|
-
## From a terminal
|
|
38
|
-
|
|
39
|
-
| Command | What it does |
|
|
40
|
-
|---|---|
|
|
41
|
-
| `pmos past ask "<question>"` | The records that answer the question, each with its path:line and its own words, and how sure the match is. "No record found" when none does. `--json` for a script. |
|
|
42
|
-
| `pmos past check "<idea>"` | What was decided or declined before about an idea. |
|
|
43
|
-
| `pmos past verify --text "<answer>"` | Checks that every path:line in an answer is a record PMOS read, at a line that exists. |
|
|
44
|
-
| `pmos past sources` | Which records were read, and which were not on this machine. |
|
|
45
|
-
|
|
46
|
-
Nothing here writes a record, sends anything or calls a model.
|
package/workspace/guide/board.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "pmos board: the items of every initiative"
|
|
4
|
-
description: "How pmos board prints the items of every initiative in four columns from a terminal, and where the workspace shows initiatives and their tasks."
|
|
5
|
-
timestamp: 2026-11-08
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# pmos board: the items of every initiative
|
|
9
|
-
|
|
10
|
-
The **Board** place of the workspace shows initiatives, not items: every initiative of the products you pick, by stage, with programs, a timeline and a list. [Programs on the Board](programs.md) explains it. An initiative's tasks show under it in Home's list and in the initiative's page in the Viewer. A press on an initiative on the Board opens the same view as on Home: the stage card with its gate chips and the next stage, Tasks, Documents and Linked.
|
|
11
|
-
|
|
12
|
-
## The top row
|
|
13
|
-
|
|
14
|
-
The Board has one row of seven controls at the top, the same on a phone and on a computer. The pieces are in this order:
|
|
15
|
-
|
|
16
|
-
- **The product picker.** Pick the products that the Board shows.
|
|
17
|
-
- **The view.** Press the view button. Its menu has **List**, **By stage**, **Track** and **Timeline**. When the timeline shows, the menu also has the span (for example **Quarter**) and, on a computer, the **Columns** beside the names. **Shared with me** is the last item.
|
|
18
|
-
- **Needs a look.** One pill with a dot and a number for the new asks, the initiatives that wait on you, and the late, at risk, blocked and idle initiatives. Press it to see each one. When all of them are zero, the pill does not show. On a computer, the **(i)** after the pill holds what the timeline's bars mean, the sprints and releases, and the Jira read: press **↻** to read Jira again. An amber dot on (i) shows that the Jira read is old.
|
|
19
|
-
- **Find.** It opens Search. The initiatives and the Jira work-items of this Board come first, then the rest of your work. **Ctrl K** (**⌘K** on a Mac) or **/** opens the same Search.
|
|
20
|
-
- **The tune button.** It holds **Group** (only when a program holds an initiative here), **Sort** and **Filter** (owner, category, sprint). On a phone it also holds the Jira read, and a dot on it shows that the Jira read is old or that a filter is on.
|
|
21
|
-
- **+** for a new program or initiative.
|
|
22
|
-
- **⋯** (on a computer) holds **Publish a read-only copy** and **Cancelled and archived**. The theme and the sources are in [Settings](settings.md): open it from the place menu.
|
|
23
|
-
|
|
24
|
-
A step of the track or a column of By stage with no initiative shows no number.
|
|
25
|
-
|
|
26
|
-
**Sprint N only** is the first chip in Filter's Sprint group. It is on when the board has a sprint. The Board does not pick a workflow: with more than one workflow on a board, By stage and the track show the three categories To do, In progress and Done.
|
|
27
|
-
|
|
28
|
-
## What an initiative's status means
|
|
29
|
-
|
|
30
|
-
The status of an initiative tells only what PMOS read. If PMOS read nothing, the status is **No signal**.
|
|
31
|
-
|
|
32
|
-
- **On track**: a Jira read from the last 14 days shows no ticket past its due date or sprint end, or the plan items have dates that are still ahead.
|
|
33
|
-
- **Late**: a date passed. This is the planned finish of the plan items, or a milestone.
|
|
34
|
-
- **At risk**: a read found a problem, or you confirmed a risk. A problem is an overdue item, a blocked or late Jira ticket, or work that is idle. To confirm a risk, press ✓ on Claude's "Mark … at risk" suggestion for a program milestone.
|
|
35
|
-
- **No signal** (grey): PMOS read nothing that tells how the work goes. No signal never counts as on track.
|
|
36
|
-
|
|
37
|
-
Every status shows where it came from and when PMOS read it. Point at a status on the Board to see this, for example "From Jira · read 3 Nov". If a status has no source or no read time, it shows as No signal. This rule applies to the Board, the initiative page, Home and Intelligence.
|
|
38
|
-
|
|
39
|
-
To read Jira for the initiatives with no signal, open **Needs a look** and press **✦ Read Jira now**.
|
|
40
|
-
|
|
41
|
-
The weekly update in Home follows the same rules. Claude drafts it only when something moved this week or a risk is open. The update starts with **Before you send**: the risks that Claude found and you did not confirm. Press ✓ to confirm all of them. The mail does not include these risks. The initiatives with no signal are under **Not read**.
|
|
42
|
-
|
|
43
|
-
The command below prints the items themselves, from a terminal.
|
|
44
|
-
|
|
45
|
-
## From a terminal
|
|
46
|
-
|
|
47
|
-
`pmos board` prints the items of every initiative as columns: Todo, Doing, Review and Done. It reads the repository, so the workspace server does not need to run.
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
pmos board the Active filter
|
|
51
|
-
pmos board --mine your own items
|
|
52
|
-
pmos board --init <initiative> one initiative
|
|
53
|
-
pmos board --json the same answer as GET /api/board, for scripts
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
The text form prints one column per block, then one line for each card: the initiative, the stage, the title and the owner, and what needs your notice. The command only reads. It writes no line to any ledger.
|
|
57
|
-
|
|
58
|
-
`pmos board` exits with 0 when it printed the Board, 1 when the initiative is not on the Board, and 2 when the command line is wrong.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Claude's leads: pmos lead"
|
|
4
|
-
description: "What a lead is, how an agent saves one with pmos lead, and how the workspace keeps leads up to date. The premium Briefing page that showed them is now Home."
|
|
5
|
-
timestamp: 2026-11-03
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Claude's leads: pmos lead
|
|
9
|
-
|
|
10
|
-
The premium Briefing page is now Home. [Home](home.md) describes it. This page keeps the part of it that still works from a terminal: Claude's leads.
|
|
11
|
-
|
|
12
|
-
**Claude's lead in a popup.** A popup such as a task, a document, a report or a measure opens on Claude's short lead, written ahead of time: why the thing matters now, what is asked or blocking, and what to do. Under it is when the lead was written and what Claude read for it. Opening a popup starts nothing: the lead is read from what is stored. **Refresh** asks the popup's own Claude Code session to write the lead again from the stored reads, and the new lead replaces the old one. A popup with no lead yet says so and offers **Write the lead**. An agent session saves a lead with `pmos lead put --key <popup key> --text "<lead>" --cite "<what it read, when>"`, and `pmos lead show [<key>]` prints what is stored. `pmos lead` calls no tool.
|
|
13
|
-
|
|
14
|
-
**Leads written after each refresh.** PMOS keeps a short list of the popups you opened in the last 14 days, with what each one showed. Forms such as Add a task and Settings are left out. Opening a popup only adds it to that list and starts nothing. When a read of your tools ends well, and once no other read is going, one **Popup leads** session writes the lead of each popup on the list whose lead is missing or older than the newest stored read, at most 12. Refresh all runs it after the reads. It reads only the stored reads and the repository, never a tool, and runs only when a lead is due. `pmos lead due` lists the popups it will write for.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Meeting focus over Google Meet: the Chrome extension"
|
|
4
|
-
description: "What the PMOS Chrome extension shows over a Google Meet call, what it reads, and how to add it with pmos extension."
|
|
5
|
-
timestamp: 2026-11-03
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Meeting focus over Google Meet: the Chrome extension
|
|
9
|
-
|
|
10
|
-
The calendar is in Home: press the calendar icon in Your day's header. A meeting opens in the Viewer, where you record it and follow its notes. [Notes](notes.md) explains recording. This page explains the Chrome extension, which shows a small PMOS panel over a Google Meet call.
|
|
11
|
-
|
|
12
|
-
## Add the extension
|
|
13
|
-
|
|
14
|
-
The PMOS Chrome extension shows a small panel over a Google Meet call, so you do not need to switch to the PMOS tab. The panel is a compact meeting focus. It has a head with the topic the room is on (or "Starts in" before the start) and the time left, the **What's being said** line, the conversation with PMOS, and **Ask PMOS quietly**. Only you see it. It is not part of the screen you share. The extension reads the address and the title of the Meet tab only. It does not read the call's audio or captions, and it talks only to the PMOS on your computer.
|
|
15
|
-
|
|
16
|
-
To add the extension:
|
|
17
|
-
|
|
18
|
-
1. Run `pmos extension`. It prints the folder of the extension and these steps.
|
|
19
|
-
2. In Chrome, open `chrome://extensions` and turn on **Developer mode**.
|
|
20
|
-
3. Press **Load unpacked** and pick the folder that `pmos extension` printed.
|
|
21
|
-
|
|
22
|
-
PMOS must run while you use the panel. The extension looks for PMOS at `http://localhost:7433`. If `pmos` started on another port, open the extension's **Options**, type that address and press **Save**, then reload the Meet tab.
|
|
23
|
-
|
|
24
|
-
To use it, open a Meet call. The panel shows at the bottom right of the call, and not on the Meet home page. PMOS finds the meeting on your calendar by the Meet link in the invite. If no invite has that link, it uses the title of the tab, and then the meeting that is under way now (from 10 minutes before the start to 10 minutes after the end). If none fits, the panel says "No meeting right now" and lists today's meetings. Press the one this call is. **Fold** shrinks the panel to a pill that shows the head only, and the same button opens it again. **Open focus in PMOS** opens the full Meeting focus page in a new tab, with the material, the topics and the captured items. If PMOS does not answer, the panel says "PMOS is not running at" and the address, with a link to the Options.
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: Guide
|
|
3
|
-
title: "Core documents: what each level keeps"
|
|
4
|
-
description: "The core documents of the portfolio, a board and an initiative, what each state means, how PMOS drafts them on a schedule and when you ask, how you issue a draft, and pmos coredoc write."
|
|
5
|
-
timestamp: 2026-10-28
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Core documents: what each level keeps
|
|
9
|
-
|
|
10
|
-
Each level answers one question for one reader:
|
|
11
|
-
|
|
12
|
-
- **Portfolio**: "Are we betting on the right things?" Leadership reads it. It changes each quarter, with a monthly pulse.
|
|
13
|
-
- **Board**: "Is this area moving, and what comes next?" The board owner, the team and the engineering lead read it. It changes every sprint or two weeks.
|
|
14
|
-
- **Initiative**: "What are we building, why, and did it work?" You, the builders and the reviewers read it. It changes at each stage.
|
|
15
|
-
|
|
16
|
-
The Docs view of each level starts with its core set. Each row tells you what the document is for, who reads it, how often it changes, who keeps it, and its state now.
|
|
17
|
-
|
|
18
|
-
## Where each document lives
|
|
19
|
-
|
|
20
|
-
Some core documents are documents of their own. PMOS keeps them in the state folder, under `core-docs/<scope>/<key>/<date>.md`. The others are read from a source that PMOS already keeps: the initiative record and the files it names, the stage tools (problem statement, RICE, launch checklist, kill conditions), the Initiatives and Triage tabs, the releases, and the recurring reports on a dashboard. PMOS never copies these sources.
|
|
21
|
-
|
|
22
|
-
Risks are written once, on the initiative. Board risks and cross-board risks collect them. Each outcome review feeds the board retro and the quarterly review.
|
|
23
|
-
|
|
24
|
-
## The states
|
|
25
|
-
|
|
26
|
-
| State | What it means |
|
|
27
|
-
|---|---|
|
|
28
|
-
| Up to date | The document is issued and its cadence has not passed. |
|
|
29
|
-
| Due | The cadence passed, or the current stage needs the document and it is not there. |
|
|
30
|
-
| Draft ready | PMOS drafted it. It waits for you. |
|
|
31
|
-
| Not started | Nothing is there, and the level needs it now. |
|
|
32
|
-
| Comes later | The initiative has not reached the stage that needs it. |
|
|
33
|
-
| Stale | It was issued before a change it depends on: a stage move (initiative risks, launch checklist, status update), a newer risk list or outcome review (rolled-up documents), or a change to the board settings (board charter). |
|
|
34
|
-
|
|
35
|
-
A row with no source and no document is "Not started" and has no date. PMOS does not guess a date or a warning.
|
|
36
|
-
|
|
37
|
-
A row that is not started always has a next step:
|
|
38
|
-
|
|
39
|
-
- **Draft it**: PMOS drafts a document it keeps itself.
|
|
40
|
-
- **Propose them** (OKRs and health budgets): with no OKR files, PMOS drafts proposed key results and health budgets for you to review and issue. Once OKR files exist, they are the source.
|
|
41
|
-
- **Propose it** (decision log, kill conditions, market and user context): until the real source exists, PMOS drafts one from what it has read. The decision log comes from meeting notes and initiative records. Kill conditions come from each bet and its key result. Market and user context comes from research notes and Horizon scans. You review and issue it. Once the real source exists (a decisions file, kill conditions on the initiatives, research under `planning/research/` or `planning/radar/`), that source is used instead.
|
|
42
|
-
- **Draft it** on the product strategy: PMOS proposes a strategy from your key results, board charters and initiatives. It is a proposal only. You change it, then issue it or drop it.
|
|
43
|
-
- **Run a scan** (Horizon scan reports): opens the Portfolio Overview at Horizon scan, where Scan now is.
|
|
44
|
-
- **Set it up** (status reports): opens Reports, where you set up the report.
|
|
45
|
-
|
|
46
|
-
## How PMOS drafts a document
|
|
47
|
-
|
|
48
|
-
- **When you ask.** Press **Draft it** on a row, or **Ask PMOS to change it** on a draft. PMOS starts one background run at once, even while the schedule is drafting other documents. The run reads the sources of that document and writes one draft. It has no tool that sends, posts or edits.
|
|
49
|
-
- **On a schedule.** At night (01:00 to 05:00), or after you have been away from PMOS for 30 minutes, PMOS drafts each portfolio and board document that has no draft and is due, out of date or not started yet. Due documents go first, then out-of-date ones, then the first draft of documents not started. While their sources do not exist, it also proposes the OKRs, the decision log, kill conditions and market and user context. There is no limit on how many documents are drafted. PMOS drafts them in one run per level: one run for the portfolio and one for each board. Each run reads the sources once and writes each draft with its own command, so the drafts of one level are written from the same reading. If a run writes some of its drafts, the rest are tried on the next tick. If a run writes none, it ends as failed: the refresh log gives the reason, Needs you tells you, and PMOS does not try those documents again until the next day. If you drop a draft, PMOS does not draft that document again until the next day. The product strategy is proposed when it is not started or its quarterly review is due.
|
|
50
|
-
- **The Initiative Driver.** When the current stage of an initiative needs a document that is not there or is stale, the driver drafts it and files a proposal. **Keep** issues the draft. The driver does not propose a stage move while a document of the current stage is due.
|
|
51
|
-
|
|
52
|
-
## Issue a draft
|
|
53
|
-
|
|
54
|
-
Open the draft from its row (**Review the draft**). Read it and change what you like. Then press **Issue it**. Only you can issue or drop a draft. Nothing is sent to anyone: to share an issued document, use the copy action of the document sheet.
|
|
55
|
-
|
|
56
|
-
## The command
|
|
57
|
-
|
|
58
|
-
`pmos coredoc write --scope <scope> --key <key> --file <path>` writes one draft of a core document. The scope is `portfolio`, `board:<id>` or `initiative:<id>`. With `--file -` the command reads the document from standard input. The command refuses a scope it does not know, a key that is not a document of that level, and a document that PMOS reads from another source. A background run can write only the document it was started for. The command writes a draft and nothing else: you issue it on the page.
|