docs(research): close partial-read recovery stories

This commit is contained in:
Boki 2026-10-27 14:16:15 -04:00
parent a050c71012
commit 610dcfcebc
6 changed files with 42 additions and 12 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
Current follow-up: [real-data research workflow](real-data-research.md). RP11/RP12 address verified partial-read recovery defects; all preceding work is accepted. 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. All 75 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). RP11/RP12 complete the verified partial-read recovery fixes. 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 77 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: 88 retained IDs — 75 done, 2 in progress, 7 deferred, 4 merged.** RP01–RP12 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: 88 retained IDs — 77 done, 7 deferred, 4 merged.** RP01–RP12 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.
@ -175,5 +175,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP09: Strategy handoff custody](tasks/RP09.md) — done, `49da701a`; finish or clear publication/clone work before handing a version to backtest setup.
- [RP10: Missing-template recovery](tasks/RP10.md) — done, `f0e7d074`; preserve valid experiment choices when the linked template lookup fails.
- [RP11: Partial hypothesis-history recovery](tasks/RP11.md) — in progress; retain verified exact links despite unrelated history errors.
- [RP12: Available run history](tasks/RP12.md) — in progress; keep saved runs selectable while optional metrics load.
- [RP11: Partial hypothesis-history recovery](tasks/RP11.md) — done, `32f40ee7`; retain verified exact links despite unrelated history errors.
- [RP12: Available run history](tasks/RP12.md) — done, `a050c710`; keep saved runs selectable while optional metrics load.

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.99",
"plan_revision": "2026-10-27.100",
"repository_base": "b7aeca4",
"plan_status": "partial_read_recovery_in_progress",
"plan_status": "partial_read_recovery_complete",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3370,7 +3370,7 @@
"epic": "E12",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"status": "done",
"dependencies": [
"R04"
],
@ -3382,10 +3382,14 @@
"research-hypothesis-reference"
],
"blocker": null,
"integration_state": "pending",
"integration_state": "accepted",
"completion_evidence": "real-data-research.md",
"release_gates": [],
"review_status": "pending"
"review_status": "accepted",
"completed_commit": "32f40ee753081612dc83f1bef753e218b50c7bf6",
"integration_base": "f4cee5affa257660c1ebb5f8b93f411eddb58ee0",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent review accepted: 20 focused tests / 90 assertions. Root repository check passed: 1347 integration and 150 Rust tests. Complete Chromium suite passed: 21 scenarios / 750 assertions, including both partial-read regressions. Application/authored types, lint, formatting and build passed; real-data-research.md records exact evidence."
},
{
"id": "RP12",
@ -3393,7 +3397,7 @@
"epic": "E12",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"status": "done",
"dependencies": [
"W01"
],
@ -3405,10 +3409,14 @@
"run-history-enrichment"
],
"blocker": null,
"integration_state": "pending",
"integration_state": "accepted",
"completion_evidence": "real-data-research.md",
"release_gates": [],
"review_status": "pending"
"review_status": "accepted",
"completed_commit": "a050c7101207d47f85db5f17a3ab087f2473f93e",
"integration_base": "f4cee5affa257660c1ebb5f8b93f411eddb58ee0",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent review accepted: 41 focused tests / 344 assertions. Root repository check passed: 1347 integration and 150 Rust tests. Complete Chromium suite passed: 21 scenarios / 750 assertions, including both partial-read regressions. Application/authored types, lint, formatting and build passed; real-data-research.md records exact 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.",

View file

@ -11,3 +11,5 @@ Ownership: implementation agent owns `apps/stock/web-app/src/features/research/c
Acceptance/tests: a valid historical match plus unrelated HTTP failure still links the exact hypothesis/revision. No match with a failed read reports incomplete resolution; all successful reads without a match report unavailable history. Refresh recovers a failed lookup. A late previous response cannot attach a link to a different selected finding or project. Existing archived-hypothesis and evidence revision behavior remains intact.
Gates: focused workspace UI regressions, application/authored types, lint/build, root repository check and the existing research browser workflow. No financial or execution changes.
Accepted October 27, 2026; implementation `32f40ee7`. Independent review passed 20 focused tests / 90 assertions. Root repository check passed, including 1,347 integration and 150 Rust tests. Complete Chromium suite passed all 21 scenarios / 750 assertions, including the actual partial-read browser regression. Application/authored types, strict lint, formatting and builds passed. [Combined evidence](../../real-data-research.md) records the gates and limitations.

View file

@ -11,3 +11,5 @@ Ownership: implementation agent owns `apps/stock/web-app/src/features/backtest/c
Acceptance/tests: all current rows remain visible/selectable while result reads are pending or failed. Polling updates status without hiding history or starving unchanged result reads. Healthy metrics become visible without waiting for unrelated reads. Removed/changed-parent rows and late unmounted reads cannot restore obsolete data. Failed reads have an honest local state and an explicit local retry. Preserve existing foreign-parent rejection and canonical/legacy drawdown tests. Browser: delay a completed result and open another saved run without creating a new one.
Gates: focused canonical workbench regressions, application/authored types, lint/build, root repository check and browser delayed-result navigation. No backend, accounting or API changes.
Accepted October 27, 2026; implementation `a050c710`. Independent review passed 41 focused tests / 344 assertions. Root repository check passed, including 1,347 integration and 150 Rust tests. Complete Chromium suite passed all 21 scenarios / 750 assertions, including the actual partial-read browser regression. Application/authored types, strict lint, formatting and builds passed. [Combined evidence](../../real-data-research.md) records the gates and limitations.

View file

@ -196,3 +196,21 @@ Root validation:
- The experiment browser regression opens a real missing-UUID link, observes 404, keeps another valid template selectable and preserves name/grid when it is chosen. It checks unchanged template and zero experiments/runs/dispatch records before explicit preview, then completes the existing durable experiment workflow.
Logs: `/tmp/stock-bot-rp09-rp10-root-check.log`, `/tmp/stock-bot-rp09-root-test-types-final.log`, `/tmp/stock-bot-rp09-rp10-browser.log`, `/tmp/stock-bot-rp09-browser-clone-final.log`, `/tmp/stock-bot-rp09-independent.log` and `/tmp/stock-bot-rp10-independent.log`. Browser tests use disposable PostgreSQL/Redis. No development research runs, paper/live operations or conditional optimization were activated.
## RP11 / RP12 — Partial-read recovery
Planning commit `f4cee5af` scopes two verified UI defects. Implementation commits `32f40ee7` (RP11) and `a050c710` (RP12) are independently accepted. The manifest contains 77 completed tasks, seven deferred tasks and four merged redirects: 88 IDs total.
RP11 retains a verified exact hypothesis/revision link when another hypothesis history fails. An incomplete lookup without a match remains retryable through project refresh; a fully checked history without a match reports absence. Existing ownership checks and stale-response fencing remain. The browser advances the cited hypothesis, creates an unrelated hypothesis, fails only that unrelated history read, then opens the original cited revision and its original proposition.
RP12 renders current run records immediately and loads each completed result independently. Status polling preserves unchanged reads; slow or failed metrics cannot hide saved runs. Failed reads offer a row-local retry, and removed, changed-parent or unmounted requests lose ownership. A small component-local request map coordinates this lifecycle. The browser delays an actual completed result, opens another saved run while the first read remains pending and verifies unchanged saved-run IDs/statuses. No API, shared table, financial semantics or global cache changed.
Both baseline probes failed before implementation. Independent reviewer `/root/review_recovery_changes` accepted RP11 with 20 focused tests / 90 assertions and RP12 with 41 / 344, plus both browser additions. Tests include partial failure, retry, status polling, identity checks and late-response ownership.
Root validation:
- `CARGO_BUILD_JOBS=2 bun run check`: passed — 134 tooling, 43 utility, 44 calculation, 1,347 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, 750 assertions. Fresh disposable PostgreSQL/Redis fixtures were used. Both new regressions passed in this full invocation.
- Authored test types, scoped formatting and diff checks passed. Implementer package-local declaration checking initially encountered the existing `paperApi.ts` TS4023 issue; repository typechecking and the proper no-emit application check passed. No workaround was committed.
Logs: `/tmp/stock-bot-rp11-baseline.log`, `/tmp/stock-bot-rp12-baseline.log`, `/tmp/stock-bot-rp11-independent.log`, `/tmp/stock-bot-rp12-independent.log`, `/tmp/stock-bot-rp11-rp12-root-check.log`, `/tmp/stock-bot-rp11-rp12-browser-types.log` and `/tmp/stock-bot-rp11-rp12-browser.log`. No development research execution, paper/live activation or conditional performance work was performed.