Consent bomb test: pin the inflate output cap, not a wall-clock bound #13
Loading…
Reference in a new issue
No description provided.
Delete branch "heimdall/consent-bomb-deterministic"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes follow-up flaky-joystick-consent-timing.
tests/joystick-consent.test.ts timed a 300 MB bomb refusal against 1500 ms and measured 3330 ms under parallel load. The property is that the consent wording is inflated under the 16 KB cap (src/app.ts:323). The test now wraps node:zlib's inflateRawSync, records its options, and asserts every inflate carried maxOutputLength <= 16 KB; the bomb is 4 MiB (no 300 MB allocation).
Mutant: dropping maxOutputLength in src/app.ts fails this test (checked). Full suite 659 passed, tsc clean. Test-only; no deploy.
🤖 Generated with Claude Code