You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae186cf
Browse filesBrowse the repository at this point in the historyBrowse files
Pass the spend threshold exactly and persist it in model_call traces
Two defects found by the commit gate while integrating #241:
- claude_code formatted the threshold with `.4f`, moving the boundary:
0.00001 became "0.0000" (no threshold) and 0.12345 became "0.1235" (a higher
one). budget_arg() now emits the float's shortest round-trip decimal in plain
notation, rejects non-positive/non-finite values, and is tested on tiny
thresholds.
- runtime.trace_recorder dropped max_budget_usd (and cost_usd), so production
traces never persisted them. They now land in the model_call record's
result (null when unset/unknown), including transport-failure records;
tested through the real recorder and TraceStore.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments