- Problem
- The live LangGraph pipeline and the bar-by-bar backtester each had their own gate logic. Separately, re-running a pinned config gave 18 trades instead of 13, because cached config was read before the config files were swapped.
- Fix
- Gate steps and pending-setup resolution moved into one shared qa_core.decision module, each run parses one config snapshot, and runs are compared by a results hash over trades, summary, gates and costs only.
- Verified
- A parity test over 1,790 decision points and 5 scenarios shows 0 mismatches, and the train re-run reproduces its results hash (13 trades).