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

24 lines
1.6 KiB
Markdown

# CL26 — Replace private application imports with explicit shared modules
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
API imports no orchestrator private source; metadata verification cannot execute code; artifact inspection resolves lazily; build graph tracks shared inputs.
Affected modules: libs/research; apps/stock/config; web-api; orchestrator; scripts/test/architecture.test.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Import/Turbo graph; dataset/candidate/paper admission; artifact identity; browser-safe contracts. 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
Moved existing shared server helpers to explicit trading-runtime subpaths, shared financial wire contracts to config, split metadata verifier from executable loader, and made artifact paths lazy. Config/runtime/API/orchestrator builds and full source typecheck passed. Architecture/Turbo/browser gates: 30 passed (7363 assertions); shared admission/storage/feed tests passed; isolated retained worker final15 passed after preserving rejection diagnostics. Native finance unchanged.