Skip to content

chore(trace): update Claude, Codex and Copilot price tables - #3809

Merged
jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:chore/trace-pricing-update
Nov 13, 2026
Merged

jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:chore/trace-pricing-update

Conversation

@jiparis

@jiparis jiparis commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Updates the embedded price tables that Chainloop Trace uses to estimate the cost of an AI coding session, to match the current Anthropic and OpenAI list prices.

  • Claude: add Claude Fable 5.2, Claude Mythos 5.2 and Claude Haiku 5.5. These models were priced at the default model (Claude Sonnet 4.6), so Fable 5.2 costs were reported too low and Haiku 5.5 costs too high. Fix the Claude Sonnet 5.5 cache-read price ($0.10 per million tokens, not $0.20).
  • Claude long-context pricing: the price table can now set long-context rates and a prompt-size threshold per model. Each request whose prompt (input, cache reads and cache writes) is larger than the threshold is priced at the long-context rates. Claude Haiku 5.5 uses this for prompts over 100,000 tokens.
  • Codex: add GPT-6.1 Terra.
  • Copilot: the same additions and fix for the models that Copilot can use. Copilot prices Claude Haiku 5.5 at the rates for prompts up to 100,000 tokens, because its usage often comes only as session totals.

Recording the price table version and the usage per model in the evidence is tracked in #3808.

This change was made with the help of Claude Code.

Add Claude Fable 5.2, Claude Mythos 5.2, Claude Haiku 5.5 and GPT-6.1
Terra, which were priced at the default model. Fix the Claude Sonnet 5.5
cache-read price ($0.10, not $0.20 per million tokens).

Assisted-by: Claude Code
Signed-off-by: Jose Ignacio Paris Prieto <jiparis@chainloop.dev>

Chainloop-Trace-Sessions: 483a5b75-4bcb-4b68-a1fe-893908a046ca
@chainloop-platform

chainloop-platform Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ✅ 3 passing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
✅ Passed pr-user-story-linked pr-info -

View attestation ↗

AI Session Checks — 🟢 88% · ✅ 0 failing

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟢 88% 1 ✅ 0 100% AI / 0% Human 10 +223 / -21 31m15s

🟢 88% — 100% AI — ✅ All policies passing

Nov 11, 2026 17:21 UTC · 31m15s · $10.65 · 242 in / 167.5k out · claude-code 2.1.322 (claude-opus-5-5)

View session details ↗

Change Summary

  • Updates three trace pricing tables with missing entries and a corrected cache-read rate.
  • Adds per-request large-prompt pricing and preserves its usage subset when merging parent and subagent totals.
  • Adds regression tests for pricing values, threshold boundaries, mixed requests, cache-write tiers, and usage merges.

AI Session Overall Score

🟢 88% — Focused pricing repair with passing regression tests, but no user confirmation of the repaired behavior.

AI Session Analysis Breakdown

🟢 96% · scope-discipline

🟢 The assistant separated server-side repricing and automated updates into follow-up issues rather than adding them to this PR. · High Impact

🟢 93% · user-trust-signal

No notes.

🟢 92% · alignment

No notes.

🟢 90% · context-and-planning

No notes.

🟢 88% · solution-quality

🟢 Large-prompt usage is classified per request and preserved through merges before repricing its subset. · High Impact

🟡 The aggregate-usage pricing table still uses one rate for a tiered entry; the assistant disclosed this estimator limitation. · Low Severity

🟡 78% · verification

🟢 Pricing regressions first failed across all three packages; later trace-suite output and the final changed-package run passed. · High Impact

🟠 The user stayed engaged but did not acknowledge that the updated pricing or subsequent repair worked. · Medium Severity

💡 After a pricing repair, confirm one representative trace cost before accepting the result.


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai app/cli/internal/trace/claude/parse_test.go +75 / -0
modified ai app/cli/internal/trace/claude/parse.go +20 / -15
modified ai app/cli/internal/trace/claude/pricing.json +32 / -3
modified ai app/cli/internal/trace/claude/types.go +28 / -0
modified ai app/cli/internal/trace/claude/pricing.go +20 / -0
modified ai app/cli/internal/trace/copilot/pricing.json +19 / -1
modified ai app/cli/internal/trace/claude/pricing_test.go +17 / -1
modified ai app/cli/internal/trace/codex/pricing.json +7 / -1
modified ai app/cli/internal/trace/copilot/parse_test.go +4 / -0
modified ai app/cli/internal/trace/codex/pricing_test.go +1 / -0

Policies (4)

Status Policy Material Messages
✅ Passed ai-config-ai-agents-allowed ai-coding-session-483a5b -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-483a5b -
✅ Passed ai-config-no-secrets ai-coding-session-483a5b -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-483a5b -

Security Checks — ✅ 6 passing

✅ secret-scan

Status Policy Messages
✅ Passed secrets-detection -

✅ sast-scan

Status Policy Messages
✅ Passed owasp-top10-2025 -
✅ Passed sast -
✅ Passed cwe-top25 -
✅ Passed cwe-top26-40-cusp -

✅ iac-scan

Status Policy Messages
✅ Passed iac-misconfiguration -
Scans not applied (2)
Scan Reason
vulnerability-scan no manifest/lockfile changed
github-actions-scan no workflow files changed

View attestation ↗


Powered by Chainloop and Chainloop Trace

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 6 files

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Re-trigger cubic

@jiparis
jiparis requested a review from a team November 11, 2026 17:47
…context rates

Each request whose prompt (input, cache reads and cache writes) is larger
than the model's long_context_threshold is now priced at the model's
long_context rates, instead of always at the standard rates.

Assisted-by: Claude Code
Signed-off-by: Jose Ignacio Paris Prieto <jiparis@chainloop.dev>

Chainloop-Trace-Sessions: 483a5b75-4bcb-4b68-a1fe-893908a046ca
@jiparis
jiparis merged commit bef5a33 into chainloop-dev:main Nov 13, 2026
17 checks passed
@jiparis
jiparis deleted the chore/trace-pricing-update branch November 13, 2026 10:18
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.

2 participants