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

@ -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.