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

24 lines
1.4 KiB
Markdown

# CL31 — Publish a stable strategy authoring contract
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Public type-only authoring subpath; compatibility re-export; private controllers/native handles remain private.
Affected modules: libs/research; orchestrator/contracts/canonical-strategy.ts; examples; packaging tests. Root reserves actual files before delegation.
Dependencies: CL26.
## Verification
Standalone example compilation; packaging; canonical strategy and state regressions. 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
Independent public-author/runtime suite:25 passed,363 assertions; standalone compilation uses no repository aliases or orchestrator/native implementation types. Source and packaged strategies produce identical native traces/checkpoints; contract compilation and scoped lint/format passed. Old contract path is a type-only compatibility export.