fix(usage): resolve account limit review findings - #1
Conversation
I also resolved the stack against current Combined validation on current main: 177 focused tests pass; server, web, and contracts typechecks pass; targeted lint/format and |
derektrimm
commented
Aug 28, 2026
Superseded by the pingdotgg#1732 direction upstream; the branch this resolved review threads for is closed. |
Problem
The account-limits stack still carried verified review findings that could leave Codex transcript recovery throttled after a backward clock step, decode an unread portion of a short file read, or leak a detached fiber when Claude's experimental usage request never settles. Its current service import fails the upstream Effect convention check.
Fix
This is stacked on pingdotgg#7133 so it can flow into Theo's pingdotgg#5739 without creating another feature implementation.
Validation
vp test run apps/server/src/usage/AccountLimitsService.test.ts apps/server/src/usage/accountLimitsNormalize.test.ts apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts apps/server/src/provider/Layers/ClaudeAdapter.test.ts apps/web/src/state/accountLimits.test.ts— 159 passingvp run --filter t3 typecheckvp lintandvp fmt --checkon all seven changed filesBuilt with GPT-5.6-Sol through the Codex harness in T3 Code.