fix(daemon): delete the no-change interaction retry path

Merged
TH
2mo ago
+176-1376

Summary

Deletes the daemon's no-change interaction retry. The retry had no producer: nothing has set interactionOutcome.retryOnNoChange since #709 removed the Maestro producer (released in v0.17.0; the flag came in #644, v0.16.x), so no shipped client could set the flag and no client sees a behavior change. The daemon observes an interaction's outcome after it and never re-sends it. The interactionOutcome request flag and SessionState.pendingInteractionOutcome are removed.

deferred-interaction-outcome.ts keeps its name and interface (post-gesture stabilization and Android freshness) and now also owns stripInternalInteractionFlags. interaction-outcome-policy.ts, which now only builds and compares surface signatures, is renamed to interaction-surface-signature.ts.

Public API: the flag never appeared in CLI grammar, config, Node client, or MCP schema.

Wire ledger: answered, no decision needed. test/wire-compat/closure-policy.ts waives CommandFlags#CommandFlags because flags travel as an untyped record in DaemonRequest.flags: Record<string, unknown>, so the #3073 ledger condition is satisfied by that waiver, with no ledger entry and no protocol bump.

Closes #3073
Part of #3069
Touches 36 files (production +48/-536).
Stacked on #3071

Validation

  • Tested commit: e00c20206887dc8f49656efda364ad0a01347901
  • pnpm check:affected --run: exited 1 only on 8 timeouts of 5000ms in untouched files (four packages/platform-apple runner suites and scripts/__tests__/apple-ci-impact.test.ts); those 5 files rerun alone pass, 133/133. Typecheck, layering, fallow, format check and the docs budget (39881 of 40000 bytes) pass.
  • Live evidence: not device-facing.

Notes:

  • Maestro retryTapIfNoChange (packages/maestro/src/daemon-port/daemon-runtime-tap.ts) is a flow-authored retry: an ordinary press that crosses the leaf seam like any other action. Untouched.
  • Replay press/click with postGestureStabilization: true would name request positionals (e.g. press @e3) in the warning instead of the resolved point. Unreachable: the only production writer (Maestro) sets postGestureStabilization: false.
  • Diagnostics phases interaction_settled, interaction_settle_timeout, interaction_no_change_retry(_skipped) are no longer emitted.