Skip to content

Hito 0: cost foundation (pricing snapshot + single-call cost) - #1

Merged
Cro22 merged 1 commit into
masterfrom
feature/0.0.0
Jun 21, 2026
Merged

Cro22 merged 1 commit into
masterfrom
feature/0.0.0

Conversation

@Cro22

@Cro22 Cro22 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Add the deterministic cost foundation Augur builds on:

  • cost/: pure single-call cost computation from a pricing snapshot. Usage models CachedTokens as a subset of InputTokens (matching OpenAI/Anthropic usage reporting); Validate rejects corrupt traces rather than under-billing. Unknown models are a hard error.
  • cost/pricing.go: YAML loader with an on-disk type decoupled from the computation type; rejects non per_mtok units and empty snapshots; omitted cached_input falls back to the input rate.
  • pricing.yaml: dated snapshot (2026-06-21), OpenAI + Anthropic.
  • SPEC.md: project spec and milestone plan.
  • Exhaustive unit tests (cache split, fully-cached, sub-cent, invalid usage, unknown model) plus a guard that the committed pricing.yaml parses and prices.

Add the deterministic cost foundation Augur builds on:
- cost/: pure single-call cost computation from a pricing snapshot.
  Usage models CachedTokens as a subset of InputTokens (matching
  OpenAI/Anthropic usage reporting); Validate rejects corrupt traces
  rather than under-billing. Unknown models are a hard error.
- cost/pricing.go: YAML loader with an on-disk type decoupled from the
  computation type; rejects non per_mtok units and empty snapshots;
  omitted cached_input falls back to the input rate.
- pricing.yaml: dated snapshot (2026-06-21), OpenAI + Anthropic.
- SPEC.md: project spec and milestone plan.
- Exhaustive unit tests (cache split, fully-cached, sub-cent, invalid
  usage, unknown model) plus a guard that the committed pricing.yaml
  parses and prices.
@Cro22
Cro22 merged commit 8e18159 into master Jun 21, 2026
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