refactor(android): drop the dead scope-level adb server port lane (review follow-ups)

Merged
TH
2mo ago
+131-692

Summary

Review follow-ups from #3370 and #3372 that missed the stack merge:

  • Drop the scope-level Android adb server-port lane. #3372 deleted its only producer (managed-device-reachability.ts). withAndroidAdbProvider's scoped host transport and the construction-time serverPort on createLocalAndroidAdbProvider, createDeviceAdbExecutor, the serial executor and the spawner are removed, with their scope-only tests. A port now reaches adb only through the per-call AndroidAdbExecutorOptions.serverPort, which keeps its coverage. androidAdbSerialTarget (an internal mechanics facet) loses its port parameter, and port reverse, which has no per-call port, can no longer target a private server; nothing produced that.
  • ADR 0021 §3: the agent-device/android-adb functions run the caller's own executor, so the per-call serverPort takes effect only when that executor honors it.
  • Fallow: the per-symbol scripts/ ignoreExports entries are dropped, since the production config's ignoreFindings: ["scripts/**"] already covers them (#3370 review). The base check:fallow doesn't need them either.
  • Rewraps the device-claim-rule.ts doc comment.

9 files, +131/−692.

Validation

Tested e37d01ca7 on main c2c09d476: pnpm check:affected --run passed (all runnable checks). Android: 115 files / 1,017 tests. check:fallow and check:production-exports pass on fallow 3.32. Dead-path removal, so no live device run applies.

🤖 Generated with Claude Code