# CL35 — Make optional Python analytics composition honest and testable Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json). ## Scope and acceptance Actual app imports without endpoint/app cycle; lazy optional dependencies and observed capability health; honest unavailable endpoints. Affected modules: apps/stock/analytics/src/api; apps/stock/analytics/test. Root reserves actual files before delegation. Dependencies: None. ## Verification Actual app import/startup and existing analytics API tests; missing dependency diagnostic. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers. ## Exclusions 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.