Repository navigation
fix(agent): preserve execution evidence across scorer failures - #714
praneethhere wants to merge 2 commits into
Conversation
|
I ran an additional offline regression experiment to investigate the effect of scorer failures on multi-scenario evalsets. The fixture contains 12 scenarios in a single agent-format evaluation file, exercising the actual dataset loader, With a scorer-construction failure injected at scenario B:
On the baseline, scenarios C–L were not attempted. With the proposed change, the remaining scenarios continued. Both arms reported a 100% trajectory passing fraction, but independently calculated scoring coverage against the planned scenarios was 1/12 (8.3%) versus 11/12 (91.7%). The no-fault and wrong-tool controls produced identical verdicts in both arms. Additional tests covered a late-dispatch exception and a complete scorer-construction outage. The comparison uses baseline The remaining aggregate coverage limitation is intentionally outside this PR's scope, given the related reporting work in #713 and #715. I've also prepared a standalone evidence-replay package containing the raw CSV outputs, SQLite ledgers and verification script. Feedback on the failure-isolation approach would be appreciated. The two Cloud Build checks currently report |
Summary
Preserve completed agent execution records when scoring fails, while isolating individual scorer errors so they do not discard unrelated valid results.
Problem
Previously, an exception during scorer construction could propagate before an agent scenario's execution record was appended to
agent_results.Consequently, a scenario could complete its external work but be missing from the recorded evaluation output. An unexpected scoring failure after partial score publication could also leave misleading successful scores alongside a failed scoring operation.
Changes
Validation
Limitations
The complete 1,285-test suite was collected but not fully executed. Live cloud services, real BigQuery ingestion, and live LLM evaluations were not tested. The injected-failure experiments establish the documented behavior under the tested conditions, not all possible failure modes.