Skip to content

Add structured failure reasons to benchmark summary output#119

Merged
adamcohenhillel merged 1 commit into
mainfrom
feat/benchmark-failure-reasons
Jul 5, 2026
Merged

Add structured failure reasons to benchmark summary output#119
adamcohenhillel merged 1 commit into
mainfrom
feat/benchmark-failure-reasons

Conversation

@adamcohenhillel

Copy link
Copy Markdown
Contributor

Summary

  • Each failed task in results.jsonl / summary.json now includes a failure_reasons list with concise structured reasons: harness failed, assistant did not report task.finished, expected text missing, expected activity missing or different, final UI dump missing, trajectory missing, and trajectory summary missing.
  • summary.json gains a top-level failures array (task_id + failure_reasons) so contributors can see at a glance why tasks failed without inspecting task directories.
  • Existing openphone.agent_benchmark_result.v1 fields are preserved; only additive fields were introduced.

Test plan

  • ./scripts/check.sh passes
  • git diff --check clean
  • bash -n scripts/run-agent-benchmark.sh syntax check
  • Verified the embedded per-task evaluation and summary aggregation Python locally against mocked task directories (passing task, harness-failed task with missing trajectory/UI dump, and ran-but-failed task with wrong assistant status / missing text / wrong activity) — failure reasons and the failures summary block came out as expected
  • Not verified: full scripts/run-agent-benchmark.sh --task settings-apps-page end-to-end run, since it requires a connected device/emulator

Closes #41

🤖 Generated with Claude Code

Each failed task in results.jsonl now carries a failure_reasons list
covering harness failures, missing task.finished status, missing
expected text, activity mismatches, missing final UI dumps, and
missing trajectories or trajectory summaries. summary.json also gains
a top-level failures list so contributors can see why tasks failed
without digging through task directories. Existing fields are
unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openphone-docs Ready Ready Preview, Comment Jul 4, 2026 2:18am

Request Review

@adamcohenhillel
adamcohenhillel merged commit b24dfff into main Jul 5, 2026
3 checks passed
@adamcohenhillel
adamcohenhillel deleted the feat/benchmark-failure-reasons branch July 6, 2026 22:25
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.

Improve OpenPhone benchmark failure reasons in summary output

1 participant