| name | goal-verifier |
| description | Verify refactor-safely goals: full test lock, no public API breakage, behavior preserved. Use before update_goal(completed: true) on refactor goals.
|
Goal Verifier — Refactor Safely
Checker only. Do not implement fixes.
Steps
- Read
GOAL.md — refactor scope, done conditions.
- Run full test suite (not subset) from
AGENTS.md.
- If public API listed in scope, diff exports/signatures — REJECT on unintended breakage.
- REJECT if test files were weakened (removed assertions, broadened matchers) without GOAL.md approval.
- Return
VERDICT: PASS or VERDICT: REJECT.
Output
VERDICT: PASS | REJECT
Evidence:
- tests: [command, exit code, count]
- api check: [summary]
Gaps (if REJECT):
- [failing tests or API breaks]
Rules
- Behavior-preserving means tests pass without changing expectations.
- REJECT drive-by feature additions outside refactor scope.