Overview
Add automated chaos-testing scenarios that inject RPC outages, slow responses, and malformed/truncated responses into the analysis pipeline to verify the failover logic from #1146 and error handling degrade gracefully rather than crashing or hanging.
Background / Context
#1146 adds RPC failover logic; this issue proves it actually works under realistic fault injection, not just the happy path, matching the resilience testing expected of production infrastructure.
Goal
A fault-injection test harness (e.g. a mock RPC server with configurable failure modes) exercised in CI, asserting the system degrades gracefully (clear error, no hang, no crash) under each injected fault.
Scope of Work
- Build a mock RPC server supporting configurable outage/timeout/malformed-response modes.
- Write test scenarios covering: full outage, partial outage (some providers down), slow response near timeout, malformed JSON/XDR response.
- Assert graceful degradation for each scenario.
Out of Scope
- Testing infrastructure-level chaos (e.g. killing containers) — application-level fault injection only.
Acceptance Criteria
Files & Pointers
tooling/sanctifier-core/tests
tests/
Dependencies / Related
Depends on #1146.
Difficulty & Estimated Effort
Medium — ~3-4 days.
Overview
Add automated chaos-testing scenarios that inject RPC outages, slow responses, and malformed/truncated responses into the analysis pipeline to verify the failover logic from #1146 and error handling degrade gracefully rather than crashing or hanging.
Background / Context
#1146 adds RPC failover logic; this issue proves it actually works under realistic fault injection, not just the happy path, matching the resilience testing expected of production infrastructure.
Goal
A fault-injection test harness (e.g. a mock RPC server with configurable failure modes) exercised in CI, asserting the system degrades gracefully (clear error, no hang, no crash) under each injected fault.
Scope of Work
Out of Scope
Acceptance Criteria
Files & Pointers
tooling/sanctifier-core/teststests/Dependencies / Related
Depends on #1146.
Difficulty & Estimated Effort
Medium — ~3-4 days.