Repository navigation
Description
Agent Brief
Type: Task
Summary: Add scripts under .github/scripts/ for four repeated eval-dispatch leg steps and for the pinned ffmpeg install (part of restructuring pass #15695). Switch only the call sites that are safe before this merges: the three bwrap checks and the required-checks ffmpeg install. Three of the five scripts (choose-plugins.sh, stage-suites.sh, check-label-sender.sh) get no caller here: their callers come in the follow-on item R2-8 ("Call the eval-dispatch leg scripts from the pull request path"), which switches the eval-dispatch pull request path once these scripts are on main. They are not dead code. install-pinned-ffmpeg.sh gets its first caller here and its eval-dispatch callers in R2-8.
Current behavior:
Line numbers are at 0bcb603a9b. The eval-dispatch legs are the jobs eval, eval-subscription and eval-fallback (eval-browser-dispatch.yml:192, :1057, :1744). Each repeated step below is byte-identical in the three legs.
- "Check bwrap starts a sandbox": the same 18-line
run:body ateval-browser-dispatch.yml:677-697,:1448-1468,:2129-2149. It checks bwrap and socat are on PATH, then starts bwrap bare and withplaywright-cli.- Its
if:holds it toworkflow_dispatch(eval-browser-dispatch.yml:678). The jobif:holds a dispatch to the default branch (:195-201), and.baseis then the dispatched commit (:239). So the YAML and.basecome from the same commit whenever it runs.
- Its
- "Choose the plugins" (27 lines,
eval-browser-dispatch.yml:367-402,:1210-1245,:1891-1926) and "Validate and stage the suites" (35 lines,:407-449,:1247-1289,:1928-1970). They pick the plugins from the target input or from the PR head's diff throughselect-plugins.mjs, then validate each suite and stage its deterministic copy. - "Stop on an untrusted pull request trigger": 8 lines at
eval-browser-dispatch.yml:323-338,:1172-1187,:1854-1869. It refuses an untrusted gate verdict, or aneval: runlabel from anyone but a listed human. - Pinned ffmpeg install, 4 copies in 2 files with the same release, build and SHA-256:
- "Install ffmpeg for eval scaffolds" at
eval-browser-dispatch.yml:532-557,:1346-1371,:2027-2052. It downloads toRUNNER_TEMPand installs into/opt/tools/bin. Its comment mirrors the other copy's pin by hand (:527-531). - "Install ffmpeg for demo-video" at
pr-require-checks.yml:3599-3623. It uses a download cache under$HOME/.cache/ci-tools-ffmpeg, installs into$HOME/.local/bin, and also checks each tool is executable (:3619).
- "Install ffmpeg for eval scaffolds" at
- None of these bodies holds a
${{ }}expression, and each runs before its job's model step. - No test reads their text. Tests that read this workflow name other steps:
.github/scripts/plugin-eval/workflow.test.mjs,credential-legs.test.mjs,eval-handoff.test.mjs,.github/scripts/work-unblock/label-unblocked.test.mjs:4453. A repository-widegit grepfor the bodies' distinctive text, outside the workflows directory, finds 0 files. .github/actions/resolve-config/callers.test.mjs:9791-9801holds the three legs' steps equal, so equal edits keep them equal.- Neither workflow sets
defaults:orshell:, so each step runs asbash -e {0}(https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax, the unspecified-shell row). - Checkouts:
- Eval-dispatch legs:
.base(eval-browser-dispatch.yml:235-241), and onpull_requestthe PR head at.head(:355-362), which is never run. Nothing is checked out at the workspace root. - Required-checks job
test-bash: a full checkout of the PR tree at the root (pr-require-checks.yml:3527-3530). It already calls a local action from it (:3582).
- Eval-dispatch legs:
Desired behavior:
- Five new scripts, each mode 100755 with a
#!/usr/bin/env bashline andset -eto match the replaced step shell. Use no pipefail: "Choose the plugins" pipesprintfintonode. Each script holds its step's body verbatim and reads the same environment names:.github/scripts/plugin-eval/check-bwrap.sh;.github/scripts/plugin-eval/choose-plugins.sh;.github/scripts/plugin-eval/stage-suites.sh;.github/scripts/plugin-eval/check-label-sender.sh;.github/scripts/lib/install-pinned-ffmpeg.sh <bin-dir> [cache-dir]. It holds the release, build and SHA-256. With a cache dir it keeps the archive there and downloads only when the archive is missing. Without one it downloads toRUNNER_TEMPand removes the archive after extracting. Both forms check each tool is executable and reports the pinned build.
- Calls switched in this item:
- The three "Check bwrap starts a sandbox" steps keep their name and
if:. Theirrun:becomesbash .base/.github/scripts/plugin-eval/check-bwrap.sh, called from.base. - "Install ffmpeg for demo-video" keeps its name,
timeout-minutesand theLEG_PLANgate lines (pr-require-checks.yml:3606-3608). It drops itsenv:pin and callsbash .github/scripts/lib/install-pinned-ffmpeg.sh "$HOME/.local/bin" "$HOME/.cache/ci-tools-ffmpeg"from its root checkout. - The eval-dispatch ffmpeg comment (
eval-browser-dispatch.yml:527-531) namesinstall-pinned-ffmpeg.shas the pin's home instead of the demo-video step. It is reworded in the key leg only; the other legs carry no comment.
- The three "Check bwrap starts a sandbox" steps keep their name and
- Calls left for R2-8, because they run on
pull_request, where the YAML is the PR's but.baseis main's tip, so the script must be on main first: "Choose the plugins", "Validate and stage the suites", "Install ffmpeg for eval scaffolds" and "Stop on an untrusted pull request trigger", in all three legs.
Files:
.github/scripts/plugin-eval/check-bwrap.sh(new).github/scripts/plugin-eval/choose-plugins.sh(new).github/scripts/plugin-eval/stage-suites.sh(new).github/scripts/plugin-eval/check-label-sender.sh(new).github/scripts/lib/install-pinned-ffmpeg.sh(new)- the steps at
eval-browser-dispatch.yml:677,:1448,:2129, and the comment at:527-531 - the step at
pr-require-checks.yml:3599and its comment at:3585-3591
Key interfaces:
- Each switched step's outputs, error lines, exit codes and installed files: identical for the same inputs. The required-checks ffmpeg step gains nothing: it already checks each tool is executable.
- The required-checks cache key (
pr-require-checks.yml:3598) is unchanged, so existing cache entries still hit. - Token scope and log shape: each step stays one
runstep before any model step, with no new token, permission or composite action.
Acceptance criteria:
- The bwrap check exists once, in its script, and the three dispatch-only bwrap steps call it from main's checkout.
- The ffmpeg release, build and SHA-256 appear once outside a cache key and the three eval-dispatch ffmpeg steps, in
install-pinned-ffmpeg.sh, and the demo-video install calls it. -
choose-plugins.sh,stage-suites.shandcheck-label-sender.sheach hold their step's body verbatim. No pull request path step calls them yet; R2-8 adds their callers. - Every step name,
id,if:,env:key the body reads,timeout-minutes, job id, trigger, permission and workflow file name is unchanged. - The three eval legs stay equal under the existing leg-shape check.
- The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
- The pull request stays within 400 changed lines and 15 hand-edited files.
- The five scripts pass the repository's shellcheck and shfmt checks.
- ci-status is green.
Out of scope:
- Switching the pull request path call sites (R2-8), "Judge the leg" and "Print Bash error excerpts" (a test reads one, and both run after the eval), the three-leg structure, other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
kyle-sexton commentedon Nov 13, 2026
Scope note from the session that filed this issue (Simplify Planning): the criterion "The diff edits only the listed files and the lines of a test that assert on them" is amended for one file. PR #16025 may add scripts/eval-leg-scripts.test.sh, a behavior test for the five new scripts. Reason: three of the scripts get no caller until the follow-on #16026, so without the test nothing would run them, and the review lane asked for the same kind of test on #15970. Every other criterion stands. The reviewer's second point (nothing keeps the not-yet-called scripts equal to their step bodies) is handled in #16026: each step body is diffed against its script before the switch, and any drift is folded into the script.
github-actions commentedon Nov 13, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 13, 2026
Size: Medium
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Understood: this adds five scripts under
.github/scripts/that hold the repeated eval-dispatch leg step bodies and the pinned ffmpeg install. It switches only the three bwrap checks and the required-checks ffmpeg install to call them. The pull request path call sites are left for #16026. The scope note allows one extra behavior test file. The brief gives exact files, acceptance criteria and out-of-scope items, so nothing is missing. I found no duplicate among the open issues and no merged pull request that already does this. It is part of the restructuring pass in #15695.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 13, 2026
Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).