fix(research): keep experiment choices after linked template failure (RP10)

This commit is contained in:
Boki 2026-10-27 13:37:48 -04:00
parent 49da701aa7
commit f0e7d07476
5 changed files with 230 additions and 8 deletions

View file

@ -11,3 +11,5 @@ Ownership: experiment agent owns `useExperimentTemplates.ts`, a small `Experimen
Acceptance/tests: 404/transport failure of the linked lookup leaves valid catalog options selectable and missing selection explicitly unavailable. Choosing a valid option preserves name/grid and enables normal preview; no save or submission occurs merely by selecting. Retry can recover the linked option without changing the current choice. List errors, empty catalogs, pagination and unavailable/noncanonical selections retain honest states. Late lookup/list replies after parent change, reload or unmount cannot replace current choices. Use existing test fixtures.
Gates: focused experiment/cost/validation tests, application/authored types, strict lint/build, root full repository check and browser recovery from a missing query-string backtest ID. No financial, execution, statistical or conditional optimization changes.
Accepted October 27, 2026. Missing and failed linked-template regressions failed on the baseline before the fix. Independent review passed 38 focused tests / 207 assertions. Root full repository check passed, including 1,334 integration and 150 Rust tests; the actual browser recovery scenario passed in the full invocation and continued through the existing durable experiment workflow. It verifies the missing selection, valid alternatives, unchanged draft/template and zero submissions until explicit action. [Combined evidence](../../real-data-research.md) records all gates and the separate clone-fixture correction. No editor, transport, backend or financial changes were required.