Skip to content

Orion Delivery — feat/flag-044-recovery-cooldown

Full memo delivered via NEO Desk at NEO Desk/handoffs/TO_VESPER_patch_delivery_FLAG-044.md. This file is the branch-folder mirror; the NEO Desk copy is canonical.

Branch

feat/flag-044-recovery-cooldown, 4 commits, +1318 / −194.

Commits

# Hash Subject
C1 4e6d681 feat(config): FLAG-044 C1 — cool-down + session episode cap (Atlas 2026-04-21)
C2 b557f23 feat(engine): FLAG-044 C2 — cool-down taxonomy, state keys, entry-side logic
C3 f0a6d79 feat(main_loop): FLAG-044 C3 — cool-down suppression at Step 8.4
C4 c926cb7 test(recovery): FLAG-044 C4 — 26 tests for cool-down + session cap

Tests

26 new tests in tests/test_flag_044_recovery_cooldown.py, all green. Targeted guard/recovery/flag suite: 165/165 green. Full regression (sandbox): +37 passing / −11 failures vs. baseline — fully explained by the new tests and the FLAG-042 mock-stub refresh.

Patch bundle

02 Projects/NEO Trading Engine/08 Patches/patches-flag-044-recovery-cooldown/ — 4 patches, 0001 → 0004.

Key deviation flagged for review

Countdown (cooldown_ticks_remaining) instead of absolute-tick storage (cooldown_until_tick). Katja green-lit this model mid-implementation (Option B). Same "fixed-length waiting window, not sliding" semantics. See the canonical memo § Deviation for rationale.

Atlas ruling compliance

  • recovery_exhausted_halt and FLAG-042's per-episode attempt counter fully removed.
  • New: recovery_cooldown_ticks=120, max_degraded_episodes_per_source_per_session=3, HALT_REASON_DEGRADED_EPISODE_LIMIT="degraded_episode_limit_halt".
  • Per-source cool-down + session episode cap on anchor / drift / corridor. Wallet-truth and reconciler remain uncapped.
  • First DEGRADED entry does NOT arm cool-down — only re-entry. Cap semantics: Nth entry halts (>=).
  • Principle encoded (Atlas, Apr 21): "A bad regime is not, by itself, a reason to terminate the session."

Status

Branch clean, patches generated, memo delivered. Awaiting review.

— Orion