feat(strategies): publish type-only strategy authoring API (CL31)

This commit is contained in:
Boki 2026-10-28 14:42:58 -04:00
parent a411f9a665
commit 3a63b2039e
13 changed files with 300 additions and 121 deletions

View file

@ -15,7 +15,7 @@ This guide follows **functions and state**, rather than application boxes. The l
## 1. Begin with the decision contract
Open [canonical-strategy.ts](../../apps/stock/orchestrator/src/contracts/canonical-strategy.ts). `StrategyProgram` describes the object a strategy factory returns. Its `decide(context)` callback returns two things:
Open [strategy-api.ts](../../libs/research/src/strategy-api.ts). `StrategyProgram` describes the object a strategy factory returns. Its `decide(context)` callback returns two things:
- `nextState`: what the strategy wants to remember for its next decision.
- `intent`: what exposure or orders it wants the financial engine to consider.