@mrciphersmith/keryx 0.4.55 → 0.4.57
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/dist/cli.js +6058 -4363
- package/dist/core.js +20 -20
- package/dist/keryx-general-worker-entry.js +712 -595
- package/package.json +1 -1
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +29 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrciphersmith/keryx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.57",
|
|
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,11 +60,27 @@ 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).
|
|
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`.
|
|
67
67
|
|
|
68
|
+
## Desktop review state
|
|
69
|
+
|
|
70
|
+
Applies when the turn names a Desktop review, or `KERYX_REVIEW_SESSION_ID` is set and the target is a pull request: keep the round's durable state (`.metaproject/reviews/pr/<id>/review.json`) with `keryx review state` at each step below (`keryx review state --help` for the flags). A missed call breaks nothing: the session's live status stays right and the next call restores the state. **Continuing** (the turn says so, or `open` prints `reused`) means `keryx review state show --review <id>`, the round's `package`, and the step its state names; never start a new package for the same head.
|
|
71
|
+
|
|
72
|
+
| Step | Call |
|
|
73
|
+
|---|---|
|
|
74
|
+
| Before `keryx review start` (or `plan`) | `keryx review state open --pr <url> --base <sha> --head <sha> [--viewer <login>] [--settings <key>]`; it prints the review id |
|
|
75
|
+
| After `start` | `keryx review state round --review <id> --package <the package start printed> --state planning` |
|
|
76
|
+
| Plan ready (`review plan` / `slice`) | `keryx review state round --review <id> --state dispatching --plan <slices>,<waves>,0/<assignments>` |
|
|
77
|
+
| A wave ends | `keryx review state round --review <id> --plan <slices>,<waves>,<done>/<total> --reviewer <role>=done:<n>… --usage <tokens>[,<usd>]` |
|
|
78
|
+
| Reconciling (`ingest`, `verdict`) | `keryx review state round --review <id> --state reconciling --findings <b>,<M>,<m>,<i>` |
|
|
79
|
+
| Report ready | `keryx review state round --review <id> --state ready --verdict approve\|comment\|request-changes --findings … --usage …` |
|
|
80
|
+
| Stopped without a report (provider error, unanswered question, turn end) | `keryx review state round --review <id> --state paused`, the reason with `keryx review state note --review <id> --text "<reason>"` |
|
|
81
|
+
| Continue | `keryx review state show --review <id>`: reuse its `package` and resume at the step the round's state names (a paused round may go straight to `ready`); no review.json yet → open the round as the turn says, then continue from the named earlier attempt |
|
|
82
|
+
| Publish | after `keryx review publish`, `keryx review state publish --review <id> --verdict <v> [--url <review url>]` |
|
|
83
|
+
|
|
68
84
|
## Clean context — the round starts empty
|
|
69
85
|
|
|
70
86
|
Context comes only from your own context stages: scope, the Review Context Pack, the memory stage and the layers. Your session memory, the auto-memory index (`MEMORY.md`), remembered feedback and the earlier conversation are not inputs: do not read, quote or apply them.
|
|
@@ -167,7 +183,7 @@ A reviewer starts in the project root and reads project files; a path outside th
|
|
|
167
183
|
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
184
|
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
185
|
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`.
|
|
186
|
+
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
187
|
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
188
|
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
189
|
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`).
|
|
@@ -283,8 +299,7 @@ keryx review comments reply --repo <owner/repo> --pr <n> --outcomes <file|->
|
|
|
283
299
|
|
|
284
300
|
`#B` is its own conversation. Collect and reply on it exactly as always: its record is filed under `#B`'s own number.
|
|
285
301
|
|
|
286
|
-
- **Never run a reply pass against a pull request the dispatch named as the
|
|
287
|
-
caller's.** When `constraints` says the caller owns the reply for `#A` — or the target resolves onto a pull request another skill declared — collect if the round needs the record and stop there. `review-pr-feedback` answers `#A` once, after the merge; a mid-loop reply would make that post-merge reply be skipped as already answered.
|
|
302
|
+
- **Never run a reply pass against a pull request the dispatch named as the caller's.** When `constraints` says the caller owns the reply for `#A` — or the target resolves onto a pull request another skill declared — collect if the round needs the record and stop there. `review-pr-feedback` answers `#A` once, after the merge; a mid-loop reply would make that post-merge reply be skipped as already answered.
|
|
288
303
|
- **Absent such a constraint this orchestrator owns the reply.**
|
|
289
304
|
- The reply is the only thing that moves; collection, classification, the verifier exemption and the cap exemption are unchanged.
|
|
290
305
|
|
|
@@ -473,7 +488,7 @@ keryx review blast-radius --ref "${BASE_SHA}" --package "${PKG}" --previous blas
|
|
|
473
488
|
```
|
|
474
489
|
|
|
475
490
|
`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;
|
|
491
|
+
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
492
|
|
|
478
493
|
### Path Mode
|
|
479
494
|
|
|
@@ -608,9 +623,7 @@ Dispatch selected reviewers in parallel when independent — this engine dispatc
|
|
|
608
623
|
|
|
609
624
|
### Wave C — verification, and what it replaced
|
|
610
625
|
|
|
611
|
-
Wave C replaced `review-strict`, a meta-pass that re-read the findings and adjusted severity with no new evidence. It was **removed, not improved**, on measured evidence:
|
|
612
|
-
self-correction fell 95.5 → 91.5 → 89.0 (GPT-4, GSM8K) and 75.8 → 38.1 (GPT-3.5, CommonSenseQA), arXiv:2310.01798; Self-Refine's +49.2 on dialogue response generation is +0.2 on maths
|
|
613
|
-
(arXiv:2303.17651), so re-reading helps subjective tasks and not verifiable ones. A verifier that **runs something** rejects most false reports.
|
|
626
|
+
Wave C replaced `review-strict`, a meta-pass that re-read the findings and adjusted severity with no new evidence. It was **removed, not improved**, on measured evidence: self-correction fell 95.5 → 91.5 → 89.0 (GPT-4, GSM8K) and 75.8 → 38.1 (GPT-3.5, CommonSenseQA), arXiv:2310.01798; Self-Refine's +49.2 on dialogue response generation is +0.2 on maths (arXiv:2303.17651), so re-reading helps subjective tasks and not verifiable ones. A verifier that **runs something** rejects most false reports.
|
|
614
627
|
Do not restore the re-score because it looks useful.
|
|
615
628
|
|
|
616
629
|
`review-verifier` **never votes**: agreement between reviewers is not evidence and must never be recorded as verification.
|
|
@@ -728,16 +741,10 @@ the reviewer feels about it:
|
|
|
728
741
|
4. **An unimplemented acceptance criterion** — the change claims work the diff
|
|
729
742
|
does not contain.
|
|
730
743
|
|
|
731
|
-
Everything else is at most `major`. "This will definitely cause problems later"
|
|
732
|
-
is not one of the four. Neither is "this violates the architecture", "this fails
|
|
744
|
+
Everything else is at most `major`. "This will definitely cause problems later" is not one of the four. Neither is "this violates the architecture", "this fails
|
|
733
745
|
the linter", or "this is how the last outage started".
|
|
734
746
|
|
|
735
|
-
**An unshipped dependency is shape 1 or shape 2, and the list stays closed.**
|
|
736
|
-
When a producer is recorded `state: open` with `merge_order: producer_first` and
|
|
737
|
-
nothing stops this change merging first, the consumer calls what is not there
|
|
738
|
-
(shape 1) or reads the default the producer has not changed yet (shape 2). File it
|
|
739
|
-
against the consuming call site, and say in the fix that the remedy is a merge gate,
|
|
740
|
-
a flag, or a fallback — never a change to the diff. A missing deploy note with no
|
|
747
|
+
**An unshipped dependency is shape 1 or shape 2, and the list stays closed.** When a producer is recorded `state: open` with `merge_order: producer_first` and nothing stops this change merging first, the consumer calls what is not there (shape 1) or reads the default the producer has not changed yet (shape 2). File it against the consuming call site, and say in the fix that the remedy is a merge gate, a flag, or a fallback — never a change to the diff. A missing deploy note with no
|
|
741
748
|
recorded producer state behind it is the `minor` in the Context Pack.
|
|
742
749
|
|
|
743
750
|
### `major` / `minor` / `info` — the boundary test
|
|
@@ -778,8 +785,7 @@ Read the review activity rule before the code: `.metaproject/rules/project/activ
|
|
|
778
785
|
|
|
779
786
|
### Class scope — required for `blocker` and `major`
|
|
780
787
|
|
|
781
|
-
Every `blocker` and `major` finding must carry `class_scope`: **every** site that
|
|
782
|
-
holds the shape you found, and **how you enumerated them** — the grep or query
|
|
788
|
+
Every `blocker` and `major` finding must carry `class_scope`: **every** site that holds the shape you found, and **how you enumerated them** — the grep or query
|
|
783
789
|
you ran, or the guard that derives the set.
|
|
784
790
|
|
|
785
791
|
```yaml
|
|
@@ -872,16 +878,13 @@ After findings are consolidated, decide whether any of them should re-train a pr
|
|
|
872
878
|
keryx skills learn --from-review <report-path> --skill <module>/<skill>
|
|
873
879
|
```
|
|
874
880
|
|
|
875
|
-
If no findings map to a project-skill, write `## Skill Learning\n- none`.
|
|
876
|
-
Never run `skills learn apply` from the reviewer — proposal review and apply are
|
|
877
|
-
the orchestrator's step.
|
|
881
|
+
If no findings map to a project-skill, write `## Skill Learning\n- none`. Never run `skills learn apply` from the reviewer — proposal review and apply are the orchestrator's step.
|
|
878
882
|
|
|
879
883
|
---
|
|
880
884
|
|
|
881
885
|
## PR Review Report Publication
|
|
882
886
|
|
|
883
|
-
When the review target is a GitHub pull request, ask whether to publish after
|
|
884
|
-
the report exists, unless `publish_pr_review_report` is already set:
|
|
887
|
+
When the review target is a GitHub pull request, ask whether to publish after the report exists, unless `publish_pr_review_report` is already set:
|
|
885
888
|
|
|
886
889
|
```text
|
|
887
890
|
Publish this review report to the PR?
|
|
@@ -899,19 +902,15 @@ Automation values, names unchanged:
|
|
|
899
902
|
- `comment-and-ai-artifact` -> the PR review plus the follow-up file.
|
|
900
903
|
- `none` or legacy `false` -> do not publish.
|
|
901
904
|
|
|
902
|
-
Unattended: do not publish; hand the rendered body back to the caller.
|
|
903
|
-
|
|
904
|
-
Default is do not publish. No resolvable PR number means skip and say so.
|
|
905
|
+
Unattended: do not publish; hand the rendered body back to the caller. Default is do not publish. No resolvable PR number means skip and say so.
|
|
905
906
|
|
|
906
907
|
The review body is the report rendered from `templates/review-report.md`, English, with the domain file chosen above (`templates/pr-comment-frontend.md` / `templates/pr-comment-backend.md`) — never a summary written freehand. It does not use a tool heading, a finding table, or a meta table. It does not carry a co-author line, a `Generated with` trailer, or any sentence that names a vendor or a product as the author. Name the workflow and reviewers that actually ran, with models, tools, skills and subagents. Never identify the operator from `gh auth status`, git config or a credential; do not sign the review as a person, reviewer or model. A project overlay adds content only through the template's overlay slots. If a project skill under `.metaproject/project-skills/orchestration` provides `templates/report-overlay.md` extending this engine, read it and its required project rules. Compose its English slot text from the round's evidence. Put the evidence in a fenced `json keryx:report-slots` block with the overlay id and named `slots`. In a Vantage review, give every mandatory check its own `- Label — evidence or explicit status` line in `verified-clean`. A check without evidence is not verified. Write the input report to a separate draft file and pass it to `review ingest --report`; the planner already owns the package's `report.md`.
|
|
907
908
|
|
|
908
909
|
The follow-up file path and the metadata rules (real model names, Run vs Not run, no `adaptive` in the model slot) live in that same template. The body goes out as one formal review whose state follows *Where it is posted* in the template, through the one keryx path to GitHub, held by the readiness checklist: `keryx review publish <package> --event COMMENT|REQUEST_CHANGES|APPROVE` (`--partial` when the package is not ready; a merged or closed PR is refused, so its report stays local). Publishing is the operator's decision: the `review_publish` card in keryx shell, elsewhere they run it in their terminal, where it shows the body first. You never pass `--yes`, and never post around it with `gh pr review` or `gh pr comment`.
|
|
909
910
|
|
|
910
|
-
**No GitHub write without an approved draft.** Before ANY write — the comment, a thread reply, `keryx review comments reply`, a review — show the user the rendered body and wait for explicit approval of that body.
|
|
911
|
-
Picking A or B above chooses *whether* to publish, not *what*; a comment is public and cannot be unsent. With no user to answer (a dispatched run), do not write: hand the rendered body back to the caller.
|
|
911
|
+
**No GitHub write without an approved draft.** Before ANY write — the comment, a thread reply, `keryx review comments reply`, a review — show the user the rendered body and wait for explicit approval of that body. Picking A or B above chooses *whether* to publish, not *what*; a comment is public and cannot be unsent. With no user to answer (a dispatched run), do not write: hand the rendered body back to the caller.
|
|
912
912
|
|
|
913
|
-
Re-read the thread before posting; a head that differs from the round's head, however it moved,
|
|
914
|
-
follows `SKILL.detail.md` § "Head moved". Do not duplicate findings; cite extended ones.
|
|
913
|
+
Re-read the thread before posting; a head that differs from the round's head, however it moved, follows `SKILL.detail.md` § "Head moved". Do not duplicate findings; cite extended ones.
|
|
915
914
|
|
|
916
915
|
## Job Context Awareness
|
|
917
916
|
|