test(runtime): define fault injection contract#925
Closed
luoye520ww wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
This is superseded by #953, which keeps the fault-injection contract and wires it into the bounded Node HTTP/SSE runtime boundary with full typecheck, test, Linux, Windows, and macOS validation. Closing the contract-only PR to avoid duplicate review. |
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.
Problem
The reliability plan needs deterministic fault injection for crash, SSE, network, storage, and credential-store scenarios, but there is no constrained contract to keep test faults out of normal behavior.
Scope
Adds a fixed fault-kind allowlist, disabled-by-default spec normalization, one-shot/repeated activation semantics, and a bounded delay (0-60 seconds). Trigger checks revalidate untrusted specs and fail closed.
Non-goals
No production runtime hooks, environment activation, network interception, storage mutation, or UI are included. Those are separate integration PRs.
Tests
Review
Completed functional, lifecycle, data integrity, security, cross-platform, compatibility, and scope review. No package smoke is claimed because this PR contains a pure test contract.
Issue
Part of #885