docs(research): close strategy custody and template recovery stories

This commit is contained in:
Boki 2026-10-27 13:38:16 -04:00
parent f0e7d07476
commit 1c359ef8e9
4 changed files with 44 additions and 16 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
Current follow-up: [real-data research workflow](real-data-research.md), 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. All 73 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), 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. 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.
## 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: 86 retained IDs — 73 done, 2 in progress, 7 deferred, 4 merged.** RP01–RP08 add the authorized real-data workflow and its dataset reuse/custody/export 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: 86 retained IDs — 75 done, 7 deferred, 4 merged.** RP01–RP10 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.
@ -172,5 +172,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP08: Original run result download](tasks/RP08.md) — done, `e8a6b709`; reuse the loaded canonical result for local analysis.
- [RP09: Strategy handoff custody](tasks/RP09.md) — in progress; finish or clear publication/clone work before handing a version to backtest setup.
- [RP10: Missing-template recovery](tasks/RP10.md) — in progress; preserve valid experiment choices when the linked template lookup fails.
- [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.

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.97",
"plan_revision": "2026-10-27.98",
"repository_base": "b7aeca4",
"plan_status": "strategy_handoff_and_experiment_recovery_in_progress",
"plan_status": "strategy_handoff_and_experiment_recovery_complete",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3315,7 +3315,7 @@
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"status": "done",
"dependencies": [
"R02",
"A02"
@ -3327,12 +3327,15 @@
"write_locks": [
"strategy-handoff-custody"
],
"completed_commit": null,
"completed_commit": "49da701aa76b83a5eb5acf5ea1b51cc9313493a4",
"blocker": null,
"integration_state": "implementing",
"integration_base": "ba0dea32",
"integration_state": "accepted",
"integration_base": "c24410e5dd7ca720b72a30a28760ce4fc3f4c67d",
"completion_evidence": "real-data-research.md",
"release_gates": []
"release_gates": [],
"review_status": "accepted",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent review accepted. Full repository check passed: 1334 integration and 150 Rust tests. All 21 browser scenarios covered by 20 successful full-suite scenarios and the corrected RP09 focused rerun (50 assertions); initial fixture lineage-count assumption corrected without application changes. Authored types/lint/build pass; evidence records exact results."
},
{
"id": "RP10",
@ -3340,7 +3343,7 @@
"epic": "E12",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"status": "done",
"dependencies": [
"R07"
],
@ -3351,12 +3354,15 @@
"write_locks": [
"experiment-template-loading"
],
"completed_commit": null,
"completed_commit": "f0e7d074760841f6f59c83334f929f94ed1b50ed",
"blocker": null,
"integration_state": "implementing",
"integration_base": "ba0dea32",
"integration_state": "accepted",
"integration_base": "c24410e5dd7ca720b72a30a28760ce4fc3f4c67d",
"completion_evidence": "real-data-research.md",
"release_gates": []
"release_gates": [],
"review_status": "accepted",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent review accepted. Full repository check passed: 1334 integration and 150 Rust tests. All 21 browser scenarios covered by 20 successful full-suite scenarios and the corrected RP09 focused rerun (50 assertions); initial fixture lineage-count assumption corrected without application changes. Authored types/lint/build pass; evidence records exact results."
}
],
"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

@ -174,3 +174,25 @@ Root validation:
The first full browser invocation passed 20 scenarios but failed the archive scenario during fixture shutdown (`pendingWebSockets=1`, no tracked sockets). All archive application assertions completed; the shutdown failure repeated in isolation. The fixture now returns WebSocket upgrades synchronously while keeping ordinary HTTP handling asynchronous. The focused archive test and then the complete suite passed; original cleanup deadlines/errors remain enforced. No timing probes or timeout increases were retained, and the production server wrapper was not changed. This is observed fixture validation, not a claim that a Bun internals defect has been proven or a production reliability issue fixed.
Logs: `/tmp/stock-bot-rp08-root-check.log`, `/tmp/stock-bot-rp08-root-test-types-final.log`, `/tmp/stock-bot-rp08-browser.log` (initial failure), `/tmp/stock-bot-rp08-browser-archive-sync.log`, `/tmp/stock-bot-rp08-browser-final.log` and `/tmp/stock-bot-rp08-independent.log`. Browser tests use disposable PostgreSQL/Redis fixtures. No development research runs, paper/live operations or deferred optimization were activated.
## RP09 / RP10 — Strategy custody and experiment recovery
Implementation commits `49da701a` (RP09) and `f0e7d074` (RP10) are accepted. The manifest now contains 75 completed scheduled tasks, seven deferred conditional tasks and four merged redirects: 86 IDs total.
Owner continuation authorized two reproduced workflow corrections; planning commit `c24410e5` freezes their scope. RP09's baseline UI tests showed **Use in backtest** navigating away during pending and lost-response clones without consulting the discard confirmation, losing the route's retry receipt. RP10's baseline hook/editor tests showed a missing linked backtest hiding a successfully loaded catalog of valid alternatives.
RP09 reuses existing parent state to block backtest handoff until publication/clone work is finished or cleared. It prevents competing publication and clone operations in both UI orders; normal validated parameter transfer and the existing metadata confirmation remain unchanged. There is no new modal, router blocker, persistence mechanism or backend change. The browser's deliberately abandoned routes retain their existing behavior; this correction is scoped to handoff and competing operations. [Usage](../guide/strategy-development.md#from-source-code-to-a-saved-candidate).
RP10 publishes the valid catalog before attempting an optional linked-template lookup and reports that lookup's failure separately. The unavailable selection remains explicit; choosing another template keeps the name and parameter grid. Retry and pagination preserve the current ownership fences and canonical eligibility filter. No automatic selection, save, preview or submission was added. [Usage](../guide/backtest-walkthrough.md#grow-one-run-into-a-research-workflow).
Independent reviewer `/root/review_recovery_changes` accepted both implementations and root's browser fixtures: RP09 29 focused tests / 199 assertions; RP10 38 / 207. RP10's implementer also passed 193 tests / 784 assertions across five suites with a temporary browser-origin preload for existing static browser-parser imports. That preload was not needed for the independent focused suite or root's full repository gate; no test harness workaround was committed.
Root validation:
- `CARGO_BUILD_JOBS=2 bun run check`: passed — 134 tooling, 43 utility, 44 calculation, 1,334 integration and 150 Rust tests. Existing 14 conditional integration skips and 4 ignored Rust measurements remain. Build, types, contracts, strict lint and secret audit passed.
- Root-authored browser tests passed TypeScript checking after correcting a fixture-only array-index assertion. Implementer application/authored types, strict lint, formatting and production builds passed.
- Chromium: 20 scenarios passed in the full invocation. The augmented clone scenario completed the receipt-recovery checks but failed a fixture assertion that assumed no earlier parent-linked revision existed. The catalog automatically links a new publication to the latest family version when no parent is supplied. The corrected test snapshots that count and requires exactly one additional version; its focused rerun passed with 50 assertions. Together these cover all 21 scenarios; the initial full invocation is not reported as all-pass. No application code changed after it.
- The clone browser regression delays the actual committed response, verifies blocked handoff, loses that response and retries through the existing route. Both attempts use the same body/key and recover the same original version; normal parameter handoff and saved-draft behavior remain covered. The independent reviewer accepted the count correction after checking the catalog's default lineage behavior.
- 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.