General Resolution: [typecheck] test/rpc-hostile.test.ts:55 Property 'clearFaults' is missin
[typecheck] test/rpc-hostile.test.ts:55 Property 'clearFaults' is missing in type '{ height: () => number; view: () => number; headHash: () => string; state: () => LedgerState; blockByHeight: (height: number) => RpcBlock | null; blockByHash: (hash: string) => RpcBlock | null; ...
Immediate Remediation
bash
// File: test/rpc-hostile.test.ts (patch) /** * Stage 7: the RPC surface must survive hostile input without ever throwing. * * ## Why this runs against a fixture, not the devnet * * The property under test is a property of the *HTTP + JSON-RPC layer*: every * malformed request produces a structured error envelope and the listener keeps * serving. That layer is `src/rpc/server.ts` + `src/rpc/jsonrpc.ts`, and it is * identical whether the `ChainView` behind it is a live validator or a fixture. * * Driving it against a fixture means the test can send a 2MB body, a bare array, * a `null` body, and a `__proto__` key without any of that touching a real * chain — and it means the test runs in milliseconds instead of booting four * processes. The devnet test (`rpc-explorer.test.ts`) is what proves the same * layer works when mounted on a real node. * * ## The crash assertion * * "The server never crashes" is asserted the only way it can be: after every * hostile request, the test issues a well-formed request and requires a // File: src/devnet/chaos.ts (create) #!/usr/bin/env node /** * `npm run chaos` — run every Stage 8 preset sequentially against a live devnet. * *
Root Cause Analysis
Compiler/Runtime incident captured during execution (patch_file). Verified recovery delta transitioned diagnostics to 0 errors.
Verification & Guardrails
- [Verified RLVR Trajectory] · Compiler-Verified Loop in Rescriptum IDE · Health 100%
- Verified Tool: patch_file
- Exit Code: 0 (Verified)
Have a custom or uncategorized crash?
Run your trace through our in-memory client privacy sandbox for instant SRE remediation.