Skip to content

refactor(install)!: remove the GitHub Actions artifact install source - #4877

Merged
thymikee merged 3 commits into
mainfrom
refactor/drop-github-actions-artifact-source
Nov 21, 2026
Merged

thymikee merged 3 commits into
mainfrom
refactor/drop-github-actions-artifact-source

Conversation

@thymikee

@thymikee thymikee commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the github-actions-artifact install source: the --github-actions-artifact flag, the installSource config key, the client API source kind, its daemon RPC parsing, and provision-kit/install-source-config.

Why

Only a remote daemon holding its own GitHub credentials could resolve it. Every local daemon and provider runtime failed with "require a compatible remote daemon". A signed artifact download URL needs no credentials and works with install-from-source <url>. I verified this live on Limrun and Expo, iOS and Android.

Value

Base c37bb95630, head d4709b3004:

  • Install source kinds: 3 at base, 2 at head.
  • Production lines: 310 removed, about 60 added.
  • Daemons that resolved the removed kind: 0 at base and head.

Migration

url=$(curl -fsS -o /dev/null -w '%{redirect_url}' \
  -H "Authorization: Bearer $(gh auth token)" \
  https://api.github.com/repos/<owner>/<repo>/actions/artifacts/<artifact-id>/zip)
agent-device install-from-source "$url" --platform android

The URL expires after about one minute. A config with installSource fails with this guidance.

Validation

Head d4709b3004: typecheck, lint, check:command-docs, check:daemon-wire-compat (protocol unchanged, compatible acknowledgment), fallow audit, and vitest on the touched areas pass.

install-from-source --github-actions-artifact, the installSource config key, and the
github-actions-artifact client source kind only worked with a remote daemon that held its own
GitHub credentials. No local daemon or provider runtime resolves them; each one failed with
"require a compatible remote daemon".

A GitHub artifact already has a signed download URL that needs no credentials. Pass that URL to
install-from-source <url>. The help and docs show how to get it.
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.48 MB 6.47 MB -4.3 kB
Package (unpacked) 6.48 MB 6.47 MB -4.3 kB
Package (download) 1.97 MB 1.97 MB -1.2 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 23.5 ms 25.1 ms +1.6 ms
CLI --help 47.9 ms 48.0 ms +0.1 ms

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 3 new findings on 3612230. The verdict and the full list are in the summary comment.

Comment thread packages/kernel/src/contracts.ts Resolved
@thymikee

Copy link
Copy Markdown
Member Author

The change at 3612230 is ready: it removes the GitHub Actions artifact source cleanly and leaves the URL route unchanged. The failing Repo Guards & Compatibility and Coverage checks are likely caused by this diff, because it deleted the flag and narrowed the type that the fuzz test and the wire-compat gate read. No conflicts. Before merge, the checks must pass: delete the stale installSource waiver in scripts/fuzz/validation-arbitraries-cli.ts, record the new DaemonInstallSource digest in test/wire-compat/ledger.json with a compatibleChanges entry instead of a protocol bump (a released client that sends the removed kind gets a clear INVALID_ARGS error), and add ## Value, the tested SHA and the issue link to the PR body.

The open threads on the fuzz waiver (#4877 (comment)) and the stale ledger digest (#4877 (comment)) still apply, but the protocol bump suggested in the second one does not, for the reason above. The thread on the bare 'Unknown config key' message (#4877 (comment)) does not apply: the issue requires the old key to be refused as unknown, and the help text and commands.md carry the migration. It can be resolved.

Not blocking, take or leave: assert the typed INVALID_ARGS code in install-source-resolution.test.ts and turn the deleted HTTP validation case into a refusal test for the old payload; declare positionalArgs: ['url'] in install.ts and drop usageOverride, since the URL is now always required; change revyl.md (lines 53 and 96) from 'a URL or a CI artifact' to 'a URL, including a signed CI artifact URL'; and say in the help remote line in cli-help.ts that the GitHub artifact GET needs an authenticated request (Authorization: Bearer <token>).

Not verified here: any test run at this commit, the exact failing tests in the Coverage job (its log excerpt ends before the failure), live Limrun and Expo runs, and that a GitHub signed artifact URL is detected as an archive by install-source-archive.ts.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 21, 2026
… removed config key

The wire ledger records the narrower DaemonInstallSource as a compatible change: a released
client that still sends the removed kind gets a normal INVALID_ARGS error. The fuzz waiver for the
removed config-only option goes, and flag definitions now require at least one CLI name, so the
guards for nameless options go too. A config file with installSource now says that the key was
removed and what replaces it.
…ed config keys in one table

Keeps parseInstallSource and parseConfigObject under the complexity threshold.
@blacksmith-sh

This comment has been minimized.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of d4709b3

Since the review of 3612230: 0 new · 0 still open · 3 no longer raised (3 marked fixed)

No open findings.

1 finding below minor hidden (user_settings.min_severity).

1 new finding away from what changed since 3612230 not shown. Comment @apex-sentinel-staging review for a full review.

Reviewed with this repository's own Sentinel configuration (0525c45b6f46).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee thymikee removed the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 21, 2026
@thymikee
thymikee merged commit 8f9acd4 into main Nov 21, 2026
24 of 26 checks passed
@thymikee
thymikee deleted the refactor/drop-github-actions-artifact-source branch November 21, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant