@juicesharp/rpiv-pi 2.13.9 → 2.14.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/README.md CHANGED
@@ -49,7 +49,7 @@ Now run a pipeline:
49
49
  brief, slices it, designs each slice in parallel, gates the plan, then implements and
50
50
  validates; see [docs/workflows.md](./docs/workflows.md) for the full stage list and
51
51
  the other pipelines. The run detaches immediately: a lane appears in
52
- the dock under your editor with live progress while you keep typing. Press `ctrl+q` —
52
+ the dock under your editor with live progress while you keep typing. Press `ctrl+q` (`alt+l` on Windows and WSL) —
53
53
  or `↓` on an empty prompt, or `/lanes` — to step in, replay the transcript, answer a
54
54
  parked question with `⏎`, or stop the run with `x`.
55
55
 
@@ -95,7 +95,7 @@ no overrides.
95
95
  | Setting | What it does | Default |
96
96
  | --- | --- | --- |
97
97
  | `/rpiv-models` | Pick model + reasoning effort for the global default, a subagent, a skill, a workflow stage, or a preset stage | no overrides |
98
- | `RPIV_LANES_HOTKEY` | Rebind the lane-browser hotkey to any Pi key id, or set `off` to register none | `ctrl+q` |
98
+ | `RPIV_LANES_HOTKEY` | Rebind the lane-browser hotkey to any Pi key id, or set `off` to register none | `ctrl+q` (`alt+l` on Windows and WSL) |
99
99
  | `RPIV_BASH_TIMEOUT_MS` | Per-command bash watchdog inside detached child sessions, clamped to 5 s–30 min | `180000` (3 min) |
100
100
 
101
101
  ## Reference
@@ -134,15 +134,16 @@ You need no build step and no native dependency.
134
134
  | Session-start banner: *bundled agents need attention* | A bundled agent changed upstream and your on-disk copy was edited | Run `/rpiv-update-agents` — it overwrites rpiv-managed files, and never touches agents you added yourself |
135
135
  | `/rpiv-setup` or `/rpiv-models` says it requires interactive mode | Running headless | Install manually with `pi install npm:<pkg>`, or hand-edit `models.json` |
136
136
  | `/rpiv-setup` fails on one package | Network or registry issue | Retry that package with `pi install npm:<pkg>`, then re-run `/rpiv-setup` |
137
- | `/lanes` reports *No in-flight runs* (and `ctrl+q` does nothing) | Nothing is running | Expected — the browser only opens over live lanes |
138
- | `ctrl+q` does nothing | `RPIV_LANES_HOTKEY` is set to `off`, empty, or an unrecognized key id | Unset it, or use `/lanes` |
137
+ | `/lanes` reports *No in-flight runs* (and the hotkey does nothing) | Nothing is running | Expected — the browser only opens over live lanes |
138
+ | The lane hotkey (`ctrl+q`, or `alt+l` on Windows and WSL) does nothing | `RPIV_LANES_HOTKEY` is set to `off`, empty, or an unrecognized key id | Unset it, or use `/lanes` |
139
139
  | A stage stalls, then reports a per-command timeout | A bash command wedged past the watchdog | Raise `RPIV_BASH_TIMEOUT_MS` (max 1800000) before starting Pi |
140
140
  | `/rpiv-models` reports *No models available* | Pi has no provider configured | Run `/login`, or add a provider to `~/.pi/agent/models.json` |
141
141
 
142
142
  ## Related
143
143
 
144
144
  `/rpiv-setup` installs the ones marked auto; the rest are standalone
145
- `pi install npm:@juicesharp/rpiv-<name>`.
145
+ `pi install npm:@juicesharp/rpiv-<name>`. rpiv-advisor is optional: setup lists its install
146
+ command but leaves it to you, and Pi starts without a warning when it is absent.
146
147
 
147
148
  | Package | Role | Auto |
148
149
  | --- | --- | :---: |
@@ -150,7 +151,7 @@ You need no build step and no native dependency.
150
151
  | [`@juicesharp/rpiv-args`](https://www.npmjs.com/package/@juicesharp/rpiv-args) | `$1` / `$ARGUMENTS` placeholders in skill bodies | ✓ |
151
152
  | [`@juicesharp/rpiv-ask-user-question`](https://www.npmjs.com/package/@juicesharp/rpiv-ask-user-question) | Structured questionnaires back to you | ✓ |
152
153
  | [`@juicesharp/rpiv-todo`](https://www.npmjs.com/package/@juicesharp/rpiv-todo) | Live task overlay surviving `/reload` | ✓ |
153
- | [`@juicesharp/rpiv-advisor`](https://www.npmjs.com/package/@juicesharp/rpiv-advisor) | Escalate to a stronger reviewer model | ✓ |
154
+ | [`@juicesharp/rpiv-advisor`](https://www.npmjs.com/package/@juicesharp/rpiv-advisor) | Escalate to a stronger reviewer model | — |
154
155
  | [`@juicesharp/rpiv-web-tools`](https://www.npmjs.com/package/@juicesharp/rpiv-web-tools) | Web search + fetch with pluggable providers | ✓ |
155
156
  | [`@juicesharp/rpiv-i18n`](https://www.npmjs.com/package/@juicesharp/rpiv-i18n) | Localization SDK for the rpiv TUI strings | ✓ |
156
157
  | [`@juicesharp/rpiv-warp`](https://www.npmjs.com/package/@juicesharp/rpiv-warp) | Warp Blocked badge on parked lane questions | — |
@@ -38,7 +38,7 @@ the siblings contribute capability.
38
38
  | `/rpiv-update-agents` | always | |
39
39
  | `/rpiv-models` | always | Interactive only |
40
40
  | `/lanes` | always | No-ops with a notice when nothing is running |
41
- | `ctrl+q` | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
41
+ | `ctrl+q` (`alt+l` on Windows and WSL) | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
42
42
  | `/skill:<name>` × 30 | Pi, from the manifest | |
43
43
  | `--rpiv-debug` flag | always | Reveals the hidden injected messages below |
44
44
 
@@ -110,14 +110,16 @@ loaded with `pi -e`. They no longer trigger the missing-siblings banner, and
110
110
  `/rpiv-setup` does not install a second copy whose tools would conflict. No sibling is
111
111
  statically imported from the entry graph; a test enforces that.
112
112
 
113
- `/rpiv-setup` installs whichever of these eight packages are neither declared nor loaded:
113
+ `/rpiv-setup` installs whichever of these eight packages are neither declared nor loaded, except
114
+ `@juicesharp/rpiv-advisor`. That one is optional: nothing in rpiv-pi needs it, so a missing copy
115
+ raises no banner and setup only names its `pi install` command:
114
116
 
115
117
  | Package | Provides |
116
118
  | --- | --- |
117
119
  | `@tintinweb/pi-subagents` | `Agent`, `get_subagent_result`, `steer_subagent` tools |
118
120
  | `@juicesharp/rpiv-ask-user-question` | `ask_user_question` tool |
119
121
  | `@juicesharp/rpiv-todo` | `todo` tool, `/todos`, overlay widget |
120
- | `@juicesharp/rpiv-advisor` | `advisor` tool and `/advisor` |
122
+ | `@juicesharp/rpiv-advisor` (optional) | `advisor` tool and `/advisor` |
121
123
  | `@juicesharp/rpiv-i18n` | `/languages`, `--locale`, the i18n SDK |
122
124
  | `@juicesharp/rpiv-web-tools` | `web_search`, `web_fetch`, `/web-tools` |
123
125
  | `@juicesharp/rpiv-args` | `$N` / `$ARGUMENTS` substitution in skill bodies |
package/docs/lanes.md CHANGED
@@ -21,10 +21,10 @@ From an **empty** prompt (no text typed, no autocomplete open, at least one lane
21
21
  | Trigger | Notes |
22
22
  | --- | --- |
23
23
  | `/lanes` | Always available |
24
- | `ctrl+q` | Global hotkey; requires a UI, at least one lane, and that you are not already focused into a run |
24
+ | `ctrl+q` (`alt+l` on Windows and WSL) | Global hotkey; requires a UI, at least one lane, and that you are not already focused into a run |
25
25
  | `↓` on an empty prompt | See above |
26
26
 
27
- With no runs in flight, `/lanes` notifies `No in-flight runs.`; `ctrl+q` silently does
27
+ With no runs in flight, `/lanes` notifies `No in-flight runs.`; the hotkey silently does
28
28
  nothing.
29
29
 
30
30
  ## Inside the browser
@@ -72,7 +72,7 @@ opt-in; without it nothing changes.
72
72
 
73
73
  | Variable | Default | Effect |
74
74
  | --- | --- | --- |
75
- | `RPIV_LANES_HOTKEY` | `ctrl+q` | Rebind the browser hotkey to any Pi key id. Set it to `off`, `none`, `false`, `disabled`, or empty to register no hotkey at all — `/lanes` still works. An unrecognized key id registers but never fires |
75
+ | `RPIV_LANES_HOTKEY` | `ctrl+q` (`alt+l` on Windows and WSL, where Pi reserves `ctrl+q`) | Rebind the browser hotkey to any Pi key id. Set it to `off`, `none`, `false`, `disabled`, or empty to register no hotkey at all — `/lanes` still works. An unrecognized key id registers but never fires |
76
76
  | `RPIV_BASH_TIMEOUT_MS` | `180000` (3 min) | Per-command watchdog on bash calls inside detached child sessions. Clamped to 5 000–1 800 000 ms; a non-numeric or non-positive value falls back to the default. Read once at load, so export it before starting Pi |
77
77
 
78
78
  When a bash call exceeds the watchdog the child session aborts that command and the
@@ -236,10 +236,13 @@ export const planAuthoredRisks = (state: RunView, channel: string): Map<string,
236
236
  * regex carries the `/g` flag, so `.test()` is stateful across calls
237
237
  * (`lastIndex` advances) and would
238
238
  * intermittently miss a present citation. An id with no authored mechanics
239
- * risk carries no evidence duty ⇒ returns `true`.
239
+ * risk, or one deferred with `verify-at-implement`, carries no evidence duty ⇒
240
+ * returns `true`.
240
241
  */
241
242
  export const evidenceCitesFileLine = (r: RiskRuling, authored?: RiskRecord): boolean => {
242
- if (authored?.claim_type !== "mechanics") return true;
243
+ // A deferred claim may concern code the plan has not written yet, so its
244
+ // procedure + owner are the duty instead.
245
+ if (authored?.claim_type !== "mechanics" || authored.disposition === "verify-at-implement") return true;
243
246
  return typeof r.evidence === "string" && r.evidence.match(FILE_LINE_CITATION_RE) !== null;
244
247
  };
245
248
 
@@ -260,8 +263,8 @@ export const procedureSatisfiesDuty = (r: RiskRuling, authored?: RiskRecord): bo
260
263
 
261
264
  /**
262
265
  * The single gate-fold authority: a ruling is effective-pass iff it is a bare
263
- * `pass` AND (when the plan authored a mechanics risk for its id) its evidence
264
- * cites a `file:line` AND (when the plan authored a verify-at-implement risk
266
+ * `pass` AND (when the plan authored a mechanics risk for its id that it did not
267
+ * defer) its evidence cites a `file:line` AND (when the plan authored a verify-at-implement risk
265
268
  * for its id) its procedure+owner discharge the verify duty. `allRiskFlagsPass`,
266
269
  * `dimensionsToRegrade` clause 3, and `confirmDue`'s `riskFail` ALL consult this
267
270
  * — so the three risk folds agree on what "passing" means and a demoted
@@ -73,8 +73,8 @@ const codeSnapshot = snapshotLatestPlan("code-snapshot");
73
73
  * A duty demotion stamped onto a verdict's on-disk JSON — the legible record
74
74
  * that a risk ruling the panel marked `pass: true` was demoted to effective-
75
75
  * fail by the evidence or verify-at-implement duty. One entry per FAILING
76
- * duty (a ruling authored as BOTH mechanics AND verify-at-implement can carry
77
- * two). `reason` is decision-code-free prose (no run/phase ids, no absolute
76
+ * duty (a verify-at-implement flag carries only the procedure-owner duty, even
77
+ * when also authored as mechanics). `reason` is decision-code-free prose (no run/phase ids, no absolute
78
78
  * line numbers) naming the duty that failed, so disk readers (amend, confirm
79
79
  * `--prior`) can tell a grader-side demotion from a genuine `pass: false`.
80
80
  */
@@ -74,8 +74,12 @@ const VERDICT_FAIL_SCORE = 0;
74
74
  * (`(?<![\w.])`), and a dotless start only at a word boundary (`(?<!\w)`), so a
75
75
  * prose ellipsis (`...packages/x.ts:5`) still yields `packages/x.ts`, never
76
76
  * `...packages/x.ts`.
77
+ *
78
+ * The extension is 1–10 chars, so `.csproj`, `.cshtml`, `.config` and
79
+ * `.gradle` count; the adjacent `:NN` keeps dotted identifiers out without a
80
+ * tighter length cap.
77
81
  */
78
- const FILE_LINE_CITATION_RE = /((?:(?<![\w.])\.)?(?<!\w)[\w][\w./-]*\.[a-zA-Z][a-zA-Z0-9]{0,4}):(\d+)(?:-(\d+))?/g;
82
+ const FILE_LINE_CITATION_RE = /((?:(?<![\w.])\.)?(?<!\w)[\w][\w./-]*\.[a-zA-Z][a-zA-Z0-9]{0,9}):(\d+)(?:-(\d+))?/g;
79
83
 
80
84
  /** A structure-dimension finding — the shared shape the deterministic verdict
81
85
  * checks emit (`detail` is the actionable message, `where` locates the defect).
@@ -44,13 +44,24 @@ import { isModuleNotFound } from "./utils.ts";
44
44
  * Pi's keymap. So the binding is OVERRIDABLE: set `RPIV_LANES_HOTKEY` to a
45
45
  * different KeyId to rebind, or to `off`/`none`/empty to disable the hotkey entirely
46
46
  * and rely on the always-safe `/lanes` command. `/lanes` is always available.
47
+ *
48
+ * Under Windows keybindings (Windows, and Linux under WSL) Pi binds ctrl+q to its reserved
49
+ * follow-up action (Pi #8372), so Pi skips our shortcut and warns at every launch — the
50
+ * default there is `alt+l` instead (#252).
47
51
  */
48
52
  const DEFAULT_HOTKEY = "ctrl+q";
53
+ const WINDOWS_DEFAULT_HOTKEY = "alt+l";
54
+
55
+ /** Mirrors Pi's `useWindowsKeybindings` (not exported): Windows, or Linux under WSL. */
56
+ function usesWindowsKeybindings(): boolean {
57
+ const { WSL_DISTRO_NAME, WSL_INTEROP } = process.env;
58
+ return process.platform === "win32" || (process.platform === "linux" && Boolean(WSL_DISTRO_NAME || WSL_INTEROP));
59
+ }
49
60
 
50
61
  /** Resolve the switcher hotkey from the environment; undefined = no hotkey. */
51
62
  function resolveHotkey(): string | undefined {
52
63
  const raw = process.env.RPIV_LANES_HOTKEY;
53
- if (raw === undefined) return DEFAULT_HOTKEY; // back-compat default
64
+ if (raw === undefined) return usesWindowsKeybindings() ? WINDOWS_DEFAULT_HOTKEY : DEFAULT_HOTKEY; // back-compat default
54
65
  const v = raw.trim();
55
66
  if (v === "" || /^(off|none|false|disabled?)$/i.test(v)) return undefined;
56
67
  return v;
@@ -268,7 +268,8 @@ function notifyCleanup(ui: UI, result: CleanupResult): void {
268
268
  }
269
269
 
270
270
  function warnMissingSiblings(ui: UI, loaded: LoadedSiblingSources): void {
271
- const missing = findMissingSiblings(loaded);
271
+ // Optional siblings are left out — rpiv-pi works without them (#167).
272
+ const missing = findMissingSiblings(loaded).filter((s) => !s.optional);
272
273
  if (missing.length === 0) return;
273
274
  // Leading newline so Pi's "Warning: " severity prefix sits on its own
274
275
  // line; every box row then gets Pi's 1-space continuation indent
@@ -31,6 +31,11 @@ const msgInstalling = (pkg: string) => `Installing ${pkg}…`;
31
31
  const msgInstalledLine = (pkgs: string[]) => `✓ Installed: ${pkgs.join(", ")}`;
32
32
  const msgFailedHeader = () => `✗ Failed:`;
33
33
  const msgFailedLine = (pkg: string, err: string) => ` ${pkg}: ${err}`;
34
+ const msgOptionalHint = (optional: SiblingPlugin[]) =>
35
+ [
36
+ "Optional, not installed — add any with `pi install`:",
37
+ ...optional.map((o) => ` • pi install ${o.pkg} (provides ${o.provides})`),
38
+ ].join("\n");
34
39
  const msgLegacyPruned = (entries: string[]) =>
35
40
  `Removed legacy subagent library from settings.json: ${entries.join(", ")}. Run \`pi uninstall\` to free disk space, then restart Pi.`;
36
41
 
@@ -39,7 +44,7 @@ type UI = {
39
44
  confirm: (title: string, body: string) => Promise<boolean>;
40
45
  };
41
46
 
42
- function buildConfirmBody(missing: SiblingPlugin[], legacyEntries: string[]): string {
47
+ function buildConfirmBody(missing: SiblingPlugin[], optional: SiblingPlugin[], legacyEntries: string[]): string {
43
48
  const lines: string[] = ["rpiv-pi will apply the following changes:", ""];
44
49
  if (missing.length > 0) {
45
50
  lines.push("Install via `pi install`:");
@@ -52,6 +57,10 @@ function buildConfirmBody(missing: SiblingPlugin[], legacyEntries: string[]): st
52
57
  for (const entry of legacyEntries) lines.push(` • ${entry}`);
53
58
  lines.push("");
54
59
  }
60
+ if (optional.length > 0) {
61
+ lines.push(msgOptionalHint(optional));
62
+ lines.push("");
63
+ }
55
64
  lines.push(`Your \`${settingsPath}\` will be updated. Proceed?`);
56
65
  return lines.join("\n");
57
66
  }
@@ -73,14 +82,21 @@ async function handleSetupCommand(
73
82
  return;
74
83
  }
75
84
 
76
- const missing = findMissingSiblings(readLoadedSiblingSources(pi));
85
+ // Optional siblings are named, never installed: the confirm is all-or-nothing, so
86
+ // installing them would override a user who left one out on purpose (#167).
87
+ const allMissing = findMissingSiblings(readLoadedSiblingSources(pi));
88
+ const missing = allMissing.filter((s) => !s.optional);
89
+ const optional = allMissing.filter((s) => s.optional);
77
90
  const legacyEntries = findLegacySiblings();
78
91
  if (missing.length === 0 && legacyEntries.length === 0) {
79
- ctx.ui.notify(MSG_NOTHING_TO_DO, "info");
92
+ ctx.ui.notify(
93
+ optional.length > 0 ? `${MSG_NOTHING_TO_DO}\n\n${msgOptionalHint(optional)}` : MSG_NOTHING_TO_DO,
94
+ "info",
95
+ );
80
96
  return;
81
97
  }
82
98
 
83
- const confirmed = await ctx.ui.confirm(MSG_CONFIRM_TITLE, buildConfirmBody(missing, legacyEntries));
99
+ const confirmed = await ctx.ui.confirm(MSG_CONFIRM_TITLE, buildConfirmBody(missing, optional, legacyEntries));
84
100
  if (!confirmed) {
85
101
  ctx.ui.notify(MSG_CANCELLED, "info");
86
102
  return;
@@ -30,6 +30,13 @@ export interface SiblingPlugin {
30
30
  readonly marker?: string;
31
31
  /** What the sibling provides — shown in /rpiv-setup confirmation and reports. */
32
32
  readonly provides: string;
33
+ /**
34
+ * Nothing in rpiv-pi needs it to work — skills that use it fall back without it.
35
+ * A missing optional sibling raises no session_start warning, and /rpiv-setup
36
+ * names it with its install command instead of installing it, so a user who
37
+ * leaves it out (or runs their own replacement) is never nagged or overridden (#167).
38
+ */
39
+ readonly optional?: true;
33
40
  }
34
41
 
35
42
  export const SIBLINGS: readonly SiblingPlugin[] = [
@@ -54,6 +61,8 @@ export const SIBLINGS: readonly SiblingPlugin[] = [
54
61
  pkg: "npm:@juicesharp/rpiv-advisor",
55
62
  matches: /rpiv-advisor/i,
56
63
  provides: "advisor tool + /advisor command",
64
+ // Opt-in reviewer: code-review probes for the tool and reconciles inline without it.
65
+ optional: true,
57
66
  },
58
67
  {
59
68
  pkg: "npm:@juicesharp/rpiv-i18n",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-pi",
3
- "version": "2.13.9",
3
+ "version": "2.14.0",
4
4
  "description": "A skill-based development workflow for Pi Agent. 30 contract-carrying skills (discover → research → design → plan → implement → validate → code-review → commit, and more), the 15 named subagents they dispatch, and four built-in /wf workflows that chain them end to end in detached parallel runs.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -52,7 +52,7 @@
52
52
  ]
53
53
  },
54
54
  "dependencies": {
55
- "@juicesharp/rpiv-config": "^2.13.9"
55
+ "@juicesharp/rpiv-config": "^2.14.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@earendil-works/pi-ai": "*",
@@ -78,7 +78,7 @@ The verdict shape for this dimension: `pass` is `true` only when every ruling is
78
78
  Two duties tighten what a `pass` means, and the gate enforces both (an un-grounded `pass` is demoted as if it were `fail`):
79
79
 
80
80
  - **Echo the flag's duty fields verbatim.** Copy `claim_type`, `disposition`, `procedure`, and `owner` from the plan's `risks:` entry into your ruling UNCHANGED. The duty itself is imposed by the plan's `risks:` frontmatter — the gate cross-references it by flag `id`, so dropping or mistyping `claim_type`/`disposition` in your ruling waives NOTHING: a mechanics `pass` is still demoted unless the ruling carries a `file:line` `evidence`, and a verify-at-implement `pass` is still demoted unless the ruling carries a concrete `procedure` and a numeric `owner`. Echo the fields anyway — the ruling stays self-describing for the audit trail and for `validate`, which runs the deferred `procedure` against the shipped code.
81
- - **Mechanics evidence duty (`claim_type: mechanics`).** A mechanics risk ruled `pass` MUST cite the `file:line` you actually checked in the ruling's `evidence` (e.g. `"packages/x/y.ts:42 — the helper returns early on undefined"`). A mechanics `pass` with no `evidence`, or whose `evidence` is not `file:line`-shaped, is demoted to `fail` — the gate refuses a confident-but-ungrounded mechanism assertion (the honest-lazy class: a confident pass that never opened a file). **The adjacency rule — what "`file:line`-shaped" means:** at least one site in the `evidence` string must be a dotted file path with its line number IMMEDIATELY adjacent (`path.ext:NN`, colon-number directly after the extension, no space — e.g. `packages/x/y.ts:1168`). Make the FIRST cited site that shape; later refs in the same string may be abbreviated bare `:NN`. `symbol :NN`, a bare `(:NN/:NN)` list, or a path with no adjacent `:NN` anywhere all fail the rule and demote the ruling. Rule `fail` outright if the mechanism does not hold.
81
+ - **Mechanics evidence duty (`claim_type: mechanics`).** A mechanics risk ruled `pass` MUST cite the `file:line` you actually checked in the ruling's `evidence` (e.g. `"packages/x/y.ts:42 — the helper returns early on undefined"`). A mechanics `pass` with no `evidence`, or whose `evidence` is not `file:line`-shaped, is demoted to `fail` — the gate refuses a confident-but-ungrounded mechanism assertion (the honest-lazy class: a confident pass that never opened a file). **The adjacency rule — what "`file:line`-shaped" means:** at least one site in the `evidence` string must be a dotted file path with its line number IMMEDIATELY adjacent (`path.ext:NN`, colon-number directly after the extension, no space — e.g. `packages/x/y.ts:1168`). Make the FIRST cited site that shape; later refs in the same string may be abbreviated bare `:NN`. `symbol :NN`, a bare `(:NN/:NN)` list, or a path with no adjacent `:NN` anywhere all fail the rule and demote the ruling. Rule `fail` outright if the mechanism does not hold. A mechanics flag that also carries `disposition: verify-at-implement` is deferred: the verify-at-implement rule below applies instead, and no `evidence` is required.
82
82
  - **Verify-at-implement rule (`disposition: verify-at-implement`).** You may defer a risk to the owner phase instead of ruling it finally here. Rule `pass` ONLY when the flag carries a concrete `procedure` (the named command/test the owner phase runs) AND a numeric `owner` phase AND you judge that phase actually carries that step; otherwise rule `fail` (a bare "verify later" with no procedure does not defer — it fails). When you defer, echo `procedure` and `owner` verbatim so `validate` can run the procedure against the shipped code.
83
83
 
84
84
  Emit these as a `risk_rulings: [{ id, pass, evidence?, claim_type?, disposition?, procedure?, owner? }]` array in your verdict — one ruling per declared flag, none omitted. `evidence` is REQUIRED on a mechanics `pass` (and must be `file:line`-shaped); `claim_type`/`disposition`/`procedure`/`owner` are echoed whenever the plan flag carries them.
@@ -108,7 +108,7 @@ Copy values verbatim. `<iso>` is the first tab-separated field; `<slug>` is the
108
108
  - **Integration** — wire the seams: an input that depends on another's interface must reference the real shape the other defines. In root mode, this is where each sub-plan's `exports` get connected.
109
109
  - **Conflict** — when two inputs make incompatible decisions, resolve to one, and record the resolution in Synthesis Notes (the grade panel's correctness/architecture-fit members will check it).
110
110
  - **Risk flags** — a decision you're not confident is correct (an unverified assumption, an edge case wanting a second opinion) goes in the frontmatter `risks:` array as a `{ id, claim }` entry (stable `id`; `claim` = the one-line assertion to rule on) plus a `## Risk Flags` line — **never** buried in prose. This is the first-class channel grade and validate are REQUIRED to rule on; flag anything you'd otherwise write "flagging this so the grade panel can weigh in" about. Two optional fields tighten what "passing" means, so the gate can refuse a confident-but-ungrounded assertion (the honest-lazy class — a confident pass that never opened a file):
111
- - **`claim_type: mechanics`** — the `claim` asserts a verified mechanism (a behavior that holds because code was checked). A grade panel ruling it `pass` MUST cite the checked `file:line` in that ruling's `evidence`, else the gate demotes the pass as un-grounded. Use it for risks like "the revert is byte-identical" or "the helper no-ops on absent fields" where the assertion is checkable against code right now.
111
+ - **`claim_type: mechanics`** — the `claim` asserts a verified mechanism (a behavior that holds because code was checked). A grade panel ruling it `pass` MUST cite the checked `file:line` in that ruling's `evidence`, else the gate demotes the pass as un-grounded. Use it for risks like "the revert is byte-identical" or "the helper no-ops on absent fields" where the assertion is checkable against code right now. Do not pair it with `verify-at-implement` for a claim about code a phase has not written yet; a deferred flag carries only the procedure duty.
112
112
  - **`disposition: verify-at-implement`** — the panel may defer the risk to a later phase rather than rule it in this panel. A deferred pass is accepted ONLY when the flag ALSO carries a concrete **`procedure`** (the named command/test the owner phase runs to discharge it) and an **`owner`** (the phase `n` that runs that step); a bare "verify later" with no procedure demotes. Use it for risks that genuinely need the shipped tree (a real `build` run, a coverage gate) the plan-grade panel cannot run.
113
113
  - Default (no `claim_type`, no `disposition`) stays the ordinary `{ id, claim }` shape — the panel rules it on the artifact as today, with no evidence or procedure duty.
114
114
  3. **Sequence phases** — one phase per slice (flat/partial) or carry the sub-plans' phases through (root), ordered so a phase never precedes one it `depends_on`. Tightly-coupled units may merge into one phase; note any merge. Populate each entry's `files:` from that phase's `### Changes` paths (every repo-root-relative path the phase creates or edits) and `depends_on` only for semantic ordering NOT visible in `files:` (a phase that needs an earlier phase to run first despite no shared file) — lower `n` only.