Repository navigation
feat: add manual live interruption verification - #4
Merged
dannymitchelldev merged 4 commits intoNov 12, 2026
Merged
Conversation
dannymitchelldev
deleted the
codex-getorli/streamcheck-live-provider-verification
branch
November 12, 2026 23:26
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.
StreamCheck had no reusable way to verify interruption handling against live text. This PR adds a source-checkout command that exercises caller cancellation, a locally injected transport read failure, and a locally stalled deadline, with explicit opt-in and nonsecret evidence receipts.
The command rejects CI, uses
openai/gpt-4.1-nanowith 128 maximum output tokens and a 30-second deadline per case, runs three requests sequentially, and blocks automatic retries. A fault fires only after SDK-decoded nonempty text arrives. Native response bytes are forwarded unchanged until that point; the harness does not implement another SSE parser. It verifies exact callback-text preservation, HTTP status, outcome/diagnostic, timing, reader cleanup, and the shared production CLI exit mapping. The whole command exits 0 only when all cases pass; incomplete experiments remain nonzero.The implementation was committed at
9490d5311ccf2abb442f39516ca9169109dd1ec8before the live run. Exactly three live requests passed all 33 assertions on Windows / Node 24.18.0 / SDK 1.5.91:The earlier successful live CLI smoke receipt is retained. README, engineering log, and testing runbook distinguish that observation from the three deliberate local faults and link both machine-readable receipts. Source/runtime hashes and the clean implementation commit identify the live candidate; credentials and account metadata are excluded.
Validation:
npm run check: type checks, build, 117 tests, and packed-package consumer.RequestInit.signalprecedence. An offline forced-GC probe reproduced the original fixture hang and verified cancellation after correction; assertions and timeouts are unchanged.git diff --check.Production runtime code, public API, SDK/dependencies, lockfile, and CI workflow are unchanged. Normal tests use synthetic transport only. These live cases exercise the library and shared exit mapper, not production CLI subprocesses or physical Ctrl+C. Naturally occurring upstream failures, billing cessation, sustained reliability, and other model/platform combinations remain unverified. The documented SDK trailing-frame limitation still applies.