role-proof-repeat-1 — Routing proof: summarize token usage (traced repeat)
Plan: sha256:aca6b0f2b722ccb42961b2db3723fd538bf6d0203b91520697e3217b227f901d
Cycle: 2026-W37
Priority: 1
Risk: low
Token ceiling: 150000
Goal
Repeat mixed-effort acceptance with diagnostic tracing; earlier failed checkpoint remains unchanged
Problem
acceptance/routing/usage.ts is an unimplemented fixture
Desired outcome
Implement summarizeUsage: sum inputTokens + outputTokens; cachedInputTokens is a subset, sum it separately without adding it to total. incomplete is true if any known flag is false, including zero-token records. Empty array returns zero totals and incomplete false. Do not mutate input arrays or records. Match unchanged check-usage.ts cases.
Scope
- acceptance/routing/usage.ts
Non-goals
- Only edit the named implementation file. Do not change acceptance scripts, workflows, dependencies, or other code. Do not commit or push manually; Roc handles commits and PRs.
Acceptance criteria
- bun acceptance/routing/check-usage.ts passes unchanged
Validation
- bun acceptance/routing/check-usage.ts
- bunx --no-install biome check acceptance/routing/usage.ts
Dependencies
role-proof-repeat-1 — Routing proof: summarize token usage (traced repeat)
Plan: sha256:aca6b0f2b722ccb42961b2db3723fd538bf6d0203b91520697e3217b227f901d
Cycle: 2026-W37
Priority: 1
Risk: low
Token ceiling: 150000
Goal
Repeat mixed-effort acceptance with diagnostic tracing; earlier failed checkpoint remains unchanged
Problem
acceptance/routing/usage.ts is an unimplemented fixture
Desired outcome
Implement summarizeUsage: sum inputTokens + outputTokens; cachedInputTokens is a subset, sum it separately without adding it to total. incomplete is true if any known flag is false, including zero-token records. Empty array returns zero totals and incomplete false. Do not mutate input arrays or records. Match unchanged check-usage.ts cases.
Scope
Non-goals
Acceptance criteria
Validation
Dependencies