From fe3fd556108d08f849b75fc0d0574755c526b449 Mon Sep 17 00:00:00 2001 From: Boki Date: Tue, 27 Oct 2026 15:34:55 -0400 Subject: [PATCH] docs(research): close backtest dialog navigation story --- docs/development/ROADMAP.md | 2 +- docs/development/backlog/README.md | 4 ++-- docs/development/backlog/manifest.json | 14 +++++++++----- docs/development/backlog/tasks/RP14.md | 2 ++ docs/development/real-data-research.md | 16 ++++++++++++++++ 5 files changed, 30 insertions(+), 8 deletions(-) diff --git a/docs/development/ROADMAP.md b/docs/development/ROADMAP.md index b6a2f42b..569431f7 100644 --- a/docs/development/ROADMAP.md +++ b/docs/development/ROADMAP.md @@ -1,6 +1,6 @@ # Revised development roadmap -Current follow-up: [real-data research workflow](real-data-research.md). RP14 addresses verified draft/pending-save loss through the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. All 78 scheduled tasks across the original backlog and extensions are accepted; 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request. +Current follow-up: [real-data research workflow](real-data-research.md). RP14 protects drafts and pending saves when following the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. All 79 scheduled tasks across the original backlog and extensions are accepted; 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request. ## Cleanup implementation — October 26, 2026 diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index 805ae909..1e74c981 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: 90 retained IDs — 78 done, 1 in progress, 7 deferred, 4 merged.** RP01–RP14 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: 90 retained IDs — 79 done, 7 deferred, 4 merged.** RP01–RP14 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. @@ -180,4 +180,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP13: Isolated candidate reproduction](tasks/RP13.md) — done, `773314d2`; accept the existing null-review candidate preview without weakening built-in approval checks. -- [RP14: Backtest dialog navigation](tasks/RP14.md) — in progress; preserve drafts and pending saves during same-tab strategy inspection. +- [RP14: Backtest dialog navigation](tasks/RP14.md) — done, `0d022ecc`; preserve drafts and pending saves during same-tab strategy inspection. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 42494347..77eb09d5 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.103", + "plan_revision": "2026-10-27.104", "repository_base": "b7aeca4", - "plan_status": "backtest_dialog_navigation_in_progress", + "plan_status": "backtest_dialog_navigation_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3452,7 +3452,7 @@ "epic": "E12", "priority": "P2", "severity": "Medium", - "status": "in_progress", + "status": "done", "dependencies": [ "R02", "W03" @@ -3465,10 +3465,14 @@ "backtest-dialog-navigation" ], "blocker": null, - "integration_state": "pending", + "integration_state": "accepted", "completion_evidence": "real-data-research.md", "release_gates": [], - "review_status": "pending" + "review_status": "accepted", + "completed_commit": "0d022ecc2eae3ac59ebce909f2110ec374ad37b2", + "integration_base": "cf04fb36d00d3321cddf959b850dd94058256923", + "reviewer": "/root/review_recovery_changes", + "review_notes": "Independent backtest/strategy UI review: 72 tests / 488 assertions. Root full check passed: 1364 integration and 150 Rust tests. Complete Chromium suite: 21 scenarios / 783 assertions, including declined navigation and a committed save whose response is held while the strategy link is clicked. Exact original saved definition, one save and zero runs/dispatches verified. Application/authored types, lint, formatting and builds pass; real-data-research.md records evidence." } ], "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/RP14.md b/docs/development/backlog/tasks/RP14.md index d6a05668..515adcc5 100644 --- a/docs/development/backlog/tasks/RP14.md +++ b/docs/development/backlog/tasks/RP14.md @@ -18,3 +18,5 @@ Acceptance/tests: - Actual browser coverage declines navigation, delays the committed save response, attempts navigation while pending, then releases it and opens exactly one saved definition with the original parameters and zero runs/dispatches. Gates: focused backtest and strategy UI regressions, application/authored types, lint/build, root repository check and full browser suite against disposable fixtures. Conditional performance work and paper/live activation stay deferred. + +Accepted October 27, 2026; implementation `0d022ecc`. Independent backtest/strategy UI review passed 72 tests / 488 assertions. Root full check passed, including 1,364 integration and 150 Rust tests. All 21 browser scenarios passed / 783 assertions, including declined navigation and a held committed save response followed by exactly one original saved definition and zero runs/dispatches. Application/authored types, lint, formatting and build passed. [Combined evidence](../../real-data-research.md) records validation and scope. diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index f8c5be47..3381e6a1 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -231,3 +231,19 @@ Root validation: - Application and authored test types, scoped lint/formatting and diff checks passed. An additional economic-comparison suite could not load `zod` in the isolated implementation worktree; all four comparison cases passed in the root full check. No dependency workaround was committed. Logs: `/tmp/stock-bot-rp13-baseline.log`, `/tmp/stock-bot-rp13-independent.log`, `/tmp/stock-bot-rp13-comparison.log`, `/tmp/stock-bot-rp13-root-check.log`, `/tmp/stock-bot-rp13-root-test-types.log`, `/tmp/stock-bot-rp13-postgres.log` and `/tmp/stock-bot-rp13-browser.log`. PostgreSQL/Redis were fresh disposable fixtures. Conditional performance work and development/paper/live execution remain inactive. + +## RP14 — Backtest creation navigation + +Planning commit `cf04fb36` scopes the verified dialog-owned navigation defect; implementation `0d022ecc` is accepted. The manifest contains 79 completed tasks, seven deferred tasks and four merged redirects: 90 IDs total. + +The creation dialog's Close controls already protected an edited draft or pending Save, but its immutable-strategy link bypassed both rules. A dialog-local click capture now reuses the same pending ref and discard confirmation for ordinary same-tab links. Clean and deliberately confirmed navigation still works; modified/middle clicks, explicit new contexts and already-prevented events retain their behavior. The shared selector, router, backend and financial contracts are unchanged. This correction covers links inside the creation dialog, not global navigation. + +Both original baseline probes failed on `dcffa2ea`; three new regression cases also failed before the fix. Independent reviewer `/root/review_recovery_changes` accepted 72 focused backtest/strategy UI tests / 488 assertions. Coverage includes exact draft preservation, accepted/clean navigation, Save plus link before rerender, pending ownership, failed-save confirmation, new-context defaults and existing Close/unmount behavior. + +Root validation: + +- `CARGO_BUILD_JOBS=2 bun run check`: passed — 134 tooling, 43 utility, 44 calculation, 1,364 integration and 150 Rust tests. Existing 14 conditional integration skips and four ignored Rust measurements remain. Build, application types, contracts, strict lint and secret audit passed. +- Complete Chromium suite: 21 scenarios passed, zero failures, 783 assertions. The catalog workflow declines navigation and preserves its draft, then holds the real save response after the database commit. Clicking the strategy link while pending neither navigates nor prompts; releasing the response opens that exact saved definition with original parameters. Exactly one definition and zero runs/dispatches are verified. +- Application and authored test types, focused lint/formatting and diff checks passed. The browser fixture waits for the initial backtest catalog read to finish before delaying the save, so that unrelated read cannot consume its delay. + +Logs: `/tmp/stock-bot-rp14-baseline.log`, `/tmp/stock-bot-rp14-red.log`, `/tmp/stock-bot-rp14-independent.log`, `/tmp/stock-bot-rp14-root-check.log`, `/tmp/stock-bot-rp14-root-test-types-final.log` and `/tmp/stock-bot-rp14-browser.log`. PostgreSQL/Redis were fresh disposable fixtures. No development research execution, paper/live activation or conditional performance work was performed.