Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Cross-reference the error with known patterns in the catalog.
6. Produce diagnosis
Present findings in this format:
## Diagnosis: <task_name>
**Classification**: <category from step 4>
**Status**: errored / completed_fail / timeout
**Error**: <one-line summary of what went wrong>
**Root Cause**: <explanation of why it failed>
**Known Pattern?**: Yes (see ERROR_CATALOG.md#section) / No
**Evidence**:
- result.json exception: <type + message>
- Agent transcript: <relevant excerpt>
- Verifier output: <relevant excerpt>
**Suggested Fix**:
- File: <path to file that needs changing>
- Change: <description of the fix>
**Repro Command**:
```bash
cd ~/CodeScaleBench
# For baseline
BASELINE_MCP_TYPE=none harbor run \
--path benchmarks/<suite>/<task> \
--agent-import-path agents.claude_baseline_agent:BaselineClaudeCodeAgent \
--model anthropic/claude-opus-4-5-20251101 \
--jobs-dir runs/official/<run_dir>/<config> \
-n 1
Cross-config comparison:
baseline: <pass/fail/error>
sourcegraph_full: <pass/fail/error>
### 7. Offer to fix
If the fix is a code change (verifier bug, task setup issue), offer to apply it.
If it's infrastructure, provide the remediation command.
## Variants
### Triage all failures in a suite
```bash
python3 scripts/aggregate_status.py --suite csb_sdlc_pytorch --failures-only --format json
Then triage each one.
Triage by error type
python3 scripts/aggregate_status.py --failures-only --format json | python3 -c "
import sys, json
data = json.load(sys.stdin)
for t in data['tasks']:
fp = t.get('error_fingerprint') or {}
if fp.get('fingerprint_id') == 'token_refresh_403':
print(f\"{t['suite']}/{t['config']}/{t['task_name']}: {t['task_dir']}\")
"
Triage agent behavior (not just failures)
Sometimes you need to investigate unexpected behavior in successful tasks — e.g., "why didn't the agent use MCP?" or "why did it spend 40% of time on search?"
For behavior analysis of a successful task:
1. Locate the task directory (same as failure triage)
2. Read task_metrics.json for quantitative overview