create-pmos 0.796.0 → 0.798.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 +40 -57
- 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/scripts/factory-guardrail.js +65 -4
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +39 -10
- package/workspace/guide/cli.md +11 -0
- package/workspace/guide/home.md +1 -0
- package/workspace/guide/layout.md +1 -1
- package/workspace/lib/a2ui-v1/NOTICE +4 -0
- package/workspace/lib/a2ui-v1/agent_to_renderer.json +220 -0
- package/workspace/lib/a2ui-v1/catalog.json +1206 -0
- package/workspace/lib/a2ui-v1/common_types.json +391 -0
- package/workspace/lib/a2ui-v1/renderer_to_agent.json +161 -0
- package/workspace/lib/a2ui.js +174 -0
- package/workspace/lib/briefing-premium-agent.js +2 -0
- package/workspace/lib/mcp-cli.js +129 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/a2ui-view.js +230 -0
- package/workspace/public/pm/cozy-home.css +13 -0
- package/workspace/public/pm/cozy-pop-work.js +14 -15
- package/workspace/public/pm/home-chat.js +10 -4
- package/workspace/public/pm/status-edit.js +30 -0
- package/workspace/test-lists/a2ui-inbound-render.json +9 -0
- package/workspace/test-lists/a2ui-mcp-outbound.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.798.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,44 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.798.0",
|
|
38
|
+
"at": "2026-11-24T23:17:36.353Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1822,
|
|
43
|
+
"t": "The merge station runs the strict guardrail on every merge (A508)",
|
|
44
|
+
"s": "The merge station runs the strict guardrail on every merge (A508)",
|
|
45
|
+
"k": "new"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1823,
|
|
49
|
+
"t": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
50
|
+
"s": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
51
|
+
"k": "fix"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"v": "0.797.0",
|
|
57
|
+
"at": "2026-11-24T23:00:19.305Z",
|
|
58
|
+
"f": 4,
|
|
59
|
+
"prs": [
|
|
60
|
+
{
|
|
61
|
+
"n": 1776,
|
|
62
|
+
"t": "Pmos mcp gives PMOS cards to another agent as A2UI v1.0 (a2ui-mcp-outbound, job #1751) — WAITS FOR WAWAN",
|
|
63
|
+
"s": "Pmos mcp gives PMOS cards to another agent as A2UI v1.0 (a2ui-mcp-outbound, job #1751) — WAITS FOR WAWAN",
|
|
64
|
+
"k": "new"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"n": 1781,
|
|
68
|
+
"t": "The chat draws another agent's A2UI surface (job #1752) — WAITS FOR WAWAN",
|
|
69
|
+
"s": "The chat draws another agent's A2UI surface (job #1752) — WAITS FOR WAWAN",
|
|
70
|
+
"k": "new"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
36
74
|
{
|
|
37
75
|
"v": "0.796.0",
|
|
38
76
|
"at": "2026-11-24T21:11:47.859Z",
|
|
@@ -42,16 +80,7 @@
|
|
|
42
80
|
"n": 1820,
|
|
43
81
|
"t": "Milestone and initiative rows in Ask PMOS answers carry their buttons (job #1818)",
|
|
44
82
|
"s": "Milestone and initiative rows in Ask PMOS answers carry their buttons (job #1818)",
|
|
45
|
-
"k": "fix"
|
|
46
|
-
"try": {
|
|
47
|
-
"steps": [
|
|
48
|
-
"On Today, open Ask PMOS and ask: Which milestones are coming up? Press the diamond on a milestone row, then Undo.",
|
|
49
|
-
"Ask: Show me my top three initiatives.",
|
|
50
|
-
"Press the down arrow on the first row, then Undo."
|
|
51
|
-
],
|
|
52
|
-
"see": "the milestone row shows 'Back to a task: <title>.' with Undo, and Undo makes it a milestone again; the first initiative row has a down arrow but no up arrow; the down arrow moves it one place down…",
|
|
53
|
-
"open": "/today.html"
|
|
54
|
-
}
|
|
83
|
+
"k": "fix"
|
|
55
84
|
}
|
|
56
85
|
]
|
|
57
86
|
},
|
|
@@ -434,52 +463,6 @@
|
|
|
434
463
|
}
|
|
435
464
|
}
|
|
436
465
|
]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"v": "0.778.0",
|
|
440
|
-
"at": "2026-11-24T14:17:30.065Z",
|
|
441
|
-
"f": 4,
|
|
442
|
-
"prs": [
|
|
443
|
-
{
|
|
444
|
-
"n": 1745,
|
|
445
|
-
"t": "Every live initiative gets an expected outcome and a check date",
|
|
446
|
-
"s": "Every live initiative gets an expected outcome and a check date",
|
|
447
|
-
"k": "new",
|
|
448
|
-
"h": "Every live initiative gets an expected outcome and a check date",
|
|
449
|
-
"try": {
|
|
450
|
-
"steps": [
|
|
451
|
-
"Open Work and open an initiative that had no expected outcome",
|
|
452
|
-
"Press its ✦ and find Expected outcome",
|
|
453
|
-
"Press Undo on it if it is wrong"
|
|
454
|
-
],
|
|
455
|
-
"see": "The initiative shows an expected outcome and a check date that PMOS drafted, with the line it came from, and Undo takes it back",
|
|
456
|
-
"open": "/premium-board.html"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
]
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"v": "0.777.0",
|
|
463
|
-
"at": "2026-11-24T14:02:27.034Z",
|
|
464
|
-
"f": 4,
|
|
465
|
-
"prs": [
|
|
466
|
-
{
|
|
467
|
-
"n": 1744,
|
|
468
|
-
"t": "Acceptance criteria for Jira tickets from the initiative's files",
|
|
469
|
-
"s": "Acceptance criteria for Jira tickets from the initiative's files",
|
|
470
|
-
"k": "new",
|
|
471
|
-
"h": "Acceptance criteria for Jira tickets from the initiative's files",
|
|
472
|
-
"try": {
|
|
473
|
-
"steps": [
|
|
474
|
-
"Open Work",
|
|
475
|
-
"Open an initiative that tracks Jira tickets and has no done test",
|
|
476
|
-
"Read the ✦ Add acceptance criteria above the breakdown"
|
|
477
|
-
],
|
|
478
|
-
"see": "The ✦ lists each open ticket with up to three checks taken from the initiative's own files, each naming the file and line it comes from. ✓ asks, and Undo in the toast takes it back.",
|
|
479
|
-
"open": "/premium-board.html"
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
]
|
|
483
466
|
}
|
|
484
467
|
]
|
|
485
468
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T23:17:32Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T23:17:32Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
* [--github --pr <number>] in GitHub Actions only: write verdict to GITHUB_OUTPUT and the step summary; on auto run
|
|
38
38
|
* `gh pr ready` and `gh pr merge --auto --squash` with the workflow's own token; on human turn
|
|
39
39
|
* auto-merge off. The agent never runs this: the Builder has no node, gh or push.
|
|
40
|
+
* node scripts/factory-guardrail.js --line --base origin/main --head <pr head> [--job <id>] [--body-file <f>] [--json]
|
|
41
|
+
* the in-repo factory line's merge station (factory/stations/merge.md): lineVerdict below.
|
|
40
42
|
* Exit 0 for every verdict (the check reports, it does not block). A failure to read anything is `human`, never `auto`.
|
|
41
43
|
*/
|
|
42
44
|
const fs = require('fs');
|
|
@@ -321,7 +323,62 @@ function classify({ cwd = process.cwd(), base, head, branch = '', body = '', led
|
|
|
321
323
|
return { factory: true, item, verdict: uniq.length ? 'human' : 'auto', reasons: uniq, files: files.map((f) => f.path) };
|
|
322
324
|
}
|
|
323
325
|
|
|
326
|
+
/* ---- the in-repo factory line (factory/, A508). Its jobs are GitHub issues and its pull requests carry `Initiative: <id>` or
|
|
327
|
+
* `Factory-Job: <id>`, not a pmos/<item> branch, so classify() answered `none` for every one of them. The merge station runs this
|
|
328
|
+
* on every merge instead. It keeps the irreversible list strict: migrations and data deletion, auth/payments/personal data/secrets,
|
|
329
|
+
* CI and gates, a new dependency, a public API, anything sent outward, a new agent path, agent rules and decision records, and the
|
|
330
|
+
* improvement loop. Any one of them → `human`: the merge waits for Wawan. It leaves out the D108 conditions that only a product
|
|
331
|
+
* repository's work-item ledger can answer (scope, flag, verified, pmos-review): on this line the merge station merges on green CI.
|
|
332
|
+
* It also leaves out changed tests and done tests (every build adds a done test and may fix a test; the Checker grades them) and the
|
|
333
|
+
* D11 history flags (an L2 flag, not an irreversible kind).
|
|
334
|
+
* lineVerdict({ cwd, base, head, body, job }) → { factory: true, item: job, verdict: 'auto'|'human', reasons, files } */
|
|
335
|
+
const LINE_SKIP = new Set(['eval-files']);
|
|
336
|
+
function jobOf(body) {
|
|
337
|
+
const m = /^(?:Factory-Job|Initiative):\s*([a-z0-9][a-z0-9-]*)\s*$/mi.exec(String(body || ''));
|
|
338
|
+
return m ? m[1].toLowerCase() : null;
|
|
339
|
+
}
|
|
340
|
+
function lineVerdict({ cwd = process.cwd(), base, head, body = '', job = null } = {}) {
|
|
341
|
+
const item = job || jobOf(body);
|
|
342
|
+
const reasons = [];
|
|
343
|
+
const human = (rule, detail) => reasons.push({ rule, detail });
|
|
344
|
+
if (/^PMOS-Merge:\s*human\s*$/mi.test(String(body || ''))) human('pmos-merge-human', 'the pull request asks for a person (PMOS-Merge: human)');
|
|
345
|
+
if (!base || !head) { human('unreadable', 'no base or head to compare'); return { factory: true, line: true, item, verdict: 'human', reasons, files: [] }; }
|
|
346
|
+
const d = diffOf(cwd, base, head);
|
|
347
|
+
if (d.error) { human('unreadable', d.error); return { factory: true, line: true, item, verdict: 'human', reasons, files: [] }; }
|
|
348
|
+
const files = d.files, all = [];
|
|
349
|
+
if (!files.length) human('empty', 'the pull request changes nothing');
|
|
350
|
+
for (const f of files) {
|
|
351
|
+
const p = f.path, l = p.toLowerCase(), base_ = path.posix.basename(l);
|
|
352
|
+
all.push(...(d.added.get(p) || []).map((t) => [p, t]));
|
|
353
|
+
if (CI.test(l) || GUARD_NAME.test(l)) human('ci-gates', `${p} is CI, a gate, the guardrail, a PMOS record or branch protection`);
|
|
354
|
+
if (AGENT_FILES.test(l) || segHas(p, AGENT_PATH)) human('agent-path', `${p} is an agent rule, prompt or skill (a new agent path)`);
|
|
355
|
+
if (segHas(p, MIGRATION) || /schema\.prisma$|(^|\/)db\/schema\./.test(l)) human('migration', `${p} is a migration or a schema`);
|
|
356
|
+
if (segHas(p, SENSITIVE) || /(^|\/)\.env(\.|$)|\.(pem|key|p12|pfx|jks)$/.test(l)) human('sensitive', `${p} touches auth, permissions, payments, personal data or secrets`);
|
|
357
|
+
if (segHas(p, API) || /(^|\/)index\.d\.ts$/.test(l)) human('public-api', `${p} is a public API or contract`);
|
|
358
|
+
if (LOCKS.includes(base_)) human('dependency', `${p} changes a lock file (a dependency may be new)`);
|
|
359
|
+
if (MANIFESTS.includes(base_) && (d.added.get(p) || []).some((t) => t.trim())) human('dependency', `${p} changes a dependency manifest`);
|
|
360
|
+
if (base_ === 'package.json') {
|
|
361
|
+
const before = git(cwd, ['show', `${base}:${f.from || p}`]), after = git(cwd, ['show', `${head}:${p}`]);
|
|
362
|
+
const a = before.ok ? depsOf(before.out) : new Set(), b = after.ok ? depsOf(after.out) : null;
|
|
363
|
+
if (!a || !b) human('dependency', `${p} could not be read`);
|
|
364
|
+
else { const added = [...b].filter((x) => !a.has(x)); if (added.length) human('dependency', `${p} adds ${added.map((x) => x.split(':')[1]).join(', ')}`); }
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
for (const r of harnessTriggers(files, { body })) if (!LINE_SKIP.has(r.rule)) human(r.rule, r.detail);
|
|
368
|
+
const code = all.filter(([p]) => !/\.(md|mdx|txt|rst|adoc)$/i.test(p) && !TEST_FILE.test(p.toLowerCase()) && !TEST_NAME.test(p.toLowerCase()));
|
|
369
|
+
for (const t of ADDED) {
|
|
370
|
+
const hit = code.find(([, line]) => t.re.test(line));
|
|
371
|
+
if (hit) human(t.rule, `${hit[0]} ${t.why}: "${one(hit[1], 100)}"`);
|
|
372
|
+
}
|
|
373
|
+
const seen = new Set();
|
|
374
|
+
const uniq = reasons.filter((r) => { const k = r.rule + '|' + r.detail; if (seen.has(k)) return false; seen.add(k); return true; });
|
|
375
|
+
return { factory: true, line: true, item, verdict: uniq.length ? 'human' : 'auto', reasons: uniq, files: files.map((f) => f.path) };
|
|
376
|
+
}
|
|
377
|
+
|
|
324
378
|
function summaryOf(v) {
|
|
379
|
+
if (v.line) return v.verdict === 'auto'
|
|
380
|
+
? `pmos-guardrail (factory line): MERGE ${v.item || 'this pull request'} when required CI is green. Nothing on the irreversible list.`
|
|
381
|
+
: [`pmos-guardrail (factory line): WAIT FOR WAWAN on ${v.item || 'this pull request'}, because:`, ...v.reasons.map((r) => `- ${r.detail}`)].join('\n');
|
|
325
382
|
if (v.verdict === 'none') return 'pmos-guardrail: not a factory pull request. Nothing to do.';
|
|
326
383
|
if (v.verdict === 'auto') return `pmos-guardrail: AUTO for ${v.item}. The pmos-review check passed. Auto-merge is on: GitHub merges when every required check is green. The change reaches users only through its flag.`;
|
|
327
384
|
return [`pmos-guardrail: HUMAN for ${v.item || 'this revert'}. A person merges this pull request, because:`, ...v.reasons.map((r) => `- ${r.detail}`)].join('\n');
|
|
@@ -342,14 +399,18 @@ function actOnGitHub(v, { pr, env = process.env } = {}) {
|
|
|
342
399
|
function cliMain(argv, { say = (s) => console.log(s), env = process.env, cwd = process.cwd() } = {}) {
|
|
343
400
|
const opt = (k) => { const i = argv.indexOf(k); return i !== -1 && argv[i + 1] !== undefined && !argv[i + 1].startsWith('--') ? argv[i + 1] : undefined; };
|
|
344
401
|
const base = opt('--base'), head = opt('--head');
|
|
345
|
-
if (!base || !head) { say('usage: node factory-guardrail.js --base <ref> --head <ref> [--branch <name>] [--body-file <f>] [--review-state <s>] [--json] [--github --pr <n>]'); return 2; }
|
|
402
|
+
if (!base || !head) { say('usage: node factory-guardrail.js --base <ref> --head <ref> [--branch <name>] [--body-file <f>] [--review-state <s>] [--json] [--github --pr <n>] | --line [--job <id>]'); return 2; }
|
|
346
403
|
let body = '';
|
|
347
404
|
if (opt('--body-file')) { try { body = fs.readFileSync(opt('--body-file'), 'utf8'); } catch { body = 'PMOS-Merge: human'; } }
|
|
348
405
|
let v;
|
|
349
406
|
// the CLI always judges the review: an absent --review-state (or an empty one) is "no review", never a pass
|
|
350
407
|
const review = opt('--review-state') || null;
|
|
351
|
-
|
|
352
|
-
|
|
408
|
+
// --line: the in-repo factory line (factory/stations/merge.md), job from --job or the body's Initiative:/Factory-Job: line (A508)
|
|
409
|
+
const line = argv.includes('--line');
|
|
410
|
+
try {
|
|
411
|
+
v = line ? lineVerdict({ cwd, base, head, body, job: opt('--job') || null })
|
|
412
|
+
: classify({ cwd, base, head, branch: opt('--branch') || '', body, headRepo: opt('--head-repo') || null, baseRepo: opt('--base-repo') || null, review });
|
|
413
|
+
} catch (e) { v = { factory: true, line, item: null, verdict: 'human', reasons: [{ rule: 'unreadable', detail: 'the guardrail failed: ' + one(e.message, 200) }], files: [] }; }
|
|
353
414
|
say(argv.includes('--json') ? JSON.stringify(v) : summaryOf(v));
|
|
354
415
|
if (argv.includes('--github')) {
|
|
355
416
|
for (const r of actOnGitHub(v, { pr: opt('--pr'), env })) say(`gh ${r.args.join(' ')} → ${r.status}${r.out ? ' ' + r.out : ''}`);
|
|
@@ -357,5 +418,5 @@ function cliMain(argv, { say = (s) => console.log(s), env = process.env, cwd = p
|
|
|
357
418
|
return 0;
|
|
358
419
|
}
|
|
359
420
|
|
|
360
|
-
module.exports = { classify, harnessTriggers, HARNESS, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
|
|
421
|
+
module.exports = { classify, lineVerdict, jobOf, harnessTriggers, HARNESS, summaryOf, actOnGitHub, cliMain, REVERT_DAYS, STALE_DAYS, MANIFESTS, LOCKS };
|
|
361
422
|
if (require.main === module) process.exitCode = cliMain(process.argv.slice(2));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T23:17:32Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.798.0",
|
|
4
|
+
"at": "2026-11-24T23:17:36.353Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1822,
|
|
9
|
+
"t": "The merge station runs the strict guardrail on every merge (A508)",
|
|
10
|
+
"s": "The merge station runs the strict guardrail on every merge (A508)",
|
|
11
|
+
"k": "new"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1823,
|
|
15
|
+
"t": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
16
|
+
"s": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
17
|
+
"k": "fix"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"v": "0.797.0",
|
|
23
|
+
"at": "2026-11-24T23:00:19.305Z",
|
|
24
|
+
"f": 4,
|
|
25
|
+
"prs": [
|
|
26
|
+
{
|
|
27
|
+
"n": 1776,
|
|
28
|
+
"t": "Pmos mcp gives PMOS cards to another agent as A2UI v1.0 (a2ui-mcp-outbound, job #1751) — WAITS FOR WAWAN",
|
|
29
|
+
"s": "Pmos mcp gives PMOS cards to another agent as A2UI v1.0 (a2ui-mcp-outbound, job #1751) — WAITS FOR WAWAN",
|
|
30
|
+
"k": "new"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"n": 1781,
|
|
34
|
+
"t": "The chat draws another agent's A2UI surface (job #1752) — WAITS FOR WAWAN",
|
|
35
|
+
"s": "The chat draws another agent's A2UI surface (job #1752) — WAITS FOR WAWAN",
|
|
36
|
+
"k": "new"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
2
40
|
{
|
|
3
41
|
"v": "0.796.0",
|
|
4
42
|
"at": "2026-11-24T21:11:47.859Z",
|
|
@@ -8,16 +46,7 @@
|
|
|
8
46
|
"n": 1820,
|
|
9
47
|
"t": "Milestone and initiative rows in Ask PMOS answers carry their buttons (job #1818)",
|
|
10
48
|
"s": "Milestone and initiative rows in Ask PMOS answers carry their buttons (job #1818)",
|
|
11
|
-
"k": "fix"
|
|
12
|
-
"try": {
|
|
13
|
-
"steps": [
|
|
14
|
-
"On Today, open Ask PMOS and ask: Which milestones are coming up? Press the diamond on a milestone row, then Undo.",
|
|
15
|
-
"Ask: Show me my top three initiatives.",
|
|
16
|
-
"Press the down arrow on the first row, then Undo."
|
|
17
|
-
],
|
|
18
|
-
"see": "the milestone row shows 'Back to a task: <title>.' with Undo, and Undo makes it a milestone again; the first initiative row has a down arrow but no up arrow; the down arrow moves it one place down…",
|
|
19
|
-
"open": "/today.html"
|
|
20
|
-
}
|
|
49
|
+
"k": "fix"
|
|
21
50
|
}
|
|
22
51
|
]
|
|
23
52
|
},
|
package/workspace/guide/cli.md
CHANGED
|
@@ -1126,6 +1126,17 @@ An unknown file, heading or decision stops with a message that says what was not
|
|
|
1126
1126
|
|
|
1127
1127
|
## Meetings
|
|
1128
1128
|
|
|
1129
|
+
### pmos mcp: PMOS cards for another agent
|
|
1130
|
+
|
|
1131
|
+
`pmos mcp` runs a small MCP server on stdin and stdout, so another agent can show PMOS rows in its own chat and run their buttons. The rows come as A2UI v1.0 messages in the basic catalog, so any A2UI renderer can draw them. Add it to an agent as a stdio MCP server, for example `claude mcp add pmos -- pmos mcp` in the repository.
|
|
1132
|
+
|
|
1133
|
+
```
|
|
1134
|
+
pmos mcp # the repository you are in
|
|
1135
|
+
pmos mcp --root ../lendly # another repository
|
|
1136
|
+
```
|
|
1137
|
+
|
|
1138
|
+
It has three tools. **pmos_catalog** gives the card catalog as an A2UI catalog. **pmos_card** with a kind (task, subtask, milestone or initiative) and up to 5 ids gives one surface: a card per row with its title, owner, due day and buttons. **pmos_action** takes the A2UI action a user pressed on that surface, runs the `pmos task` command the button names, and gives the Undo line. A button that asks you first, or one that PMOS does itself, refuses and changes nothing. A write is attributed the same way as any `pmos task` command.
|
|
1139
|
+
|
|
1129
1140
|
### pmos extension
|
|
1130
1141
|
|
|
1131
1142
|
`pmos extension` prints the folder of the Chrome extension for Google Meet, and the three steps to load it. [Notes](notes.md) explains the extension.
|
package/workspace/guide/home.md
CHANGED
|
@@ -161,6 +161,7 @@ Press the name in the Viewer's header. The name becomes a field.
|
|
|
161
161
|
- Type the new name. Press Enter or the check to save it. Press Esc to stop without a change. An empty name is not saved.
|
|
162
162
|
- The new name shows at once in the list, the chat header, the Viewer, Work and the Timeline. The message **Renamed** has **Undo**.
|
|
163
163
|
- **Rows and pickers in the chat.** When PMOS names tasks or an initiative in its answer, the chat shows them as the rows Work shows, live, with their buttons, each with **Undo**: ✓ marks a task done, ◇ makes a milestone a task again, and the arrows move an initiative up or down the Roadmap (the top one has no up arrow, the last one no down arrow). It shows the first 5 and **All N on Work**. A task that is gone shows "was not found", and PMOS's words above stay. When PMOS needs you to choose a value, such as a new due date or an owner, it shows one picker per value with its recommended choice set (✦). One press makes the change, and **Undo** puts it back. A row shows only the parts that have a value: a task with no owner or no due date shows no empty place for it. PMOS notes which kinds and ids each answer showed, which were not found and which buttons you pressed, and each ✦ draft with its ✓ or ✕, in the local use log on this computer. It notes no titles and none of your words. Nothing is sent anywhere.
|
|
164
|
+
- **A surface from another agent.** When a chat uses a tool of another agent that sends a small screen (in the A2UI format, such as `pmos mcp` in another workspace), the chat shows it under the words with PMOS's own look: text, cards, buttons, fields and choices. Press a button to send your choice back to that agent as your next message; it changes nothing in PMOS by itself. A screen with something the chat cannot show safely (an unknown part, an outside image, a script) shows one line, "PMOS can't show this surface", and the agent's words stay. A video or a sound file shows as one line.
|
|
164
165
|
- **A change from the chat shows at once.** When you ask the chat to add, move, close or delete a task, the row changes on Today, Work and an open task popup within a second, without the page reading its lists again. A change you make in one tab of the workspace shows in its other open tabs as soon as it is saved. A change that is not saved does not show in the other tabs. A published read-only Board does not follow these changes: it shows the board as it was published.
|
|
165
166
|
- An initiative of another product renames in that product's own repository, the same as on Work.
|
|
166
167
|
- Only the name changes. The id, the record file, the links and the history stay the same.
|
|
@@ -487,7 +487,7 @@ The shape is before the title on Work, Goals and the phone rows, in the Status c
|
|
|
487
487
|
|
|
488
488
|
Where a status shows (a card on Work, the top of an initiative, a row on Home and a row on the phone), you see the state shape, the stage, and one line of at most 12 words. PMOS sets the stage from the work itself, so the line says only what is new.
|
|
489
489
|
|
|
490
|
-
To write a status, press the status line at the top of an initiative. A count shows how many words you have used, for example "9 of 12 words". Past 12 words, the count turns red and PMOS suggests a short line from your text. Select **Use it** to keep that line, or edit it. When you save, the whole text goes to the initiative's log with its date and author, and the short line becomes the status. Nothing is lost.
|
|
490
|
+
To write a status, press the status line at the top of an initiative. A count shows how many words you have used, for example "9 of 12 words". Past 12 words, the count turns red and PMOS suggests a short line from your text. Select **Use it** to keep that line, or edit it. When you save, the whole text goes to the initiative's log with its date and author, and the short line becomes the status. Nothing is lost, also when you edit the line after **Use it**. If you then write past 12 words again, your new text is the whole text.
|
|
491
491
|
|
|
492
492
|
From a terminal or the chat, `pmos initiative status <id>` shows the line and the log, and `pmos initiative status <id> "<text>"` saves a status.
|
|
493
493
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
These four JSON Schema files are the A2UI v1.0 protocol schemas, copied without change from https://github.com/google/A2UI
|
|
2
|
+
(specification/v1_0/json/agent_to_renderer.json, renderer_to_agent.json, common_types.json, and catalogs/basic/v1/catalog.json saved
|
|
3
|
+
here as catalog.json, the name the envelope schema refers to). A2UI is Copyright Google LLC and licensed under the Apache License,
|
|
4
|
+
Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0). lib/a2ui.js reads them to check every message `pmos mcp` sends.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://a2ui.org/specification/v1_0/agent_to_renderer.json",
|
|
4
|
+
"title": "A2UI Message Schema",
|
|
5
|
+
"description": "Describes a JSON payload for an A2UI message, which is used to dynamically construct and update user interfaces.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"oneOf": [
|
|
8
|
+
{"$ref": "#/$defs/CreateSurfaceMessage"},
|
|
9
|
+
{"$ref": "#/$defs/UpdateComponentsMessage"},
|
|
10
|
+
{"$ref": "#/$defs/UpdateDataModelMessage"},
|
|
11
|
+
{"$ref": "#/$defs/DeleteSurfaceMessage"},
|
|
12
|
+
{"$ref": "#/$defs/CallRendererFunctionMessage"},
|
|
13
|
+
{"$ref": "#/$defs/AgentFunctionResponseMessage"}
|
|
14
|
+
],
|
|
15
|
+
"$defs": {
|
|
16
|
+
"CreateSurfaceMessage": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"version": {
|
|
20
|
+
"const": "1.0"
|
|
21
|
+
},
|
|
22
|
+
"createSurface": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"description": "Signals the renderer to create a new surface and begin rendering it. Creating a surface implicitly instantiates the canonical 'Surface' container component ('common_types.json#/$defs/Surface') with 'child': 'root'. It is an error to try to create a surface with an existing ID without first deleting it; surfaceId MUST be globally unique for the renderer's lifetime. The component tree and initial data model may be provided inline via 'components' and 'dataModel', or sent later in 'updateComponents' and/or 'updateDataModel' messages for the same surfaceId.",
|
|
25
|
+
"properties": {
|
|
26
|
+
"surfaceId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The unique identifier for the UI surface to be rendered. It must be globally unique for the renderer's lifetime."
|
|
29
|
+
},
|
|
30
|
+
"catalogId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "A string that uniquely identifies the default catalog for this surface. It is recommended to prefix this with an internet domain that you own, to avoid conflicts e.g. 'mycompany.com:somecatalog'. Components that do not explicitly specify @catalogId and function calls that do not explicitly specify catalogId will use this surface-level default catalogId."
|
|
33
|
+
},
|
|
34
|
+
"sendDataModel": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "If true, the renderer will send the full data model of this surface in the metadata of every A2A message sent to the agent that created the surface. Defaults to false."
|
|
37
|
+
},
|
|
38
|
+
"components": {
|
|
39
|
+
"$ref": "#/$defs/ComponentsList"
|
|
40
|
+
},
|
|
41
|
+
"dataModel": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "The initial root data model object for the surface.",
|
|
44
|
+
"additionalProperties": true
|
|
45
|
+
},
|
|
46
|
+
"metadata": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "Optional surface-level metadata.",
|
|
49
|
+
"properties": {
|
|
50
|
+
"extensions": {
|
|
51
|
+
"$ref": "common_types.json#/$defs/Extensions"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["surfaceId"],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["createSurface", "version"],
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
"Component": {
|
|
65
|
+
"description": "A UI component for the surface, combining baseline envelope properties with the catalog component definition.",
|
|
66
|
+
"allOf": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"$ref": "catalog.json#/$defs/anyComponent"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"component": {
|
|
77
|
+
"not": {
|
|
78
|
+
"const": "Surface"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"unevaluatedProperties": false
|
|
85
|
+
},
|
|
86
|
+
"ComponentsList": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"description": "A list containing UI components for the surface.",
|
|
89
|
+
"minItems": 1,
|
|
90
|
+
"items": {
|
|
91
|
+
"$ref": "#/$defs/Component"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"UpdateComponentsMessage": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"version": {
|
|
98
|
+
"const": "1.0"
|
|
99
|
+
},
|
|
100
|
+
"updateComponents": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"description": "Updates a surface with a new set of components. This message can be sent multiple times to update the component tree of an existing surface. One of the components in one of the components lists MUST have an 'id' of 'root' to serve as the root of the component tree. The createSurface message MUST have been previously sent for this surfaceId.",
|
|
103
|
+
"properties": {
|
|
104
|
+
"surfaceId": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "The unique identifier for the UI surface to be updated. It must be globally unique for the renderer's lifetime."
|
|
107
|
+
},
|
|
108
|
+
"components": {
|
|
109
|
+
"$ref": "#/$defs/ComponentsList"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": ["surfaceId", "components"],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": ["updateComponents", "version"],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
},
|
|
119
|
+
"UpdateDataModelMessage": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"version": {
|
|
123
|
+
"const": "1.0"
|
|
124
|
+
},
|
|
125
|
+
"updateDataModel": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"description": "Updates the data model for an existing surface. This message can be sent multiple times to update the data model. The createSurface message MUST have been previously sent for this surfaceId.",
|
|
128
|
+
"properties": {
|
|
129
|
+
"surfaceId": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "The unique identifier for the UI surface this data model update applies to. It must be globally unique for the renderer's lifetime."
|
|
132
|
+
},
|
|
133
|
+
"path": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "An optional path to a location within the data model (e.g., '/user/name'). If omitted, or set to '/', refers to the entire data model."
|
|
136
|
+
},
|
|
137
|
+
"value": {
|
|
138
|
+
"description": "The data to be updated in the data model. To delete the key/value at 'path', set 'value' explicitly to null."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": ["surfaceId", "value"],
|
|
142
|
+
"additionalProperties": false
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": ["updateDataModel", "version"],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
"DeleteSurfaceMessage": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"version": {
|
|
152
|
+
"const": "1.0"
|
|
153
|
+
},
|
|
154
|
+
"deleteSurface": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"description": "Signals the renderer to delete the surface identified by 'surfaceId'. The createSurface message MUST have been previously sent for this surfaceId.",
|
|
157
|
+
"properties": {
|
|
158
|
+
"surfaceId": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"description": "The unique identifier for the UI surface to be deleted. It must be globally unique for the renderer's lifetime."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": ["surfaceId"],
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": ["deleteSurface", "version"],
|
|
168
|
+
"additionalProperties": false
|
|
169
|
+
},
|
|
170
|
+
"CallRendererFunctionMessage": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"version": {
|
|
174
|
+
"const": "1.0"
|
|
175
|
+
},
|
|
176
|
+
"callRendererFunction": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"description": "Signals the renderer to execute a function locally on behalf of the agent.",
|
|
179
|
+
"properties": {
|
|
180
|
+
"surfaceId": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Optional ID of the surface whose data model provides the evaluation context for this call. If omitted, the function executes in a surface-independent root context with an empty data model."
|
|
183
|
+
},
|
|
184
|
+
"functionCallId": {
|
|
185
|
+
"$ref": "common_types.json#/$defs/CallId",
|
|
186
|
+
"description": "Unique ID for this instance of the function call. The renderer MUST copy this ID into the return response."
|
|
187
|
+
},
|
|
188
|
+
"callFunction": {
|
|
189
|
+
"allOf": [
|
|
190
|
+
{
|
|
191
|
+
"$ref": "common_types.json#/$defs/FunctionCall"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"required": ["catalogId"]
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"required": ["functionCallId", "callFunction"],
|
|
200
|
+
"additionalProperties": false
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": ["callRendererFunction", "version"],
|
|
204
|
+
"additionalProperties": false
|
|
205
|
+
},
|
|
206
|
+
"AgentFunctionResponseMessage": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"version": {
|
|
210
|
+
"const": "1.0"
|
|
211
|
+
},
|
|
212
|
+
"agentFunctionResponse": {
|
|
213
|
+
"$ref": "common_types.json#/$defs/FunctionResponse"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": ["agentFunctionResponse", "version"],
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|