Skip to content

test(runs): pin receipt ordering after backend failure - #157

Merged
drewstone merged 1 commit into
mainfrom
test/durable-receipt-after-budget-failure-20260813
Aug 13, 2026
Merged

test(runs): pin receipt ordering after backend failure#157
drewstone merged 1 commit into
mainfrom
test/durable-receipt-after-budget-failure-20260813

Conversation

@drewstone

Copy link
Copy Markdown
Owner

Adds an end-to-end durable-run regression through the real chat-completions route and Run.pump path.

The backend sets a profile materialization receipt, yields partial output, then throws. The test proves cli-bridge replays the receipt before the terminal error, retains the receipt in the run snapshot, and preserves the original failure.

Proof:

  • CI=1 pnpm exec vitest run tests/durable-runs.test.ts --reporter=dot
  • 15 tests passed
  • CI=1 pnpm build
  • Old source baseline 9c149d4 with only this test failed: receipt missing from response

No production code changes.

@drewstone
drewstone merged commit 1694d05 into main Aug 13, 2026
1 check passed
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