Skip to content

feat: add manual live interruption verification - #4

Merged
dannymitchelldev merged 4 commits into
mainfrom
codex-getorli/streamcheck-live-provider-verification
Nov 12, 2026
Merged

dannymitchelldev merged 4 commits into
mainfrom
codex-getorli/streamcheck-live-provider-verification

Conversation

@dannymitchelldev

@dannymitchelldev dannymitchelldev commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

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.

npm run test:live:interruptions -- --live --env-file=.env

The command rejects CI, uses openai/gpt-4.1-nano with 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 9490d5311ccf2abb442f39516ca9169109dd1ec8 before the live run. Exactly three live requests passed all 33 assertions on Windows / Node 24.18.0 / SDK 1.5.91:

Local fault Actual result Retained text Elapsed Mapped CLI exit
Caller abort cancelled / caller Sure 789 ms 130
Transport read error interrupted / network I 690 ms 3
Stalled deadline interrupted / timeout I 30.004 s 124

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.
  • SDK cancellation fixture honors RequestInit.signal precedence. An offline forced-GC probe reproduced the original fixture hang and verified cancellation after correction; assertions and timeouts are unchanged.
  • Nine targeted harness tests, including CI/opt-in guards, Unicode preservation, pre-stream failures, cleanup, and buffered-completion classification.
  • One manual live invocation: three requests, 33 assertions, overall exit 0.
  • Independent read-only AI review; its minor buffered-completion classification finding was reproduced, corrected, and re-reviewed.
  • Receipt/provenance checks, documentation links, credential-disclosure guards, and 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.

@dannymitchelldev dannymitchelldev changed the title docs: record verified live OpenRouter smoke check feat: add manual live interruption verification Nov 12, 2026
@dannymitchelldev
dannymitchelldev merged commit ac39595 into main Nov 12, 2026
4 checks passed
@dannymitchelldev
dannymitchelldev deleted the codex-getorli/streamcheck-live-provider-verification branch November 12, 2026 23:26
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