@mrciphersmith/keryx 0.4.59 → 0.4.61

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.
@@ -25207,6 +25207,10 @@ function mergePremises(findings, parsedInput) {
25207
25207
  reject("challenged-without-evidence", "`challenged` needs at least one intent signal (a cited ref) or practice source (a named guideline). A challenge with neither is the reviewer's argument turned around.");
25208
25208
  continue;
25209
25209
  }
25210
+ if (verdict === "owner-decision" && (signals.value?.length ?? 0) + (sources.value?.length ?? 0) === 0) {
25211
+ reject("owner-decision-without-evidence", "`owner-decision` needs at least one intent signal (a cited ref: the PR body, a code line, a commit) or practice source (a named rule) showing the choice is the owner's. Without one the finding goes on as reported: use `upheld`.");
25212
+ continue;
25213
+ }
25210
25214
  if (!present(claim.question)) {
25211
25215
  reject("held-without-question", `\`${verdict}\` holds the finding for the operator, who needs a question to answer.`);
25212
25216
  continue;
@@ -25702,7 +25706,7 @@ function parseReviewResult(reply) {
25702
25706
  const raw = splitUsage(reply).body;
25703
25707
  const labelled = labelledFence(raw);
25704
25708
  if (labelled !== undefined)
25705
- return labelled.result ?? lenientReviewResult(raw.slice(labelled.at));
25709
+ return labelled.result ?? lenientReviewResult(raw.slice(labelled.at)) ?? statusLineResult(raw);
25706
25710
  const marked = afterMarker(raw)?.result;
25707
25711
  if (marked !== undefined)
25708
25712
  return marked;
@@ -25714,12 +25718,48 @@ function parseReviewResult(reply) {
25714
25718
  const strict = scannedResult(raw);
25715
25719
  if (strict !== undefined)
25716
25720
  return strict;
25717
- return lenientReviewResult(raw);
25721
+ return lenientReviewResult(raw) ?? statusLineResult(raw);
25722
+ }
25723
+ function lacksOnlyStatus(value) {
25724
+ if (value === null || typeof value !== "object" || Array.isArray(value))
25725
+ return false;
25726
+ const object = value;
25727
+ return object.status === undefined && (typeof object.reviewer === "string" || Array.isArray(object.findings));
25728
+ }
25729
+ function statusLineResult(raw) {
25730
+ const inFence = fenceTester(raw);
25731
+ const statuses = new Set([...raw.matchAll(STATUS_LINE)].filter((line) => !inFence(line.index)).map((line) => line[1]));
25732
+ if (statuses.size !== 1)
25733
+ return;
25734
+ const status = [...statuses][0];
25735
+ const withStatus = (value) => ({ ...value, status });
25736
+ const labelled = [...raw.matchAll(/```REVIEW_RESULT[ \t]*\r?\n([\s\S]*?)```/gi)];
25737
+ if (labelled.length > 0) {
25738
+ const parsed = tryParse2(labelled[labelled.length - 1][1]);
25739
+ return lacksOnlyStatus(parsed) ? withStatus(parsed) : undefined;
25740
+ }
25741
+ const markers = [...raw.matchAll(MARKER)].filter((marker) => !inFence(marker.index)).slice(-MAX_MARKERS);
25742
+ for (let at = markers.length - 1;at >= 0; at -= 1) {
25743
+ const start = markers[at].index + markers[at][0].length;
25744
+ const { end } = objectEnd(raw, start);
25745
+ if (end === undefined)
25746
+ continue;
25747
+ const parsed = tryParse2(raw.slice(start, end + 1));
25748
+ if (lacksOnlyStatus(parsed))
25749
+ return withStatus(parsed);
25750
+ }
25751
+ const { found, truncated } = topLevelObjects(raw);
25752
+ if (truncated)
25753
+ return;
25754
+ const shaped = found.filter(({ value }) => lacksOnlyStatus(value));
25755
+ const fenced = shaped.filter(({ start }) => inFence(start));
25756
+ const chosen = (fenced.length > 0 ? fenced : shaped).at(-1)?.value;
25757
+ return lacksOnlyStatus(chosen) ? withStatus(chosen) : undefined;
25718
25758
  }
25719
25759
  function isEmptyOutput(reply) {
25720
25760
  return isEmptyRecord(reply);
25721
25761
  }
25722
- var FINISHED, CLOSED, OBJECT_START, RESULT_KEYS, KEY_COLON, MAX_UNCLOSED = 64, FENCE_OPEN, FENCE_CLOSE, LINE_CLOSE, MAX_MARKERS = 64, MARKER, AUDIT_ROLES;
25762
+ var FINISHED, CLOSED, OBJECT_START, RESULT_KEYS, KEY_COLON, MAX_UNCLOSED = 64, FENCE_OPEN, FENCE_CLOSE, LINE_CLOSE, MAX_MARKERS = 64, MARKER, RESULT_STATUSES, STATUS_LINE, AUDIT_ROLES;
25723
25763
  var init_ledger = __esm(() => {
25724
25764
  init_coverage();
25725
25765
  init_coverage_complete();
@@ -25741,6 +25781,8 @@ var init_ledger = __esm(() => {
25741
25781
  FENCE_CLOSE = /^ {0,3}(`{3,})[ \t]*$/;
25742
25782
  LINE_CLOSE = /^ {0,3}```[ \t]*\r?$/gm;
25743
25783
  MARKER = /(?<![^\n])[ \t>*#-]*REVIEW_RESULT(?:[ \t]*[:=])?\s*(?=\{)/g;
25784
+ RESULT_STATUSES = ["DONE_WITH_CONCERNS", "DONE", "NEEDS_CONTEXT", "BLOCKED"];
25785
+ STATUS_LINE = new RegExp(`(?<![^\\n])[ \\t>*_#-]*STATUS[*_]*:[*_ \\t]*(${RESULT_STATUSES.join("|")})\\b`, "g");
25744
25786
  AUDIT_ROLES = new Set(DEEP_ROLES.filter((role) => role !== ALWAYS_ROLE));
25745
25787
  });
25746
25788
 
@@ -29370,6 +29412,10 @@ function reviewPackagePaths(text) {
29370
29412
  floor = end;
29371
29413
  }
29372
29414
  }
29415
+ var LOOKUP_SUBCOMMANDS = new Set(["", "pr-context", "board", "reviews", "accounts", "help", "--help", "-h"]);
29416
+ function continuesReview(invocation) {
29417
+ return !LOOKUP_SUBCOMMANDS.has(invocation.subcommand) && !invocation.args.some((arg) => arg === "--help" || arg === "-h");
29418
+ }
29373
29419
  var OPENING_SUBCOMMANDS = new Set(["start", "attach", "ingest"]);
29374
29420
  var PACKAGE_ARG_SUBCOMMANDS = new Set(["status", "readiness", "complete", "attach", "publish", "verdict", "show"]);
29375
29421
  var VALUELESS_FLAGS = new Set([
@@ -29708,7 +29754,8 @@ class SessionReviewTracker {
29708
29754
  continue;
29709
29755
  const cwd = path68.resolve(this.cwd);
29710
29756
  for (const invocation of keryxReviewInvocations(command, cwd)) {
29711
- this.runSeen = true;
29757
+ if (continuesReview(invocation))
29758
+ this.runSeen = true;
29712
29759
  if (invocation.cwd !== cwd && inside2(cwd, invocation.cwd))
29713
29760
  remember(this.roots, invocation.cwd, MAX_SESSION_REVIEW_ROOTS);
29714
29761
  for (const arg of invocation.args)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.4.59",
3
+ "version": "0.4.61",
4
4
  "description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -169,7 +169,7 @@ Mutation outside an action, async resolution without `runInAction`, and inter-st
169
169
 
170
170
  ## Orchestrated Review Contract
171
171
 
172
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
172
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
173
173
 
174
174
  ---
175
175
 
@@ -160,7 +160,7 @@ is, and a condition that cannot name one is not a `blocker`.
160
160
 
161
161
  ## Orchestrated Review Contract
162
162
 
163
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
163
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
164
164
 
165
165
  ---
166
166
 
@@ -114,7 +114,7 @@ Where an issue or PR is cited, check it is the right one and still says what the
114
114
 
115
115
  ## Orchestrated Review Contract
116
116
 
117
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
117
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
118
118
 
119
119
  ## Finding Format
120
120
 
@@ -64,7 +64,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
64
64
 
65
65
  ## Orchestrated Review Contract
66
66
 
67
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
67
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
68
68
 
69
69
  ---
70
70
 
@@ -89,7 +89,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
89
89
 
90
90
  ## Orchestrated Review Contract
91
91
 
92
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
92
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
93
93
 
94
94
  ---
95
95
 
@@ -291,7 +291,7 @@ When dispatched by `review-orchestrator` or `job-orchestrator`, the prompt MAY c
291
291
 
292
292
  ## Orchestrated Review Contract
293
293
 
294
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
294
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
295
295
 
296
296
  ---
297
297
 
@@ -99,7 +99,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
99
99
 
100
100
  ## Orchestrated Review Contract
101
101
 
102
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
102
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
103
103
 
104
104
  ---
105
105
 
@@ -215,7 +215,7 @@ Migrations and indexes are `database-patterns.mdc`; query shape is `review-perfo
215
215
 
216
216
  ## Orchestrated Review Contract
217
217
 
218
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
218
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
219
219
 
220
220
  ---
221
221
 
@@ -194,7 +194,7 @@ earlier review round, because there the finding is recorded as closed and is not
194
194
 
195
195
  ## Orchestrated Review Contract
196
196
 
197
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing. On a FIX slice, also return `prior_dispositions: [{id, disposition}]` for every attached finding id.
197
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing. On a FIX slice, also return `prior_dispositions: [{id, disposition}]` for every attached finding id.
198
198
 
199
199
  ---
200
200
 
@@ -131,10 +131,10 @@ Publish this checklist with `plan_set` under the ids `step-0`…`step-14` and `s
131
131
 
132
132
  - One `Agent` call per reviewer, all calls of a wave in a single message, so the wave runs in parallel.
133
133
  - Reviewers are read-only: they read the diff and the files and run only the read-only commands: `git log`, `git blame` and `git show` (law 4; `review-premise` too) where the host gives a read-only child git. keryx shell does not: a `spawn_subagent` child has no shell and no git tool, so you run `git log -L <start>,<end>:<file>` and `git blame -L <start>,<end> <file>` for each deliberate-looking site a reviewer must judge and pass the output in `context_files`; with neither, the reviewer says the history was not read. Beyond those, a reviewer runs only the layers-block commands (`keryx gdgraph affected|find`, `keryx test related`, `keryx wiki ask`, `keryx memory search`) and `keryx ctx rg|read`, never tests, health checks, servers, mutation or any command that writes in the reviewed tree: that evidence comes from you (`keryx review verify-run --timeout <seconds>`, `keryx review mutate`), the verifier, or the one testing reviewer with `run-tests`, in a scratch copy and a time budget. Each payload carries `allowed_tools` (`read-only` or `run-tests`) and `exec_budget_s`.
134
- - Use the reviewer's exact `subagent_type`. If the runtime has no such type, use `general-purpose` and name the reviewer's `SKILL.md` path in the prompt. Neither available: that reviewer is `BLOCKED`.
134
+ - Use the reviewer's exact `subagent_type`. If the runtime has no such type, use `general-purpose` and name the reviewer's `SKILL.md` path in the prompt. Neither available: that reviewer is `BLOCKED`. A child that runs in a checkout outside the project (a worktree at the head, a scratch copy) cannot read the project's `.metaproject/skills`: pass the reviewer's `SKILL.md` (the verifier's and the premise judge's too) in `context_files`, so it works from its contract and not from your paraphrase.
135
135
  - Build every payload and prompt from "Reviewer brief — required contents" below, and tick it off per dispatch before the wave goes.
136
136
  - Prompts carry pointers, not pasted files — the diff, the SHAs, the PR, the schema paths — and never paraphrase a contract. On keryx shell the slices travel in `context_files` instead (below). Run `keryx review dispatch-check --payload <file> --manifest <package>/slices/manifest.json --package <package>` on every payload before a mass dispatch; on exit 1 fix the payload it names and do not dispatch around it (no slice, over the wave ceiling: dispatch fewer slices, a missing `skill_path` or `context_doc`, an unconfirmed plan, a schema break, no `pr_context` with `--pr-context`).
137
- - A reply is a result only if it starts with a `STATUS:` line and carries a `REVIEW_RESULT` block matching `reviewer-finding.schema.json`; anything else is `BLOCKED`. The one exception: a reply or dispatch error of `STATUS: RATE_LIMITED` is handled by the Rate limits rule under Control, never marked `BLOCKED`.
137
+ - A reviewer's reply is a result only if it starts with a `STATUS:` line and carries a `REVIEW_RESULT` block matching `reviewer-finding.schema.json`, whose object holds the same `status` (keryx reads the line when the object leaves it out); anything else is `BLOCKED`. The verifier and the premise judge are not reviewers: their results are `verification-claim.schema.json` and the one `keryx:premises` block. The one exception: a reply or dispatch error of `STATUS: RATE_LIMITED` is handled by the Rate limits rule under Control, never marked `BLOCKED`.
138
138
  - The model comes from `keryx review tier` (Step 6). On `spawn_subagent` pass its tier as `model_tier` on every reviewer — `review-verifier` and simple reviewers `light`, normal `standard`, complex reviewers and `review-premise` `deep` (`keryx review tier --premise`); an omitted tier runs the child on your own model.
139
139
 
140
140
  ### Reviewer brief — required contents (every dispatch)
@@ -173,7 +173,7 @@ One payload file per dispatch (`reviewer-input.schema.json`) plus one prompt. Ea
173
173
  - [ ] W Counterpart rules and round obligations: point to `SKILL.detail.md` § "Counterpart verification" and § "Round obligations" by path ← Start question 2.
174
174
  - [ ] X Scope-B reviewer: `keryx review blast-radius … --brief` stdout verbatim; `review-degradation`: the `--degradation` stdout verbatim ← "Scope B".
175
175
  - [ ] Y Write the whole reply to the driver's `result` (`<package>/raw/<reviewer>…txt`) before answering ← line S.
176
- - [ ] Z Start with a `STATUS:` line and return a `REVIEW_RESULT` per `reviewer-finding.schema.json`, listing as `slices` the ids it read in full ← "Slices, waves and results" 3.
176
+ - [ ] Z Start with a `STATUS:` line and return a `REVIEW_RESULT` per `reviewer-finding.schema.json` with the same `status` inside it, listing as `slices` the ids it read in full ← "Slices, waves and results" 3.
177
177
 
178
178
  ## Slices, waves and results — every host; keryx shell specifics marked
179
179
 
@@ -640,8 +640,8 @@ Dispatch rules:
640
640
  A finding can reproduce and still not be a defect. `review-premise` asks the other question, on the deep tier and a clean context: intent, accepted practice, consistency, fix soundness.
641
641
  - Before dispatch, renumber any display id that another finding, carried or new, already has, in the saved reviewer results, so the judge, its claims and ingest all see the same ids (ingest refuses two findings under one key; a claim naming a shared id is rejected as `ambiguous-finding`).
642
642
  - Dispatch it once after the last verifier pass (no verifier ran: after the last reviewer), over the canonical findings of severity ≥ minor, each with its display `id`, the **real** `reviewer` and `source`, and, for a finding carried from an earlier round, its `global_id`. External (PR-comment, `source: external`) findings are included: they can be challenged, never downgraded. In a delta round only findings without a carried premise. On keryx shell the judge has no shell and no git tool: run `git log -L` and `git blame -L` for each cited site first and pass the output in `context_files`.
643
- - Save its claims object unchanged to `research-evidence/premises.json` (the verdict reads it there) and pass that file with `keryx review ingest --premises <file>`; never apply verdicts by hand.
644
- - `challenged` and `owner-decision` **hold** a finding: it is neither fixable nor clean — not an open blocker or major, never in a fix loop's `fix_context.review_feedback`, and it blocks until answered; the verdict lists it as awaiting the operator. **Asking about a held finding** (every skill that meets one points here): at the tail, after `ingest --premises` wrote `findings.json` (never during Wave D, before the ingest: the answer commands read `findings.json`), in keryx shell call the card `review_decide_premise`, which records the answer; elsewhere put its `question` and `options` to the operator with the host's question tool (`uphold` or `dismiss`, the finding id in the question; never send them to a terminal), then record what they chose: `keryx review decide-premise --package <package> --finding <global_id> --answer uphold|dismiss --reason "<why>" --answered-by <source>:<ref> --answer-text "<their words, verbatim>" --question-text "<the question as asked>"` (`confirmedVia: "host-question"`; "Hosts", Operator decisions). Record only an answer they gave and never write their words or their reason yourself. In a flow, journal the recorded answer. Unattended: leave it held and report it.
643
+ - Save its claims object unchanged to `research-evidence/premises.json` (the verdict reads it there) and pass that file with `keryx review ingest --premises <file>`; never apply verdicts by hand. Unchanged means the JSON of the judge's one `keryx:premises` block exactly as it wrote it: never rewrite, reshape or add to it, and never write a `question`, `options`, `intent_signals`, `practice_sources` or `reasoning` yourself. A claim ingest rejects stays rejected, and its finding goes on as reported; a reply with no readable `keryx:premises` block is dispatched again once with the refusal, or recorded as `Not run: premise (<reason>)`.
644
+ - `challenged` and `owner-decision` **hold** a finding: it is neither fixable nor clean — not an open blocker or major, never in a fix loop's `fix_context.review_feedback`, and it blocks until answered; the verdict lists it as awaiting the operator. **Asking about a held finding** (every skill that meets one points here): at the tail, after `ingest --premises` wrote `findings.json` (never during Wave D, before the ingest: the answer commands read `findings.json`), in keryx shell call the card `review_decide_premise`, which records the answer; elsewhere put the judge's `question` and `options`, word for word, to the operator with the host's question tool (`uphold` or `dismiss`, the finding id in the question; never send them to a terminal), then record what they chose: `keryx review decide-premise --package <package> --finding <global_id> --answer uphold|dismiss --reason "<why>" --answered-by <source>:<ref> --answer-text "<their words, verbatim>" --question-text "<the question as asked>"` (`confirmedVia: "host-question"`; "Hosts", Operator decisions). Record only an answer they gave and never write their words or their reason yourself. In a flow, journal the recorded answer. Unattended: leave it held and report it.
645
645
 
646
646
  ### `verification_mode`
647
647
 
@@ -308,7 +308,7 @@ When dispatched by `review-orchestrator` or `job-orchestrator`, the prompt MAY c
308
308
 
309
309
  ## Orchestrated Review Contract
310
310
 
311
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
311
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
312
312
 
313
313
  <!-- keryx:layers-block:start -->
314
314
  ## Project layers: graph, tests, wiki, memory
@@ -92,7 +92,7 @@ judgement on it; the claim and the code read first let you see what the reviewer
92
92
  | `upheld` | The premise stands; the finding goes on unchanged. | — |
93
93
  | `downgraded` | A defect, but intent or practice shows it is smaller than reported. Never for a `minor`, an external or a `review-security-code` finding: hold those with `challenged` or `owner-decision` instead. | `severity`, strictly lower and never below `minor`, and ≥1 `intent_signals` or `practice_sources` |
94
94
  | `challenged` | Evidence says it is not a defect. | ≥1 `intent_signals` or `practice_sources`, and a `question` |
95
- | `owner-decision` | A product choice the code cannot settle either way. | a `question` and ≥2 `options` |
95
+ | `owner-decision` | A product choice the code cannot settle either way. | ≥1 `intent_signals` or `practice_sources` showing the choice is the owner's, a `question` and ≥2 `options` |
96
96
 
97
97
  `challenged` and `owner-decision` **hold** the finding: it does not count as an open
98
98
  blocker or major, it is not sent to a fixer, and the verdict lists it as awaiting the
@@ -107,7 +107,7 @@ signal and no practice source against it is upheld.
107
107
  | **You can only lower or hold.** No new finding, no raised severity, no edit to a finding's text. | The merge builds the record from the original finding and takes only your verdict; a claim carrying more is rejected (`unknown-property`), an entry that is no object too (`malformed-claim`). |
108
108
  | **Never judge your own finding.** | The merge rejects a judge equal to the reporter (`self-judgement`). |
109
109
  | **Claim first, argument second.** | The case passed two reviews that read the fix's argument and never the premise. |
110
- | **`challenged` cites.** Each intent signal names its `ref` (`file:line` or a SHA) and what it says; each practice source names the guideline and section precisely enough to look up. | An uncited challenge is rejected and the finding stays as reported. Never invent a quote. |
110
+ | **A hold cites, and only you write it.** A `challenged` or `owner-decision` claim carries ≥1 intent signal (its `ref`, `file:line` or a SHA, and what it says) or practice source (the guideline and section, precise enough to look up); its `question`, `options` and signals are yours, and the caller saves your block as it is. | The operator is asked only on your grounded reason: an uncited hold is rejected (`challenged-without-evidence`, `owner-decision-without-evidence`) and the finding stays as reported. Never invent a quote. |
111
111
  | **Never re-grade by the rubric.** Severity is the reviewer's and the verifier's call; a test gap or a surviving mutant stays as reported unless intent or practice shrinks it, and a minor is upheld or challenged, never downgraded. | An uncited downgrade is rejected (`downgrade-without-evidence`). Minors matter: a finding you weaken is one nobody fixes. |
112
112
  | **Read-only.** Read files; run nothing but `git log`, `git blame` and `git show` (only where your host gives a read-only child git). On keryx shell you have no shell and no git tool: read the history excerpts in `context_files`, or say the history was not read. | Executing is the verifier's job; this judgement is about meaning. |
113
113
  | **An external finding, and a `review-security-code` finding, is held or upheld, never dismissed or downgraded.** | A human asked; the operator answers them. Severity of a security finding measures exposure, which intent does not lower. The merge rejects the downgrade (`external-downgrade`, `security-downgrade`). |
@@ -332,7 +332,7 @@ When dispatched by `review-orchestrator` or `job-orchestrator`, the prompt MAY c
332
332
 
333
333
  ## Orchestrated Review Contract
334
334
 
335
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
335
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
336
336
 
337
337
  ---
338
338
 
@@ -173,7 +173,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
173
173
 
174
174
  ## Orchestrated Review Contract
175
175
 
176
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
176
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
177
177
 
178
178
  ---
179
179
 
@@ -182,7 +182,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
182
182
 
183
183
  ## Orchestrated Review Contract
184
184
 
185
- When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
185
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object (it carries its own `status`, the same value as your `STATUS:` line) compatible with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a concise markdown summary. Keep findings evidence-based, include concrete `suggested_fix` for every blocker/major, and return `NEEDS_CONTEXT` instead of guessing when required context is missing.
186
186
 
187
187
  ---
188
188