Repository navigation
Collect resumable Claude benchmarks with upstream spend caps - #403
Merged
Merged
Conversation
the-data-viking
marked this pull request as ready for review
November 25, 2026 14:53
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude credit experiments need response-level evidence and an enforceable upstream spending ledger: OpenRouter BYOK calls can report $0 gateway cost while consuming Claude credits. Add resumable collection, per-attempt reservations and billing evidence, frozen-input/runtime fingerprints, and offline complete-cell analysis with paired question-level intervals. Omitted OpenRouter temperature now stays omitted on the wire, preserving explicit zero.
Althing's native passthrough returns msg_* body IDs and gen-* response headers. A per-instance instrumentation helper preserves both IDs and raw usage while retaining the installed adapter's request bodies, provider routing, decoding parameters, parsing and error classification. Collection caps upstream BYOK charges, retains reservations on ambiguous failures, and persists received answers before billing lookup.
Raw survey snapshots and journals stay private; this PR contains no benchmark answer keys or claimed product wins. Historical absent-temperature runs sent 1.0; new runs use upstream defaults despite the existing tdefault identity. Experimental all-refusal cells remain unscorable rather than using a fabricated uniform distribution, so analyzer means are labeled separately from leaderboard SPS.
Validation: Python 3.12 full suite 1,400 passed / 8 skipped before final helper; 38 targeted campaign/transport/analysis tests and pinned Ruff check+format pass after integration. Initial CI passed Python 3.10–3.13. Sol and Opus council reviews covered the adapter, collector, analyzer and final billing helper. Findings were corrected or documented (strictly declining contrasts with unscorable cells is intentional).
Live pilots verified Claude BYOK inference, all eight Haiku 5.5/Sonnet 4.6 population-and-capture configurations, and exact upstream billing on the instrumented native transport. Sonnet 5.5 rejects forced-tool capture and remains in natural model screening only. Three campaign batches launched with a combined $175 ceiling; data collection and product conclusions are separate from this infrastructure PR.