| name | code-review |
| description | Inferential code review sensor for this repo. Use before asking a human to review, after verify gates are green, or when asked to "review", "review changes", or "pre-review". Checks harness compliance, architecture layers, test adequacy, and agent failure modes — not a substitute for cargo/clippy/CI.
|
Code Review (Inferential Feedback)
Semantic review after computational sensors (verify skill / npm run gate:*) are green. Complements CI; does not replace it.
When to Use
- Before opening a PR or requesting human review
- After a large agent-authored diff
- User asks for review / pre-review / sanity check of changes
Don't Invoke When
- Gates are still red — run
verify first
- You need automated rustc/clippy (use computational sensors)
Prerequisites
npm run gate:fast
Review checklist
1. Intent and scope
2. Architecture fitness
3. Maintainability
4. Behaviour / tests
5. Harness coherence
Known agent failure modes (watch for)
| Mode | What to look for |
|---|
| Misdiagnosis | Fix unrelated to root cause; tests green but bug remains |
| Brute-force | Huge unrelated rewrites; #[allow] spam; deleted tests |
| Over-engineering | Extra traits/layers for a local fix |
| Incomplete verification | Only ran one unit test; skipped web/architecture |
| Layer bleed | Browser types in core; business rules only in TS |
Output format
## Review summary
**Verdict:** Approve | Approve with nits | Request changes
**Gates:** fast/full assumed green? yes/no
## Findings
### Blocking
- ...
### Nits
- ...
## Harness follow-ups
- (sensors/guides to add, or none)
Integration
- After
verify
- Before human PR /
create-github-pull-request-from-specification
- Escalation: architecture disputes → ADR via
goap-adr-planner