Judge Evaluate
Assess doer output and produce a structured verdict artifact.
Role Boundaries
- Evaluate; do not implement fixes.
- Base conclusions on concrete evidence (commands, logs, artifacts).
- Write verdict output only.
- Do not claim merge/release readiness unless explicitly asked as a separate gate.
Required Inputs
task_idand task statementpatch.diffhandoff.json- output path for
verdict.json
Optional:
- explicit eval command list
- scoring rubric overrides
Workflow
1) Verify handoff integrity
- Validate that required doer artifacts exist.
- Read
handoff.jsonfor touched files, assumptions, and smoke checks. - Flag malformed or missing handoff fields as
needs-humanorrejectdepending on severity.
2) Evaluate implementation evidence
Run deterministic checks when commands are provided:
python3 <path-to-skill>/scripts/run_eval.py \
--repo <repo-root> \
--output <artifact-path>/eval-results.json \
--command "pytest -q" \
--command "ruff check ."
- Keep outputs in machine-readable form.
- Treat failed eval commands as evidence for rejection unless out of scope.
3) Build verdict
Run:
python3 <path-to-skill>/scripts/write_verdict.py \
--task-id <task-id> \
--output <artifact-path>/verdict.json \
--eval-results <artifact-path>/eval-results.json \
--verdict reject \
--reason "tests::2 failures in auth reset flow" \
--requirement-checked "RQ-0102" \
--requirement-missing "NFR-0001" \
--required-change "Handle invalid token branch" \
--suggested-test "pytest -q tests/test_reset.py::test_invalid_token"
Use one of:
passrejectneeds-human
4) Validate verdict artifact
Run:
python3 <path-to-skill>/scripts/validate_verdict.py \
--input <artifact-path>/verdict.json
Evaluation Rules
- Prefer
rejectwhen evidence shows unmet behavior or failing checks. - Use
needs-humanfor ambiguous requirements, missing context, or conflicting constraints. - Keep
required_changesimplementation-neutral and actionable.
Output Rules
- Always produce
verdict.json. - Include concrete
reasonswithcheckanddetails. - Keep
suggested_testsrunnable. - Keep
requirements_checkedandrequirements_missingin stable ID form (RQ-####,NFR-####,ASMP-####,ADR-####).
Resources
scripts/
scripts/run_eval.py: execute eval commands and persist structured results.scripts/write_verdict.py: synthesizeverdict.jsonfrom evidence and explicit findings.scripts/validate_verdict.py: enforce required verdict shape and enums.
references/
references/artifact-contract.md: canonical verdict schema and examples.references/scoring-rubric.md: lightweight scoring framework for consistent decisions.