Skip to content

refactor(ci): simplify eval-browser-dispatch.yml workflow (part 1 of 2) - #15983

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-eval-browser-dispatch-p1
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-eval-browser-dispatch-p1

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15744

session: Simplify E2 A

Summary

Runs /simplify on the first half of .github/workflows/eval-browser-dispatch.yml (E2 chunk S055, part 1 of 2). The file had 2681 lines at origin/main. Part 1 owns lines 1-1341: the header and the jobs that start there, eval-key-credit, eval (the key leg) and eval-subscription. callers.test.mjs holds the legs' parsed steps equal, so every edit is a comment: the parsed workflow is unchanged.

Fix

  • eval-subscription repeated 24 per-step comment blocks (129 lines) word for word from eval; they are gone. Its header now says the steps are commented on the key leg. It also now lists everything the leg comparison strips, adding the LEG the probe and judge pass on, and notes that eval-fallback is compared the same way. The one leg-specific comment, on the credential step, stays.
  • Comments that misstated the code:
    • "Every binary this job runs comes from the locked root toolchain": ffmpeg, shfmt, node and python3 don't. The lockfile supplies claude, playwright-cli and the Playwright MCP server.
    • "Only these directories are made while sudo works": the Deny step also uses sudo before isolation.
    • The plugin-selection comment named a plugins output; the step writes list.
    • The bwrap check also checks that bwrap and socat are on PATH and starts playwright-cli inside bwrap.
    • The kept traces feed the judge and the Bash error excerpts too, not only the summary's health lines.
    • A dispatch re-run is refused because the step checks only the dispatcher's id; the old comment said the job's token cannot read the run record, but the job grants actions: read.
    • The ffmpeg comment said "the binary" (it installs ffmpeg and ffprobe) and pointed at the shfmt step below it, which R2-3 is moving.
  • Cut: a header sentence repeating "the job token can only read", the eval job comment's restatement of its if: and the header's handoff rules, and "as the job outputs did before".
  • About six comments that broke mid-sentence or ran past the width (up to 100 columns) are rewrapped.

The "Install pinned shfmt for guardrails" steps are untouched, since R2-3 (#15966) moves them onto the shared action.

Verification

  • actionlint .github/workflows/eval-browser-dispatch.yml: clean; node scripts/check-artifact-retention.mjs: 152 upload steps match.
  • node --test --test-concurrency=4 on the 7 node test files that name this workflow (including plugin-eval/workflow.test.mjs, credential-legs.test.mjs, eval-handoff.test.mjs and callers.test.mjs, which compares the three legs): 785/785 pass.
  • test_merge_holds_sync.py, which scrapes workflow text for action and script paths: 21 passed.
  • Left to CI: the full .github suite (ci-status).

Follow-ups

  • Several key-leg comments shared word for word across 8-23 workflows say slightly more or less than the code: "outcome skip" (the code writes skipped), "Skips the run while ..." (the step fails the job), and "from the one file that sets them" (one value is also set inline).
  • eval-fallback (part 2) still carries copies of the comments corrected here.

Related

Part of #15694 (E2, the /simplify epic's workflow group). Part 2: S056 (#15746).

🤖 Generated with Claude Code

Comments only, in the header and the jobs that start in the first half
of the file (eval-key-credit, eval, eval-subscription): drop the 24
per-step comment blocks eval-subscription repeated word for word from
the eval key leg (its header now says the steps are commented there and
lists every difference the leg comparison strips), and correct comments
that misdescribe the code (what the locked toolchain supplies, which
step uses sudo, the selection step's output name, what the bwrap check
runs, which readers keep the eval traces, why a dispatch re-run is
refused), drop history and repeated sentences, and rewrap comments that
ran past the width.

Closes #15744

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 15:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T15:25:14.562789Z 71c2839 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 71c2839222291dae568bd739dc4b390424590503: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15983, head 71c2839

No security issues found.

I read every hunk of the one changed file, .github/workflows/eval-browser-dispatch.yml. This file is on the trusted-path list. Every added and removed line is a YAML # comment. No run:, if:, env:, uses:, with: or permissions: line changes, so the parsed workflow is the same as at base. That matches the PR description's claim that callers.test.mjs holds the legs' parsed steps equal.

Trust controls checked:

  • Trusted-trigger and dispatcher checks: the "Check the dispatcher is a trusted human" and "Stop on an untrusted pull request trigger" steps, and their if: conditions, are unchanged. Only their comments were edited, or dropped from eval-subscription.
  • Kill switch: the read is unchanged.
  • Credential deny policy and probe: the deny step and the policy probe are unchanged.
  • Runner isolation: the order of the isolation step is unchanged.
  • Permissions: none of the permissions: blocks changed. They are permissions: {} at the top level (L126) and read-only scopes in each job (L155-156, L205-208, L1075-1078, L1767-1770).

Nothing is widened.

Comment accuracy (security-relevant claims):

  • The new header line "every job's token can only read" matches those permissions: blocks.
  • The rewritten re-run note no longer says the token cannot read the run record, which is correct because the job grants actions: read. The refusal it describes is still enforced: the dispatcher step checks only github.actor's id.
  • The deleted lines are duplicate comments in eval-subscription. They do not remove any standing instruction to a model, so the instruction-surface lens finds nothing.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 71c2839222291dae568bd739dc4b390424590503: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15983, simplify eval-browser-dispatch.yml (part 1 of 2)

No findings. I read the whole diff for the one changed file, .github/workflows/eval-browser-dispatch.yml. Every hunk changes only comments. The parsed workflow (jobs, steps, if: conditions, permissions and triggers) is unchanged.

Rewritten comments checked against the code at head

  • Header, "every job's token can only read": this matches the code. The top-level setting is permissions: {}. eval-key-credit, eval, eval-subscription and eval-fallback grant only read scopes (L126, L155-L156, L205-L208, L1075-L1078, L1767-L1770).
  • Re-run refusal: the step refuses on GITHUB_RUN_ATTEMPT != 1 and checks only github.actor_id. The job does grant actions: read, so the old reason ("the job's token cannot read the run record") was wrong and the new one is accurate.
  • bwrap check: the step checks that bwrap and socat are on PATH, then starts bwrap once bare and once with playwright-cli --version (L685-L705). The new comment says the same.
  • eval-subscription header: in .github/actions/resolve-config/callers.test.mjs, the leg-equality test removes the LEG env key and the credential and fallback-reason inputs of Record the leg before comparing. It also compares eval-fallback against the key leg (callers.test.mjs L9748, L9796-L9797). The new wording matches this.
  • Removing the 24 duplicated per-step comment blocks from eval-subscription changes no behavior. The header now points readers to the key leg's comments.

Closing issue #15744 acceptance criteria

  • Behavior unchanged: met, since only comments change. callers.test.mjs already fails if the steps of the legs drift apart.
  • Only the listed file is edited: met.
  • Within 400 changed lines: met (about 70 lines added and 220 removed).
  • Workflow file name, job ids and triggers unchanged: met.
  • Only jobs that start in part 1 are changed: met. Every edited comment belongs to the header, eval or eval-subscription, and each of those starts inside lines 1–1341 of the base file.
  • ci-status green: left to CI. I did not run anything. The actionlint and test results in the PR body are the author's claims and I have not verified them.

Other checks

  • No .claude/rules file's paths: glob matches a changed file. No plugin manifest changed.
  • Spend: none. The change is comments only.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 25f74ca Nov 13, 2026
85 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/simplify-eval-browser-dispatch-p1 branch November 13, 2026 15:39
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the eval-browser-dispatch.yml workflow (part 1 of 2)

1 participant