fix(native-eval): reject invalid harness runs - #64
Conversation
|
Codex review: needs changes before merge. Reviewed August 23, 2026, 5:56 AM ET / 09:56 UTC. ClawSweeper reviewWhat this changesThe PR classifies native-evaluation failures, excludes fully invalid runs from score eligibility, and makes fleet recovery require a recorded terminal exit status. Merge readinessKeep open: the branch removes recovery’s fallback before its producer actually archives the required exit status, so a successful exported run can be failed and rerun. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherNative evaluation runs benchmark tasks through a harness and exports trial artifacts. Aggregation turns those artifacts into scores, while fleet recovery uses them to decide whether a remote campaign completed. flowchart LR
A[Evaluation tasks] --> B[Harness execution]
B --> C[Trial results]
C --> D[Score aggregation]
C --> E[Exported archive]
E --> F[Fleet recovery]
F --> G[Campaign status]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Persist the terminal status before final packaging, include it in the export metadata, and retain fail-closed recovery for archives that genuinely lack it. Do we have a high-confidence way to reproduce the issue? Yes—the source establishes the path: final packaging happens before the EXIT trap writes exit_status, while the revised recovery path requires that status from the archive. Is this the best way to solve the issue? No—the fail-closed policy is appropriate only once the producer persists and packages the status before recovery consumes it. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against 884dd1bb5511. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (72 earlier review cycles; latest 8 shown)
|
What does this PR do?
Records structured native-eval execution outcomes and rejects runs where every
trial failed at the harness, infrastructure, or verifier layer.
Why?
Verifier rewards are useful diagnostics, but they are not proof that the
benchmark harness executed correctly. Fully invalid runs were being presented
as completed score data, and fleet recovery could infer success without an
archived exit status.
Fixes #63
Changes
Tests
python -m pytest -qpasses on Blacksmith Testboxpython -m ruff check clawbench app.py scripts testspasses on Blacksmith TestboxFocused proof: 117 tests passed; Ruff clean. Autoreview reported no actionable
findings.