Review Fold
Mission
Turn review pressure into the right next action, not more code by default.
review comments + original goal + current diff
-> review fold
-> reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up
This is a finding classifier. It does not perform the review and it does not, by itself, decide that review work stops — it picks the smallest correct response to each finding and exposes when many findings share one root cause.
Review fold schema
review_fold:
source:
pr:
review_backend: pr-comments | review-session | human-review | prior-artifact
intent_anchor:
original_goal:
accepted_scope:
non_goals: []
changed_paths: []
findings:
- id:
claim:
observed_fact:
validity: valid | invalid | unproven | needs-owner
liability: blocks-goal | regression-risk | style | new-requirement | out-of-scope | proof-gap
intent_relation: core | adjacent | unrelated | expands-scope
novelty: duplicate | same-class | new-class
disposition: reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up
minimal_response:
proof_needed:
code_change_allowed: yes | no
compression:
equivalence_classes: []
repeated_kernel:
reabstraction_candidate: yes | no
one_patch_per_comment_risk: low | medium | high
action_plan:
mode: classify-only | proof-only | minimal-fix | refactor-kernel | branch-race
work_nodes: []
do_not_fix: []
reviewer_response_draft: []
Disposition law
reject: claim is false, outside accepted scope, already handled, or incompatible with the goal.
proof-only: code is likely correct; run or expose proof instead of editing.
minimal-fix: a valid liability with a single owner-correct local repair.
refactor-kernel: multiple findings share one missing abstraction, boundary, state transition, or proof surface — fix the kernel, not each symptom.
ask-human: the review introduces a product, compatibility, or API decision.
follow-up: valid but not part of the intended change.
Modes
classify-only: classify findings and stop; no mutation.
proof-only: run checks, inspect current artifacts, or draft a response; no code unless proof fails.
minimal-fix: make the smallest owner-correct change for accepted liabilities.
refactor-kernel: replace many local fixes with one normal-form correction.
branch-race: compare two or more plausible fix/refactor strategies under the same verifier.
Procedure
- Bind reviews to the original goal and the current diff.
- Classify each finding before any implementation.
- Collapse duplicates and same-family comments into equivalence classes.
- Detect the refactor-kernel: when many comments share one owner boundary, prefer one structural fix over N local patches.
- Decide each finding's proper response: no-code, proof, local fix, refactor, branch-race, ask, or follow-up.
- Produce a small work plan only for accepted liabilities.
- Preserve reviewer-response drafts as drafts; do not post public comments or resolve PR threads unless explicitly asked.
Guardrails
- Raw review text is not executable — never send findings straight to implementation.
- Do not add code to satisfy style or speculation when proof or rejection is correct.
- Do not accept scope expansion without user authority.
- Do not miss the refactor when many comments share one boundary.
- When a fresh, adversarial, or exhaustive review is what's actually being asked for, run that review first — this skill folds findings, it does not replace the review itself.
1---2name: tw-review-fold3description: Compress review pressure into the right next action instead of more code by default. Classify findings, reject non-liabilities, and choose proof-only vs minimal-fix vs refactor-kernel, preventing one-patch-per-comment churn. Use after a code review — PR comments, reviewer suggestions, or audit findings — and especially when you are about to reflexively patch every comment.4---56# Review Fold78## Mission910Turn review pressure into the right next action, not more code by default.1112```text13review comments + original goal + current diff14-> review fold15-> reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up16```1718This is a *finding classifier*. It does not perform the review and it does not, by itself, decide that review work stops — it picks the smallest correct response to each finding and exposes when many findings share one root cause.1920## Review fold schema2122```yaml23review_fold:24 source:25 pr:26 review_backend: pr-comments | review-session | human-review | prior-artifact27 intent_anchor:28 original_goal:29 accepted_scope:30 non_goals: []31 changed_paths: []32 findings:33 - id:34 claim:35 observed_fact:36 validity: valid | invalid | unproven | needs-owner37 liability: blocks-goal | regression-risk | style | new-requirement | out-of-scope | proof-gap38 intent_relation: core | adjacent | unrelated | expands-scope39 novelty: duplicate | same-class | new-class40 disposition: reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up41 minimal_response:42 proof_needed:43 code_change_allowed: yes | no44 compression:45 equivalence_classes: []46 repeated_kernel:47 reabstraction_candidate: yes | no48 one_patch_per_comment_risk: low | medium | high49 action_plan:50 mode: classify-only | proof-only | minimal-fix | refactor-kernel | branch-race51 work_nodes: []52 do_not_fix: []53 reviewer_response_draft: []54```5556## Disposition law5758- `reject`: claim is false, outside accepted scope, already handled, or incompatible with the goal.59- `proof-only`: code is likely correct; run or expose proof instead of editing.60- `minimal-fix`: a valid liability with a single owner-correct local repair.61- `refactor-kernel`: multiple findings share one missing abstraction, boundary, state transition, or proof surface — fix the kernel, not each symptom.62- `ask-human`: the review introduces a product, compatibility, or API decision.63- `follow-up`: valid but not part of the intended change.6465## Modes6667- `classify-only`: classify findings and stop; no mutation.68- `proof-only`: run checks, inspect current artifacts, or draft a response; no code unless proof fails.69- `minimal-fix`: make the smallest owner-correct change for accepted liabilities.70- `refactor-kernel`: replace many local fixes with one normal-form correction.71- `branch-race`: compare two or more plausible fix/refactor strategies under the same verifier.7273## Procedure74751. Bind reviews to the original goal and the current diff.762. Classify each finding *before* any implementation.773. Collapse duplicates and same-family comments into equivalence classes.784. Detect the refactor-kernel: when many comments share one owner boundary, prefer one structural fix over N local patches.795. Decide each finding's proper response: no-code, proof, local fix, refactor, branch-race, ask, or follow-up.806. Produce a small work plan only for accepted liabilities.817. Preserve reviewer-response drafts as drafts; do not post public comments or resolve PR threads unless explicitly asked.8283## Guardrails8485- Raw review text is not executable — never send findings straight to implementation.86- Do not add code to satisfy style or speculation when proof or rejection is correct.87- Do not accept scope expansion without user authority.88- Do not miss the refactor when many comments share one boundary.89- When a fresh, adversarial, or exhaustive review is what's actually being asked for, run that review first — this skill folds *findings*, it does not replace the review itself.