Commit 5a2fe88
test(chaos): fault-proxy campaign — byte-identical backfill under injected Portal faults (#149)
* harness: add fault proxy chaos campaign
* harness(fault-proxy): committee candor fixes — honest head-scenario + AIMD labels, biome gate
Addresses the blind 3-model REQUEST-CHANGES review of the P1 fault-proxy chaos
campaign. The core correctness property (digest-identity + interval-tiling, fails
closed) is preserved and unweakened; the fixes stop the head-* and AIMD *labels*
from overclaiming.
1. biome gate: `biome format --write` the 11 scenario JSONs (semantically identical)
and rename the unused `init` param at chaos-aimd-trace.cjs:66 → `_init`, so
`biome@2.5.2 check chaos-aimd-trace.cjs scenarios/faultproxy/` exits 0 (error-level).
2. AIMD sparse candor (finding #3): a single gate sample can no longer assert
`recovered`. `sparse` (samples < 3) is reported honestly ("sparse — insufficient
samples"), never as recovery. AIMD stays SECONDARY — sparse does not fail a
scenario whose digest+intervals pass; only a genuine bounds violation (concurrency
outside [min,max]) still fails the AIMD gate.
3. head recovery elif false-pass (finding #4): recovery now runs ONLY for head-freeze
and ONLY when phase 1 did not complete (done != 1). A failed head_recovery_check
propagates instead of retaining a stale pass. `byte-identical-recovery` is reserved
for a genuine stall+resume; an unexpected completion labels `byte-identical-completion`.
4. head-freeze label candor (finding #5): honest note — "stalled without corruption;
clean restart on the same DB (fault removed) completed byte-identical" — no
partial-progress-resume implication.
5. head-regression-100k & head-flap vacuity (findings #1/#2, unanimous): these
manipulate the head ABOVE the pinned endBlock so it never intersects the fixed
range [20529207,20579207]; a fixed-range historical backfill never rolls back an
already-finalized+indexed block, so they prove nothing the clean baseline did.
Marked NOT-APPLICABLE (distinct verdict, not a head-tolerance PASS, not a fail) with
a note pointing head-reorg/rollback coverage to the stream-mode soak. head-freeze
(frozen head BELOW endBlock) remains the one meaningful in-range head scenario.
Chosen the ORCHESTRATOR-approved N/A fallback over an in-range redesign because a
genuine in-range regression/flap is not achievable non-contrived: regression is
anchored to the drifting live head, and an in-range flap only duplicates head-freeze
without exercising rollback (a stream-mode property).
Verified: biome check EXIT 0 on changed files; bash -n clean; head-freeze re-run on
the throwaway PG (54329) PASS byte-identical-recovery, digest == baseline, intervals
tile exactly, honest note emitted; N/A routing confirmed by code-trace; proxy.test.mjs
6/6.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* harness(fault-proxy): repo-relative RESULT_FILE/CX_SUMMARY paths (drop hardcoded absolute paths)
Env-overridable defaults under $ART (the gitignored artifacts dir) so the
harness is portable and carries no machine-specific absolute paths.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent a49d11a commit 5a2fe88
15 files changed
Lines changed: 1027 additions & 6 deletions
File tree
- harness/chaos
- scenarios/faultproxy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
0 commit comments