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

24 lines
1.5 KiB
Markdown

# CL33 — Isolate legacy repository writers from production capabilities
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## 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.
## Accepted verification
Canonical concrete/unavailable repositories expose supported writes only; legacy adapter reuses exact fencing helpers and unchanged method bodies. Root capability/composition5 passed1091 assertions. Disposable PG durable/canonical/retention/catalog tests passed in69+17-test gates; source and contract typechecks pass. Historical readers and supported runtime behavior preserved.