perf(research): add compact replay projections and representative profiling

This commit is contained in:
Boki 2026-10-23 10:42:31 -04:00
parent 19e9dad68b
commit e3bd722e31
21 changed files with 2830 additions and 130 deletions

View file

@ -1,12 +1,12 @@
# Canonical development backlog
**First eleven waves reviewed, validated and committed.** F07 was accepted and committed as `e3635f2`. Consult manifest execution_scope, [ROADMAP](../ROADMAP.md), [skeptical review](../REVIEW.md) and [first-wave handoff](../FIRST-WAVE.md). ADR-002/003/004 are approved. Other tasks/policies remain gated; the latest performance question does not authorize implementation.
**First eleven waves committed; F09/P07 reviewed, validated and uncommitted.** F09 adds optional compact terminal/fill projection; P07 proves matching finances and measured speedups at 10k/100k bars. F08 retains historical metrics. Consult manifest execution_scope and [handoff](../ROADMAP.md#twelfth-wave-handoff--2026-10-23). ADR-002/003/004 are approved; other policies/default cutovers remain gated.
## One source of truth
[manifest.json](manifest.json) owns scheduling metadata: status, priorities, dependencies, ADR approvals, assignments and write locks. Task Markdown owns implementation scope/evidence/acceptance. This index and the [graph](dependencies.mmd) are derived views. Only the planning/integration owner updates scheduling state.
**43 scheduled + 5 deferred + 4 merged IDs = 52 retained IDs.** Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
**45 scheduled + 5 deferred + 4 merged IDs = 54 retained IDs.** F09/P07 add the measured projection/profiling work. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
States: ready, claimed, in_progress, review, done, blocked, deferred, merged. “Ready” means no code/ADR prerequisite, not execution authority. Implementation dependencies require accepted integration. `release_gates` govern enabling an end-to-end feature, not component coding or integration; conditional gates apply only to the named capability. F05 may integrate before F06, but its replay behavior is not released until F06 proves it.
@ -36,7 +36,8 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
| [F05 Unify matching and order lifecycle on the ledger](tasks/F05.md) | P0 / done | F04, ADR-003 | F06 | Rust execution semantics / L |
| [F06 Implement deterministic replay once, with linear historical traversal](tasks/F06.md) | P0 / done | F05, D01, P01, ADR-003 | — | Rust deterministic replay / M |
| [F07 Expose bounded Rust step sessions through existing NAPI workers](tasks/F07.md) | P0 / done | F06, C02, ADR-004 | — | Rust/TypeScript integration / M |
| [F08 Publish canonical metrics and versioned result projections](tasks/F08.md) | P1 / ready | F06, ADR-002, ADR-003 | — | Quant analytics/Rust integration / M |
| [F08 Publish canonical metrics and versioned result projections](tasks/F08.md) | P1 / blocked | F06, F09, ADR-002, ADR-003 | — | Quant analytics/Rust integration / M |
| [F09 Return compact canonical replay projections](tasks/F09.md) | P1 / review | F07, ADR-002, ADR-003, ADR-004 | — | Rust/TypeScript financial integration / M |
### E3 — Point-in-time datasets and features
@ -94,6 +95,7 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
| [P04 Schedule deterministic batches across a bounded worker pool](tasks/P04.md) | P2 / blocked | F07, R06, C06, P01, ADR-008 | — | Performance/infrastructure engineering / M |
| [P05 Separate result summaries from paged detail payloads](tasks/P05.md) | P2 / deferred | R06, P01 | — | Performance/infrastructure engineering / M |
| [P06 Conditionally add a minimal Rust-executed strategy plan](tasks/P06.md) | P2 / deferred | P04, S01, ADR-008 | — | Rust/TS performance compiler boundary / M |
| [P07 Profile representative canonical replay workloads](tasks/P07.md) | P1 / review | F07, P01 | F09 for compact comparisons | Performance/test infrastructure / M |
### E8 — Authorized, isolated AI research
@ -115,4 +117,4 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
Before any wave: unique IDs; existing task/ADR references; acyclic implementation graph; no scheduled task dependent on merged/deferred work; approvals/readiness; actual file locks; isolated native build outputs/workspace dependencies and test databases. Release gates are checked separately at activation.
The first eleven waves are independently reviewed, validated and committed with owner approval; see the [eleventh-wave handoff](../ROADMAP.md#eleventh-wave-handoff--2026-10-23) and manifest evidence. Next recommended: **F08 canonical metrics/result projections**, whose code and ADR prerequisites are satisfied; readiness is not execution authority. S01 still needs ADR-005 and R01 needs ADR-006. The unresolved multi-asset mark-policy gate still blocks default activation, not additive components. No push, PR, trading operation or further task implementation is authorized.
The first eleven waves are independently reviewed, validated and committed. Current authorization covers **F09 compact projections and P07 profiling** only. P07 baseline files can progress in parallel; paired projection measurements consume the accepted F09 contract afterward. F08 adds historical sampling/statistics next, without reconstructing accounting in TS. S01 needs ADR-005 and R01 needs ADR-006. The unresolved multi-asset mark-policy gate still blocks default activation. No new commit, push, PR or trading operation is authorized.