Skip to content

feat(analyze): aggregate batch error-analysis tool (closes #159) - #255

Merged
Perry2004 merged 4 commits into
mainfrom
feat/error-analysis
Aug 30, 2026
Merged

feat(analyze): aggregate batch error-analysis tool (closes #159)#255
Perry2004 merged 4 commits into
mainfrom
feat/error-analysis

Conversation

@reacher-z

Copy link
Copy Markdown
Collaborator

Aggregate batch error-analysis tool (closes #159)

clawbench-analyze reads a directory of completed run outputs (<run>/data/interception.json, optional <run>/reward.json) and produces an aggregate error analysis, reusing the per-run classifier (classify_run):

  • Stage-1 (interception) + Stage-2 (judged) rates
  • Failure taxonomyresult_category counts (intercepted / infra_failure / zero-action / not-intercepted …)
  • Per-category Stage-1 breakdown (category from task metadata, else task-id segments)
  • Interceptor false-positive check — 0-action runs that were intercepted (should be 0) — a core validity signal that the benchmark isn't luck-passable
  • Self-report gap — runs where the agent claimed success but actually failed (justifies interception-based, not self-report, scoring)
clawbench-analyze --runs-dir <batch-output> [--out report.md] [--json]

Self-contained, unit-tested on fixtures (5 tests); ruff + pyright clean; full suite green. Complements clawbench-batch/clawbench-rescore.

clawbench-analyze reads a directory of completed run outputs and produces an
aggregate error analysis, reusing the per-run classifier (classify_run):
- Stage-1 (interception) and Stage-2 (judged) rates
- failure taxonomy (result_category counts: intercepted / infra_failure /
  zero-action / not-intercepted ...)
- per-category Stage-1 breakdown (category from task metadata or task-id segments)
- interceptor false-positive check (0-action runs that were intercepted -> should
  be 0), a core validity signal
- self-report gap (agent claimed success but the run actually failed)

Markdown or --json output. Self-contained + unit-tested on fixtures (5 tests);
ruff + pyright clean; suite green.

@Perry2004 Perry2004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the READMEs about this new script entrypoint as well.

Comment thread src/clawbench/eval/analyze.py Outdated
Comment thread src/clawbench/eval/analyze.py
@Perry2004
Perry2004 merged commit b95df4a into main Aug 30, 2026
6 checks passed
@Perry2004
Perry2004 deleted the feat/error-analysis branch August 30, 2026 21:18
@github-project-automation github-project-automation Bot moved this from Todo to Done in ClawBench Aug 30, 2026
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.

feat(analysis): error analysis + per-task failure breakdown + agent-capability insights from results

2 participants