@mrciphersmith/keryx 0.4.55 → 0.4.56

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.4.55",
3
+ "version": "0.4.56",
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": {
@@ -60,7 +60,7 @@ license: "MIT"
60
60
  - [ ] Run them at the reviewed head. A working tree at another commit is not a reason to skip: `git worktree add <scratch dir> <head-sha>` and run inside it (`-- "cd <scratch dir> && <test command> …"`).
61
61
  - [ ] Hand the saved file's path to **every** reviewer (Reviewer brief, line T), not only the testing reviewer.
62
62
  - [ ] Only when they cannot run at all (no installable dependencies, no test command): every brief and the report carry `Not run: tests-to-run (<reason>)`. A silent skip is a gap.
63
- 4. Show the operator depth, estimate and merge risk (Preflight 4). Over threshold, the operator confirms: in keryx shell call the card `review_confirm_plan` (never send them to a terminal); outside it, ask them with the host's question tool, the plan's numbers in the question, and record it with `keryx review confirm-plan --package <package> --answered-by … --answer-text … --question-text …` ("Hosts"). `dispatch-check` and `ledger build` refuse an unconfirmed plan. Unattended: report the estimate and stop with `STATUS: BLOCKED plan_over_threshold`.
63
+ 4. Show the operator depth, estimate and merge risk (Preflight 4). Default soft thresholds are 160 dispatches and 400 estimated minutes; a project can set lower or higher `reviewPlan.maxDispatches` / `maxMinutes`. Desktop auto mode may authorize an expanded, pinned plan unless `reviewPlan.autoApprove` is `false` within its run budgets and the 800-dispatch / 1200-minute policy ceiling, recording `plan-confirmation.json` with `confirmedVia: auto-policy`. Other hosts may opt in with `routing.config.json` `reviewPlan.autoApprove: true`; optional `autoMaxDispatches` and `autoMaxMinutes` lower those ceilings, and explicit `maxDispatches` / `maxMinutes` are never exceeded automatically. Pinned full base/head SHAs are required. A changed plan or revision needs a fresh decision. Manual Desktop mode always asks. Otherwise, over threshold, the operator confirms: in keryx shell call the card `review_confirm_plan` (never send them to a terminal); outside it, ask them with the host's question tool, the plan's numbers in the question, and record it with `keryx review confirm-plan --package <package> --answered-by … --answer-text … --question-text …` ("Hosts"). `dispatch-check` and `ledger build` refuse an unconfirmed plan. Unattended without an applicable automatic policy: report the estimate and stop with `STATUS: BLOCKED plan_over_threshold`.
64
64
  5. Dispatch by slice roles from the drivers `slice` wrote: each role gets the slices that name it ("Slices, waves and results"). After each batch, read the pull request's head and act on a move (`SKILL.detail.md` § "Head moved"), then `keryx review next --package <package>` decides what is left, an `escalated` core-role dispatch on a light slice included.
65
65
  6. Verifier on the first blocker or major (Step 10). It runs no command itself: run `keryx review verify-run --package <package> --finding <id> -- <command>` and hand it the saved `research-evidence/verify-<id>-<n>.txt` as context. After it (no verifier ran: after the last reviewer), Wave D: `review-premise` (Step 10b).
66
66
  7. `keryx review verdict <package>` to the operator, then the tail: mutation pass, `ledger build`, `ingest` (with `--premises`), the operator's answer to each held finding (Wave D), `readiness`, `complete`.
@@ -167,7 +167,7 @@ A reviewer starts in the project root and reads project files; a path outside th
167
167
  1. **Slices.** `review plan` (or `review slice`) cuts the diff into `<package>/slices/slice-NN.diff` files, a `manifest.json` with the wave budget, and drivers `drivers/<reviewer>-w<n>.json` (slice ids, absolute slice paths, `result` path). On keryx shell with a large diff pass a small `--max-bytes` (for example 18000) and `--wave-bytes` (for example 54000) so no wave outruns a reviewer's five minutes. Ledgers (csv, lockfiles, snapshots, generated files) are listed under `omissions` with a reason — list them in the report as not reviewed, never as clean.
168
168
  2. **Slices travel by path; on keryx shell, only by `context_files`.** On keryx shell pass each reviewer its slice paths in `spawn_subagent`'s `context_files`: the host copies the text into that reviewer's task, so you never paste or retype a slice. Elsewhere name the slice paths in the prompt. Put the `slices` ids in its reviewer-input. A dispatch that names a git range but no slice leaves the reviewer with nothing to read — that is `BLOCKED`, not a review.
169
169
  3. **The brief asks for the covered slices.** Tell every reviewer to list the `slices` it read in full in its `REVIEW_RESULT` object, as ids (`"slices": ["slice-01", "slice-02"]`), and to leave out a slice it did not read. A finished reply with no `slices` list covers nothing.
170
- 4. **One batch.** Dispatch the whole wave — up to 10 reviewers — in one message, not one at a time. On keryx shell every round reviewer's `spawn_subagent` carries `review_wave: {"package": "<package>", "pass": "round"}` (a wave outside it counts against the turn's 32 children) and a `timeout_ms` that fits its wave: the default 300000 is sized for a wave of 60000 bytes, so a larger `--wave-bytes` needs a larger `timeout_ms`. Give each reviewer `max_rounds` of at least 40 (the default); a reviewer that spends its rounds reading the skill and the schema returns nothing. Write the dispatch's `model` block into each driver you dispatch (`slice` leaves the field empty; Reviewer brief, line S); a dispatch with no driver gets `<package>/drivers/<reviewer>.json` = `{"reviewer", "slices", "result": "raw/<reviewer>.txt", "definition": "<path of the reviewer's SKILL.md>"}`, because `ledger build` takes the rule file from `definition`. Save each reply to its driver's `result`; only reviewer replies belong in `raw/`. **After each batch run `keryx review next --package <package>`** (never `retry-plan` once per reviewer): it decides every reviewer's next wave (reason `missing`, `retry`, `stalled` or `escalated`), prints the `- **Not run:** …` line to paste for a reviewer that stopped making progress, or prints `done`. **While the plan is authorized, do not stop between batches.** `next` says so with the line "plan authorized; continue the loop without asking the operator; stop only for the card list, for plan growth, or on done / Not run" (`--json`: `planAuthorized`, `continue`). Then dispatch what it returned in the same turn: no "continue?", no "launch the next wave?", no "close with waivers or continue?", and no end of turn before `next` prints `done` or the reviewer is `Not run`. The stops are the closed list in `SKILL.detail.md` § "Between waves" and nothing else. Only the operator can accept a smaller set than that (the `review_override_reviewers` card, or their answer to the host question recorded with `keryx review override-reviewers`, "Hosts"). An unfinished reviewer is never counted as a clean pass. **Persist every result, on every host.** On keryx shell pass each reviewer `save_result_to: <package>/raw/<reviewer>.txt`: the host writes its full final text there. Elsewhere the prompt tells the reviewer to write its whole reply to `<package>/raw/<reviewer>.txt` before it answers. Build `research.json` with `keryx review ledger build --package <package>` — never by hand — and do each gap's next command it prints; run `keryx review ingest --research <package>/research.json` once it prints READY (exit 0). A refused `review_complete` card (or `keryx review complete` at a human's terminal) names what is missing: fix that with a command and close again; it is never `blocked`.
170
+ 4. **One batch.** Dispatch the whole wave — up to 10 reviewers — in one message, not one at a time. On keryx shell every round reviewer's `spawn_subagent` carries `review_wave: {"package": "<package>", "pass": "round"}` (a wave outside it counts against the turn's 32 children) and a `timeout_ms` that fits its wave: the default 300000 is sized for a wave of 60000 bytes, so a larger `--wave-bytes` needs a larger `timeout_ms`. Give each reviewer `max_rounds` of at least 40 (the default); a reviewer that spends its rounds reading the skill and the schema returns nothing. Write the dispatch's `model` block into each driver you dispatch (`slice` leaves the field empty; Reviewer brief, line S); a dispatch with no driver gets `<package>/drivers/<reviewer>.json` = `{"reviewer", "slices", "result": "raw/<reviewer>.txt", "definition": "<path of the reviewer's SKILL.md>"}`, because `ledger build` takes the rule file from `definition`. Save each reply to its driver's `result`; only reviewer replies belong in `raw/`. **After each batch run `keryx review next --package <package>`** (never `retry-plan` once per reviewer): it decides every reviewer's next wave (reason `missing`, `retry`, `stalled` or `escalated`), prints the `- **Not run:** …` line to paste for a reviewer that stopped making progress, or prints `done`. **While the plan is authorized, do not stop between batches.** `next` says so with the line "plan authorized; continue the loop without asking the operator; stop only for the card list, for plan growth, or on done / Not run" (`--json`: `planAuthorized`, `continue`). For a grown plan, run `review next --apply`; configured project auto policy writes a new bounded authorization for the changed plan, otherwise obtain the operator decision. For native `spawn_subagent` on non-Desktop hosts, pass `model_class` from each `review next --json` dispatch (`light`, `standard`, or `expert`); legacy `model` is evidence, not an exact target. Desktop prepared queues resolve and enforce their exact model separately. Then dispatch what it returned in the same turn: no "continue?", no "launch the next wave?", no "close with waivers or continue?", and no end of turn before `next` prints `done` or the reviewer is `Not run`. The stops are the closed list in `SKILL.detail.md` § "Between waves" and nothing else. Only the operator can accept a smaller set than that (the `review_override_reviewers` card, or their answer to the host question recorded with `keryx review override-reviewers`, "Hosts"). An unfinished reviewer is never counted as a clean pass. **Persist every result, on every host.** On keryx shell pass each reviewer `save_result_to: <package>/raw/<reviewer>.txt`: the host writes its full final text there. Elsewhere the prompt tells the reviewer to write its whole reply to `<package>/raw/<reviewer>.txt` before it answers. Build `research.json` with `keryx review ledger build --package <package>` — never by hand — and do each gap's next command it prints; run `keryx review ingest --research <package>/research.json` once it prints READY (exit 0). A refused `review_complete` card (or `keryx review complete` at a human's terminal) names what is missing: fix that with a command and close again; it is never `blocked`.
171
171
  5. **Never print a scope or a slice.** The tool output of one call is cut at about 20 KB and `keryx review scope` of a large PR prints hundreds of KB. Write it to a file and read the counts from the file (`keryx ctx read`, or `jq`); take `<base>` from `git symbolic-ref refs/remotes/origin/HEAD`, not a guessed `origin/main`. A missing directory is a command to run (`mkdir -p`), not a blocker. **Machine artifacts by direct write.** Save slices, payloads and results by redirection or `keryx ctx run --raw -- <command>`; the summarized form of `keryx ctx run` drops the bytes a later step parses.
172
172
  6. **Write mutants whole.** A testing reviewer's `mutant_candidates` cover every changed branch, code downstream of the diff included. Write them to `research-evidence/mutants.json` unchanged; you may not narrow them, and a candidate no pass has run still blocks the coverage gate (`SKILL.detail.md`, mutation pass).
173
173
  7. **Measure before `review-layout`.** Run the browser measurements (Playwright/Storybook) yourself and pass them in its first dispatch (`context_files` on keryx shell, by path elsewhere); they count as evidence when the command and viewport are named (`SKILL.detail.md`).
@@ -473,7 +473,7 @@ keryx review blast-radius --ref "${BASE_SHA}" --package "${PKG}" --previous blas
473
473
  ```
474
474
 
475
475
  `PKG` is the review package, created by `keryx review start` before dispatch. Give each reviewer `keryx review layers block --package "${PKG}" --files <its slice files> --json` as the payload's `layers` field.
476
- When `dropped` is non-empty, run `keryx review chunks plan|estimate|next|record|merge --package "${PKG}"` until `next` has none left; an unattended run runs every wave without a question, up to the 25-pass ceiling. `review complete` refuses while a file is uncovered; the coverage waiver (`review_waive_coverage`) and the chunk-run question (`review_chunks_answer`) are the operator's alone, never yours ("Hosts": card or their terminal; unattended, record Not run). Pass `review_wave: {"package": "${PKG}", "pass": "<chunk id>"}` on every `spawn_subagent` of a chunk pass (`"pass": "round"` for the round's own reviewers): each wave counts its own 32 children and one turn opens at most 25 waves; a wave the package does not record is ignored and counts against the turn's 32. **Bring in pass findings.** `chunks merge` prints each finding the pass raised and `N chunk-pass findings not in round`; read it as you read a reviewer's result, and run `keryx review ingest --review-id <id>` (the package where the chunks ran) to bring them in. When a pass finishes after the report was written, run `chunks merge`, then ingest again and rewrite the report: `review complete` only warns about a pass finding out of `findings.json`, and a warning left standing is a defect you shipped.
476
+ When `dropped` is non-empty, run `keryx review chunks plan|estimate|next|record|merge --package "${PKG}"` until `next` has none left; the default ceiling is 100 passes of 40 files (4,000 files). `reviewChunks.autoApprovePasses` optionally authorizes up to 400 passes in automatic mode; explicit user budgets and a human refusal still apply. `review complete` refuses while a file is uncovered; the coverage waiver (`review_waive_coverage`) and the chunk-run question (`review_chunks_answer`) are the operator's alone, never yours ("Hosts": card or their terminal; unattended, record Not run). Pass `review_wave: {"package": "${PKG}", "pass": "<chunk id>"}` on every `spawn_subagent` of a chunk pass (`"pass": "round"` for the round's own reviewers): each wave counts its own 32 children and one turn opens at most 100 distinct waves; a wave the package does not record is ignored and counts against the turn's 32. **Bring in pass findings.** `chunks merge` prints each finding the pass raised and `N chunk-pass findings not in round`; read it as you read a reviewer's result, and run `keryx review ingest --review-id <id>` (the package where the chunks ran) to bring them in. When a pass finishes after the report was written, run `chunks merge`, then ingest again and rewrite the report: `review complete` only warns about a pass finding out of `findings.json`, and a warning left standing is a defect you shipped.
477
477
 
478
478
  ### Path Mode
479
479