Skip to content

Run pinned public JavaScript actions from server-emitted plans - #696

Open
sj26 wants to merge 2 commits into
mainfrom
runtime-public-action-reader
Open

sj26 wants to merge 2 commits into
mainfrom
runtime-public-action-reader

Conversation

@sj26

@sj26 sj26 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

🤖

Why

Running public JavaScript actions from a server-emitted job plan currently requires the importer to download each action and embed its metadata before the job can start.

What

An opt-in job can carry multiple root uses: steps pinned to full commit SHAs alongside Bash, static prerequisites, and a separately locked native checkout. The reader requests up to 32 distinct sources in one job-scoped lookup, requires the exact selector set back, and downloads only the pinned GitHub codeload tar.gz archives without credentials. It checks every action before running workflow steps, then uses the existing Node lifecycle for main, pre, and post hooks. Node 20 declarations run on Node 24, as they do in pre-resolved plans.

The single-action v1 contract and pre-resolved plans keep their behavior. Additive resolver fields are ignored; HTTP 400 with client_upgrade_required stops the job with upgrade guidance and no retry or fallback.

This adds the reader only. Emitting v2 plans requires a v2 resolver and a pinned compatible runtime release. Composites, Docker actions, mutable refs, and private sources are out of scope.

Resolve the exact root selector under the running job and original plan digest before executing workflow steps. Keep v1 delivery fixed to GitHub codeload, accept additive response fields, and report when the runtime must be upgraded.

Amp-Thread-ID: T-01a20ba5-e916-7020-87e4-797d349d4f47

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I found no blocking defects. This changes the action-source trust boundary and introduces a versioned Agent API contract, so human approval is required.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 57817, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-6.1-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. The same approval policy applies in every repository:

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). buildsworth may approve without per-PR permission.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical pipeline paths). Human approval required; buildsworth never approves.

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