171 lines
18 KiB
Markdown
171 lines
18 KiB
Markdown
# Canonical development backlog
|
||
|
||
**The original 45/45 scheduled tasks are complete.** The canonical Rust engine, TypeScript research/workbench, bounded worker pool, isolated candidates, AI evidence workflow and human-reviewed paper promotion are validated. Implementation commits: `bbf0dd4`, `26b9726`, `25b5cbf` (R07 measurement `ab08db8`). Six conditional tasks remain deferred; four merged IDs remain redirects. This is scheduled-backlog completion, not live-trading activation.
|
||
|
||
**New work:** [13 cleanup stories](../CLEANUP.md) were proposed on October 26, 2026. The owner subsequently authorized implementation and commits; see [execution evidence](../cleanup-execution.md). All 13 are implemented and independently accepted; review corrections are recorded in [real-data-research.md](../real-data-research.md).
|
||
|
||
## 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.
|
||
|
||
**Current total: 83 retained IDs.** RP01–RP06 add the authorized real-data workflow and its dataset reuse/custody follow-ups. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. 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.
|
||
|
||
Relative size: S narrow correction, M coherent boundary, L sensitive owner-controlled integration; not calendar estimates. Actual file overlap overrides symbolic lock names. No compatible structured issue tracker was found; do not duplicate task state in another system.
|
||
|
||
## Complete task index
|
||
|
||
### E1 — Immediate correctness and runtime containment
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [C01 Correct native terminal valuation](tasks/C01.md) | P0 / done | None | — | Rust financial correctness / S |
|
||
| [C02 Reject malformed native data and preserve milliseconds](tasks/C02.md) | P1 / done | None | — | Rust/NAPI boundary / S |
|
||
| [C03 Close the existing TypeScript fee-funding hole](tasks/C03.md) | P0 / done | None | — | Trading infrastructure implementation / M |
|
||
| [C04 Make partial runtime initialization recoverable](tasks/C04.md) | P1 / done | None | — | Trading infrastructure implementation / S |
|
||
| [C05 Create economic regression fixtures independent of implementations](tasks/C05.md) | P0 / merged → F01 | None | — | Quantitative correctness/test engineering / M |
|
||
| [C06 Contain legacy research/paper interference without a second runtime](tasks/C06.md) | P0 / done | C04 | — | Trading infrastructure implementation / S |
|
||
|
||
### E2 — Canonical Rust financial engine
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [F01 Define the minimal financial contract and economic fixtures](tasks/F01.md) | P0 / done | ADR-002, ADR-003, ADR-004 (approved) | — | Rust financial contract owner / M |
|
||
| [F02 Implement one owner-aware financial ledger](tasks/F02.md) | P0 / done | F01, ADR-002 | — | Rust accounting / L |
|
||
| [F03 Add strategy-owned position books and fill allocations](tasks/F03.md) | P0 / merged → F02 | None | — | Rust portfolio accounting / M |
|
||
| [F04 Enforce cash reservations and portfolio risk centrally](tasks/F04.md) | P0 / done | F02, ADR-002, ADR-003 | — | Rust financial risk / L |
|
||
| [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 / done | F06, F09, ADR-002, ADR-003 | — | Quant analytics/Rust integration / M |
|
||
| [F09 Return compact canonical replay projections](tasks/F09.md) | P1 / done | F07, ADR-002, ADR-003, ADR-004 | — | Rust/TypeScript financial integration / M |
|
||
|
||
### E3 — Point-in-time datasets and features
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [D01 Introduce availability-aware dataset v2](tasks/D01.md) | P0 / done | ADR-003 (approved) | — | TypeScript trading infrastructure / M |
|
||
| [D02 Connect supported intraday storage to research datasets](tasks/D02.md) | P1 / done | D01 | — | TypeScript trading infrastructure / M |
|
||
| [D03 Add dataset eligibility and corporate-action safeguards](tasks/D03.md) | P1 / merged → D01 | None | — | TypeScript trading infrastructure / M |
|
||
| [D04 Provide prefix-safe shared feature calculation](tasks/D04.md) | P1 / deferred | S01, P01 | — | Quantitative feature engineering / M |
|
||
|
||
### E4 — TypeScript strategies and durable paper integration
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [S01 Run deterministic TypeScript decisions on Rust sessions](tasks/S01.md) | P0 / done | F07, ADR-004, ADR-005 | — | TypeScript trading infrastructure / M |
|
||
| [S02 Adapt one SMA strategy for the first canonical path](tasks/S02.md) | P1 / done | S01 | — | TypeScript strategy/quant engineering / M |
|
||
| [S03 Adapt durable paper transactions to Rust financial reducers](tasks/S03.md) | P0 / done | S01, C06, ADR-005 | — | Durable execution/Rust integration / L |
|
||
| [S04 Establish a verified paper feed and operator safety gate](tasks/S04.md) | P1 / done | S02, S03 | — | TypeScript trading infrastructure / M |
|
||
| [S05 Add a small composable multi-signal regime example](tasks/S05.md) | P2 / done | S02, F08 | R08 | Quant strategy research / M |
|
||
| [S06 Retire duplicate simulator paths after cutover proof](tasks/S06.md) | P2 / done | S03, S04, R05 | — | TypeScript trading infrastructure / M |
|
||
|
||
### E5 — Existing web backtest vertical slice
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [W01 Make existing run controls and selection truthful](tasks/W01.md) | P1 / done | None | — | Full-stack React/API / M |
|
||
| [W02 Expose result provenance and legacy correctness limitations](tasks/W02.md) | P1 / done | W01 | — | Full-stack research UX / M |
|
||
| [W03 Separate save, submit and repeat-safe run creation](tasks/W03.md) | P1 / done | O01 | — | Full-stack durable workflow / M |
|
||
| [W04 Verify the first research vertical slice in a browser](tasks/W04.md) | P1 / done | W01, W02, W03, C06 | — | Full-stack test engineering / M |
|
||
|
||
### E6 — Research product, provenance and validation
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [R01 Persist immutable strategy versions and parameter schemas](tasks/R01.md) | P1 / done | O01, ADR-006 | — | Full-stack research product / M |
|
||
| [R02 Deliver strategy catalog and version-aware backtest setup](tasks/R02.md) | P1 / done | R01, W03, ADR-006 | W04 | Full-stack research product / M |
|
||
| [R03 Add projects, hypotheses and evidence-linked findings APIs](tasks/R03.md) | P1 / done | R01, R10, ADR-006 | — | Full-stack research product / M |
|
||
| [R04 Deliver research workspace and save-findings flow](tasks/R04.md) | P1 / done | R03, W02, ADR-006 | W04 | Full-stack research product / M |
|
||
| [R05 Freeze complete provenance and cut over durable canonical runs](tasks/R05.md) | P0 / done | F08, S02, R01, R10, D01, W03, C06, ADR-006 | Multi-asset default mark-policy disposition | Full-stack research product / M |
|
||
| [R06 Create immutable experiments and bounded sweep expansion](tasks/R06.md) | P1 / done | Accepted R05 retained-input component; R01/R10/F08/S02/D01/W03/C06/R12, ADR-006 | — | Full-stack research product / M |
|
||
| [R07 Deliver sweep configuration and comparable-result views](tasks/R07.md) | P1 / done (measurement committed ab08db8) | R06, ADR-006 | W04 | Full-stack research product / M |
|
||
| [R08 Add bounded chronological and reset-segment validation](tasks/R08.md) | P1 / done | R06, ADR-006 | — | Quantitative research integrity / M |
|
||
| [R09 Expose validation, cost and regime evidence in the workbench](tasks/R09.md) | P1 / done | R08, committed R07 functional component, ADR-006 | S05 when Regime comparison is enabled; R03 when Saving or linking a research finding is enabled | Full-stack research product / M |
|
||
| [R10 Protect retained research evidence and artifact integrity](tasks/R10.md) | P1 / done | R01, ADR-006 | — | Full-stack research product / M |
|
||
| [R11 Select and reuse frozen datasets in the workbench](tasks/R11.md) | P1 / done | D01, O01, ADR-003, ADR-006 | W04 | Full-stack market data/research / M |
|
||
| [R12 Reproduce an original run separately from rerunning current settings](tasks/R12.md) | P1 / done | Accepted R05 retained-input component; W04/R01/R10/F08/S02/D01/W03/C06, ADR-006 | — | Full-stack reproducible research / S |
|
||
|
||
### E7 — Measured research throughput
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [P01 Measure existing research paths before extending the benchmark](tasks/P01.md) | P2 / done | None | — | Performance/infrastructure engineering / M |
|
||
| [P02 Remove measured replay queue and hot-loop overhead](tasks/P02.md) | P2 / merged → F06 | None | — | Performance/infrastructure engineering / M |
|
||
| [P03 Reuse validated datasets within bounded native workers](tasks/P03.md) | P2 / deferred | F07, P01, ADR-004, ADR-008 | — | Performance/infrastructure engineering / M |
|
||
| [P04 Schedule deterministic batches across a bounded worker pool](tasks/P04.md) | P2 / done | 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 / done | F07, P01 | F09 for compact comparisons | Performance/test infrastructure / M |
|
||
| [P08 Reduce measured TypeScript strategy decision overhead](tasks/P08.md) | P1 / deferred | S02, P07; owner resume | — | TypeScript performance/runtime engineering / M |
|
||
|
||
### E8 — Authorized, isolated AI research
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [A01 Add research-only principals and durable job budgets](tasks/A01.md) | P1 / done | R06, O01, ADR-007 | — | Backend security/durable scheduling / M |
|
||
| [A02 Isolate untrusted TypeScript strategy builds and decisions](tasks/A02.md) | P1 / done | A01, S01, P01, ADR-007 | — | Process isolation/security / L |
|
||
| [A03 Implement an evidence-linked AI research workflow client](tasks/A03.md) | P2 / done | A02, R08, R03, ADR-007 | — | AI research integration / M |
|
||
| [A04 Add human-reviewed promotion to paper deployment](tasks/A04.md) | P2 / done | S04, R09, A01, R01, ADR-007, ADR-005 | — | Full-stack paper trading integration / M |
|
||
|
||
### E9 — Migration and operational safeguards
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [O01 Serialize additive schema migrations safely](tasks/O01.md) | P1 / done | None | — | PostgreSQL/backend infrastructure / S |
|
||
| [O02 Expose truthful research and paper readiness diagnostics](tasks/O02.md) | P1 / deferred | S04 | — | Infrastructure/observability / M |
|
||
|
||
### E10 — Cleanup and maintainability foundations
|
||
|
||
Scope and first execution wave: [CLEANUP.md](../CLEANUP.md). The owner has authorized implementation and commits. Current completion evidence is in [cleanup-execution.md](../cleanup-execution.md); the manifest owns task state.
|
||
|
||
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
|
||
| --- | --- | --- | --- | --- |
|
||
| [CL01 Replace permissive DI configuration tests with production-path assertions](tasks/CL01.md) | P1 / done | None | — | TypeScript infrastructure testing / M |
|
||
| [CL02 Normalize database configuration once and enforce consistent service switches](tasks/CL02.md) | P1 / done | CL01 | — | TypeScript configuration and database adapters / M |
|
||
| [CL03 Roll back failed shared-service startup and clear initialization timers](tasks/CL03.md) | P1 / done | None | — | TypeScript resource lifecycle and concurrency / M |
|
||
| [CL04 Provide one consistent research startup path and repair stale commands](tasks/CL04.md) | P1 / done | None | — | Bun/Turbo developer tooling / S |
|
||
| [CL05 Extract shared dataset and reporting logic behind a research library boundary](tasks/CL05.md) | P2 / done | D01, F08, R05 | — | TypeScript domain boundaries and package migration / M |
|
||
| [CL06 Use shared dataset response schemas and eligibility checks in the workbench](tasks/CL06.md) | P2 / done | CL05 | — | Shared contracts and frontend validation / M |
|
||
| [CL07 Share JSON transport handling across experiment and validation clients](tasks/CL07.md) | P2 / done | None | — | Frontend HTTP contracts and retry semantics / M |
|
||
| [CL08 Split backtest template, run and reproduction responsibilities behind the existing service](tasks/CL08.md) | P2 / done | CL05 | — | TypeScript application services and PostgreSQL transactions / M |
|
||
| [CL09 Separate strategy metadata, version inspection and publication UI](tasks/CL09.md) | P2 / done | None | — | React strategy workflows / M |
|
||
| [CL10 Separate experiment modes and make draft/submission state explicit](tasks/CL10.md) | P2 / done | None | — | React experiment workflow state / M |
|
||
| [CL11 Separate backtest template loading, run monitoring and submission state](tasks/CL11.md) | P2 / done | None | — | React asynchronous state and durable-run UX / M |
|
||
| [CL12 Simplify retired execution seams while preserving historical reads](tasks/CL12.md) | P2 / done | CL08 | — | Compatibility cleanup and execution boundaries / M |
|
||
| [CL13 Hide placeholder navigation while preserving useful product routes](tasks/CL13.md) | P2 / done | None | — | React navigation and product clarity / S |
|
||
|
||
## Scheduling checks
|
||
|
||
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.
|
||
|
||
R06/R08/R09 and the R07 comparison/measurement are complete. The default supports canonical single-asset research. Regime panels require actual retained annotations; no arbitrary candidate regime labels or profitability claims are inferred. The six conditional tasks keep their evidence/approval gates. Completing scheduled implementation does not activate paper/live trading or approve a multi-asset mark policy.
|
||
|
||
## E11 — Orchestrator and engine cleanup
|
||
|
||
Owner authorized planning and per-task implementation commits. [Execution plan and validation](../orchestrator-engine-cleanup.md). All seven scheduled stories CL14–CL20 are complete. CL21 remains conditional. Earlier cleanup reviews and the six original conditional tasks remain unchanged.
|
||
|
||
| Task | Priority | Dependencies |
|
||
| --- | --- | --- |
|
||
| [CL14 Require canonical capabilities in durable research contracts](tasks/CL14.md) | P1 | None |
|
||
| [CL15 Retire abandoned Rust architecture scaffolding](tasks/CL15.md) | P1 | None |
|
||
| [CL16 Give orchestrator composition an explicit shutdown owner](tasks/CL16.md) | P1 | None |
|
||
| [CL17 Separate historical reads from unused storage writes](tasks/CL17.md) | P2 | CL14 |
|
||
| [CL18 Share strict native parsing and financial view projection](tasks/CL18.md) | P2 | CL15 |
|
||
| [CL19 Share pure strategy bookkeeping and event ordering](tasks/CL19.md) | P2 | None |
|
||
| [CL20 Return validated retained results from the worker supervisor](tasks/CL20.md) | P2 | CL14 |
|
||
| [CL21 Extract private deterministic replay preparation when needed](tasks/CL21.md) | P3 | Conditional |
|
||
|
||
## E12 — Real-data research workflow
|
||
|
||
- [RP01: Stored source coverage and quality](tasks/RP01.md) — done, `5bfaf37d`; explicit indexed instrument/timeframe lookup and window diagnostics.
|
||
- [RP02: Retained real-data pilot](tasks/RP02.md) — done after explicit approval; nine completed runs, exact reproduction, independently reconciled results and an evidence-linked finding reopened in the web app. [Evidence](../real-data-research.md).
|
||
|
||
- [RP03: Declared-session source preparation](tasks/RP03.md) — done, `d2b78eac`; explicit session capture preserves strict validation and captured-input retention.
|
||
- [RP04: Evaluation horizon and CAGR presentation](tasks/RP04.md) — done, `302ba60e`; retained UTC bounds and calendar duration make short-sample annualization explicit.
|
||
|
||
- [RP05: Retained dataset reuse](tasks/RP05.md) — done, `6d549542`; load older catalog pages or select and verify a known hash.
|
||
- [RP06: Settings and preparation custody](tasks/RP06.md) — done, `c838e3d0`; preserve the current backtest draft and captured retry across tabs/run URLs.
|
||
|
||
- [RP07: Retained dataset download](tasks/RP07.md) — in progress; export validated original inputs for local research.
|