loadConfig() returns a flattened object with no nested `workflow` key, so config?.workflow was always undefined, making drift_action permanently 'warn' and drift_threshold permanently 3 regardless of .planning/config.json. Fixes by reading the raw config.json directly (matching the pattern in check-command-router.cts:readWorkflowConfig). Adds two behavioral regression tests that fail under the old code and pass under the fix. Closes #1493 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 KiB
29 KiB