Skip to content

feat(smith): trust provider input token usage - #1329

Merged
edwin-zvs merged 1 commit into
mainfrom
smith-provider-token-accounting
Sep 10, 2026
Merged

feat(smith): trust provider input token usage#1329
edwin-zvs merged 1 commit into
mainfrom
smith-provider-token-accounting

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • make provider-reported input token usage authoritative for post-response context state, pruning, compaction, and learned-limit probes while retaining the character heuristic for preflight fallback and deltas
  • add Anthropic prompt-cache breakpoints, cache-aware input occupancy, and configurable beta/context-window capabilities without changing compatible third-party defaults
  • document the accounting and provider capability contracts in specs 0214 and 0215

Tests

  • cargo test -p construct-adapter-smith (240 passed)
  • cargo test -p construct-daemon config::tests (34 passed)
  • cargo build
  • git diff --check origin/main...HEAD

Visual evidence

Not useful for this internal provider/accounting and request-construction change; there is no direct UI surface.

@edwin-zvs
edwin-zvs force-pushed the smith-provider-token-accounting branch from 1dfbf60 to 6d4377a Compare September 10, 2026 05:22
@edwin-zvs
edwin-zvs merged commit d52aacb into main Sep 10, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the smith-provider-token-accounting branch September 10, 2026 05:29
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