lab-beaver-arm: count cache tokens in input like the LAB adapter

↗ view on GitHub · Eli Ziff · 2026-07-28 · e7870c2a

The LAB reference adapter reports input = raw + cache_read +
cache_creation; the Beaver runner was summing raw inputTokens only,
which would understate the Beaver arm several-fold on the
cache-heavy claude-p transport. The context manifest already
carries the cache fields; sum them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018bhP89cYSdEEjHNPnxacns
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents fee55c00
Stats 1 file changed , +13 , -2
Part of Evaluation harness: Beaver-CAN and LegalBench-RAG adapters

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-e7870c2a.md from inside the repo you want the change in.

⬇ Download capture-commit-e7870c2a.md