{ "schema_version": 1, "plan_revision": "2026-10-22.9", "repository_base": "b7aeca4", "plan_status": "fourth_wave_authorized", "execution_authorized": true, "execution_scope": { "authorized_by": "User: commit and start the next wave (2026-10-22); next-ready W03", "tasks": [ "W03" ], "permissions": [ "isolated_implementation", "local_tests", "local_integration_review", "planning_progress_updates" ], "excluded": [ "fourth_wave_commits_without_further_approval", "push", "pull_requests", "live_or_paper_operations", "other_backlog_tasks" ], "pending_policy_decisions": [ "ADR-002", "ADR-003", "ADR-004", "ADR-007" ] }, "canonical_metadata": "This manifest alone owns task status, dependency edges, approvals, assignments and write locks. Task Markdown owns scope and acceptance criteria. Index/roadmap are derived views.", "decisions": [ { "id": "ADR-001", "file": "architecture/decisions/001-ownership.md", "status": "user_mandated" }, { "id": "ADR-002", "file": "architecture/decisions/002-financial-policy.md", "status": "approval_required" }, { "id": "ADR-003", "file": "architecture/decisions/003-time-and-datasets.md", "status": "approval_required" }, { "id": "ADR-004", "file": "architecture/decisions/004-strategy-boundary.md", "status": "proposed_for_plan_approval" }, { "id": "ADR-005", "file": "architecture/decisions/005-durable-cutover.md", "status": "proposed_for_plan_approval" }, { "id": "ADR-006", "file": "architecture/decisions/006-research-product.md", "status": "proposed_for_plan_approval" }, { "id": "ADR-007", "file": "architecture/decisions/007-ai-boundary.md", "status": "approval_required" }, { "id": "ADR-008", "file": "architecture/decisions/008-performance.md", "status": "proposed_with_measurement_gate" } ], "epics": [ { "id": "E1", "title": "Immediate correctness and runtime containment" }, { "id": "E2", "title": "Canonical Rust financial engine" }, { "id": "E3", "title": "Point-in-time datasets and features" }, { "id": "E4", "title": "TypeScript strategies and durable paper integration" }, { "id": "E5", "title": "Existing web backtest vertical slice" }, { "id": "E6", "title": "Research product, provenance and validation" }, { "id": "E7", "title": "Measured research throughput" }, { "id": "E8", "title": "Authorized, isolated AI research" }, { "id": "E9", "title": "Migration and operational safeguards" } ], "first_wave": [ "C01", "C03", "C04", "W01" ], "tasks": [ { "id": "C01", "title": "Correct native terminal valuation", "epic": "E1", "priority": "P0", "severity": "Critical", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/C01.md", "findings": [ "FIN-02" ], "complexity": "S", "specialization": "Rust financial correctness", "write_locks": [ "legacy-native-finance" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave1_c01", "branch": "wave1/c01-terminal-equity", "pull_request": null, "completed_commit": "74ba3b97f5ff23fe940080c4492392ebd0107874", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave1.edQIVs/c01", "integration_base": "1148673", "review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.", "integration_state": "validated_committed", "verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22" }, { "id": "C02", "title": "Reject malformed native data and preserve milliseconds", "epic": "E1", "priority": "P1", "severity": "High", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/C02.md", "findings": [ "DAT-02" ], "complexity": "S", "specialization": "Rust/NAPI boundary", "write_locks": [ "native-public-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave2_c02", "branch": "wave2/c02-native-data-validation", "pull_request": null, "completed_commit": "ee670a3bd18b32195f9b69a48fbccc1409e55cd1", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave2.M9vHDK/c02", "integration_base": "6d357af9836fee38566945019431e93dffc228da", "integration_state": "validated_committed", "review_notes": "Independent source review and combined integration gates passed; owner authorized implementation commits. See completed_commit and ROADMAP second-wave handoff.", "verification_reference": "ROADMAP.md#second-wave-handoff--2026-10-22", "reviewed_by": "/root/skeptical_core_review" }, { "id": "C03", "title": "Close the existing TypeScript fee-funding hole", "epic": "E1", "priority": "P0", "severity": "Critical", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/C03.md", "findings": [ "FIN-03" ], "complexity": "M", "specialization": "Trading infrastructure implementation", "write_locks": [ "ts-execution-model" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave1_c03", "branch": "wave1/c03-fee-funding", "pull_request": null, "completed_commit": "a21a1b8cb88062ac862073f9f27faa181c605165", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave1.edQIVs/c03", "integration_base": "1148673", "review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.", "integration_state": "validated_committed", "verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22" }, { "id": "C04", "title": "Make partial runtime initialization recoverable", "epic": "E1", "priority": "P1", "severity": "High", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/C04.md", "findings": [ "RUN-02" ], "complexity": "S", "specialization": "Trading infrastructure implementation", "write_locks": [ "runtime-composition" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave1_c04", "branch": "wave1/c04-init-cleanup", "pull_request": null, "completed_commit": "3d26da07f549a9b2cde5c6811918b4404dd22bb0", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave1.edQIVs/c04", "integration_base": "1148673", "review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.", "integration_state": "validated_committed", "verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22" }, { "id": "C05", "title": "Create economic regression fixtures independent of implementations", "epic": "E1", "priority": "P0", "severity": "Critical", "status": "merged", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/C05.md", "findings": [ "FIN-01", "FIN-02", "FIN-03", "FIN-04", "FIN-06", "KEEP-01" ], "complexity": "M", "specialization": "Quantitative correctness/test engineering", "write_locks": [], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Do not execute: responsibility absorbed into F01", "merged_into": "F01" }, { "id": "C06", "title": "Contain legacy research/paper interference without a second runtime", "epic": "E1", "priority": "P0", "severity": "Critical", "status": "done", "dependencies": [ "C04" ], "decision_dependencies": [], "task_file": "backlog/tasks/C06.md", "findings": [ "RUN-01", "KEEP-01" ], "complexity": "S", "specialization": "Trading infrastructure implementation", "write_locks": [ "runtime-composition" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave2_c06", "branch": "wave2/c06-runtime-containment", "pull_request": null, "completed_commit": "43ffb547bedd31227545ee1991d56ec04b079349", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave2.M9vHDK/c06", "integration_base": "6d357af9836fee38566945019431e93dffc228da", "integration_state": "validated_committed", "review_notes": "Independent source review and combined integration gates passed; owner authorized implementation commits. See completed_commit and ROADMAP second-wave handoff.", "verification_reference": "ROADMAP.md#second-wave-handoff--2026-10-22", "reviewed_by": "/root/skeptical_core_review" }, { "id": "F01", "title": "Define the minimal financial contract and economic fixtures", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [], "decision_dependencies": [ "ADR-002", "ADR-003", "ADR-004" ], "task_file": "backlog/tasks/F01.md", "findings": [ "FIN-05", "FIN-03", "FIN-04" ], "complexity": "M", "specialization": "Rust financial contract owner", "write_locks": [ "financial-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "F02", "title": "Implement one owner-aware financial ledger", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F01" ], "decision_dependencies": [ "ADR-002" ], "task_file": "backlog/tasks/F02.md", "findings": [ "FIN-02", "FIN-03", "FIN-05", "KEEP-01" ], "complexity": "L", "specialization": "Rust accounting", "write_locks": [ "financial-contract", "rust-ledger" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "F03", "title": "Add strategy-owned position books and fill allocations", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "merged", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/F03.md", "findings": [ "FIN-04", "STR-01" ], "complexity": "M", "specialization": "Rust portfolio accounting", "write_locks": [], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Do not execute: responsibility absorbed into F02", "merged_into": "F02" }, { "id": "F04", "title": "Enforce cash reservations and portfolio risk centrally", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F02" ], "decision_dependencies": [ "ADR-002", "ADR-003" ], "task_file": "backlog/tasks/F04.md", "findings": [ "FIN-03", "FIN-06" ], "complexity": "L", "specialization": "Rust financial risk", "write_locks": [ "rust-ledger", "risk-policy" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "F05", "title": "Unify matching and order lifecycle on the ledger", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F04" ], "decision_dependencies": [ "ADR-003" ], "task_file": "backlog/tasks/F05.md", "findings": [ "FIN-01", "FIN-05", "FIN-06", "KEEP-01" ], "complexity": "L", "specialization": "Rust execution semantics", "write_locks": [ "rust-matching", "financial-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "F06" ] }, { "id": "F06", "title": "Implement deterministic replay once, with linear historical traversal", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F05", "D01", "P01" ], "decision_dependencies": [ "ADR-003" ], "task_file": "backlog/tasks/F06.md", "findings": [ "FIN-01", "DAT-01", "PER-01" ], "complexity": "M", "specialization": "Rust deterministic replay", "write_locks": [ "rust-replay" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "F07", "title": "Expose bounded Rust step sessions through existing NAPI workers", "epic": "E2", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F06", "C02" ], "decision_dependencies": [ "ADR-004" ], "task_file": "backlog/tasks/F07.md", "findings": [ "FIN-05", "PER-01", "KEEP-02" ], "complexity": "M", "specialization": "Rust/TypeScript integration", "write_locks": [ "native-public-api", "worker-protocol" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "F08", "title": "Publish canonical metrics and versioned result projections", "epic": "E2", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "F06" ], "decision_dependencies": [ "ADR-002", "ADR-003" ], "task_file": "backlog/tasks/F08.md", "findings": [ "FIN-07", "WEB-04" ], "complexity": "M", "specialization": "Quant analytics/Rust integration", "write_locks": [ "result-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "D01", "title": "Introduce availability-aware dataset v2", "epic": "E3", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [], "decision_dependencies": [ "ADR-003" ], "task_file": "backlog/tasks/D01.md", "findings": [ "DAT-01", "DAT-03", "KEEP-02" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [ "dataset-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "D02", "title": "Connect supported intraday storage to research datasets", "epic": "E3", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "D01" ], "decision_dependencies": [], "task_file": "backlog/tasks/D02.md", "findings": [ "DAT-04" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [ "storage-adapters" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "D03", "title": "Add dataset eligibility and corporate-action safeguards", "epic": "E3", "priority": "P1", "severity": "High", "status": "merged", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/D03.md", "findings": [ "DAT-03", "DAT-01" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Do not execute: responsibility absorbed into D01", "merged_into": "D01" }, { "id": "D04", "title": "Provide prefix-safe shared feature calculation", "epic": "E3", "priority": "P1", "severity": "High", "status": "deferred", "dependencies": [ "S01", "P01" ], "decision_dependencies": [], "task_file": "backlog/tasks/D04.md", "findings": [ "STR-01", "RES-01", "KEEP-02" ], "complexity": "M", "specialization": "Quantitative feature engineering", "write_locks": [ "feature-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Only after profiling demonstrates repeated identical feature work; use reviewed incremental calculations directly first.", "release_gates": [] }, { "id": "S01", "title": "Run deterministic TypeScript decisions on Rust sessions", "epic": "E4", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F07" ], "decision_dependencies": [ "ADR-004", "ADR-005" ], "task_file": "backlog/tasks/S01.md", "findings": [ "FIN-05", "STR-01", "KEEP-01" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [ "strategy-contract", "worker-protocol" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "S02", "title": "Adapt one SMA strategy for the first canonical path", "epic": "E4", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "S01" ], "decision_dependencies": [], "task_file": "backlog/tasks/S02.md", "findings": [ "STR-01", "FIN-04" ], "complexity": "M", "specialization": "TypeScript strategy/quant engineering", "write_locks": [ "strategy-builtins" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "S03", "title": "Adapt durable paper transactions to Rust financial reducers", "epic": "E4", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "S01", "C06" ], "decision_dependencies": [ "ADR-005" ], "task_file": "backlog/tasks/S03.md", "findings": [ "KEEP-01", "FIN-05" ], "complexity": "L", "specialization": "Durable execution/Rust integration", "write_locks": [ "ts-execution-model", "paper-transaction", "financial-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "S04", "title": "Establish a verified paper feed and operator safety gate", "epic": "E4", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "S02", "S03" ], "decision_dependencies": [], "task_file": "backlog/tasks/S04.md", "findings": [ "OPS-02", "FIN-06" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [ "paper-runtime" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "S05", "title": "Add a small composable multi-signal regime example", "epic": "E4", "priority": "P2", "severity": "Medium", "status": "blocked", "dependencies": [ "S02", "F08" ], "decision_dependencies": [], "task_file": "backlog/tasks/S05.md", "findings": [ "STR-01", "FIN-04", "RES-01" ], "complexity": "M", "specialization": "Quant strategy research", "write_locks": [ "example-strategy" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "R08" ] }, { "id": "S06", "title": "Retire duplicate simulator paths after cutover proof", "epic": "E4", "priority": "P2", "severity": "Medium", "status": "blocked", "dependencies": [ "S03", "S04", "R05" ], "decision_dependencies": [], "task_file": "backlog/tasks/S06.md", "findings": [ "FIN-05", "STR-01", "KEEP-01" ], "complexity": "M", "specialization": "TypeScript trading infrastructure", "write_locks": [ "runtime-composition", "ts-execution-model" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "W01", "title": "Make existing run controls and selection truthful", "epic": "E5", "priority": "P1", "severity": "High", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/W01.md", "findings": [ "WEB-02", "WEB-01" ], "complexity": "M", "specialization": "Full-stack React/API", "write_locks": [ "web-backtest-detail", "websocket-hook", "frontend-test-dependencies" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave1_w01", "branch": "wave1/w01-run-controls", "pull_request": null, "completed_commit": "67f12b49a070a4ed91d83ba1518d8deb6ff75333", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave1.edQIVs/w01", "integration_base": "1148673", "integration_state": "validated_committed", "review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.", "verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22" }, { "id": "W02", "title": "Expose result provenance and legacy correctness limitations", "epic": "E5", "priority": "P1", "severity": "High", "status": "done", "dependencies": [ "W01" ], "decision_dependencies": [], "task_file": "backlog/tasks/W02.md", "findings": [ "WEB-04", "FIN-01", "FIN-07" ], "complexity": "M", "specialization": "Full-stack research UX", "write_locks": [ "web-backtest-detail", "result-contract" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave2_w02", "branch": "wave2/w02-result-provenance", "pull_request": null, "completed_commit": "fe00ecd0e2a1414ae07435808924fe45cfdb348c", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave2.M9vHDK/w02", "integration_base": "6d357af9836fee38566945019431e93dffc228da", "integration_state": "validated_committed", "review_notes": "Independent source review and combined integration gates passed; owner authorized implementation commits. See completed_commit and ROADMAP second-wave handoff.", "verification_reference": "ROADMAP.md#second-wave-handoff--2026-10-22", "reviewed_by": "/root/skeptical_product_review" }, { "id": "W03", "title": "Separate save, submit and repeat-safe run creation", "epic": "E5", "priority": "P1", "severity": "High", "status": "ready", "dependencies": [ "O01" ], "decision_dependencies": [], "task_file": "backlog/tasks/W03.md", "findings": [ "WEB-03", "WEB-01" ], "complexity": "M", "specialization": "Full-stack durable workflow", "write_locks": [ "web-backtest-detail", "web-backtest-service", "sql-migrations" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "W04", "title": "Verify the first research vertical slice in a browser", "epic": "E5", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "W01", "W02", "W03", "C06" ], "decision_dependencies": [], "task_file": "backlog/tasks/W04.md", "findings": [ "WEB-01", "WEB-02", "KEEP-02" ], "complexity": "M", "specialization": "Full-stack test engineering", "write_locks": [ "browser-harness" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R01", "title": "Persist immutable strategy versions and parameter schemas", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "O01" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R01.md", "findings": [ "WEB-01", "WEB-04", "STR-01" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "sql-migrations", "strategy-catalog-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R02", "title": "Deliver strategy catalog and version-aware backtest setup", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R01", "W03" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R02.md", "findings": [ "WEB-01", "STR-01" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "web-backtest-detail", "web-strategies" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "W04" ] }, { "id": "R03", "title": "Add projects, hypotheses and evidence-linked findings APIs", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R01", "R10" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R03.md", "findings": [ "WEB-01", "WEB-04", "WEB-05" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "sql-migrations", "research-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R04", "title": "Deliver research workspace and save-findings flow", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R03", "W02" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R04.md", "findings": [ "WEB-01", "WEB-04" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "web-research", "web-backtest-detail" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "W04" ] }, { "id": "R05", "title": "Freeze complete provenance and cut over durable canonical runs", "epic": "E6", "priority": "P0", "severity": "Critical", "status": "blocked", "dependencies": [ "F08", "S02", "R01", "R10", "D01", "W03", "C06" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R05.md", "findings": [ "WEB-04", "KEEP-02", "FIN-05" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "result-contract", "web-backtest-service", "web-backtest-detail" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R06", "title": "Create immutable experiments and bounded sweep expansion", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R05" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R06.md", "findings": [ "WEB-01", "WEB-04", "KEEP-02" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "sql-migrations", "experiment-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R07", "title": "Deliver sweep configuration and comparable-result views", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R06" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R07.md", "findings": [ "WEB-01", "FIN-07", "WEB-04" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "web-experiments" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "W04" ] }, { "id": "R08", "title": "Add bounded chronological and reset-segment validation", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R06" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R08.md", "findings": [ "RES-01", "DAT-01", "FIN-07" ], "complexity": "M", "specialization": "Quantitative research integrity", "write_locks": [ "validation-contract", "sql-migrations" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R09", "title": "Expose validation, cost and regime evidence in the workbench", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R07", "R08" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R09.md", "findings": [ "RES-01", "WEB-01" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "web-experiments" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [], "conditional_release_gates": [ { "when": "Regime comparison is enabled", "tasks": [ "S05" ] }, { "when": "Saving or linking a research finding is enabled", "tasks": [ "R03" ] } ] }, { "id": "R10", "title": "Protect retained research evidence and artifact integrity", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R01" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R10.md", "findings": [ "WEB-05", "WEB-04" ], "complexity": "M", "specialization": "Full-stack research product", "write_locks": [ "sql-migrations", "web-backtest-service" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "R11", "title": "Select and reuse frozen datasets in the workbench", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "D01", "O01" ], "decision_dependencies": [ "ADR-003", "ADR-006" ], "task_file": "backlog/tasks/R11.md", "findings": [ "KEEP-02", "DAT-01", "WEB-04" ], "complexity": "M", "specialization": "Full-stack market data/research", "write_locks": [ "dataset-contract", "web-backtest-detail", "web-backtest-service" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [ "W04" ] }, { "id": "R12", "title": "Reproduce an original run separately from rerunning current settings", "epic": "E6", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R05", "W04" ], "decision_dependencies": [ "ADR-006" ], "task_file": "backlog/tasks/R12.md", "findings": [ "WEB-03", "WEB-04", "KEEP-02" ], "complexity": "S", "specialization": "Full-stack reproducible research", "write_locks": [ "web-backtest-service", "web-backtest-detail" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "P01", "title": "Measure existing research paths before extending the benchmark", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/P01.md", "findings": [ "PER-01", "FIN-05", "KEEP-02" ], "complexity": "M", "specialization": "Performance/infrastructure engineering", "write_locks": [ "benchmark-harness" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave3_p01", "branch": "wave3/p01-research-benchmark", "pull_request": null, "completed_commit": "2e851ec3512780224f34ad7dd05f463329bbe64c", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave3.VjJvWX/p01", "integration_base": "c5b93eb8fdc70622fee3befc82def85c8da45b0f", "integration_state": "validated_committed", "reviewed_by": "/root/wave3_review", "review_notes": "Independent review and combined repository/PostgreSQL gates passed; owner authorized commits on 2026-10-22.", "verification_reference": "ROADMAP.md#third-wave-handoff--2026-10-22" }, { "id": "P02", "title": "Remove measured replay queue and hot-loop overhead", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "merged", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/P02.md", "findings": [ "PER-01" ], "complexity": "M", "specialization": "Performance/infrastructure engineering", "write_locks": [], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Do not execute: responsibility absorbed into F06", "merged_into": "F06" }, { "id": "P03", "title": "Reuse validated datasets within bounded native workers", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "deferred", "dependencies": [ "F07", "P01" ], "decision_dependencies": [ "ADR-004", "ADR-008" ], "task_file": "backlog/tasks/P03.md", "findings": [ "PER-01", "KEEP-02" ], "complexity": "M", "specialization": "Performance/infrastructure engineering", "write_locks": [ "worker-protocol", "native-public-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Only after measured repeated dataset admission is a material sweep cost; not a prerequisite for parallel trials.", "release_gates": [] }, { "id": "P04", "title": "Schedule deterministic batches across a bounded worker pool", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "blocked", "dependencies": [ "F07", "R06", "C06", "P01" ], "decision_dependencies": [ "ADR-008" ], "task_file": "backlog/tasks/P04.md", "findings": [ "PER-01", "KEEP-02" ], "complexity": "M", "specialization": "Performance/infrastructure engineering", "write_locks": [ "worker-pool", "web-backtest-dispatch" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "P05", "title": "Separate result summaries from paged detail payloads", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "deferred", "dependencies": [ "R06", "P01" ], "decision_dependencies": [], "task_file": "backlog/tasks/P05.md", "findings": [ "PER-01", "WEB-01" ], "complexity": "M", "specialization": "Performance/infrastructure engineering", "write_locks": [ "result-contract", "web-backtest-service", "web-experiments" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Only after measured trade-detail payload/query/render cost; simple summary projections ship in R06.", "release_gates": [] }, { "id": "P06", "title": "Conditionally add a minimal Rust-executed strategy plan", "epic": "E7", "priority": "P2", "severity": "Medium", "status": "deferred", "dependencies": [ "P04", "S01" ], "decision_dependencies": [ "ADR-008" ], "task_file": "backlog/tasks/P06.md", "findings": [ "FIN-05", "PER-01" ], "complexity": "M", "specialization": "Rust/TS performance compiler boundary", "write_locks": [ "strategy-contract", "native-public-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Owner go/no-go after representative profiling and explicit prototype budget; no fixed 20%/1.5x magic thresholds.", "release_gates": [] }, { "id": "A01", "title": "Add research-only principals and durable job budgets", "epic": "E8", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "R06", "O01" ], "decision_dependencies": [ "ADR-007" ], "task_file": "backlog/tasks/A01.md", "findings": [ "AI-01", "WEB-01" ], "complexity": "M", "specialization": "Backend security/durable scheduling", "write_locks": [ "auth-contract", "experiment-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "A02", "title": "Isolate untrusted TypeScript strategy builds and decisions", "epic": "E8", "priority": "P1", "severity": "High", "status": "blocked", "dependencies": [ "A01", "S01", "P01" ], "decision_dependencies": [ "ADR-007" ], "task_file": "backlog/tasks/A02.md", "findings": [ "AI-01", "STR-01" ], "complexity": "L", "specialization": "Process isolation/security", "write_locks": [ "sandbox-contract", "worker-protocol" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "A03", "title": "Implement an evidence-linked AI research workflow client", "epic": "E8", "priority": "P2", "severity": "Medium", "status": "blocked", "dependencies": [ "A02", "R08", "R03" ], "decision_dependencies": [ "ADR-007" ], "task_file": "backlog/tasks/A03.md", "findings": [ "AI-01", "RES-01", "WEB-04" ], "complexity": "M", "specialization": "AI research integration", "write_locks": [ "ai-workflow-client" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "A04", "title": "Add human-reviewed promotion to paper deployment", "epic": "E8", "priority": "P2", "severity": "Medium", "status": "blocked", "dependencies": [ "S04", "R09", "A01", "R01" ], "decision_dependencies": [ "ADR-007", "ADR-005" ], "task_file": "backlog/tasks/A04.md", "findings": [ "OPS-02", "AI-01", "KEEP-01" ], "complexity": "M", "specialization": "Full-stack paper trading integration", "write_locks": [ "paper-runtime", "web-strategies", "sql-migrations" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": null, "release_gates": [] }, { "id": "O01", "title": "Serialize additive schema migrations safely", "epic": "E9", "priority": "P1", "severity": "High", "status": "done", "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/O01.md", "findings": [ "OPS-01" ], "complexity": "S", "specialization": "PostgreSQL/backend infrastructure", "write_locks": [ "sql-migrations" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": "/root/wave3_o01", "branch": "wave3/o01-migration-lock", "pull_request": null, "completed_commit": "bba5aa12699978e6407765842338c9b6e94081d6", "blocker": null, "release_gates": [], "worktree": "/tmp/stock-bot-wave3.VjJvWX/o01", "integration_base": "c5b93eb8fdc70622fee3befc82def85c8da45b0f", "integration_state": "validated_committed", "reviewed_by": "/root/wave3_review", "review_notes": "Independent review and combined repository/PostgreSQL gates passed; owner authorized commits on 2026-10-22.", "verification_reference": "ROADMAP.md#third-wave-handoff--2026-10-22" }, { "id": "O02", "title": "Expose truthful research and paper readiness diagnostics", "epic": "E9", "priority": "P1", "severity": "High", "status": "deferred", "dependencies": [ "S04" ], "decision_dependencies": [], "task_file": "backlog/tasks/O02.md", "findings": [ "OPS-02", "WEB-02", "KEEP-02" ], "complexity": "M", "specialization": "Infrastructure/observability", "write_locks": [ "readiness-api" ], "parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.", "assignment": null, "branch": null, "pull_request": null, "completed_commit": null, "blocker": "Optional cross-service monitoring expansion; required run diagnostics belong to W01/F07 and paper readiness to S04.", "release_gates": [] } ], "review_note": "Independent skeptical revision: four superseded tasks retain stable IDs; deferred work is not a dependency of scheduled tasks. Release gates are distinct from implementation prerequisites.", "integration_base": "c5b93eb8fdc70622fee3befc82def85c8da45b0f", "validation": { "date": "2026-10-22", "integration_base": "1148673", "application_commit": "67f12b49a070a4ed91d83ba1518d8deb6ff75333", "repository_check": { "command": "CARGO_BUILD_JOBS=2 bun run check", "status": "passed" }, "native_tests": { "command": "CARGO_BUILD_JOBS=2 cargo test -p engine --lib --offline", "passed": 37, "failed": 0 }, "financial_lifecycle_tests": { "passed": 66, "failed": 0, "assertions": 389 }, "web_workflow_tests": { "passed": 68, "failed": 0, "assertions": 406 }, "postgres_recovery_tests": { "passed": 45, "failed": 0, "assertions": 202, "environment": "Disposable stock_bot_safety PostgreSQL and dedicated Redis DB15; no development trading DB" }, "native_addon": { "path": "apps/stock/engine/dist/engine.node", "sha256": "1ea9f519ffcc7f4153c4b0c063b4785dbabf870e2f3e2f3b5e069721fe20b361", "build": "Rebuilt from integrated working tree" }, "notes": [ "Native builds/IPC and disposable DB networking required sandbox escalation.", "W01 interaction tests use Happy DOM; real-browser W04 coverage remains pending.", "No change to same-bar execution or canonical Rust financial-policy decisions." ], "application_commits": { "C01": "74ba3b97f5ff23fe940080c4492392ebd0107874", "C03": "a21a1b8cb88062ac862073f9f27faa181c605165", "C04": "3d26da07f549a9b2cde5c6811918b4404dd22bb0", "W01": "67f12b49a070a4ed91d83ba1518d8deb6ff75333" } }, "execution_history": [ { "wave": "first_wave", "scope": { "authorized_by": "User: make a commit and start (2026-10-22)", "tasks": [ "C01", "C03", "C04", "W01" ], "permissions": [ "planning_snapshot_commit", "isolated_implementation", "local_tests", "local_integration_review", "first_wave_implementation_commits", "planning_closeout_commit" ], "excluded": [ "push", "pull_requests", "live_or_paper_operations", "later_wave_implementation_without_approval" ], "pending_policy_decisions": [ "ADR-002", "ADR-003", "ADR-007" ], "commit_authorized_by": "User: do all comits (2026-10-22)" } }, { "wave": "second_wave", "scope": { "authorized_by": "User: do it, following recommendation C06 + C02 + W02 (2026-10-22)", "tasks": [ "C06", "C02", "W02" ], "permissions": [ "isolated_implementation", "local_tests", "local_integration_review", "planning_progress_updates", "second_wave_implementation_commits", "planning_closeout_commit" ], "excluded": [ "push", "pull_requests", "live_or_paper_operations", "other_backlog_tasks" ], "pending_policy_decisions": [ "ADR-002", "ADR-003", "ADR-004", "ADR-007" ], "commit_authorized_by": "User: do all the commits and continue (2026-10-22)" } }, { "scope": { "authorized_by": "User: do all the commits and continue (2026-10-22); continue with next-ready O01 + P01", "tasks": [ "O01", "P01" ], "permissions": [ "isolated_implementation", "local_tests", "bounded_local_benchmarks", "local_integration_review", "planning_progress_updates" ], "excluded": [ "third_wave_commits_without_further_approval", "push", "pull_requests", "live_or_paper_operations", "other_backlog_tasks" ], "pending_policy_decisions": [ "ADR-002", "ADR-003", "ADR-004", "ADR-007" ], "commit_authorized_by": "User: commit and start the next wave (2026-10-22)" } } ], "second_wave": [ "C06", "C02", "W02" ], "second_wave_validation": { "date": "2026-10-22", "integration_base": "6d357af9836fee38566945019431e93dffc228da", "application_commit": "fe00ecd0e2a1414ae07435808924fe45cfdb348c", "repository_check": { "command": "CARGO_BUILD_JOBS=2 bun run check", "status": "passed", "tooling": 54, "utils": 43, "calculations": 35, "integration": 293, "native": 37, "failed": 0 }, "postgres_recovery_tests": { "command": "bun run test:postgres", "passed": 47, "failed": 0, "assertions": 267, "environment": "Disposable stock_bot_safety PostgreSQL and dedicated Redis DB15; development services untouched" }, "baseline_selected_integration": { "passed": 86, "failed": 0 }, "native_bridge_tests": { "passed": 47, "included_in_integration": true }, "native_addon": { "path": "apps/stock/engine/dist/engine.node", "sha256": "833332fbfefcc65e91671d5b42bb714f6e257a7689c18c79acbd740efcc2a791", "build": "Rebuilt from integrated source" }, "notes": [ "All 21 authored implementation/test files match reviewed isolated worktrees.", "Native builds/IPC and disposable database access required sandbox escalation.", "W02 uses interaction/SSR tests, not real-browser release certification.", "Existing Rust/build warnings and unchanged test-only W01 harness curly lint findings remain; repository lint gate passes.", "Same-bar execution, canonical Rust accounting and pending ADR approvals are unchanged." ], "application_commits": { "C02": "ee670a3bd18b32195f9b69a48fbccc1409e55cd1", "C06": "43ffb547bedd31227545ee1991d56ec04b079349", "W02": "fe00ecd0e2a1414ae07435808924fe45cfdb348c" } }, "third_wave": [ "O01", "P01" ], "third_wave_validation": { "date": "2026-10-22", "integration_base": "c5b93eb8fdc70622fee3befc82def85c8da45b0f", "application_commit": "2e851ec3512780224f34ad7dd05f463329bbe64c", "repository_check": { "command": "CARGO_BUILD_JOBS=2 bun run check", "status": "passed", "tooling": 58, "utils": 43, "calculations": 35, "integration": 293, "native": 37, "failed": 0 }, "postgres_recovery_tests": { "command": "bun run test:postgres", "passed": 51, "failed": 0, "assertions": 301, "environment": "Disposable stock_bot_safety PostgreSQL and dedicated Redis DB15; containers removed after validation; development services untouched" }, "scoped_checks": { "migration_tests": { "passed": 4, "assertions": 34, "included_in_postgres": true }, "benchmark_tests": { "passed": 4, "assertions": 241, "included_in_tooling": true }, "explicit_eslint": "passed for all four authored implementation/test files", "standalone_benchmark_typescript": "passed", "existing_dataset_benchmark": "prepared 1000 10 passed; unchanged", "diff_check": "passed" }, "reviewed_files": { "apps/stock/web-api/src/migrations/migration-runner.ts": "57108b46bdba947c1180b8122930808f8c61fc3bf32846e420af21806de7256f", "test/postgres/migration-runner.test.ts": "07db728a2d748b1ede79f5523a4b0b38b3ab0ce324156001fa1cab1437860174", "scripts/benchmark-research.ts": "47bb0f5643c8dd304ece32fe86e290fd963d540d5c0cc2866c0b8f3e7db26327", "scripts/test/benchmark-research.test.ts": "4d350a237ce809fb4124c419b065697f5df4753dd1a719dd9457b636dd7d9127" }, "integration_native_addon": { "path": "apps/stock/engine/dist/engine.node", "sha256": "833332fbfefcc65e91671d5b42bb714f6e257a7689c18c79acbd740efcc2a791", "build": "debug, rebuilt by combined check after the separate release measurements" }, "benchmark": { "command": "CARGO_BUILD_JOBS=2 bun run --cwd apps/stock/engine build:release; bun run scripts/benchmark-research.ts --measure", "raw_report": "/tmp/stock-bot-wave3.VjJvWX/research-release.json", "raw_report_sha256": "6ba0ecba8c9747b053a91bd6b496f4036da44f99863eb55deac03af61e3d401b", "source": { "commit": "c5b93eb8fdc70622fee3befc82def85c8da45b0f", "dirty": true, "contentSha256": "58e8d1cdb6d5e7a58593ace89ef78c4a6a7f266b1e3f5bf634feec75c124a2e3", "files": 1117, "scope": "Tracked and nonignored untracked file paths/content, including dirty changes; generated ignored artifacts excluded." }, "native": { "path": "/home/boki/repos/stock-bot/apps/stock/engine/dist/engine.node", "sha256": "324f1e18de495791e9e53c4e36be39d0b165a11e13e9bcd82f5ca2b22d014674", "matchedBuildProfiles": [ "release" ], "buildProfile": "release" }, "host": { "platform": "linux", "arch": "x64", "kernel": "6.8.0-146-generic", "cpu": "AMD Ryzen 9 9950X3D 16-Core Processor", "logicalCpus": 32, "availableParallelism": 32, "totalMemoryBytes": 98683457536, "sha256": "917b26b1f87814e6cb82648bbbb8ae255a930da13b57abb3a9e463b4507f1c4c" }, "runtime": { "bun": "1.2.17", "nodeCompatibility": "v22.6.0", "executableSha256": "6cd2f181c30d3cb1497b0b9d4bc9d63eb1ec4a9142f809183fed18fcc4e1051b", "rustc": "rustc 1.88.0 (6b00bc388 2025-06-23)", "lockSha256": "ef3d880bbfe9564dc3ec28c92857320f407e5f90101c3fa3e2e556cc3b227f08", "cargoLockSha256": "02ae13229a9bf28be9d0570d5d001e439af799689d0b980ccfb48524c957b3a3" }, "seed": { "value": 42, "sha256": "73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049", "algorithm": "LCG fixture offsets only; no engine RNG API" }, "workloads": [ { "workload": { "totalBars": 1000, "assets": 1, "seed": 42 }, "dataset_hash": "e98297ebf0b272a7e36ddc5c3280fa9debb7cbe4718522ac059d15a24588bb1e", "policy_hash": "d0b7efc62cae16ce7220df7d3587702badee078d09a529b2a38c19a75ab968dd", "economic_hashes": [ { "parameters": { "fastPeriod": 2, "slowPeriod": 5, "quantity": 1 }, "hash": "af4a8138994316a7e8115ea35efd025a75f0caf801c9098b8be67979b2bfe9f6" }, { "parameters": { "fastPeriod": 3, "slowPeriod": 8, "quantity": 1 }, "hash": "889d03e7e2847b2b27d090719fe51f002e869e729e899ad9d02918538e09a65a" }, { "parameters": { "fastPeriod": 5, "slowPeriod": 12, "quantity": 1 }, "hash": "0e99d31e5e3e4e67f9726deddfe0720aa98833725ace5fb2d3b7c767bead85cc" } ], "all_repeats_match": true, "trial_count": 12, "median_load_ms": 0.8464849999999977, "median_run_ms": 15.762453500000007, "median_parse_ms": 0.3271734999999971, "median_trial_ms": 20.424712, "median_bars_per_second": 48961.591117795746, "process_wall_ms": [ 164.02837900000003, 168.87492699999996 ], "preparation_ms": [ 6.901160000000001, 6.7957709999999985 ], "addon_import_ms": [ 3.5951629999999994, 3.3198030000000003 ], "peak_rss_bytes": [ 133906432, 135266304 ], "result_bytes_range": [ 225797, 228163 ] }, { "workload": { "totalBars": 1000, "assets": 10, "seed": 42 }, "dataset_hash": "9620d284521330f75957ac39fbc3eaf2bd323af92605aa3037117f58214a5b1f", "policy_hash": "222058ebbd8c2ccc5c13def08b8c5180d854bf6a235962e907376bfa1c07839f", "economic_hashes": [ { "parameters": { "fastPeriod": 2, "slowPeriod": 5, "quantity": 1 }, "hash": "ebe4dcabd17ec49543a6399aa529470533656b28572e0e3751b8eab7aef0feeb" }, { "parameters": { "fastPeriod": 3, "slowPeriod": 8, "quantity": 1 }, "hash": "ebb90fbca9e44a99526061b365ba0dbc0a0986fe8c93e58e5f39f6e70a546b93" }, { "parameters": { "fastPeriod": 5, "slowPeriod": 12, "quantity": 1 }, "hash": "28f0877435037a76fde6e0be1eb02058e9d3154550e6522f07481472701064a8" } ], "all_repeats_match": true, "trial_count": 12, "median_load_ms": 0.8866549999999975, "median_run_ms": 13.422461499999997, "median_parse_ms": 0.20439149999999984, "median_trial_ms": 17.415912, "median_bars_per_second": 57419.41794657216, "process_wall_ms": [ 144.52057899999994, 153.41600700000004 ], "preparation_ms": [ 6.200064999999999, 6.618496 ], "addon_import_ms": [ 3.6678299999999986, 3.9682080000000006 ], "peak_rss_bytes": [ 135954432, 136364032 ], "result_bytes_range": [ 122008, 122200 ] }, { "workload": { "totalBars": 10000, "assets": 1, "seed": 42 }, "dataset_hash": "19d1e0144ea94db03eab422448fc84d32ba82b88471d1b89dcfaef20a054f788", "policy_hash": "77d7958eadd69741764adaae94062a737b8d43eb1c2c58441769c4fb3a3edc9d", "economic_hashes": [ { "parameters": { "fastPeriod": 2, "slowPeriod": 5, "quantity": 1 }, "hash": "54494cc9a8b8aa077d5cae66ec8a65d2e8de23eacb9881154b7db0b2b37438c9" }, { "parameters": { "fastPeriod": 3, "slowPeriod": 8, "quantity": 1 }, "hash": "27f0fcc235908409cbce31504bef07f59088f39d6a19e97ec6ebe0ac9770fe1f" }, { "parameters": { "fastPeriod": 5, "slowPeriod": 12, "quantity": 1 }, "hash": "10dc5b4f08f8815a96590a61419e033fc298a3befcea43b30408816c84a3a33e" } ], "all_repeats_match": true, "trial_count": 12, "median_load_ms": 7.715423499999957, "median_run_ms": 157.76711000000003, "median_parse_ms": 2.9421689999999785, "median_trial_ms": 193.6823565, "median_bars_per_second": 51631.22638042366, "process_wall_ms": [ 1236.7556319999999, 1241.435742 ], "preparation_ms": [ 30.077812, 28.241952999999995 ], "addon_import_ms": [ 4.008834, 2.9315689999999996 ], "peak_rss_bytes": [ 219987968, 222736384 ], "result_bytes_range": [ 2255965, 2279395 ] }, { "workload": { "totalBars": 10000, "assets": 10, "seed": 42 }, "dataset_hash": "561a959f2cf144618b8e83450003132319ae13dd720db247aefbb03401fc3599", "policy_hash": "ad165de0c3c9ec55697909b8fda206e4ee50549e0086bc350760e73b9ad16f09", "economic_hashes": [ { "parameters": { "fastPeriod": 2, "slowPeriod": 5, "quantity": 1 }, "hash": "3e188cfedd50706a29b9effabcb98b6d451b14db9a0f1a694aa0e8280804eaec" }, { "parameters": { "fastPeriod": 3, "slowPeriod": 8, "quantity": 1 }, "hash": "b4d3839c915b7e207bfccaa9c460bcf27b54eab0052d824c9b16b4bae13caf30" }, { "parameters": { "fastPeriod": 5, "slowPeriod": 12, "quantity": 1 }, "hash": "b41675c5e83d16ce3530bac3b500e30072d95b38dfc998ddf3b5da1d6a78240e" } ], "all_repeats_match": true, "trial_count": 12, "median_load_ms": 8.087957500000016, "median_run_ms": 140.92566500000004, "median_parse_ms": 1.7288469999999876, "median_trial_ms": 167.3341445, "median_bars_per_second": 59768.5357446749, "process_wall_ms": [ 1077.2900050000003, 1059.151777 ], "preparation_ms": [ 27.99161, 28.924113 ], "addon_import_ms": [ 3.234802000000002, 2.935465999999998 ], "peak_rss_bytes": [ 181477376, 181526528 ], "result_bytes_range": [ 1223693, 1225696 ] } ], "interpretation": "48 sequential one-shot trials across four workloads, 3 parameter configurations repeated twice in each of 2 fresh processes; no concurrent agent builds during measurement. Raw local artifact is not committed. Snapshot precedes O01 integration/final planning updates; native source is identical. Native run includes serialization/logging; matching hashes do not establish correct financial semantics. No 100k, callback, queue/storage or parallel throughput claims." }, "notes": [ "All four authored files match independently reviewed worktrees.", "One transaction-scoped PostgreSQL lock precedes all migration admission work; additive allowlist and SQL scripts unchanged.", "Native build/worker IPC and disposable database access required escalation; existing Rust/frontend build warnings remain.", "No financial policy, strategy boundary, engine code, database migration script or stored result contract changed.", "Owner authorized O01/P01 commits; no push, PR or trading operation. W03 is next authorized; F01 still requires ADR-002/003/004 approval." ], "application_commits": { "O01": "bba5aa12699978e6407765842338c9b6e94081d6", "P01": "2e851ec3512780224f34ad7dd05f463329bbe64c" } }, "fourth_wave": [ "W03" ] }