stock-bot/docs/development/backlog
2026-10-24 10:33:05 -04:00
..
tasks feat(research): add retained-input parameter sweep workbench 2026-10-24 10:33:05 -04:00
dependencies.mmd feat(research): add retained-input parameter sweep workbench 2026-10-24 10:33:05 -04:00
findings.md docs: add reviewed architecture backlog and first execution wave 2026-10-22 13:24:49 -04:00
manifest.json feat(research): add retained-input parameter sweep workbench 2026-10-24 10:33:05 -04:00
README.md feat(research): add retained-input parameter sweep workbench 2026-10-24 10:33:05 -04:00

Canonical development backlog

First twenty-six waves committed; R06/R07 retained-input experiment components are validated and uncommitted. R12 is accepted as 30accfc. 34 of 45 scheduled tasks are committed (76% by count). The web workbench now previews/submits bounded grids, compares every trial outcome and reopens evidence through existing durable canonical runs. Full R05 remains partial; failed-trial retry and broader comparisons are excluded from this component. Performance work remains paused.

One source of truth

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 are derived views. Only the planning/integration owner updates scheduling state.

45 scheduled + 6 deferred + 4 merged IDs = 55 retained IDs. F09/P07 add 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 P0 / done None — Rust financial correctness / S
C02 Reject malformed native data and preserve milliseconds P1 / done None — Rust/NAPI boundary / S
C03 Close the existing TypeScript fee-funding hole P0 / done None — Trading infrastructure implementation / M
C04 Make partial runtime initialization recoverable P1 / done None — Trading infrastructure implementation / S
C05 Create economic regression fixtures independent of implementations P0 / merged → F01 None — Quantitative correctness/test engineering / M
C06 Contain legacy research/paper interference without a second runtime 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 P0 / done ADR-002, ADR-003, ADR-004 (approved) — Rust financial contract owner / M
F02 Implement one owner-aware financial ledger P0 / done F01, ADR-002 — Rust accounting / L
F03 Add strategy-owned position books and fill allocations P0 / merged → F02 None — Rust portfolio accounting / M
F04 Enforce cash reservations and portfolio risk centrally P0 / done F02, ADR-002, ADR-003 — Rust financial risk / L
F05 Unify matching and order lifecycle on the ledger P0 / done F04, ADR-003 F06 Rust execution semantics / L
F06 Implement deterministic replay once, with linear historical traversal P0 / done F05, D01, P01, ADR-003 — Rust deterministic replay / M
F07 Expose bounded Rust step sessions through existing NAPI workers P0 / done F06, C02, ADR-004 — Rust/TypeScript integration / M
F08 Publish canonical metrics and versioned result projections P1 / done F06, F09, ADR-002, ADR-003 — Quant analytics/Rust integration / M
F09 Return compact canonical replay projections 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 P0 / done ADR-003 (approved) — TypeScript trading infrastructure / M
D02 Connect supported intraday storage to research datasets P1 / done D01 — TypeScript trading infrastructure / M
D03 Add dataset eligibility and corporate-action safeguards P1 / merged → D01 None — TypeScript trading infrastructure / M
D04 Provide prefix-safe shared feature calculation 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 P0 / done F07, ADR-004, ADR-005 — TypeScript trading infrastructure / M
S02 Adapt one SMA strategy for the first canonical path P1 / done S01 — TypeScript strategy/quant engineering / M
S03 Adapt durable paper transactions to Rust financial reducers P0 / done S01, C06, ADR-005 — Durable execution/Rust integration / L
S04 Establish a verified paper feed and operator safety gate P1 / done S02, S03 — TypeScript trading infrastructure / M
S05 Add a small composable multi-signal regime example P2 / done S02, F08 R08 Quant strategy research / M
S06 Retire duplicate simulator paths after cutover proof P2 / blocked 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 P1 / done None — Full-stack React/API / M
W02 Expose result provenance and legacy correctness limitations P1 / done W01 — Full-stack research UX / M
W03 Separate save, submit and repeat-safe run creation P1 / done O01 — Full-stack durable workflow / M
W04 Verify the first research vertical slice in a browser 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 P1 / done O01, ADR-006 — Full-stack research product / M
R02 Deliver strategy catalog and version-aware backtest setup P1 / done R01, W03, ADR-006 W04 Full-stack research product / M
R03 Add projects, hypotheses and evidence-linked findings APIs P1 / done R01, R10, ADR-006 — Full-stack research product / M
R04 Deliver research workspace and save-findings flow P1 / done R03, W02, ADR-006 W04 Full-stack research product / M
R05 Freeze complete provenance and cut over durable canonical runs P0 / in_progress 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 P1 / in_progress (component) 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 P1 / in_progress (component) R06 component API pinned; release after integration, ADR-006 W04 Full-stack research product / M
R08 Add bounded chronological and reset-segment validation P1 / blocked R06, ADR-006 — Quantitative research integrity / M
R09 Expose validation, cost and regime evidence in the workbench P1 / blocked R07, R08, 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 P1 / done R01, ADR-006 — Full-stack research product / M
R11 Select and reuse frozen datasets in the workbench 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 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 P2 / done None — Performance/infrastructure engineering / M
P02 Remove measured replay queue and hot-loop overhead P2 / merged → F06 None — Performance/infrastructure engineering / M
P03 Reuse validated datasets within bounded native workers P2 / deferred F07, P01, ADR-004, ADR-008 — Performance/infrastructure engineering / M
P04 Schedule deterministic batches across a bounded worker pool P2 / blocked F07, R06, C06, P01, ADR-008 — Performance/infrastructure engineering / M
P05 Separate result summaries from paged detail payloads P2 / deferred R06, P01 — Performance/infrastructure engineering / M
P06 Conditionally add a minimal Rust-executed strategy plan P2 / deferred P04, S01, ADR-008 — Rust/TS performance compiler boundary / M
P07 Profile representative canonical replay workloads P1 / done F07, P01 F09 for compact comparisons Performance/test infrastructure / M
P08 Reduce measured TypeScript strategy decision overhead 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 P1 / blocked R06, O01, ADR-007 — Backend security/durable scheduling / M
A02 Isolate untrusted TypeScript strategy builds and decisions P1 / blocked A01, S01, P01, ADR-007 — Process isolation/security / L
A03 Implement an evidence-linked AI research workflow client P2 / blocked A02, R08, R03, ADR-007 — AI research integration / M
A04 Add human-reviewed promotion to paper deployment P2 / blocked 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 P1 / done None — PostgreSQL/backend infrastructure / S
O02 Expose truthful research and paper readiness diagnostics P1 / deferred S04 — Infrastructure/observability / M

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.

R12 is committed. R06/R07 retained-input components passed independent review and full repository/PostgreSQL/browser gates; they await acceptance/commit. See the current handoff. Next implement R06 failed-trial retry with preserved diagnostics and attempt fencing. Full R05 remains partial, R06 failed retry remains outstanding, and R08/A01/S06 dependencies are not released by this component. Provider preparation is independent of sweeps over already eligible retained data. Performance and multi-asset/default/paper activation remain excluded.