schema_version: anti_late_entry_pullback_gate.v5
parent_file: spec/strategy/anti_late_entry_pullback_gate_v4.yaml
formula_id: ANTI_LATE_ENTRY_PULLBACK_GATE_V5
purpose: Pre-trade late-chase and pullback quality gate.
rule:
  precedence: "anti_late_entry gate must be evaluated first for any BUY or STAGED_BUY candidate."
  action_on_fail:
    gate_fail_status: "FAIL"
    quantity: 0
    downgrade_action: "WATCH or BLOCKED"
    shadow_ledger: "Record gate failure reason and thresholds in shadow ledger"

