Skip to content

Fix scoring false positives and infrastructure reliability#40

Closed
abrichr wants to merge 1 commit into
mainfrom
fix/scoring-and-infra-reliability
Closed

Fix scoring false positives and infrastructure reliability#40
abrichr wants to merge 1 commit into
mainfrom
fix/scoring-and-infra-reliability

Conversation

@abrichr

@abrichr abrichr commented Feb 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Guard empty metric_results in evaluate_endpoint.py to prevent min([])/all([]) crashes and false positives
  • Add error_type field to BenchmarkResult for distinguishing infrastructure vs agent vs evaluation failures
  • Set error_type="infrastructure" on evaluation timeout and request errors in live adapter
  • Use config.timeout instead of hardcoded 30s for screenshot/a11y requests
  • Remove reasonable_completion false-positive path in mock adapter (calling done after 2+ actions no longer counts as success)
  • Health check in run_dc_eval.py now probes both WAA server (port 5001) and evaluate server (port 5050)

Test plan

  • All 316 existing tests pass
  • Updated mock adapter test to verify no false positive on done-with-actions
  • Run openadapt-evals mock --tasks 5 to confirm mock no longer gives false successes
  • Re-run live eval after PRs A+B land to verify error_type is populated

🤖 Generated with Claude Code

- Guard empty metric_results in evaluate_endpoint.py to prevent
  min([])/all([]) crashes and false positives
- Add error_type field to BenchmarkResult for distinguishing
  infrastructure vs agent vs evaluation failures
- Set error_type="infrastructure" on evaluation timeout and request errors
- Use config.timeout instead of hardcoded 30s for screenshot/a11y requests
- Remove reasonable_completion false-positive path in mock adapter
  (calling done after 2+ actions no longer counts as success)
- Health check now probes both WAA server and evaluate server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abrichr

abrichr commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

Superseded by #42 (combined PR targeting main)

@abrichr abrichr closed this Feb 25, 2026
@abrichr
abrichr deleted the fix/scoring-and-infra-reliability branch February 28, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant