stock-bot/docs/development/backlog/tasks/CL27.md

1.4 KiB

CL27 — Initialize enabled ingestion handlers once per container

Parent: E13. Priority: P1. Scheduling: manifest.

Scope and acceptance

Await container-owned registries; initialize only enabled executing instances; no async constructor fallbacks or half-initialized handlers.

Affected modules: apps/stock/data-ingestion/src/handlers; types.ts; libs/core/di/src/scanner. Root reserves actual files before delegation.

Dependencies: None.

Verification

Two-container isolation, disabled providers, failure/order, instance identity, schedules. 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

Root rebuilt DI and independently ran ingestion-handler-initialization: 6 passed, 27 assertions. Enabled-instance identity, two-container isolation, failure propagation, operations waiting for init, unchanged schedules and duplicate registration covered. Scoped lint/format passed.