docs(prp): add forecast intelligence planning docs#296
Conversation
Lands the docs-only Forecast Intelligence roadmap — 4 INITIAL docs + 3 PRPs, no production code. Dependency-chained execution: PRP-35 first, PRP-36 + PRP-37 follow. Tracked by epic issue #295. - INITIAL roadmap (A/B/C + index) - PRP-35 Feature Frame V2 — V1 frozen, V2 ships as sibling builders, dispatch at service layer only, load-bearing leakage spec - PRP-36 Model Zoo + Backtesting — new baselines, per-horizon-bucket metrics, comparable-runs with feature_frame_version key - PRP-37 Interactive UI — partial-execution gates, shadcn@4.7.0 pin, per-component @radix-ui/react-X imports
There was a problem hiding this comment.
Sorry @w7-mgfcode, your pull request is larger than the review limit of 150000 diff characters
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Lands the docs-only Forecast Intelligence roadmap — 4 INITIAL planning docs + 3 dependency-chained PRPs (35/36/37). No production code in this PR. Tracked by epic issue #295.
What's included
PRPs/INITIAL/INITIAL-forecast-intelligence-index.mdPRPs/INITIAL/INITIAL-forecast-intelligence-A-feature-frame-v2.mdPRPs/INITIAL/INITIAL-forecast-intelligence-B-model-zoo-backtesting.mdPRPs/INITIAL/INITIAL-forecast-intelligence-C-interactive-ui.mdPRPs/PRP-35-forecast-intelligence-A-feature-frame-v2.mdPRPs/PRP-36-forecast-intelligence-B-model-zoo-backtesting.mdPRPs/PRP-37-forecast-intelligence-C-interactive-ui.mdTotal: 7 files, +4,655 lines, all under
PRPs/.PRP shape
_v2siblings inrows_v2.py; dispatch lives EXCLUSIVELY at the service layer (forecasting/backtesting/scenarios). Legacy bundles defaultfeature_frame_version=1viabundle.metadata.get(..., 1). NewFeatureGroupenum + sidecar contract. Load-bearing leakage spec attest_leakage_v2.py.weighted_moving_average,seasonal_average, optionaltrend_regression_baseline+random_forest). Backtesting addsrmse+horizon_bucket_metrics(h_1_7/h_8_14/h_15_28/h_29_plus). Registry_find_duplicate+ newfind_comparable_runspredicate gainfeature_frame_versionto match key. Ops addsStaleReason.FEATURE_FRAME_VERSION_MISMATCH. Confidence 7/10.frontend/src/components/forecast-intelligence/. Modifies 5 pages:/visualize/{forecast,backtest,planner,batch}.tsx,/explorer/{run-detail,run-compare}.tsx,/ops.tsx. Usesshadcn@4.7.0pin + per-component@radix-ui/react-Ximports (per.claude/rules/shadcn-ui.md). Partial-execution gates[gate:PRP-35]/[gate:PRP-36]/[gate:always]. Confidence 6.5/10.Execution gating
Each downstream PRP starts with a contract-verification gate (Task 1):
PRPs/ai_docs/prp-35-final-contract-snapshot.md, patches PRP-36 in-place if drift surfaces before any code is writtenapp/features/**/schemas.py, producesPRPs/ai_docs/contract-probe-report.mdwith PRESENT/ABSENT + file:line for every probed field; ABSENT field → task DEFERRED, never scaffolded with a placeholderExcluded (intentionally separate)
The following local-tree items are not part of this PR — they belong to separate fix branches per the prior session HANDOFF:
app/features/rag/models.py(modified — RAG embedding-dim work)app/shared/seeder/generators/facts.py(modified — seeder price-history fix)uv.lock(modified — incidental)alembic/versions/a2b3c4d5e6f7_rag_embedding_dim_2560_qwen3.py(untracked — pairs with the rag/models.py change)scripts/seed_historical_activity.py/seed_phase2_only.py/seed_registry_from_jobs.py(untracked — local demo-DB tooling)Test plan
Docs-only — no code paths exercised. Validation:
PRPs/templates/prp_base.mdshape)git diff --cached --statconfirms all 7 paths underPRPs/)type(scope): description (#issue)with the umbrella issue#295Next steps (post-merge)
feat/forecast-feature-frame-v2feat/forecast-model-zoo-and-backtestingfeat/forecast-ui-interactive-workflow