refactor: keep test-only code out of production exports

Merged
TH
2mo ago
+334-368

Summary

check:production-exports listed 59 production-unused exports but never failed: fallow 2.x --fail-on-issues ignored the gate's warn severity. This clears them before the fallow 3.32 upgrade (next PR in the stack) makes the gate enforce again, as #1282 intended.

None has an external consumer. GitHub code search across the 19 public repos importing agent-device (including tester-army/e2e / @e2edev/mobile) found no use, none is documented, and none is reachable from src/sdk/* or src/ai-sdk.

  • Test support leaves production modules: the maestro conformance projection joins its harness in packages/maestro/test/conformance/; helpers move to co-located *.fixtures.ts.
  • Tests import source modules instead of facade re-exports only tests read, or drive the production caller (buildIosInteractiveSnapshotPresentation, iosSnapshotComparisonIdentityKey, resolveElementReportedTwice). Test-only wrappers and a duplicate equality predicate are removed.
  • chore(gates) records seams fallow cannot see. Among them are the staged managed-local lease foundations (ADR 0021). Their Simlock side, simlock#70, was closed as not planned. Removing that feature changes persisted record formats, so it is left for a separate decision.

80 files. The moved conformance projection gets new health-baseline entries for its pre-existing complexity findings: fallow 2.104 counts a moved file as changed, and the old path never needed an entry. An unused test helper is also dropped.

Validation

Tested 600c3cb39 (rebased on main 19203c620): pnpm check:affected --run passed (full check set, selected fail-open by the tooling and config changes). maestro:conformance 62/62 and scripts/ios-snapshot-differential.test.ts 12/12 (node:test suites outside vitest). Pure tooling and test refactor, so no device run applies.

🤖 Generated with Claude Code