From cd1eea838a566b1d24abcd952399e609067a0dcb Mon Sep 17 00:00:00 2001 From: Boki Date: Tue, 27 Oct 2026 23:12:32 -0400 Subject: [PATCH] docs(research): close saved revision download task --- docs/development/backlog/README.md | 4 ++-- docs/development/backlog/manifest.json | 17 ++++++++++------- docs/development/backlog/tasks/RP26.md | 2 ++ docs/development/real-data-research.md | 14 ++++++++++++++ 4 files changed, 28 insertions(+), 9 deletions(-) diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index 47aa2015..722ffd55 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: 102 retained IDs — 90 done, 1 in progress, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 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: 102 retained IDs — 91 done, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 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. @@ -203,4 +203,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP25: Typed artifact reads](tasks/RP25.md) — done, `e39989c4`; authenticated reads preserve exact retained revisions, authorship, evidence and historical qualifications. -- [RP26: Saved research revision download](tasks/RP26.md) — in progress; export the displayed immutable narrative and citations for local analysis. +- [RP26: Saved research revision download](tasks/RP26.md) — done, `54349502`; download exact current/historical hypotheses, notes and findings with retained citations and authorship. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index f9b2f392..af7f5209 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.124", + "plan_revision": "2026-10-27.125", "repository_base": "b7aeca4", - "plan_status": "research_revision_download_in_progress", + "plan_status": "research_revision_download_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3820,7 +3820,7 @@ "epic": "E12", "priority": "P2", "severity": "Medium", - "status": "in_progress", + "status": "done", "dependencies": [ "R04", "RP08", @@ -3834,13 +3834,16 @@ "research-revision-download" ], "blocker": null, - "integration_state": "in_progress", - "review_status": "pending", - "completed_commit": null, + "integration_state": "accepted", + "review_status": "accepted", + "completed_commit": "54349502633dc8e570e9d5f5bb0671e63bc57b29", "completion_evidence": "real-data-research.md", "release_gates": [], "authorization": "Owner: commit and continue. Local export of loaded saved research revisions using existing download behavior; no real research execution or deferred work.", - "integration_base": "84d2a67d" + "integration_base": "84d2a67d", + "reviewer": "/root", + "planning_commit": "6ce3b68b", + "review_notes": "Root reviewed exact displayed revision export, draft custody and shared helper relocation. Six missing-action red cases; final UI 137 tests / 921 assertions; complete built Chromium workbench 23 / 862 with actual old finding/hypothesis file bytes, zero download API calls and unchanged research/run counts. App/authored types, contracts, scoped lint/formatting, secrets and diff passed; byte-identical helper move. No independent review/full repository check/full integration rerun claimed. Disposable stores stopped; no real study changes or deferred work." } ], "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/RP26.md b/docs/development/backlog/tasks/RP26.md index d5ea2a89..205838ca 100644 --- a/docs/development/backlog/tasks/RP26.md +++ b/docs/development/backlog/tasks/RP26.md @@ -19,3 +19,5 @@ Acceptance and tests: - Run workspace/finding/source and existing canonical-download UI tests, application/authored types, contracts, scoped lint/formatting, web build and the browser workbench. Record actual gates and limitations; preserve all existing financial semantics. Definition of done: demonstrate the missing action, implement this local export with the shared helper, review selected-revision/draft custody, pass checks, document the analysis-file scope, update task state and commit. No new architecture decision is needed. + +Accepted after root review: plan `6ce3b68b`, implementation `54349502`. Baseline capability checks had six failures and one existing no-action pass. Final workspace/finding/source/canonical UI checks passed 137 tests / 921 assertions; complete built Chromium workbench passed 23 / 862. Browser files matched exact API-retained old finding and hypothesis revisions, with unchanged API requests and row counts. Application/authored types, contracts, strict scoped lint, formatting, secrets and diff passed. The helper move is byte-identical and old imports are gone. Disposable stores were stopped. [Execution evidence](../../real-data-research.md#rp26--saved-research-revision-download). diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index 1942d142..2d9de0dd 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -461,3 +461,17 @@ Verification: - Application/authored-test types, contracts, explicit scoped lint, formatting, secret audit and diff checks passed. Initial authored-test checks caught fixture type widening and optional-source typing; corrected fixtures passed. Root reviewed the read/create and canonical/legacy boundaries. No independent review, build, browser or full integration-suite rerun is claimed for this client-only addition. Logs: `/tmp/stock-bot-rp25-red.log`, `rp25-client-green.log`, `rp25-tooling.log`, `rp25-postgres.log`, `rp25-postgres-final.log`, `rp25-typecheck.log`, `rp25-authored-types.log`, `rp25-contracts.log`, `rp25-lint.log`, `rp25-format.log` and `rp25-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after verification. No real study was edited or executed, automatic cycle resume was not added, and all seven conditional tasks remain deferred. + +## RP26 — Saved research revision download + +Plan `6ce3b68b`, implementation `54349502`. The web research entry now offers **Download saved revision** for hypotheses, notes and findings, including archived and explicitly selected historical revisions. The JSON contains `research-revision-export/v1`, project/entry identity and the complete saved revision displayed. The filename includes both entry and revision IDs. It preserves narrative, authorship, exact hypothesis linkage, source/report hashes, raw scalar values, units, unavailable reasons and limitations. + +Download uses the loaded saved record without an API call. Draft text is excluded and retained; pending saves disable the control. Loading, failed/missing history and stale responses cannot expose an old download. Local browser failures use a separate retry and cleanup path. The existing JSON download helper moved unchanged from the backtest feature into shared UI utilities; its result and dataset consumers use the new location. The walkthrough documents the analysis-file format and separate run/dataset downloads. No backend, financial engine or execution policy changed. + +Verification: + +- Baseline capability checks: six failures at the missing action, one existing loading/error case passed. Final workspace/finding/source/canonical UI suites: **137 passed / 921 assertions**, including current/historical export, archival state, raw precision/nulls, draft preservation, pending-save guard, failures/retry, temporary URL cleanup and existing result/dataset downloads. +- Complete production-built Chromium workbench: **23 passed / 862 assertions**, zero failures. Actual downloaded files match an older finding after a later human edit and the exact earlier AI hypothesis revision. API request collection remains empty during download, and run/dispatch/artifact-revision/hypothesis-revision counts are unchanged. Existing native financial/reproduction workflows pass. +- Web production build, application/authored-test types, contracts, explicit scoped lint, formatting, secret audit and diff checks passed. Initial test-style brace/format findings were corrected. The moved helper compares byte-for-byte with its original implementation; no old source import remains. Root reviewed selection/draft custody. No independent review, full repository check or full integration-suite rerun is claimed. The existing nonblocking Vite chunk warning remains. + +Logs: `/tmp/stock-bot-rp26-red.log`, `rp26-ui.log`, `rp26-browser.log`, `rp26-typecheck.log`, `rp26-authored-types.log`, `rp26-contracts.log`, `rp26-lint.log`, `rp26-format.log` and `rp26-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL/Redis containers were stopped after verification. No real study was changed or run. All seven conditional tasks remain deferred.