Expand description
bn review — Adversarial post-close review of bean implementations.
After an agent closes a bean, a review agent checks the implementation against the bean’s spec in a fresh context, providing semantic correctness checking beyond what verify gates can catch.
§Flow
- Load bean description + acceptance criteria
- Collect git diff (changes since HEAD)
- Build a review prompt with spec + diff + verdict instructions
- Spawn review agent (using config.review.run or config.run template)
- Parse VERDICT from agent output: approve / request-changes / flag
- Apply verdict: update labels, optionally reopen bean with notes
§Verdicts
approve— implementation correct; addsreviewedlabelrequest-changes— issues found; reopens bean with notes, addsreview-failedflag— needs human attention; addsneeds-human-reviewlabel, stays closed
Structs§
- Review
Args - Arguments for
cmd_review.
Enums§
- Review
Verdict - Verdict returned (or inferred) from the review agent’s output.
Functions§
- apply_
verdict - Apply the parsed verdict to the bean: update labels, notes, and status.
- cmd_
review - Execute
bn review <id>. - parse_
verdict - Parse the review agent’s output for a VERDICT keyword.