Legacy 3-branch action decode/encode in backtest_env_step was corrupting actions_history. Now uses correct 4-branch factored logic matching backtest_env_step_batch. Fixes backtest metrics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>