P0: Fix strategy config schema mismatch (backtesting broken) #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The LLM outputs a nested
paramsstructure, but the backtest and simulation engines expect flat fields. This is a complete pipeline break - AI-parsed strategies will never trigger any trades.Current Flow
Schema Comparison
params.tokenparams.threshold_percentparams.tokenparams.threshold_percenttoken(flat)threshold(flat)tokenthresholdSolution
Flatten LLM output to match what engines and frontend expect. This avoids having to update engines and frontend which are harder to change safely.
Target Schema
Acceptance Criteria