Skip to content

Commit 52402ae

Browse files
authored
refactor(daemon): split touch interaction orchestration into semantic modules (#1748)
* refactor(daemon): split touch interaction orchestration Closes part of #1691: interaction-touch.ts becomes a router; press, fill, direct-iOS, shared runtime, Android readiness, and response projection each own one module. Behavior is unchanged. * test(daemon): split touch interaction coverage by module Redistributes all 87 discovered cases across the new module topology and re-keys the two touch-family fallow baseline entries to the paths that now hold the same (net one fewer) findings. * docs: point ADR 0014 at the merged Android readiness regression file * refactor(daemon): give targeted-touch admission its own module Keeps interaction-touch-press.ts inside the 300-line budget after the complexity decomposition: admission (surface/capability/button policy, target parsing, @ref staleness and mutation admission) answers its own question. * refactor(daemon): drop the redundant targeted-touch label alias * test(daemon): split touch suites along the new production seams Adds the press-admission suite the production module was missing and splits the four over-budget suites along new production seams (direct-iOS eligibility, Android ref freshness, touch payload). Every suite installs the full device mock set: three Android-session cases regressed to TOOL_MISSING on a runner without adb when the mock set was trimmed per file.
1 parent 943913a commit 52402ae

27 files changed

Lines changed: 5625 additions & 4366 deletions

docs/adr/0014-session-ref-frame-lifetime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Accepted; implemented and enforced on `main` across all platforms. Fresh live ev
66
every production seam except Android blocking-dialog recovery, which shipped as a documented,
77
accepted gap: no deterministic repro exists to raise the system dialog on demand, and the seam's
88
transition and abort logic are pinned by fixture regressions
9-
(`android-system-dialog-ref-frame.test.ts`, `interaction-android-recovery-abort.test.ts`). The
9+
(`android-system-dialog-ref-frame.test.ts`, `interaction-touch-android-readiness.test.ts`). The
1010
staged migration plan lives in this file's git history; PR #1241 was an earlier compatible
1111
transitional fix, not this architecture migration.
1212

fallow-baselines/health.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,24 @@
148148
"count": 1
149149
}
150150
},
151-
"src/daemon/handlers/__tests__/interaction.test.ts": {
151+
"src/daemon/handlers/__tests__/interaction-touch.test.ts": {
152152
"crap_moderate": {
153-
"count": 6
153+
"count": 2
154+
}
155+
},
156+
"src/daemon/handlers/__tests__/interaction-touch-press.test.ts": {
157+
"crap_moderate": {
158+
"count": 3
159+
}
160+
},
161+
"src/daemon/handlers/__tests__/interaction-touch-press-admission.test.ts": {
162+
"crap_moderate": {
163+
"count": 2
164+
}
165+
},
166+
"src/daemon/handlers/__tests__/interaction-touch-response.test.ts": {
167+
"crap_moderate": {
168+
"count": 1
154169
}
155170
},
156171
"src/daemon/handlers/__tests__/record-trace.test.ts": {
@@ -215,11 +230,6 @@
215230
"count": 1
216231
}
217232
},
218-
"src/daemon/handlers/interaction-touch.ts": {
219-
"crap_moderate": {
220-
"count": 3
221-
}
222-
},
223233
"src/daemon/handlers/record-trace.ts": {
224234
"complexity_moderate": {
225235
"count": 1

src/daemon/handlers/__tests__/interaction-android-recovery-abort.test.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)