Files
fxhnt/tests
jgrusewski c7eab9aea8 test(forward-gate): e2e invariant net (RED) — accumulation, state-loss recovery, atomic write
Drives the real ForwardTracker (deterministic nightly strategy + real BybitFourEdgeStrategy
over a seeded in-memory store) across ~20 advancing nights. Asserts the invariants the three
prior prod resets/freezes violated:
  1. monotonic accumulation + recon gate WAIT(building N/14)->PASS at day>=14
  2. survives state-loss/truncation/partial-write: recover from .bak OR fail loudly, never
     silently re-inception to day 0
  3. atomic write: an interrupted save never destroys the last good state

RED on current foundation: lost/corrupt state silently re-inceptions or is unrecoverable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 09:43:33 +02:00
..