feat(host): install verification builds through Host
Stacked on #3273. Please review only the top three commits.
Summary
Verification builds install through Host, private GitHub Actions artifacts included (ADR 0021 §6).
The daemon resolves github-actions-artifact sources by id, by run and name, or by name alone, which picks the newest live artifact from the repository's own runs, never a fork pull request.
The token stays on the daemon:
- It comes only from the daemon's
AGENT_DEVICE_GITHUB_TOKEN, never from a request. - It goes only to an archive URL under the named repository, and the downloader drops it at the storage redirect.
AGENT_DEVICE_GITHUB_REPOSITORIESlimits which repositories it reads.- A client holding a token refuses to reuse a daemon started without it or with another.
The lookup runs after the install's local checks, with its own timeout. GitHub source parsing moves out of http-server.ts.
Closes #3268. 24 files, 786 gross lines vs #3273.
Validation
Tested commit 7b3f7eaab:
-
pnpm check:affected --run: all pass except a flakyaffected-selectortest (ENOTEMPTY on temp cleanup; unchanged from main). The 17 checks after it pass when run separately. -
Tests cover fork filtering,
..names, a foreign archive URL, the token dropped at the redirect, and each typed refusal. -
Live iOS run on iPhone 17 Pro (iOS 26.2) through
proxy, since Host can't allocate before #3269:agent-device install-from-source --github-actions-artifact callstack/react-native-paper:react-native-paper-example.app.zip --platform iosInstalled in 63 s;
open,snapshot -i,closeanddisconnectpassed. No state dir or daemon log contains the token.