Skip to content

Call the eval-dispatch leg scripts from the pull request path #16026

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Switch the eval-dispatch legs' pull request path steps onto the scripts R2-7 adds (part of restructuring pass #15695). That is 12 steps: four steps in each of the three legs. They are "Choose the plugins", "Validate and stage the suites", "Install ffmpeg for eval scaffolds" and "Stop on an untrusted pull request trigger".

Current behavior:
Line numbers are at 0bcb603a9b, before R2-7. R2-7 edits the same workflow and moves these lines, so find each step by its name in each leg. The legs are the jobs eval, eval-subscription and eval-fallback (eval-browser-dispatch.yml:192, :1057, :1744). Each step's body is byte-identical in the three legs:

  • "Stop on an untrusted pull request trigger" (8-line body): eval-browser-dispatch.yml:323-338, :1172-1187, :1854-1869.
  • "Choose the plugins" (27 lines): eval-browser-dispatch.yml:367-402, :1210-1245, :1891-1926.
  • "Validate and stage the suites" (35 lines): eval-browser-dispatch.yml:407-449, :1247-1289, :1928-1970.
  • "Install ffmpeg for eval scaffolds" (15 lines plus a three-value env: pin): eval-browser-dispatch.yml:532-557, :1346-1371, :2027-2052.

R2-7 adds these scripts, each holding that body verbatim:

  • .github/scripts/plugin-eval/check-label-sender.sh
  • .github/scripts/plugin-eval/choose-plugins.sh
  • .github/scripts/plugin-eval/stage-suites.sh
  • .github/scripts/lib/install-pinned-ffmpeg.sh <bin-dir> [cache-dir], which holds the ffmpeg pin.

All four steps run on pull_request. There the workflow file is the PR's, but .base is main's tip (eval-browser-dispatch.yml:235-241, ref at :239), so these calls can switch only after R2-7 is on main.

Other facts that hold at 0bcb603a9b:

  • Each of the 12 steps runs before the leg's model steps: before "Probe that the policy denies those reads" and "Run the plugin eval" (eval-browser-dispatch.yml:606, :714 in the key leg).
  • The label check also runs before the credential step (:343).
  • No step holds a ${{ }} expression in its body.
  • No test reads the bodies.
  • .github/actions/resolve-config/callers.test.mjs:9791-9801 deep-compares the legs' steps, so equal edits keep them equal.

Desired behavior:
In each of the three legs, each step keeps its name, if:, timeout-minutes and the env: keys its body reads. Its run: becomes one line that calls the script from .base, main's checkout:

  • "Stop on an untrusted pull request trigger": bash .base/.github/scripts/plugin-eval/check-label-sender.sh. It runs before the credential step and any model step.
  • "Choose the plugins": bash .base/.github/scripts/plugin-eval/choose-plugins.sh. It runs before any model step. It reads the PR head at .head with git -C and runs nothing from it.
  • "Validate and stage the suites": bash .base/.github/scripts/plugin-eval/stage-suites.sh. It runs before any model step.
  • "Install ffmpeg for eval scaffolds": bash .base/.github/scripts/lib/install-pinned-ffmpeg.sh /opt/tools/bin, before any model step.
    • It drops its three FFMPEG_* env: entries, which install-pinned-ffmpeg.sh now holds, and keeps timeout-minutes: 3.
    • This is the one env: change. R2-7 made the same change to the demo-video install.
    • The key leg's comment above it no longer lists pin values. R2-7 already pointed that comment at the lib script.

Files:

  • the four named steps in each of the three eval-dispatch legs (eval-browser-dispatch.yml:323, :367, :407, :532; :1172, :1210, :1247, :1346; :1854, :1891, :1928, :2027 at 0bcb603a9b)

Key interfaces:

  • Each step's outputs (go, list, suites), error lines, exit codes and installed files: identical for the same inputs.
  • One addition: the ffmpeg install now also checks each tool is executable, a check install-pinned-ffmpeg.sh adds.
  • Token scope and log shape: each step stays one run step reading main's checkout, before any model step, with no new token, permission or composite action.

Acceptance criteria:

  • Each of the 12 steps calls its R2-7 script from main's checkout, and no leg still holds those bodies inline.
  • Every step name, if:, timeout-minutes, job id, trigger, permission and workflow file name is unchanged. Every env: key is unchanged except the three ffmpeg pin entries per leg.
  • The three eval legs stay equal under the existing leg-shape check.
  • Behavior is unchanged: the same outputs, exit codes and installed files for the same inputs.
  • The diff edits only the listed steps 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.
  • ci-status is green.

Out of scope:

  • The scripts' contents (R2-7), "Judge the leg", "Print Bash error excerpts", the three-leg structure, other duplication, eval cases, fixtures, and skill and agent text.

Activity

  1. added
    status: ready
    host-run
    on Nov 13, 2026
  2. added theissue type on Nov 13, 2026
  3. removed
    status: ready
    on Nov 13, 2026
  4. removed
    host-run
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    ready

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions