feat(research): add canonical session reporting and analytics
This commit is contained in:
parent
1e164450c3
commit
3838295eec
28 changed files with 2402 additions and 47 deletions
|
|
@ -125,3 +125,11 @@ reporting: {
|
|||
- Rust: boundary sample after observations versus unchanged earlier risk reset; equal-time sequential risk halt still latched; first/final partial periods and exact terminal-boundary deduplication; exposure overlap/open positions/same-time owner handoff; no trade/stale marks; restore after every event including within observation groups; unchanged financial checkpoint/trace/project results.
|
||||
- TS/native: report format/identity/calendar/terminal-value validation; worker format/cancellation/failure guards; two sessions 100 → 110 → 99 yield +10%/−10%; partial returns retained but not annualized as full sessions; missing rates/benchmark; constant negative and nonbinary constant returns; unsupported round trips remain null; genuine zero exposure survives the additive adapter.
|
||||
- Run existing calculation, mapping and frontend metric/provenance fixtures, full repository checks and scoped strict test TypeScript. Worker changes require disposable PostgreSQL/Redis recovery gates. Measure reporting overhead against the accepted compact path with identical economic hashes; no timing assertions, new cache/DSL, journal deletion, or unrelated hot-loop optimization.
|
||||
|
||||
## Reviewed implementation handoff — 2026-10-23
|
||||
|
||||
Implemented in `financial/reporting.rs` and replay hooks, native `FinancialReplaySession.report()`, the existing TS native/worker contract, additive `CanonicalBacktestAnalytics` types and `backtest/canonical-result.ts`. Existing reviewed calculations supply statistical reporting; no legacy DTO or default runner cutover.
|
||||
|
||||
Independent review, exact owner-source integration, repository gates, disposable recovery and release-format comparisons passed. Full check initially found an incomplete decision trace in the new integration fixture; the corrected test explicitly submits every due hold and passes. See [wave handoff](../../ROADMAP.md#thirteenth-wave-execution--2026-10-23) and the canonical manifest validation record for commands, counts, hashes, initial unfavorable timings and the unchanged-artifact control. New implementation remains uncommitted.
|
||||
|
||||
R05 must consume the additive contract without filling unsupported round-trip/benchmark statistics or legacy position fields with invented values. S01 does not need another reporting contract. Long-session statistical throughput remains unmeasured; the six benchmark fixtures each contain one partial account period.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue