Preserve model usage on completion execution errors #134

Merged
lost-rob0t merged 3 commits from agent/44-completion-error-usage into main 2026-08-20 18:46:34 +00:00
lost-rob0t commented 2026-08-20 01:33:44 +00:00 (Migrated from github.com)

Closes #44.

TDD branch for the v0.1 failure-accounting defect. The first commit adds deterministic regressions proving that plan-execution failures must retain planner + executed-model usage and must expose any post-call budget violation without replacing the original execution error.

Implementation will reuse the existing model_responses ledger rather than reconstructing usage or adding a second accounting path.

Validation is intentionally red at this first TDD checkpoint; exact-head Actions are the execution oracle because this worker does not have a usable local checkout/runtime transport.

Closes #44. TDD branch for the v0.1 failure-accounting defect. The first commit adds deterministic regressions proving that plan-execution failures must retain planner + executed-model usage and must expose any post-call budget violation without replacing the original execution error. Implementation will reuse the existing `model_responses` ledger rather than reconstructing usage or adding a second accounting path. Validation is intentionally red at this first TDD checkpoint; exact-head Actions are the execution oracle because this worker does not have a usable local checkout/runtime transport.
Sign in to join this conversation.
No description provided.