test(daemon): pin the acting route's own ambiguity issuance (ADR 0014 follow-up to #3340)
Merged
TH
2mo ago+94+94+01234567890123456789-10-10-01234567890123456789
Summary
Follow-up to the merged #3340, carrying the two findings its final review round confirmed as not-yet-shipped (the maintainer merged c6acd1e5e at 06:59Z before this commit landed).
- Acting-route coverage pin. The touch runtime's consumed-capture slot had no test of its own: deleting
consumedCapture.state = snapshot(interaction-runtime.ts) degraded everypress/fillambiguity to count-only with zero red tests — the existing press test pressed anis-minted ref and traveled the selector-route seam. A newhandleInteractionCommandstest presses an ambiguouslabel=and asserts the refusal itself carriesrefsGenerationand arefFrameScopeequal to the printed candidate bodies. Mutation-checked: removing the slot fill makes exactly this test fail. - Docblock narrowing.
publishAmbiguousMatchCandidateRefsclaimed everyAMBIGUOUS_MATCHproducer runs through it;find's refusal (buildAmbiguousMatchError, #1597) prints candidates without issuing and never called it. Narrowed to the routes that consume the rule, with find's contract stated explicitly (norefsGeneration, hint routes to narrowing, no issued-ref affordance advertised). Making find's candidates issuable is a separate contract change for a maintainer to decide.
Validation
pnpm check:affected --run(one run) at266d23891: all runnable checks passed.- The reviewer's four-step live iOS RN Catalog gate was executed at this head (runtime code identical to merged
c6acd1e5eplus test/docblock changes): raw output posted on #3340 — ambiguousis visible 'role=text'→AMBIGUOUS_MATCH matches=22+ 5 pinned candidates (~s367781= issued generation); plain@e2refused (partial frame,plain_ref_requires_complete_frame); pinned@e3~s367781tapped at (148, 30) = the listed candidate's rect center.