refactor(apple): remove redundant cleanup platform state

Merged
TH
4h ago
+11-30

Summary

Resolve XCTest cleanup platforms from one metadata map. Remove the duplicate supported-platform set, precomputed path map and two redundant lookup/error helpers. Pass the validated label to formatting.

One file changes: 11 additions, 30 deletions. Input rejection, override containment, symlink refusal, sibling preservation and output remain intact. No tests or guards are weakened. Follow-up to #4382, related to #4371 and #4368.

Validation

Head: ab7f0483669555a0bb06008915313f2ed664a0a9; base: 89d63c57280116f7b09db0a2aa7d36a85a810e67.

  • Range-diff matches the independently reviewed 974f344 patch exactly. Its 27 focused checks passed; the rebase changes no cleanup code.
  • Frozen install/build and standalone lint passed. Exact-head affected validation passed checks through package, then failed integration-node; exactCommit=true, checkoutChanged=false. Remaining runnable lanes did not run; owned skips remain.
  • The prior lint blocker was corrected upstream through #4358; #4392 closed as redundant.
  • The new installed-package JSON failure reproduced on the unchanged 89d base with the same command: 152 passed, 1 failed, 13 skipped. Receipt and comparison. Cause confirmed: Maestro child entry guards skip execution through symlinks. Separate repair tracked by #4395; no unrelated fix included here.
  • Draft until that correction is incorporated and current-head validation/CI pass. No device behavior changed or new device run claimed.