refactor(replay): pass runtime hosts through replay and device selection

Merged
TH
7h ago
+542-274

Summary

Part of #3753. Part of #3747.

Pass the owning host and explicit environment through replay-port, maestro, ad-script, plugins, and device selection. Required daemon callers and fixtures are included: 68 files, 816 gross lines.

Second layer, based on #3826. #3823 remains the top gate layer. The rebase preserves the original cleanup changes and includes #3818/#3820 from main.

Validation

Head efb97886892ab3342970a2560883e34dd82d22e1.

pnpm check:affected --run --base chore/process-globals-daemon --head efb97886892ab3342970a2560883e34dd82d22e1 passed; receipt run-sfbw1g, exactCommit=true.

Coverage failures were fixture races: 7e2cae20ed replaces a directory-order assumption with explicit files; 288e6cceae waits for bridge evidence contents rather than file creation. Both fixes are inherited by all layers. Upper patches are unchanged by range-diff.

Prior full-check and Android daemon/provider evidence stays attributed to e223d37244 in #3823’s review-response comment. This round changes only test fixtures and ancestry. Full coverage and GitHub-owned lanes remain CI obligations.