docs(research): close retained dataset export story

This commit is contained in:
Boki 2026-10-27 11:00:29 -04:00
parent b959779ada
commit 105e372e06
4 changed files with 15 additions and 10 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. All 71 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 for local exploration. All 72 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: 83 retained IDs.** RP01–RP06 add the authorized real-data workflow and its dataset reuse/custody 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: 83 retained IDs — 72 done, 7 deferred, 4 merged.** RP01–RP07 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.
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.
@ -168,4 +168,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP05: Retained dataset reuse](tasks/RP05.md) — done, `6d549542`; load older catalog pages or select and verify a known hash.
- [RP06: Settings and preparation custody](tasks/RP06.md) — done, `c838e3d0`; preserve the current backtest draft and captured retry across tabs/run URLs.
- [RP07: Retained dataset download](tasks/RP07.md) — in progress; export validated original inputs for local research.
- [RP07: Retained dataset download](tasks/RP07.md) — done, `b959779a`; export validated original inputs for local research.

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.93",
"plan_revision": "2026-10-27.94",
"repository_base": "b7aeca4",
"plan_status": "retained_dataset_export_in_progress",
"plan_status": "retained_dataset_export_complete",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3257,7 +3257,7 @@
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"status": "done",
"dependencies": [
"RP05",
"R05"
@ -3270,12 +3270,15 @@
"retained-dataset-export-route",
"retained-dataset-download-ui"
],
"completed_commit": null,
"completed_commit": "b959779ada2561870f51d43ccd122c922572f1e5",
"blocker": null,
"integration_state": "implementing",
"integration_base": "d465e270",
"integration_state": "accepted",
"integration_base": "43ea2cc9b69610066a78ef5395a77ecae21cb7b0",
"completion_evidence": "real-data-research.md",
"release_gates": []
"release_gates": [],
"review_status": "accepted",
"reviewer": "/root/review_cleanup_backend",
"review_notes": "Independent API/UI and root fixture review accepted. Full repository check passed; disposable PostgreSQL 14 tests / 183 assertions and all 21 Chromium scenarios / 721 assertions passed. Usage documentation independently accepted."
}
],
"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

@ -138,6 +138,8 @@ Logs: `/tmp/stock-bot-rp05-root-check.log`, `/tmp/stock-bot-rp05-browser.log`, `
Owner continuation on October 27 authorized this follow-up; planning commit `43ea2cc9` records the frozen API/UI contract. Existing catalog endpoints returned descriptors without bars, forcing local exploration to reach into the database. The new `GET /api/v2/datasets/canonical/:hash/export` reuses `readCanonicalDataset` once to return the validated full v2 `{manifest,bars}` snapshot. It preserves canonical identity, converted parent hashes, timestamps, availability delays, source ordinals and null VWAP. JSON formatting and downloaded-file byte hashes are not dataset identity guarantees.
Implementation commit `b959779a` is accepted. The manifest now contains 72 completed scheduled tasks, seven deferred conditional tasks and four merged redirects: 83 IDs total.
The loader's typed rejection extends its existing request-error base, preserving admission/catalog catches and messages. Invalid, missing, corrupt/mismatched and unsupported datasets return 400, 404, 409 and 422 respectively; unexpected errors are sanitized. Route-handled responses are no-store/nosniff, and only validated success receives an attachment filename. Cancellation fences delivery. Existing authentication is unchanged; tests use the real research-credential resolver to prove dataset routes remain unavailable to research-agent tokens.
A shared download action appears for a verified setup selection and full canonical results. Result downloads use the original immutable request hash, independently of the editable template. The browser checks the response envelope/identity, preserves the received text, supports retry, prevents duplicate clicks and fences pending bodies on hash change/unmount. Full content/hash validation stays on the server; there is no browser financial engine or new export format. [Usage](../backtest-datasets.md#downloading-a-retained-snapshot-for-local-exploration) covers VS Code/notebook inspection and the existing CLI importer.