create-pmos 0.653.0 → 0.655.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.
@@ -3222,6 +3222,9 @@ const outcomeProps = require('./lib/outcome-props.js').create({
3222
3222
  boardOf: (w, id) => require('./lib/routes-boards.js').boardIndex(proposalCtx(), w).of(id),
3223
3223
  runtime: () => STATE,
3224
3224
  open: (now) => !proactiveLib.inQuietHours(now, proSettings().quiet),
3225
+ // outcome-checks-run-themselves: a due check no reading decides gets one short run that reads the initiative's records (lib/proposal-runs.js)
3226
+ startRun: (w, o) => proposalRuns.start({ ws: w.id, board: o.board, ini: o.ini, why: 'outcome', press: false, now: o.now,
3227
+ outcome: { metric: o.it.metric, horizon: o.it.horizon, anchor: o.it.anchor, record: o.it.record, why: o.why } }),
3225
3228
  env: process.env,
3226
3229
  every: TICK_MS,
3227
3230
  mayRun: () => { try { return scheduleOwner.mayRun(); } catch { return true; } },
@@ -9617,7 +9620,7 @@ async function handleRequest(req, res) {
9617
9620
  if (!w) return json(res, { ok: false, error: 'no such workspace' }, 400);
9618
9621
  const st = () => kitUpdate.status({ root: w.root, appVersion: APP_VERSION, appDir: __dirname, env: process.env });
9619
9622
  if (p === '/api/kit/check') {
9620
- const r = await kitUpdate.latest({ source: kitUpdate.source() });
9623
+ const r = await kitUpdate.latest({ source: kitUpdate.source(), tag: kitUpdate.channel(process.env, STATE) });
9621
9624
  const now = st();
9622
9625
  if (!r.ok) return json(res, { ok: false, error: r.error, ws: w.id, ...now }, 502);
9623
9626
  const lastCheck = kitUpdate.writeLastCheck(STATE, { latest: r.version, changes: r.changes });
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: initiative-propose
3
3
  label: "Claude proposes, per initiative"
4
- description: "One short background run for one initiative. When the initiative was just added, it looks for it in every connected source and files what it finds: the stage the work is really in, its documents and its tasks with their dates. Each morning it finds why late tasks slipped and files new dates, done and tidy names. Everything waits under the initiative's ✦ for the PM's ✓. It writes no task, document or stage and sends nothing."
4
+ description: "One short background run for one initiative. When the initiative was just added, it looks for it in every connected source and files what it finds: the stage the work is really in, its documents and its tasks with their dates. Each morning it finds why late tasks slipped and files new dates, done and tidy names. When an outcome check date passes and no reading decides it, it reads the records and files whether it worked. Everything waits under the initiative's ✦ for the PM's ✓. It writes no task, document or stage and sends nothing."
5
5
  run: agent
6
6
  agent: claude
7
7
  output:
@@ -10,7 +10,7 @@ output:
10
10
  - Not read
11
11
  ---
12
12
 
13
- /initiative-propose: for ONE initiative, find what the evidence says and file it with `pmos propose`, then stop. The lines after this procedure name the initiative, why this run runs (populate or check), today, its stages and what the PM dropped.
13
+ /initiative-propose: for ONE initiative, find what the evidence says and file it with `pmos propose`, then stop. The lines after this procedure name the initiative, why this run runs (populate, check or outcome), today, its stages and what the PM dropped.
14
14
 
15
15
  Rules that always hold:
16
16
  1. THE ONLY WRITE is `pmos propose`. You have no Write and no Edit tool. Do not add a task, move a stage or write a document: the PM's ✓ on the page does that. Do not commit and do not push.
@@ -39,6 +39,12 @@ Procedure when the run is `check` (the morning check: tasks are late or at risk)
39
39
  3. When the evidence says the work happened (an email was sent, a ticket closed), file `pmos propose done --json -` with `{ "why", "sources", "items": [{ "task" }] }`.
40
40
  4. For names that do not keep the standard, file one `pmos propose name --json -`: `{ "why": "Verb first, short, the WBS number kept. Detail moves to the task's notes.", "sources": [{ "label": "The tasks" }], "items": [{ "task", "to", "notes" }] }`. The standard: the WBS number kept if the PM uses one, verb first, sentence case, at most about 7 words, no "+" and no brackets. Put the detail you cut in `notes`. Propose a new task's name once.
41
41
 
42
+ Procedure when the run is `outcome` (the check date of its expected outcome has passed, and its goal's own reading did not decide it):
43
+ 1. Read the lines below: the expected outcome, the check date, the anchor, the record and why the reading did not decide it. Read the record, its PRD and done test if it names them, and the product's own ledgers and files the outcome is about (for example a ledger that should keep filling, a bench that should have run, a feedback ledger with or without a repeat complaint). Read the stored reads first (`pmos source show <source>`).
44
+ 2. Decide only from what you read: `worked` when the evidence shows the expected outcome happened, `didnt-work` when it shows it did not. "Nobody complained" is not evidence it worked. When you cannot tell, file `{ "disposition": "cant-tell" }`: the PM is asked, and that is the right answer.
45
+ 3. File once with `pmos propose verdict --json -`: `{ "disposition": "worked" | "didnt-work" | "cant-tell", "evidence": "<one line: what you found, with the number>", "claims": [{ "text": "<one fact>", "sources": [{ "label": "<what it is>", "ref": "<path:line, from the repository root>", "quote": "<the text on that line, at least 12 characters>" }] }] }`. Each quote is checked against its line; a claim that does not match is refused, and so is the verdict.
46
+ 4. Do not record the check yourself: the server records your verdict with Undo.
47
+
42
48
  Output contract: produce EXACTLY these sections in your final message:
43
49
  - Filed (the proposal ids and their kinds, or "nothing new")
44
50
  - Not found (what you looked for and did not find)
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "Outcome checks that run themselves (initiative outcome-checks-run-themselves, done test C1-C12): PMOS judges a due outcome from the goal's own reading, asks once for a source it cannot read twice, and starts one short run per check date for the rest; the verdict's ✓ and Undo on a scratch server. No connector, model or network.",
3
+ "modules": [
4
+ "outcome-judge.test.js",
5
+ "outcome-check-runs.test.js"
6
+ ],
7
+ "seconds": {
8
+ "outcome-judge.test.js": 4,
9
+ "outcome-check-runs.test.js": 12
10
+ }
11
+ }