Caveman Direct vs trim-2 Benchmark — OFFLINE

Model: claude-sonnet-5-5 · Basis: inferred · Ref e3c0b656 · Corpus d72c1da270d2
Direct (no compression)
32/32 (100%)
307,140 tokens · baseline
sha e3c0b656 · busts 0 · poison 0
Caveman (trim-2 smart_max)
32/32 (100%)
43,972 tokens · 85.7% saved (95% CI 79.6%..90.6%)
sha e3c0b656 · busts 0 · poison 0

Total Input Tokens & Quality Across All 32 Real-World Tasks (incl. Fail-Closed Controls & Recovery Turns)

Direct (no compression)32/32 pass
307,140 tok baseline
Caveman (trim-2 smart_max)32/32 pass
43,972 tok 85.7% saved (95% CI 79.6%..90.6%)

Domain & Category Rollup (Direct vs Caveman)

CategoryCaveman PassTokens (Direct → Caveman)Token CutUSD Cost (Direct → Caveman)Recoveries
code_comprehension 4/4 50,651 → 18,132 64.2% n/a 0
executable_edit 2/2 14,980 → 1,398 90.7% n/a 0
diff_review 1/1 5,601 → 383 93.2% n/a 0
ops_logs 2/2 22,060 → 1,029 95.3% n/a 0
structured 2/2 16,007 → 3,292 79.4% n/a 0
proxy_cache_safety 2/2 26,345 → 2,335 91.1% n/a 0
fail_closed_control 1/1 2,074 → 2,074 0.0% n/a 0
adversarial 1/1 7,205 → 375 94.8% n/a 0
codemode_mcp 1/1 9,640 → 197 98.0% n/a 0
ui_frontend 2/2 21,595 → 2,165 90.0% n/a 0
long_horizon 4/4 38,556 → 4,203 89.1% n/a 0
sql_data 1/1 4,732 → 442 90.7% n/a 0
infra_devops 2/2 14,051 → 2,158 84.6% n/a 0
docs_search 1/1 11,159 → 875 92.2% n/a 0
systems_swe 1/1 3,601 → 542 84.9% n/a 0
legal_compliance 1/1 4,629 → 776 83.2% n/a 0
finance_analytics 1/1 14,933 → 1,216 91.9% n/a 0
secops_incident 1/1 24,989 → 720 97.1% n/a 0
product_support 1/1 6,278 → 679 89.2% n/a 0
data_science 1/1 8,054 → 981 87.8% n/a 0

Per-Task Quality & Token Matrix

TaskCategorydirectcavemanWire Cut
code_json_anomaly_mad
Real 660-line Go file (json.go, Read gutter): exact MAD z-score constant and zero-MAD fallback
code_comprehension PASS 10,325PASS 5,848 43.4%
code_epoch_economics
Real proxy epoch.go (Read gutter): exact Anthropic cache write multiplier and break-even margin
code_comprehension PASS 8,924PASS 3,971 55.5%
code_store_headline_refusal
Real 1,258-line Go file (store.go, Read gutter): exact condition setting HeadlineCompressionRefused
code_comprehension PASS 21,802PASS 7,700 64.7%
code_vocab_gap_deadlock
Zero-overlap symptom-to-code bug: user login hangs forever (double sync.Mutex Lock across 2 methods)
code_comprehension PASS 9,600PASS 613 93.6%
edit_go_paginate_patch
Executable Go Edit patch: fix off-by-one panic in PaginateItems and pass real `go test`
executable_edit PASS 9,626PASS 784 91.9%
edit_py_refund_patch
Executable Python Edit patch: deduct 500-cent processing fee (clamped >= 0) in issue_prorated_refund and pass `python3` tests
executable_edit PASS 5,354PASS 614 88.5%
diff_webhook_security_review
7-file git diff: locate HMAC constant-time & empty-signature auth bypass in pkg/payments/webhook.go
diff_review PASS 5,601PASS 383 93.2%
log_logfmt_ndjson_incident
500-line mixed logfmt + NDJSON incident log: pinpoint both upstream failures
ops_logs PASS 19,461PASS 427 97.8%
test_pytest_and_traceback
Pytest run (60 passed, 1 failed) + 35-frame Python traceback ending in KeyError
ops_logs PASS 2,599PASS 602 76.8%
structured_json_and_html
Committed JSON + HTML fixtures: must keep valid JSON and HTML SLO-breaching service svc-27
structured PASS 9,022PASS 2,173 75.9%
structured_csv_and_yaml
250-row CSV (fraud_hold outlier) + 4-env YAML config (production pool_max & ssl_mode)
structured PASS 6,985PASS 1,119 84.0%
multiturn_cache_and_cross_session
2-session + 2-turn PrefixCache test: 0 prefix busts on Turn 2 + 0 cross-session poisoning on Session 2
proxy_cache_safety PASS 17,878PASS 1,720 90.4%
parallel_tools_with_system_reminder
Leading <system-reminder> + parallel Read(auth.go) and Read(billing.go) tool calls in one turn
proxy_cache_safety PASS 8,467PASS 615 92.7%
failclosed_exhaustive_review
Fail-closed control (kept in aggregate): leading <system-reminder> + whole-file line-by-line function count
fail_closed_control PASS 2,074PASS 2,074 0.0%
adversarial_keyword_stuffing
300-line audit log with 50 query-echo INFO decoys + 1 genuine WARN clock skew anomaly
adversarial PASS 7,205PASS 375 94.8%
codemode_oversized_log
Real caveman-mcp codemode execution on 400-line CI log (dead single-line trim in v5.0.0 vs valid-JSON inner trim + CCR in hardened)
codemode_mcp PASS 9,640PASS 197 98.0%
ui_react_tsx_design_polish
460-line React+TSX+Tailwind dashboard: fix UpgradePlanModal ARIA/Escape handler + BillingSummaryBanner dark-mode contrast
ui_frontend PASS 13,227PASS 1,040 92.1%
ui_css_tokens_and_html_a11y
Multi-file CSS design tokens (450L) + checkout.html: fix sticky header z-index overlap over modal backdrop
ui_frontend PASS 8,368PASS 1,125 86.6%
long_horizon_multifile_go_bugfix
Long-horizon 5-file Go repo (~1,450L) with Read+Edit+Bash `go test`: diagnose & fix cross-tenant auth + discount rounding bugs across 2 files
long_horizon PASS 8,641PASS 1,175 86.4%
long_horizon_multi_session_ts_refactor
2-session 4-file Node/JS API refactor (~1,150L) with Read+Edit+Bash `node test.mjs`: sliding-window + burst allowance
long_horizon PASS 5,729PASS 966 83.1%
sql_migration_rls_security_audit
480-line Postgres migration: locate billing_payment_methods RLS policy missing WITH CHECK and patch it on disk
sql_data PASS 4,732PASS 442 90.7%
k8s_infra_probe_debug
Multi-file K8s incident (deployment.yaml + network_policy.yaml + kubectl_describe.txt): fix readinessProbe port mismatch
infra_devops PASS 6,521PASS 1,055 83.8%
monorepo_rfc_and_grep_synthesis
550-line Markdown RFC + 260-line ripgrep search output: synthesize rollout flag, p99 SLA, deprecation date, and legacy callsite
docs_search PASS 11,159PASS 875 92.2%
long_context_ci_build_and_fix
760-line multi-stage CI log (vite/eslint/tests/docker) + 380-line formatters.mjs: triage buried test failure, patch & verify via `node`
long_horizon PASS 19,073PASS 779 95.9%
swe_rust_concurrency_fix
420-line Rust CreditLedger service: fix integer underflow panic in drain_credits using checked_sub
systems_swe PASS 3,601PASS 542 84.9%
swe_openapi_and_terraform_drift
500-line OpenAPI 3.1 YAML + 300-line Terraform HCL: identify async export endpoint & remediate public S3 bucket on disk
infra_devops PASS 7,530PASS 1,103 85.4%
swe_long_horizon_py_pricing_pkg
Long-horizon 5-file Python pricing package (~1,200L) with Read+Edit+Bash `python3 test_pricing.py`: coupon precedence + post-discount tax rounding
long_horizon PASS 5,113PASS 1,283 74.9%
work_legal_contract_msa_redline
600-line Enterprise SaaS MSA + DPA: extract liability cap, uncapped carve-outs, auto-renewal notice, subprocessor window, and governing law
legal_compliance PASS 4,629PASS 776 83.2%
work_finance_gl_and_board_memo
300-row GL ledger CSV + Q3 Board Finance Memo: reconcile duplicate wire, miscoded dept, NDR %, and runway months
finance_analytics PASS 14,933PASS 1,216 91.9%
work_secops_cloudtrail_postmortem
350-line CloudTrail JSONL + 140-line Slack war-room transcript: reconstruct IAM attack chain and time-to-revoke
secops_incident PASS 24,989PASS 720 97.1%
work_product_support_ticket_triage
85-ticket Zendesk export + 35-initiative Q4 Roadmap: link Meridian Health P0 SSO blocker to DRI and target ship date
product_support PASS 6,278PASS 679 89.2%
work_data_science_ab_stats_fix
380-line Python A/B stats module + 200-row experiment_metrics.tsv: fix two-sided p-value & zero-SE guard + identify regressing segment
data_science PASS 8,054PASS 981 87.8%