stock-bot/docs/development/backlog/dependencies.mmd

213 lines
6.7 KiB
Text

flowchart TD
%% Generated view of manifest.json. Solid edges: implementation; dotted: release only.
subgraph E1["E1: Immediate correctness and runtime containment"]
C01["C01: Correct native terminal valuation"]
C02["C02: Reject malformed native data and preserve milliseconds"]
C03["C03: Close the existing TypeScript fee-funding hole"]
C04["C04: Make partial runtime initialization recoverable"]
C06["C06: Contain legacy research/paper interference without a second runtime"]
end
subgraph E2["E2: Canonical Rust financial engine"]
F01["F01: Define the minimal financial contract and economic fixtures"]
F02["F02: Implement one owner-aware financial ledger"]
F04["F04: Enforce cash reservations and portfolio risk centrally"]
F05["F05: Unify matching and order lifecycle on the ledger"]
F06["F06: Implement deterministic replay once, with linear historical traversal"]
F07["F07: Expose bounded Rust step sessions through existing NAPI workers"]
F08["F08: Publish canonical metrics and versioned result projections"]
F09["F09: Return compact canonical replay projections"]
end
subgraph E3["E3: Point-in-time datasets and features"]
D01["D01: Introduce availability-aware dataset v2"]
D02["D02: Connect supported intraday storage to research datasets"]
D04["D04: Provide prefix-safe shared feature calculation (conditional)"]
end
subgraph E4["E4: TypeScript strategies and durable paper integration"]
S01["S01: Run deterministic TypeScript decisions on Rust sessions"]
S02["S02: Adapt one SMA strategy for the first canonical path"]
S03["S03: Adapt durable paper transactions to Rust financial reducers"]
S04["S04: Establish a verified paper feed and operator safety gate"]
S05["S05: Add a small composable multi-signal regime example"]
S06["S06: Retire duplicate simulator paths after cutover proof"]
end
subgraph E5["E5: Existing web backtest vertical slice"]
W01["W01: Make existing run controls and selection truthful"]
W02["W02: Expose result provenance and legacy correctness limitations"]
W03["W03: Separate save, submit and repeat-safe run creation"]
W04["W04: Verify the first research vertical slice in a browser"]
end
subgraph E6["E6: Research product, provenance and validation"]
R01["R01: Persist immutable strategy versions and parameter schemas"]
R02["R02: Deliver strategy catalog and version-aware backtest setup"]
R03["R03: Add projects, hypotheses and evidence-linked findings APIs"]
R04["R04: Deliver research workspace and save-findings flow"]
R05["R05: Freeze complete provenance and cut over durable canonical runs"]
R06["R06: Create immutable experiments and bounded sweep expansion"]
R07["R07: Deliver sweep configuration and comparable-result views"]
R08["R08: Add bounded chronological and reset-segment validation"]
R09["R09: Expose validation, cost and regime evidence in the workbench"]
R10["R10: Protect retained research evidence and artifact integrity"]
R11["R11: Select and reuse frozen datasets in the workbench"]
R12["R12: Reproduce an original run separately from rerunning current settings"]
end
subgraph E7["E7: Measured research throughput"]
P01["P01: Measure existing research paths before extending the benchmark"]
P03["P03: Reuse validated datasets within bounded native workers (conditional)"]
P04["P04: Schedule deterministic batches across a bounded worker pool"]
P05["P05: Separate result summaries from paged detail payloads (conditional)"]
P06["P06: Conditionally add a minimal Rust-executed strategy plan (conditional)"]
P07["P07: Profile representative canonical replay workloads"]
P08["P08: Reduce measured TypeScript strategy decision overhead (owner deferred)"]
end
subgraph E8["E8: Authorized, isolated AI research"]
A01["A01: Add research-only principals and durable job budgets"]
A02["A02: Isolate untrusted TypeScript strategy builds and decisions"]
A03["A03: Implement an evidence-linked AI research workflow client"]
A04["A04: Add human-reviewed promotion to paper deployment"]
end
subgraph E9["E9: Migration and operational safeguards"]
O01["O01: Serialize additive schema migrations safely"]
O02["O02: Expose truthful research and paper readiness diagnostics (conditional)"]
end
C04 --> C06
ADR002 --> F01
ADR003 --> F01
ADR004 --> F01
F01 --> F02
ADR002 --> F02
F02 --> F04
ADR002 --> F04
ADR003 --> F04
F04 --> F05
ADR003 --> F05
F06 -. release only .-> F05
F05 --> F06
D01 --> F06
P01 --> F06
ADR003 --> F06
F06 --> F07
C02 --> F07
ADR004 --> F07
F06 --> F08
F09 --> F08
ADR002 --> F08
ADR003 --> F08
F07 --> F09
ADR002 --> F09
ADR003 --> F09
ADR004 --> F09
ADR003 --> D01
D01 --> D02
S01 --> D04
P01 --> D04
F07 --> S01
ADR004 --> S01
ADR005 --> S01
S01 --> S02
S01 --> S03
C06 --> S03
ADR005 --> S03
S02 --> S04
S03 --> S04
S02 --> S05
F08 --> S05
R08 -. release only .-> S05
S03 --> S06
S04 --> S06
R05 --> S06
W01 --> W02
O01 --> W03
W01 --> W04
W02 --> W04
W03 --> W04
C06 --> W04
O01 --> R01
ADR006 --> R01
R01 --> R02
W03 --> R02
ADR006 --> R02
W04 -. release only .-> R02
R01 --> R03
R10 --> R03
ADR006 --> R03
R03 --> R04
W02 --> R04
ADR006 --> R04
W04 -. release only .-> R04
F08 --> R05
S02 --> R05
R01 --> R05
R10 --> R05
D01 --> R05
W03 --> R05
C06 --> R05
ADR006 --> R05
R05 --> R06
ADR006 --> R06
R06 --> R07
ADR006 --> R07
W04 -. release only .-> R07
R06 --> R08
ADR006 --> R08
R07 --> R09
R08 --> R09
ADR006 --> R09
S05 -. Regime comparison is enabled .-> R09
R01 --> R10
ADR006 --> R10
D01 --> R11
O01 --> R11
ADR003 --> R11
ADR006 --> R11
W04 -. release only .-> R11
%% R12 also requires R05's accepted retained-input component (618fb9e), not full cutover.
R01 --> R12
R10 --> R12
F08 --> R12
S02 --> R12
D01 --> R12
W03 --> R12
C06 --> R12
W04 --> R12
ADR006 --> R12
F07 --> P03
P01 --> P03
ADR004 --> P03
ADR008 --> P03
F07 --> P04
R06 --> P04
C06 --> P04
P01 --> P04
ADR008 --> P04
R06 --> P05
P01 --> P05
P04 --> P06
S01 --> P06
ADR008 --> P06
F07 --> P07
P01 --> P07
F09 -. compact comparisons only .-> P07
S02 --> P08
P07 --> P08
R06 --> A01
O01 --> A01
ADR007 --> A01
A01 --> A02
S01 --> A02
P01 --> A02
ADR007 --> A02
A02 --> A03
R08 --> A03
R03 --> A03
ADR007 --> A03
S04 --> A04
R09 --> A04
A01 --> A04
R01 --> A04
ADR007 --> A04
ADR005 --> A04
S04 --> O02
R03 -. save or link finding only .-> R09
classDef conditional stroke-dasharray: 5 5,fill:#fff3cd,color:#222
class D04,P03,P05,P06,P08,O02 conditional
%% Merged traceability only: C05 -> F01; F03 -> F02; D03 -> D01; P02 -> F06.