diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index 238d49c1..b494b0b9 100644 --- a/docs/development/backlog/README.md +++ b/docs/development/backlog/README.md @@ -8,7 +8,7 @@ [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: 104 retained IDs — 92 done, 1 in progress, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery 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. +**Current total: 104 retained IDs — 93 done, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery 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. @@ -207,4 +207,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP27: Complete canonical run reads](tasks/RP27.md) — done, `66af201d`; research credentials inspect full native results through shared validation while the backend preserves trusted SQL binding. -- [RP28: Frozen data reads for research](tasks/RP28.md) — in progress; allow exact retained exports and verify their complete content/hash in the typed client. +- [RP28: Frozen data reads for research](tasks/RP28.md) — done (`4b9c6428`); exact retained exports with complete content/hash verification in the typed client. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 1b88e47e..fcc4834b 100644 --- a/docs/development/backlog/manifest.json +++ b/docs/development/backlog/manifest.json @@ -1,8 +1,8 @@ { "schema_version": 1, - "plan_revision": "2026-10-27.128", + "plan_revision": "2026-10-27.129", "repository_base": "b7aeca4", - "plan_status": "research_frozen_dataset_reads_in_progress", + "plan_status": "research_frozen_dataset_reads_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -45,11 +45,7 @@ "CL12", "CL13" ], - "first_wave": [ - "CL01", - "CL03", - "CL04" - ], + "first_wave": ["CL01", "CL03", "CL04"], "authorization": "Owner authorized cleanup implementation and validated commits: commit, implement backlog tasks and commit again. Historical execution_scope remains evidence for the original backlog.", "preserved_original_tasks": 55, "preserved_original_completed_tasks": 45, @@ -66,18 +62,8 @@ "orchestrator_engine_cleanup_scope": { "baseline_commit": "700ee09c", "authorized_by": "Owner: make backlog tasks commit and start implementing, and commit after each is done", - "tasks": [ - "CL14", - "CL15", - "CL16", - "CL17", - "CL18", - "CL19", - "CL20" - ], - "conditional_tasks": [ - "CL21" - ], + "tasks": ["CL14", "CL15", "CL16", "CL17", "CL18", "CL19", "CL20"], + "conditional_tasks": ["CL21"], "planning_file": "orchestrator-engine-cleanup.md", "excluded": [ "performance optimization", @@ -85,11 +71,7 @@ "paper/live activation", "pushes and PRs" ], - "first_wave": [ - "CL14", - "CL15", - "CL16" - ] + "first_wave": ["CL14", "CL15", "CL16"] }, "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": [ @@ -189,8 +171,8 @@ "id": "E10", "title": "Cleanup and maintainability foundations" }, - {"id": "E11", "title": "Orchestrator and engine cleanup"}, - {"id": "E12", "title": "Real-data research workflow"} + { "id": "E11", "title": "Orchestrator and engine cleanup" }, + { "id": "E12", "title": "Real-data research workflow" } ], "first_wave": ["C01", "C03", "C04", "W01"], "tasks": [ @@ -2120,14 +2102,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL01.md", - "findings": [ - "CL-F03" - ], + "findings": ["CL-F03"], "complexity": "M", "specialization": "TypeScript infrastructure testing", - "write_locks": [ - "di-builder-tests" - ], + "write_locks": ["di-builder-tests"], "parallel_policy": "Ready independently. Can run with CL03 and CL04 in isolated worktrees; do not share test-process module mocks. CL02 waits for this test baseline.", "assignment": null, "branch": null, @@ -2144,10 +2122,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "805a9f8f", - "8c39ccf7" - ], + "implementation_commits": ["805a9f8f", "8c39ccf7"], "reviewer": "/root/review_cleanup_foundations", "review_evidence": "real-data-research.md" }, @@ -2158,21 +2133,13 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "CL01" - ], + "dependencies": ["CL01"], "decision_dependencies": [], "task_file": "backlog/tasks/CL02.md", - "findings": [ - "CL-F01" - ], + "findings": ["CL-F01"], "complexity": "M", "specialization": "TypeScript configuration and database adapters", - "write_locks": [ - "di-configuration", - "di-container", - "di-builder-tests" - ], + "write_locks": ["di-configuration", "di-container", "di-builder-tests"], "parallel_policy": "After CL01. Must be serialized with CL03 because both can edit container/builder.ts; this is an actual-file lock, not an additional code dependency.", "assignment": null, "branch": null, @@ -2196,12 +2163,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "9d3e1a7b", - "implementation_commits": [ - "805a9f8f", - "8c39ccf7", - "9d3e1a7b", - "b4ac6460" - ], + "implementation_commits": ["805a9f8f", "8c39ccf7", "9d3e1a7b", "b4ac6460"], "review_followup_file": "cleanup-review.md", "reviewer": "/root/review_cleanup_foundations", "review_evidence": "real-data-research.md" @@ -2216,15 +2178,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL03.md", - "findings": [ - "CL-F02" - ], + "findings": ["CL-F02"], "complexity": "M", "specialization": "TypeScript resource lifecycle and concurrency", - "write_locks": [ - "di-container", - "di-service-lifecycle" - ], + "write_locks": ["di-container", "di-service-lifecycle"], "parallel_policy": "Ready independently and disjoint from CL01/CL04. Serialize with CL02 on di-container; use separate test files from CL01.", "assignment": null, "branch": null, @@ -2243,12 +2200,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "9d3e1a7b", - "implementation_commits": [ - "805a9f8f", - "8c39ccf7", - "9d3e1a7b", - "b4ac6460" - ], + "implementation_commits": ["805a9f8f", "8c39ccf7", "9d3e1a7b", "b4ac6460"], "review_followup_file": "cleanup-review.md", "reviewer": "/root/review_cleanup_foundations", "review_evidence": "real-data-research.md" @@ -2263,16 +2215,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL04.md", - "findings": [ - "CL-F08" - ], + "findings": ["CL-F08"], "complexity": "S", "specialization": "Bun/Turbo developer tooling", - "write_locks": [ - "root-scripts", - "docker-startup", - "startup-documentation" - ], + "write_locks": ["root-scripts", "docker-startup", "startup-documentation"], "parallel_policy": "Ready independently. Can run with CL01/CL03. CL05 uses the existing libs/* workspace glob and must not edit root scripts concurrently.", "assignment": null, "branch": null, @@ -2293,10 +2239,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "805a9f8f", - "8c39ccf7" - ], + "implementation_commits": ["805a9f8f", "8c39ccf7"], "reviewer": "/root/review_cleanup_foundations", "review_evidence": "real-data-research.md" }, @@ -2307,27 +2250,13 @@ "priority": "P2", "severity": "High", "status": "done", - "dependencies": [ - "D01", - "F08", - "R05" - ], - "decision_dependencies": [ - "ADR-001", - "ADR-003", - "ADR-004" - ], + "dependencies": ["D01", "F08", "R05"], + "decision_dependencies": ["ADR-001", "ADR-003", "ADR-004"], "task_file": "backlog/tasks/CL05.md", - "findings": [ - "CL-F04" - ], + "findings": ["CL-F04"], "complexity": "M", "specialization": "TypeScript domain boundaries and package migration", - "write_locks": [ - "research-domain-package", - "dataset-domain", - "research-architecture-tests" - ], + "write_locks": ["research-domain-package", "dataset-domain", "research-architecture-tests"], "parallel_policy": "Code-ready against completed D01/F08/R05. Independent of the DI stories. Serialize exact API file edits with CL08 and dataset-client edits with CL06; CL06/CL08 depend on this boundary.", "assignment": null, "branch": null, @@ -2356,9 +2285,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_backend", "review_evidence": "real-data-research.md" }, @@ -2369,20 +2296,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL05" - ], + "dependencies": ["CL05"], "decision_dependencies": [], "task_file": "backlog/tasks/CL06.md", - "findings": [ - "CL-F05" - ], + "findings": ["CL-F05"], "complexity": "M", "specialization": "Shared contracts and frontend validation", - "write_locks": [ - "dataset-response-contracts", - "web-backtest-api" - ], + "write_locks": ["dataset-response-contracts", "web-backtest-api"], "parallel_policy": "After CL05. Disjoint from CL07, which initially excludes backtestApiV2.ts; reserve this client file explicitly.", "assignment": null, "branch": null, @@ -2403,9 +2323,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2419,14 +2337,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL07.md", - "findings": [ - "CL-F06" - ], + "findings": ["CL-F06"], "complexity": "M", "specialization": "Frontend HTTP contracts and retry semantics", - "write_locks": [ - "web-experiment-transport" - ], + "write_locks": ["web-experiment-transport"], "parallel_policy": "Ready independently. It can run with CL05/CL06 and frontend component stories only when actual client/test files are disjoint.", "assignment": null, "branch": null, @@ -2447,9 +2361,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2460,23 +2372,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL05" - ], - "decision_dependencies": [ - "ADR-005", - "ADR-006" - ], + "dependencies": ["CL05"], + "decision_dependencies": ["ADR-005", "ADR-006"], "task_file": "backlog/tasks/CL08.md", - "findings": [ - "CL-F07" - ], + "findings": ["CL-F07"], "complexity": "M", "specialization": "TypeScript application services and PostgreSQL transactions", - "write_locks": [ - "web-backtest-service", - "web-run-reproduction" - ], + "write_locks": ["web-backtest-service", "web-run-reproduction"], "parallel_policy": "After CL05. Must not overlap CL12 or another backtest service owner. Can run with disjoint frontend work.", "assignment": null, "branch": null, @@ -2499,9 +2401,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_backend", "review_evidence": "real-data-research.md" }, @@ -2515,14 +2415,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL09.md", - "findings": [ - "CL-F07" - ], + "findings": ["CL-F07"], "complexity": "M", "specialization": "React strategy workflows", - "write_locks": [ - "web-strategy-detail" - ], + "write_locks": ["web-strategy-detail"], "parallel_policy": "Ready independently; disjoint from DI, CL06 and CL07. Reserve strategy detail/panel/test files against any other frontend owner.", "assignment": null, "branch": null, @@ -2543,9 +2439,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2559,14 +2453,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL10.md", - "findings": [ - "CL-F07" - ], + "findings": ["CL-F07"], "complexity": "M", "specialization": "React experiment workflow state", - "write_locks": [ - "web-experiment-editor" - ], + "write_locks": ["web-experiment-editor"], "parallel_policy": "Ready independently. Can run alongside CL07 only with disjoint authored client/test files and preserved public client contracts. Integration checks must cover their combination.", "assignment": null, "branch": null, @@ -2587,9 +2477,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2603,14 +2491,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL11.md", - "findings": [ - "CL-F07" - ], + "findings": ["CL-F07"], "complexity": "M", "specialization": "React asynchronous state and durable-run UX", - "write_locks": [ - "web-backtest-monitor" - ], + "write_locks": ["web-backtest-monitor"], "parallel_policy": "Ready independently. Can run with CL08 because UI/client contracts remain stable. Serialize with other backtest page/hook owners; keep CL06 API-client edits separate.", "assignment": null, "branch": null, @@ -2631,9 +2515,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2644,22 +2526,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL08" - ], - "decision_dependencies": [ - "ADR-005" - ], + "dependencies": ["CL08"], + "decision_dependencies": ["ADR-005"], "task_file": "backlog/tasks/CL12.md", - "findings": [ - "CL-F09" - ], + "findings": ["CL-F09"], "complexity": "M", "specialization": "Compatibility cleanup and execution boundaries", - "write_locks": [ - "web-backtest-service", - "legacy-execution-boundaries" - ], + "write_locks": ["web-backtest-service", "legacy-execution-boundaries"], "parallel_policy": "After CL08. One owner for the affected execution/API seams. This is not authority to remove unrelated code merely because static imports look absent.", "assignment": null, "branch": null, @@ -2680,9 +2553,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_backend", "review_evidence": "real-data-research.md" }, @@ -2696,14 +2567,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL13.md", - "findings": [ - "CL-F10" - ], + "findings": ["CL-F10"], "complexity": "S", "specialization": "React navigation and product clarity", - "write_locks": [ - "web-navigation" - ], + "write_locks": ["web-navigation"], "parallel_policy": "Ready independently but lower priority than the first cleanup wave. Reserve route/navigation files against any concurrent product work.", "assignment": null, "branch": null, @@ -2723,9 +2590,7 @@ ], "completion_evidence": "docs/development/cleanup-execution.md", "implementation_commit": "8c39ccf7", - "implementation_commits": [ - "8c39ccf7" - ], + "implementation_commits": ["8c39ccf7"], "reviewer": "/root/review_cleanup_frontend", "review_evidence": "real-data-research.md" }, @@ -2739,15 +2604,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL14.md", - "findings": [ - "OE-14" - ], + "findings": ["OE-14"], "complexity": "M", "specialization": "TypeScript contracts and durable research", - "write_locks": [ - "canonical-runner-contract", - "orchestrator-composition" - ], + "write_locks": ["canonical-runner-contract", "orchestrator-composition"], "parallel_policy": "May run alongside CL15. Serialize actual container.ts edits with CL16; this is a file lock, not a semantic prerequisite.", "concrete_write_scope": [ "apps/stock/orchestrator/src/backtest/execution-engine.ts", @@ -2786,14 +2646,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL15.md", - "findings": [ - "OE-15" - ], + "findings": ["OE-15"], "complexity": "M", "specialization": "Rust module graph and compatibility", - "write_locks": [ - "native-module-graph" - ], + "write_locks": ["native-module-graph"], "parallel_policy": "Independent of TS contract/lifecycle work. Serialize Rust module and native build output with CL18.", "concrete_write_scope": [ "apps/stock/engine/src/lib.rs", @@ -2839,16 +2695,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL16.md", - "findings": [ - "OE-16" - ], + "findings": ["OE-16"], "complexity": "M", "specialization": "TypeScript lifecycle and failure recovery", - "write_locks": [ - "orchestrator-composition", - "di-container", - "di-service-lifecycle" - ], + "write_locks": ["orchestrator-composition", "di-container", "di-service-lifecycle"], "parallel_policy": "Can be prepared independently; serialize container.ts with CL14 and shared DI edits with any other owner.", "concrete_write_scope": [ "apps/stock/orchestrator/src/simple-container.ts", @@ -2884,19 +2734,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL14" - ], + "dependencies": ["CL14"], "decision_dependencies": [], "task_file": "backlog/tasks/CL17.md", - "findings": [ - "OE-17" - ], + "findings": ["OE-17"], "complexity": "M", "specialization": "TypeScript market data and provider normalization", - "write_locks": [ - "historical-storage" - ], + "write_locks": ["historical-storage"], "parallel_policy": "After CL14; independent of native boundary and strategy diagnostic cleanup.", "concrete_write_scope": [ "apps/stock/orchestrator/src/services/StorageService.ts", @@ -2927,19 +2771,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL15" - ], + "dependencies": ["CL15"], "decision_dependencies": [], "task_file": "backlog/tasks/CL18.md", - "findings": [ - "OE-18" - ], + "findings": ["OE-18"], "complexity": "M", "specialization": "Rust canonical transport contracts", - "write_locks": [ - "native-canonical-api" - ], + "write_locks": ["native-canonical-api"], "parallel_policy": "After CL15; no simultaneous native build or canonical Rust contract owner.", "concrete_write_scope": [ "apps/stock/engine/src/api/replay.rs", @@ -2974,15 +2812,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL19.md", - "findings": [ - "OE-19" - ], + "findings": ["OE-19"], "complexity": "M", "specialization": "TypeScript strategy and durable paper parity", - "write_locks": [ - "strategy-decision-helpers", - "canonical-paper-contract" - ], + "write_locks": ["strategy-decision-helpers", "canonical-paper-contract"], "parallel_policy": "Independent of CL14/CL15/CL16; reserve paper and strategy helper files.", "concrete_write_scope": [ "apps/stock/orchestrator/src/strategies/strategy-controller.ts", @@ -3015,20 +2848,13 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "CL14" - ], + "dependencies": ["CL14"], "decision_dependencies": [], "task_file": "backlog/tasks/CL20.md", - "findings": [ - "OE-20" - ], + "findings": ["OE-20"], "complexity": "M", "specialization": "TypeScript IPC and native worker lifecycle", - "write_locks": [ - "native-worker-protocol", - "canonical-adapter" - ], + "write_locks": ["native-worker-protocol", "canonical-adapter"], "parallel_policy": "After CL14; separate from native Rust and historical storage edits.", "concrete_write_scope": [ "apps/stock/orchestrator/src/backtest/NativeBacktestWorker.ts", @@ -3062,14 +2888,10 @@ "dependencies": [], "decision_dependencies": [], "task_file": "backlog/tasks/CL21.md", - "findings": [ - "OE-21" - ], + "findings": ["OE-21"], "complexity": "M", "specialization": "Rust deterministic replay", - "write_locks": [ - "native-replay" - ], + "write_locks": ["native-replay"], "parallel_policy": "Deferred; sole replay owner when activated.", "concrete_write_scope": [ "apps/stock/engine/src/financial/replay.rs", @@ -3091,11 +2913,7 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "CL05", - "CL06", - "CL17" - ], + "dependencies": ["CL05", "CL06", "CL17"], "decision_dependencies": [], "task_file": "backlog/tasks/RP01.md", "complexity": "M", @@ -3106,10 +2924,7 @@ "integration_base": "bd9332b2", "completion_evidence": "real-data-research.md", "release_gates": [], - "reviewer": [ - "/root/review_cleanup_backend", - "/root/review_cleanup_frontend" - ], + "reviewer": ["/root/review_cleanup_backend", "/root/review_cleanup_frontend"], "review_notes": "Scoped index-backed Mongo lookup accepted after real-data integration; full checks, PostgreSQL and browser evidence in real-data-research.md." }, { @@ -3119,13 +2934,7 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "CL02", - "CL03", - "R05", - "R08", - "R12" - ], + "dependencies": ["CL02", "CL03", "R05", "R08", "R12"], "decision_dependencies": [], "task_file": "backlog/tasks/RP02.md", "complexity": "M", @@ -3146,10 +2955,7 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP01", - "D01" - ], + "dependencies": ["RP01", "D01"], "decision_dependencies": [], "task_file": "backlog/tasks/RP03.md", "complexity": "M", @@ -3161,10 +2967,7 @@ "completion_evidence": "real-data-research.md", "release_gates": [], "review_status": "accepted", - "reviewers": [ - "/root/review_cleanup_backend", - "/root/review_cleanup_frontend" - ], + "reviewers": ["/root/review_cleanup_backend", "/root/review_cleanup_frontend"], "review_notes": "Independent review and combined repository, PostgreSQL and Chromium gates passed. RP03 includes read-only actual source validation; no new real research execution." }, { @@ -3174,9 +2977,7 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP02" - ], + "dependencies": ["RP02"], "decision_dependencies": [], "task_file": "backlog/tasks/RP04.md", "complexity": "S", @@ -3188,9 +2989,7 @@ "completion_evidence": "real-data-research.md", "release_gates": [], "review_status": "accepted", - "reviewers": [ - "/root/review_cleanup_backend" - ], + "reviewers": ["/root/review_cleanup_backend"], "review_notes": "Independent review and combined repository, PostgreSQL and Chromium gates passed. RP03 includes read-only actual source validation; no new real research execution." }, { @@ -3200,19 +2999,13 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP03", - "R11" - ], + "dependencies": ["RP03", "R11"], "decision_dependencies": [], "task_file": "backlog/tasks/RP05.md", "complexity": "M", "assignment": "/root/implement_source_inspection", "branch": "research/dataset-reuse", - "write_locks": [ - "canonical-dataset-picker", - "canonical-catalog-transport" - ], + "write_locks": ["canonical-dataset-picker", "canonical-catalog-transport"], "completed_commit": "6d549542a98b52f8e1283f5d02285034aa25242c", "blocker": null, "integration_state": "accepted", @@ -3230,17 +3023,13 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP03" - ], + "dependencies": ["RP03"], "decision_dependencies": [], "task_file": "backlog/tasks/RP06.md", "complexity": "M", "assignment": "/root/review_cleanup_frontend", "branch": "research/settings-custody", - "write_locks": [ - "backtest-page-settings-lifecycle" - ], + "write_locks": ["backtest-page-settings-lifecycle"], "completed_commit": "c838e3d05a10410fa80fc5a279867cae64d78a41", "blocker": null, "integration_state": "accepted", @@ -3258,18 +3047,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP05", - "R05" - ], + "dependencies": ["RP05", "R05"], "decision_dependencies": [], "task_file": "backlog/tasks/RP07.md", "complexity": "M", "assignment": "/root", - "write_locks": [ - "retained-dataset-export-route", - "retained-dataset-download-ui" - ], + "write_locks": ["retained-dataset-export-route", "retained-dataset-download-ui"], "completed_commit": "b959779ada2561870f51d43ccd122c922572f1e5", "blocker": null, "integration_state": "accepted", @@ -3287,18 +3070,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "RP07", - "R05" - ], + "dependencies": ["RP07", "R05"], "decision_dependencies": [], "task_file": "backlog/tasks/RP08.md", "complexity": "S", "assignment": "/root/inspect_strategy_followup", - "write_locks": [ - "canonical-result-download", - "json-text-download-helper" - ], + "write_locks": ["canonical-result-download", "json-text-download-helper"], "completed_commit": "e8a6b709682588082faab510a268f9f7ccbaee69", "blocker": null, "integration_state": "accepted", @@ -3316,17 +3093,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "R02", - "A02" - ], + "dependencies": ["R02", "A02"], "decision_dependencies": [], "task_file": "backlog/tasks/RP09.md", "complexity": "S", "assignment": "/root/audit_next_workflow", - "write_locks": [ - "strategy-handoff-custody" - ], + "write_locks": ["strategy-handoff-custody"], "completed_commit": "49da701aa76b83a5eb5acf5ea1b51cc9313493a4", "blocker": null, "integration_state": "accepted", @@ -3344,16 +3116,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "R07" - ], + "dependencies": ["R07"], "decision_dependencies": [], "task_file": "backlog/tasks/RP10.md", "complexity": "S", "assignment": "/root/audit_next_experiments", - "write_locks": [ - "experiment-template-loading" - ], + "write_locks": ["experiment-template-loading"], "completed_commit": "f0e7d074760841f6f59c83334f929f94ed1b50ed", "blocker": null, "integration_state": "accepted", @@ -3371,16 +3139,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "R04" - ], + "dependencies": ["R04"], "decision_dependencies": [], "task_file": "backlog/tasks/RP11.md", "complexity": "S", "assignment": "/root/audit_research_entry_recovery", - "write_locks": [ - "research-hypothesis-reference" - ], + "write_locks": ["research-hypothesis-reference"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3398,16 +3162,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "W01" - ], + "dependencies": ["W01"], "decision_dependencies": [], "task_file": "backlog/tasks/RP12.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "run-history-enrichment" - ], + "write_locks": ["run-history-enrichment"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3425,17 +3185,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "R12", - "A02" - ], + "dependencies": ["R12", "A02"], "decision_dependencies": [], "task_file": "backlog/tasks/RP13.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "candidate-reproduction-preview" - ], + "write_locks": ["candidate-reproduction-preview"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3453,17 +3208,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "R02", - "W03" - ], + "dependencies": ["R02", "W03"], "decision_dependencies": [], "task_file": "backlog/tasks/RP14.md", "complexity": "S", "assignment": "/root/audit_research_entry_recovery", - "write_locks": [ - "backtest-dialog-navigation" - ], + "write_locks": ["backtest-dialog-navigation"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3481,16 +3231,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "A03" - ], + "dependencies": ["A03"], "decision_dependencies": [], "task_file": "backlog/tasks/RP15.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "research-cycle-cli-recovery" - ], + "write_locks": ["research-cycle-cli-recovery"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3508,17 +3254,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "A03", - "R01" - ], + "dependencies": ["A03", "R01"], "decision_dependencies": [], "task_file": "backlog/tasks/RP16.md", "complexity": "S", "assignment": "/root/audit_research_entry_recovery", - "write_locks": [ - "research-client-publication" - ], + "write_locks": ["research-client-publication"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3536,18 +3277,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "A02", - "R08" - ], + "dependencies": ["A02", "R08"], "decision_dependencies": [], "task_file": "backlog/tasks/RP17.md", "complexity": "S", "assignment": "/root/audit_research_entry_recovery", - "write_locks": [ - "validation-response-contract", - "candidate-default-admission" - ], + "write_locks": ["validation-response-contract", "candidate-default-admission"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3565,19 +3300,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "RP02", - "RP03", - "R08", - "R09" - ], + "dependencies": ["RP02", "RP03", "R08", "R09"], "decision_dependencies": [], "task_file": "backlog/tasks/RP18.md", "complexity": "M", "assignment": "/root", - "write_locks": [ - "aapl-october-research-pilot" - ], + "write_locks": ["aapl-october-research-pilot"], "blocker": null, "integration_state": "validated_external_workflow", "completion_evidence": "real-data-research.md", @@ -3597,17 +3325,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "W03", - "RP18" - ], + "dependencies": ["W03", "RP18"], "decision_dependencies": [], "task_file": "backlog/tasks/RP19.md", "complexity": "S", "assignment": "/root/audit_research_entry_recovery", - "write_locks": [ - "canonical-results-ui" - ], + "write_locks": ["canonical-results-ui"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3628,17 +3351,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "A01", - "A03" - ], + "dependencies": ["A01", "A03"], "decision_dependencies": [], "task_file": "backlog/tasks/RP20.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "web-api-security-composition" - ], + "write_locks": ["web-api-security-composition"], "blocker": null, "integration_state": "accepted", "completion_evidence": "real-data-research.md", @@ -3660,22 +3378,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "RP20", - "A02", - "A03", - "RP03", - "R08", - "R09", - "RP22" - ], + "dependencies": ["RP20", "A02", "A03", "RP03", "R08", "R09", "RP22"], "decision_dependencies": [], "task_file": "backlog/tasks/RP21.md", "complexity": "M", "assignment": "/root", - "write_locks": [ - "aapl-september-signal-study" - ], + "write_locks": ["aapl-september-signal-study"], "blocker": null, "integration_state": "validated_external_workflow", "completion_evidence": "real-data-research.md", @@ -3699,17 +3407,12 @@ "priority": "P1", "severity": "High", "status": "done", - "dependencies": [ - "A02", - "RP17" - ], + "dependencies": ["A02", "RP17"], "decision_dependencies": [], "task_file": "backlog/tasks/RP22.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "candidate-parameter-sql-admission" - ], + "write_locks": ["candidate-parameter-sql-admission"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3730,17 +3433,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "A03", - "RP21" - ], + "dependencies": ["A03", "RP21"], "decision_dependencies": [], "task_file": "backlog/tasks/RP23.md", "complexity": "S", "assignment": "/root/audit_recovery_next", - "write_locks": [ - "research-client-findings" - ], + "write_locks": ["research-client-findings"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3760,18 +3458,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "R04", - "R09", - "RP23" - ], + "dependencies": ["R04", "R09", "RP23"], "decision_dependencies": [], "task_file": "backlog/tasks/RP24.md", "complexity": "S", "assignment": "/root", - "write_locks": [ - "finding-dialog-acknowledgement" - ], + "write_locks": ["finding-dialog-acknowledgement"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3791,17 +3483,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "A03", - "RP23" - ], + "dependencies": ["A03", "RP23"], "decision_dependencies": [], "task_file": "backlog/tasks/RP25.md", "complexity": "S", "assignment": "/root", - "write_locks": [ - "research-client-artifact-reads" - ], + "write_locks": ["research-client-artifact-reads"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3821,18 +3508,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "R04", - "RP08", - "RP25" - ], + "dependencies": ["R04", "RP08", "RP25"], "decision_dependencies": [], "task_file": "backlog/tasks/RP26.md", "complexity": "S", "assignment": "/root", - "write_locks": [ - "research-revision-download" - ], + "write_locks": ["research-revision-download"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3852,18 +3533,12 @@ "priority": "P2", "severity": "Medium", "status": "done", - "dependencies": [ - "A03", - "F08", - "RP25" - ], + "dependencies": ["A03", "F08", "RP25"], "decision_dependencies": [], "task_file": "backlog/tasks/RP27.md", "complexity": "M", "assignment": "/root", - "write_locks": [ - "canonical-result-read-contract" - ], + "write_locks": ["canonical-result-read-contract"], "blocker": null, "integration_state": "accepted", "review_status": "accepted", @@ -3882,27 +3557,24 @@ "epic": "E12", "priority": "P2", "severity": "Medium", - "status": "in_progress", - "dependencies": [ - "A03", - "RP07", - "RP27" - ], + "status": "done", + "dependencies": ["A03", "RP07", "RP27"], "decision_dependencies": [], "task_file": "backlog/tasks/RP28.md", "complexity": "S", "assignment": "/root", - "write_locks": [ - "research-frozen-dataset-reads" - ], + "write_locks": ["research-frozen-dataset-reads"], "blocker": null, - "integration_state": "in_progress", - "review_status": "pending", - "completed_commit": null, + "integration_state": "accepted", + "review_status": "accepted", + "completed_commit": "4b9c6428173dca9a195c556e3812288aeaf3b30e", "completion_evidence": "real-data-research.md", "release_gates": [], "authorization": "Owner: commit and continue. Narrow known-hash immutable export read under existing shared research-read scope; preserve data writes, job budgets, OS isolation and trading boundaries. No real research execution or deferred work.", - "integration_base": "2ac1ff6b" + "integration_base": "2ac1ff6b", + "reviewer": "/root", + "planning_commit": "04892a59", + "review_notes": "Root reviewed exact known-hash export permission and reused strict content/hash validation under shared research reads. Missing capability/permission regressions reproduced. Final focused 58 tests / 716 assertions; integration 1,404 passed with 14 existing conditional skips / 10,605 assertions; tooling 161 / 14,435; actual PostgreSQL AI/agent 18 / 417. Actual issued/revoked credentials, tampered/missing exports, immutable original snapshots after template edits and unchanged read-only row counts verified. App/authored types, contracts, scoped lint/formatting, secrets, web build and diff passed. Initial old-denial test and mismatched-template fixture expectations corrected. No independent review/native rebuild/browser/full check claimed. Disposable store stopped; no real study changes or deferred work." } ], "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.", diff --git a/docs/development/backlog/tasks/RP28.md b/docs/development/backlog/tasks/RP28.md index eeb791ff..0c08a6d4 100644 --- a/docs/development/backlog/tasks/RP28.md +++ b/docs/development/backlog/tasks/RP28.md @@ -18,3 +18,5 @@ Acceptance/tests: - Run client/cycle and focused credential/security suites, complete tooling/integration, actual PostgreSQL AI/agent tests, application/authored types, contracts, strict lint/formatting and secrets. Build the web app to verify the permission description; no engine rebuild or browser-flow change is necessary. Definition of done: reproduce the missing typed/read permission capability, add the narrow existing endpoint access and typed read, review shared research-read versus privileged data-write scope, pass gates, document usage/holdout discipline, update task state and commit. This fits ADR-007 research/data isolation; no new architecture approval is required. + +Accepted after root review: plan `04892a59`, implementation `4b9c6428`. Missing client capability and permission regressions failed before implementation. Final focused client/cycle/security/export checks passed 58 tests / 716 assertions. Full integration passed 1,404 with 14 existing conditional skips / 10,605 assertions; tooling passed 161 / 14,435; actual PostgreSQL AI/agent suites passed 18 / 417. Application/authored types, contracts, strict scoped lint, formatting, secrets, web production build and diff checks passed. Actual issued/revoked credentials, exact retained content, malformed/tampered/missing snapshots, unchanged run counts and original hash independence from template edits were verified. The disposable database was stopped. [Execution evidence](../../real-data-research.md#rp28--frozen-market-data-reads-for-research). diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index a1f76c36..7b8dc9ef 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -491,3 +491,18 @@ Verification: - Application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. Authored assertions were corrected for branded decimal types and nullable result narrowing. Root reviewed embedded-versus-SQL binding and unchanged financial/statistical authority. No independent review, engine build, browser or full repository `check` rerun is claimed; no UI or Rust source changed. Logs: `/tmp/stock-bot-rp27-red.log`, `rp27-focused.log`, `rp27-focused-permitted.log`, `rp27-integration.log`, `rp27-tooling.log`, `rp27-postgres.log`, `rp27-typecheck.log`, `rp27-authored-types.log`, `rp27-contracts.log`, `rp27-lint.log`, `rp27-format.log` and `rp27-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after verification. No real study was changed or executed. All seven conditional tasks remain deferred. + +## RP28 — Frozen market data reads for research + +Plan `04892a59`, implementation `4b9c6428`. Research credentials now permit only the existing exact GET/HEAD canonical dataset export path with a lowercase 64-character hash. This deliberately extends the shared research catalog/result read model to known frozen snapshots. Listing, provider inspection/preparation/retention, other dataset paths and all data writes remain denied. It adds no per-dataset grant model or new endpoint. The operator page describes the expanded read permission. + +`ResearchClient.canonicalDataset(hash, signal?)` reuses `validateDatasetV2` to verify all retained content, derived policies and the requested hash, returning detached, deeply frozen bars and metadata. Callers can use a saved canonical result's `request.datasetHash`. Reads do not query providers, create runs, retry failures or substitute an editable template's current dataset. README documents predeclared training inputs and untouched holdouts; isolated candidate callbacks retain their existing prefix-only context and have no network or research credentials. No financial semantics, storage, simulation or execution policy changed. + +Verification: + +- Two baseline capability/permission regressions failed before implementation. Final focused client/cycle/security/export suites passed **58 tests / 716 assertions**. Cases cover immutable original bars/metadata, mismatched valid hashes, content/availability/policy tampering, invalid paths/hashes, aborts, HTTP failures and no retries or writes. +- Full integration: **1,404 passed / 14 existing conditional skips**, 10,605 assertions. The initial sole failure was the old export test's intentional research-denial expectation; it now verifies the new read permission and continued revocation/data-write denials. Complete tooling: **161 passed / 14,435 assertions**. Focused counts overlap those suites. +- Actual PostgreSQL AI/agent suites: **18 passed / 417 assertions**. Issued credentials retrieve exact retained snapshots and HEAD attachment headers; revoked credentials return 401. Missing/corrupt snapshots return 404/409. Reads leave dataset/experiment/run counts unchanged. After a template selects another retained snapshot, the original result and its original dataset hash reopen unchanged. The first fixture changed only the template hash and correctly failed existing bounds validation; updating its matching dates/assets/frequency fixed the fixture without relaxing application validation. +- Application/authored-test types, contracts, strict scoped lint, formatting, secrets, web production build and diff checks passed. Authored adversarial fixtures were corrected to construct malformed wire copies without assigning to readonly typed fields. The build retains the existing nonblocking Vite chunk warning. Root reviewed exact-path permission and strict content/hash validation; no independent review, native rebuild, browser rerun or full repository `check` is claimed. + +Logs: `/tmp/stock-bot-rp28-red.log`, `rp28-focused-final.log`, `rp28-integration-final.log`, `rp28-tooling.log`, `rp28-postgres-final.log`, `rp28-typecheck.log`, `rp28-authored-types.log`, `rp28-contracts.log`, `rp28-lint.log`, `rp28-format.log`, `rp28-secrets.log` and `rp28-web-build.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after verification. No real study was changed or executed. All seven conditional tasks remain deferred.