docs(research): plan partial-read recovery fixes
This commit is contained in:
parent
1c359ef8e9
commit
f4cee5affa
6 changed files with 82 additions and 4 deletions
13
docs/development/backlog/tasks/RP11.md
Normal file
13
docs/development/backlog/tasks/RP11.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RP11 — Preserve verified hypothesis links during partial history failure
|
||||
|
||||
Parent E12. Priority P2 / Medium recovery defect. Complexity S. Dependency R04. Owner continuation authorizes this correction.
|
||||
|
||||
Verified baseline: `ResearchEntry.tsx` resolves a finding's older hypothesis revision with `Promise.all` across every project hypothesis. A 503 from an unrelated history discards a successful exact match. The existing HappyDOM workspace harness reproduces the missing link; `/tmp/stock-bot-rp11-baseline.log` records the failing assertion.
|
||||
|
||||
Scope: preserve an identity-verified match despite unrelated lookup failures. When no match is found, distinguish incomplete lookup from confirmed absence. Preserve project ownership, exact revision navigation, cancellation and stale-response fencing. Use existing project refresh for retry. No API/schema change, new resolver service or persistent cache.
|
||||
|
||||
Ownership: implementation agent owns `apps/stock/web-app/src/features/research/components/ResearchEntry.tsx` and `test/integration/research-workspace-ui.test.tsx`. Root owns shared browser tests, planning state and commits. Parallel with RP12; independent review required.
|
||||
|
||||
Acceptance/tests: a valid historical match plus unrelated HTTP failure still links the exact hypothesis/revision. No match with a failed read reports incomplete resolution; all successful reads without a match report unavailable history. Refresh recovers a failed lookup. A late previous response cannot attach a link to a different selected finding or project. Existing archived-hypothesis and evidence revision behavior remains intact.
|
||||
|
||||
Gates: focused workspace UI regressions, application/authored types, lint/build, root repository check and the existing research browser workflow. No financial or execution changes.
|
||||
13
docs/development/backlog/tasks/RP12.md
Normal file
13
docs/development/backlog/tasks/RP12.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RP12 — Keep run history usable while result metrics load
|
||||
|
||||
Parent E12. Priority P2 / Medium recovery defect. Complexity S. Dependency W01. Owner continuation authorizes this correction.
|
||||
|
||||
Verified baseline: `RunsListWithMetrics.tsx` waits for every completed result before publishing any rows and passes a blocking loading state to `DataTable`. One delayed result hides already-loaded failed/active run rows. `useRunMonitoring.ts` replaces the runs array on each active poll, restarting the reads. The existing HappyDOM/Virtuoso harness reproduces zero selectable rows while two run records are already available; `/tmp/stock-bot-rp12-baseline.log` records the failure.
|
||||
|
||||
Scope: render authoritative current run records immediately and enrich their metrics independently by run/backtest identity. A pending or failed result must not hide other rows or replace current status. Preserve honest unavailable values, canonical/legacy display conventions, identity validation and stale-response fencing. Keep the fix local to the history component; no result-summary endpoint, shared table redesign, global cache or financial/throughput optimization.
|
||||
|
||||
Ownership: implementation agent owns `apps/stock/web-app/src/features/backtest/components/RunsListWithMetrics.tsx` and `test/integration/canonical-workbench.test.tsx`. Root owns shared browser tests, planning state and commits. Parallel with RP11; independent review required.
|
||||
|
||||
Acceptance/tests: all current rows remain visible/selectable while result reads are pending or failed. Polling updates status without hiding history or starving unchanged result reads. Healthy metrics become visible without waiting for unrelated reads. Removed/changed-parent rows and late unmounted reads cannot restore obsolete data. Failed reads have an honest local state and an explicit local retry. Preserve existing foreign-parent rejection and canonical/legacy drawdown tests. Browser: delay a completed result and open another saved run without creating a new one.
|
||||
|
||||
Gates: focused canonical workbench regressions, application/authored types, lint/build, root repository check and browser delayed-result navigation. No backend, accounting or API changes.
|
||||
Loading…
Add table
Add a link
Reference in a new issue