5.4 KiB
ADR-003 — Information availability and execution timing
Status: owner approval required.
Selected policy
- Dataset v2 records instrument, timeframe, interval start/end, event time, availability time and deterministic source sequence; dates and calendars are versioned. Replay derives a separate open-only execution event at interval start, exposing only open/time, and a completed-bar observation at its availability time. The full stored OHLCV row is never exposed at its open.
- A completed-bar decision cannot trade at its own close. Default bar mode fills at the next eligible open; quote mode uses the next eligible observed quote. Default terminal treatment marks open positions, not invented liquidation.
- V1 bar matching uses open-only market/limit crossing. It does not invent an OHLC path, intrabar stop order or within-bar limit touch. Explicit unsupported order types reject.
- Pin exactly one execution series (source/timeframe) per instrument per run. Only that series supplies matching opportunities, liquidity capacity and authoritative financial marks. Other timeframes are feature observations, not duplicate executable volume. Strategies declare a decision cadence; adding an unused feature series must not add decision triggers or alter fills.
- Target-generated orders are GTC until replaced/cancelled by their owner or cancelled at run termination. Explicit DAY orders are accepted only during an open venue session and expire at that session's close; out-of-session DAY submission rejects. A daily-close target therefore survives to the next session's open. No fill is invented for an order cancelled at run termination.
- Liquidity capacity at an open is a declared model using previously available volume (e.g. last completed bar volume times participation), never the new bar's future total volume. Quote mode uses available quote size. No known capacity means no simulated fill; zero capacity cannot fill. Report this approximation.
- Stable event ordering uses availability time, phase, instrument and source sequence. For bar mode at equal timestamps: publish completed prior-interval observations, update marks/features, create synchronized decisions, then process next-interval open-only events. The default assumes zero modeled decision/order latency. A decision can therefore fill at the immediately adjacent bar's open even when prior close and next open share the same timestamp, but never at the prior close. The next open's price is not in the decision context. Persist this zero-latency assumption explicitly; positive configured latency or delayed data skips opens occurring before decision availability plus latency. Quote mode instead requires a strictly subsequent eligible quote identity, not reuse of the quote just observed. Orders cannot be inserted retroactively into a completed event phase.
- Keep quote timestamps unchanged when the simulation clock advances. Missing/stale inputs are explicit. Equal-time cross-asset decisions use the same snapshot; execution priority is deterministic.
- Daily session labels become actual venue session boundaries using a retained calendar revision, including DST/half days. Unknown mappings reject project-gated execution.
- Warmup observations are available for features but cannot generate fills. Fit data and test data remain separately bounded.
- Raw prices are required for executable share/cash semantics. Provider-adjusted data may be an explicitly labelled signal input, not a replacement for action accounting. V1 project correctness-gate evidence requires supported action coverage or action-free eligibility; unknown coverage remains a limitation.
Evidence and rationale
Current same-event execution, bar-close bid/ask, v1 timestamp contract, invented VWAP.
Alternatives / tradeoffs
Same-close fills are allowed only as an explicitly named legacy assumption, not default evidence. Full tick/order-book replay and stochastic intrabar paths are deferred. Next-open open-only matching is limited but traceable; zero modeled latency is optimistic and must be disclosed. Using the new bar's total volume to constrain a fill at its open would itself leak future information.
Migration
D01 creates new hashes without rewriting v1 snapshots. F05/F06 consume v2 timing. C01 fixes existing liquidation accounting without silently changing policy. F08/R05 record execution-policy versions and retain old result semantics. New economics will change backtest returns; that is an intentional correction, not a parity failure to hide.
Implementation boundaries
F05 tests matcher transitions against explicit execution-event keys. F06 owns derived open events, calendars, decision barriers and end-to-end latency tests; those release gates must not force F05 to implement replay first. D01 includes availability and coverage/eligibility in one versioned manifest change (D03 merged).
At each barrier all due strategy contexts share one immutable ledger revision; submit decisions as a batch in stable admission priority. Explicit IOC/FOK semantics are retained for paper compatibility. Account risk-session reset is a separate declared clock from individual instrument session expiry.