docs(research): plan canonical result download
This commit is contained in:
parent
105e372e06
commit
dd1545b9f8
4 changed files with 47 additions and 3 deletions
13
docs/development/backlog/tasks/RP08.md
Normal file
13
docs/development/backlog/tasks/RP08.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RP08 — Download the original canonical run result for local analysis
|
||||
|
||||
Parent E12. Priority P2 / workflow gap. Complexity S. Dependencies RP07 and R05. Owner continuation authorizes this scoped addition; financial semantics and conditional work remain unchanged.
|
||||
|
||||
Evidence: `CanonicalResults.tsx` displays selected provenance, metrics, fills and curves but offers no complete result file. `services/backtests/results.ts` already verifies the retained canonical financial report, admitted request and analytics before returning it. `useRunMonitoring` binds that response to the selected run/backtest. RP07 provides frozen observations for local exploration; the corresponding output still requires a manual API call.
|
||||
|
||||
Scope: add **Download run result** to full canonical results, using the already loaded `CanonicalRunResult` as JSON. Filename `run-<runId>.json`; retain the complete object, decimal strings, null/unavailable reasons, original request, versions, hashes and limitations. No new request on click, financial calculations, schema/envelope, endpoint, database mutation or run submission. Keep fills-only and legacy views unchanged. A small shared JSON-text download helper may consolidate RP07's Blob/anchor/URL cleanup; do not build a generalized download framework. Render browser failures inline with retry and clear stale errors when the displayed run changes. No asynchronous download state machine is needed for an already loaded object.
|
||||
|
||||
Ownership: one frontend agent owns the result action, minimal shared download helper, DatasetDownload adaptation and focused UI regressions. Root owns the existing Chromium native-smoke extension, usage/evidence docs, manifest and integration. Independent reviewer checks identity, unchanged values, cleanup, no transport/write side effects and scope.
|
||||
|
||||
Acceptance/tests: a downloaded file deep-equals the displayed canonical API result, including decimal amounts, null reasons and full original provenance. Distinct run IDs produce the corresponding filenames and contents; failed Blob/click work creates no success and releases resources. Downloading does not fetch, save settings, create runs or mutate the result. Preserve RP07 cancellation/raw-text semantics. Chromium reopens an original native run after changing its editable template, downloads the result and compares the complete JSON with that original API response; run/dispatch counts remain unchanged. Existing run-selection tests remain the identity gate; do not add a competing result validator or async loader.
|
||||
|
||||
Gates: focused result/download UI tests, authored-test/application types, strict lint, production build, root full repository check and Chromium workbench. Document that the JSON is analysis evidence, not a standalone replay archive: dataset bars and engine binaries are separate, and retained strategy JavaScript is data, not automatically executed. No candidate approval, research execution, paper/live activation or performance work.
|
||||
Loading…
Add table
Add a link
Reference in a new issue