test(daemon): pin the acting route's own ambiguity issuance (ADR 0014 follow-up to #3340)

Merged
TH
2mo ago
+94-10

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

  1. 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 every press/fill ambiguity to count-only with zero red tests — the existing press test pressed an is-minted ref and traveled the selector-route seam. A new handleInteractionCommands test presses an ambiguous label= and asserts the refusal itself carries refsGeneration and a refFrameScope equal to the printed candidate bodies. Mutation-checked: removing the slot fill makes exactly this test fail.
  2. Docblock narrowing. publishAmbiguousMatchCandidateRefs claimed every AMBIGUOUS_MATCH producer 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 (no refsGeneration, 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) at 266d23891: all runnable checks passed.
  • The reviewer's four-step live iOS RN Catalog gate was executed at this head (runtime code identical to merged c6acd1e5e plus test/docblock changes): raw output posted on #3340 — ambiguous is visible 'role=text' → AMBIGUOUS_MATCH matches=22 + 5 pinned candidates (~s367781 = issued generation); plain @e2 refused (partial frame, plain_ref_requires_complete_frame); pinned @e3~s367781 tapped at (148, 30) = the listed candidate's rect center.