2.2 KiB
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.
Accepted October 27, 2026; implementation 32f40ee7. Independent review passed 20 focused tests / 90 assertions. Root repository check passed, including 1,347 integration and 150 Rust tests. Complete Chromium suite passed all 21 scenarios / 750 assertions, including the actual partial-read browser regression. Application/authored types, strict lint, formatting and builds passed. Combined evidence records the gates and limitations.