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

1.1 KiB

CL33 — Isolate legacy repository writers from production capabilities

Parent: E13. Priority: P2. Scheduling: manifest.

Scope and acceptance

Canonical concrete repository exposes supported writes only; isolated compatibility writers retain shared fencing; historical readers preserved.

Affected modules: orchestrator/backtest/PostgresBacktestRunRepository.ts; run-repository.ts; types.ts; legacy fixtures. Root reserves actual files before delegation.

Dependencies: None.

Verification

Canonical/legacy PostgreSQL durable/recovery tests; production import checks. 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.