Chaos.Test
Path:
loom-sprint-scaffold/loom/tests/e2e/chaos.test.tsRelative: loom/tests/e2e/chaos.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 253Bytes: 10,016Imports: 7Exports: 1has tests
Content Preview
- /**
- * Chaos Tests — fault injection, one scenario per test.
- *
- * Five scenarios:
- * 1. dropped-tool-result — ack gate catches missing ack → GATE_REJECT
- * 2. duplicate-delivery — same stage_id dispatched twice → idempotent
- * 3. loop-detection — identical action ≥3× → HALT_LOOP
- * 4. forged-token — forged/expired approval token → TOKEN_DENIED
- * 5. decomposer-error — non-machine-evaluable criteria → DecompositionError
- */
- import { describe, expect, test } from "bun:test";
- import { r