Repository navigation
fix(devex): start the depot contract line from the credit balance - #132037
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
😎 Merged successfully - details. |
🤖 CI report🚨 Trunk lane — universal laneThis PR is assigned to the universal lane. It cannot merge in parallel with other PRs, so it can take longer to merge. Ask dev-ex if you think this is wrong. |
|
Risk: No findings The digest's Depot contract line now derives usage from Depot's credit balance (a new GetCreditBalance API call) minus month-to-date spend, instead of summing every day since the contract started; failed or non-USD balance reads drop only the contract sentence. The only new network surface is a hardcoded HTTPS call to api.depot.dev with strict response validation, fixed-text errors, and a 30-second timeout, so no user-controlled data reaches any dangerous sink. Sentinel reviewed |
|
/trunk merge |
|
/trunk merge |
Deploy status
This table shows the |
Problem
Changes
How did you test this code?
Test rationale: the contract test now fails if the month-to-date subtraction is dropped. New cases cover a failed or non-USD balance.
Release status
Docs update
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Agent: Claude Code, Claude Opus 5.5 (claude-opus-5-5)
Skills:
/writing-tests,/writing-pr-descriptionsMore context for AI agents
contractUsedin the digest script. The balance may lag until Depot finalizes the month's invoice.🤖 Generated with Claude Code