Skip to content

Mirror the platform's UsageBlock breakdown and expiring_soon fields - #10

Merged
agentx402-bot merged 1 commit into
mainfrom
usage-breakdown-fields
Aug 1, 2026
Merged

Mirror the platform's UsageBlock breakdown and expiring_soon fields#10
agentx402-bot merged 1 commit into
mainfrom
usage-breakdown-fields

Conversation

@agentx402-bot

Copy link
Copy Markdown
Contributor

Additive optional fields the backend now emits for composite ops (AgentRAG ask+ingest, agentx402-ai/agentkv-worker#50): breakdown[] itemizes additional charge legs — the request's total is price_usd + the sum of breakdown[].price_usd — and expiring_soon marks a collection inside its final 24h of lifetime.

Field-for-field lockstep with the worker's canonical platform/src/platform/usage.ts; unblocks the client-parity job on the AgentRAG Phase W PR. Purely additive — no existing field or consumer changes.

Gate: biome clean, tsc clean, 147/147 tests.

https://claude.ai/code/session_01L7ZjNFsUX3aKZ6Zc7FDsVz

…elds

Additive optional fields the backend now emits for composite ops
(AgentRAG ask+ingest): breakdown[] itemizes additional charge legs
(total = price_usd + sum of breakdown), and expiring_soon marks a
collection inside its final 24h. Field-for-field lockstep with
platform/src/platform/usage.ts; closes the client-parity drift.

Claude-Session: https://claude.ai/code/session_01L7ZjNFsUX3aKZ6Zc7FDsVz
@agentx402-bot
agentx402-bot merged commit cd5b31c into main Aug 1, 2026
3 checks passed
@agentx402-bot
agentx402-bot deleted the usage-breakdown-fields branch August 1, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant