docs(research): plan backtest dialog navigation correction

This commit is contained in:
Boki 2026-10-27 15:04:51 -04:00
parent dcffa2ea8e
commit cf04fb36d0
5 changed files with 53 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
Current follow-up: [real-data research workflow](real-data-research.md). 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 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.
## Cleanup implementation — October 26, 2026

View file

@ -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: 89 retained IDs — 78 done, 7 deferred, 4 merged.** RP01–RP13 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 — 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.
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.
@ -179,3 +179,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP12: Available run history](tasks/RP12.md) — done, `a050c710`; keep saved runs selectable while optional metrics load.
- [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.

View file

@ -305,3 +305,6 @@ flowchart TD
R12 --> RP13
A02 --> RP13
R02 --> RP14
W03 --> RP14

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.102",
"plan_revision": "2026-10-27.103",
"repository_base": "b7aeca4",
"plan_status": "candidate_reproduction_recovery_complete",
"plan_status": "backtest_dialog_navigation_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3445,6 +3445,30 @@
"integration_base": "8807d9e50427d470b4c79020ff96da0335bf6168",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent UI/API review: 41 tests / 238 assertions. Root full check passed: 1358 integration and 150 Rust tests, including economic comparison cases that could not load in the isolated worktree. Focused real PostgreSQL candidate reproduction/revocation: 1 test / 8 assertions. Complete Chromium suite: 21 scenarios / 770 assertions, including unreviewed isolated candidate reproduction, receipt recovery and matching economics. Application/authored types, lint, formatting and builds pass; real-data-research.md records exact evidence."
},
{
"id": "RP14",
"title": "Preserve backtest creation work during strategy inspection",
"epic": "E12",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"dependencies": [
"R02",
"W03"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP14.md",
"complexity": "S",
"assignment": "/root/audit_research_entry_recovery",
"write_locks": [
"backtest-dialog-navigation"
],
"blocker": null,
"integration_state": "pending",
"completion_evidence": "real-data-research.md",
"release_gates": [],
"review_status": "pending"
}
],
"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.",

View file

@ -0,0 +1,20 @@
# RP14 — Preserve backtest creation work during strategy inspection
Parent E12. Priority P2 / Medium draft and save recovery defect. Complexity S. Dependencies R02 and W03. Owner continuation authorizes this correction.
Verified baseline: `CreateBacktestDialog.tsx` guards Close with `pending.current` and `confirmDiscard(edited)`, but its child `StrategySelection.tsx` renders a normal immutable-version link. Disabled fieldsets do not disable anchors, and the unload warning does not intercept router navigation. The dialog's own link silently discards an edited draft or unmounts during Save, after which the accepted response is ignored. `/tmp/stock-bot-rp14-baseline.log` records two failing regressions against `dcffa2ea` using the existing backtest UI harness.
Scope: add a dialog-local guard for ordinary same-tab links using existing pending/discard state. Reject navigation during a pending save, including a Save/link click before rerender. When idle, use the existing discard confirmation. Preserve clean navigation and modified-click/new-tab inspection. Do not call the Close callback merely to follow a link. No shared selector policy, global router blocker, persistent drafts, new modal, backend API, request retry redesign or financial changes.
Ownership: implementation agent owns `apps/stock/web-app/src/features/backtest/components/CreateBacktestDialog.tsx` and `test/integration/backtest-run-controls.test.tsx`. Root owns shared browser tests, planning records and commits. Independent review required. Other navigation surfaces remain outside this correction.
Acceptance/tests:
- Declining discard keeps the route and exact form/strategy values, without saving or creating a run.
- Accepted discard and clean same-tab navigation still reach the immutable version.
- During Save, the link cannot abandon the dialog or trigger a discard prompt; one accepted save invokes completion once and opens its saved definition.
- Modified clicks, middle clicks and explicit new-context links remain available without discarding the current form or pending request. Already-prevented events stay untouched.
- A failed save returns to ordinary dirty-draft confirmation. Existing Close, double-submit and late-unmount behavior remains covered.
- 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.