Skip to content

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

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

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

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15746

session: Simplify E2 A

Summary

Runs /simplify on the second half of .github/workflows/eval-browser-dispatch.yml (E2 chunk S056, part 2 of 2), after part 1 (#15983) merged. The file had 2556 lines at origin/main; part 2 owns lines 1279-2556, so the job that starts there, eval-fallback. callers.test.mjs holds its parsed steps equal to the eval key leg's, so every edit is a comment: the parsed workflow is unchanged.

Fix

  • eval-fallback repeated 23 per-step comment blocks (124 lines) from eval: word for word, or in the key leg's wording before part 1 corrected it. They are gone, as part 1 did for eval-subscription. The two legs' copies had already drifted, so keeping the explanation once on the key leg ends that.
  • The header now says the leg runs the key leg's steps, commented there, on a fresh runner.
  • The credential comment said "each secret"; this leg's call sees only the fallback token.

The "Install pinned shfmt for guardrails" step is untouched (R2-3 #15966 moves it 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 callers.test.mjs, which compares the three legs, and plugin-eval/workflow.test.mjs): 785/785 pass.
  • test_merge_holds_sync.py: 21 passed.
  • Left to CI: the full .github suite (ci-status).

Related

Part of #15694 (E2, the /simplify epic's workflow group). Part 1: #15983.

🤖 Generated with Claude Code

Comments only, in eval-fallback: drop the 23 per-step comment blocks it
repeated from the eval key leg (word for word, or in the key leg's
wording before part 1), say in its header that its steps are the key
leg's and commented there, and say its credential call sees the one
fallback token.

Closes #15746

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 15:46
@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:47:50.140256Z bde0008 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 bde0008206d84ede63a979d2cdf6c7cba46c8c49: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15988 (eval-browser-dispatch.yml, part 2 of 2)

No security issues found.

What I checked: I read the whole diff of the one changed file, .github/workflows/eval-browser-dispatch.yml. It is on the trusted-path list, so it got the full-change read.

Only comments change. Every line the diff removes or adds in the eval-fallback job starts with #. No if: condition, permissions: block, env:, run: body, uses: pin or with: input changes. These steps all keep the same code:

  • the trusted-dispatcher check
  • the untrusted pull-request trigger stop
  • the kill-switch and credential checks
  • the deny policy for process and runner state, and the probe that proves it
  • runner isolation
  • the credential scan before upload

Trust controls: nothing is widened.

  • Who passes the trusted-trigger and dispatcher checks is unchanged.
  • No token scope changes.
  • The kill switch is still consulted and still honored.
  • Untrusted text reaches the lane by the same path as before.
  • No merge hold changes.

Removed comments: these are explanatory comments in a workflow file. They are not standing instructions to a model, such as a rule in CLAUDE.md or a skill body, so the instruction-surface lens does not apply. They also enforced nothing: the guards they describe are code, and that code is unchanged. The PR says the same rationale stays once on the eval key leg.

Embedded text: the PR context contains no instruction aimed at this lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #15988 (eval-browser-dispatch.yml, simplify part 2 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: no step's name, if:, with:, env:, run: or order is touched, so the parsed workflow stays the same.

  • Removed comment blocks. I checked a sample of the 23 deleted per-step comment blocks in eval-fallback against the key leg eval: the default-branch checkout, upstream status, dispatcher trust check, untrusted-trigger stop and credential step at L233-L342. The key leg still explains each of those steps, so the explanation still lives in one place. This matches what part 1 did for eval-subscription (L1057-L1065).
  • New header. The rewritten eval-fallback header (L1757-L1760) uses the same "the key leg's steps, commented there" wording as the subscription leg.
  • Credential comment. The fix is correct: this leg's call passes only FALLBACK_CLAUDE_CODE_OAUTH_TOKEN != '', so the old "each secret" wording was wrong for this leg.

Closing issue #15746, acceptance criteria

  • Behavior unchanged: met. The change is comments only, and the step that holds the legs' parsed steps equal (callers.test.mjs, per the PR) cannot be affected by comment edits.
  • Edits only the listed file: met (1 file).
  • Within 400 changed lines / 15 files: met.
  • Workflow file names, job ids and triggers unchanged: met. No key lines are touched.
  • Only jobs starting in range 2 are changed: met. All hunks sit inside eval-fallback (base line 1757 onward, past the stated 1279 start of range 2).
  • ci-status green: this lane cannot check it. The PR's actionlint and test runs are author-claimed and I did not verify them.

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 72927d7 Nov 13, 2026
86 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/simplify-eval-browser-dispatch-p2 branch November 13, 2026 18:57
@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 2 of 2)

1 participant