Building a walk-forward analysis pipeline in TypeScript from scratch

Design a reproducible walk-forward analysis pipeline in TypeScript: data contracts, rolling IS/OOS splits, metrics, and how to keep results stable enough to trust in production.