refactor(analytics): initialize optional capabilities lazily (CL35)

This commit is contained in:
Boki 2026-10-28 14:42:39 -04:00
parent b4589d5af1
commit 7ae6ac21c4
9 changed files with 701 additions and 387 deletions

View file

@ -18,3 +18,7 @@ Actual app import/startup and existing analytics API tests; missing dependency d
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.
## Accepted verification
Actual FastAPI app/lifespan and optional capability tests: 11 passed. Missing scientific/multipart dependencies do not prevent unrelated routes; unavailable initialization returns503, health observes state. Successful optimizer/model paths tested with stubs; load-to-list output shape corrected and covered. No heavy scientific packages installed.