Skip to content

refactor(ci): simplify upstream-apply-changelog.yml workflow (part 2 of 2) - #15914

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/s094-upstream-apply-changelog-part2
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/s094-upstream-apply-changelog-part2

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15888

session: Simplify E2 B

Summary

A /simplify pass over the second half of .github/workflows/upstream-apply-changelog.yml: lines 1224-2447 of 2447 at origin/main 2fa3c65. That range covers the jobs scrub-probe, scrub-probe-subscription, scrub-probe-fallback, scan, push-branches and publish. Only comments change; behavior does not.

Fix

  • Probe legs, the secret's input: the comments in scrub-probe-subscription and scrub-probe-fallback said "the key goes only to the api-key input". Those legs pass their token to subscription-token and fallback-token, and each comment now names that input.
  • scrub-probe-fallback, the probe step: the comment said continue-on-error "lets a handoff end the job green". This last leg never hands off. The comment now says the verdict is left to "Check the probe", which fails the job on any probe failure.
  • Rewraps: the three probe legs' sandbox-off notes (107 columns), the scan job's environment comment (102 columns), and the publish header (88-89 columns). I checked each comment's claims against upstream-apply-changelog.mjs.

Considered and left as is

  • The scan job's rm -rf "$OUT": it removes nothing in practice. No model runs in that job, and a fresh runner's temp is empty. It costs nothing, so changing it is out of scope for a comment pass.
  • "as the job outputs did before" in the probe legs' next-leg comments: it matches the frozen model legs' text.

Verification

  • 9 local test files name this workflow, and each passes under scripts/run-test-file.sh. Among them: upstream-apply-changelog.test.mjs (scrub-probe shape and Check script), credential-legs.test.mjs and callers.test.mjs.
  • Local actionlint 1.7.12: no errors beyond the cache-mode and concurrency.queue keys it does not know. origin/main has the same errors.
  • node scripts/check-artifact-retention.mjs: 152 upload steps match.
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

For the restructuring pass (R2, #15695):

  • The "Revoke the lane token" steps in push-branches and publish are identical; a composite action could serve both.
  • The six repeated sealed-N ternaries in scan could be shared the same way.

🤖 Generated with Claude Code

…of 2)

Comment-only:
- scrub-probe-subscription and scrub-probe-fallback pass their token to
  the subscription-token and fallback-token inputs, not api-key.
- scrub-probe-fallback never hands off; its probe's continue-on-error
  leaves the verdict to "Check the probe".
- Rewrap the three probe legs' sandbox-off notes, the scan job's
  environment comment and the publish header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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-13T08:33:20.167851Z ac11fab PR opened
ℹ️ 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 ac11fab7a08a23d1cc1f8769999f2a6035744191: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15914

I found no security issues.

I read all six hunks of the only changed file, .github/workflows/upstream-apply-changelog.yml. That path is on the trusted-path list, so I read every changed line. Every change is to a YAML # comment: some are rewrapped and some reworded. No key, run: script, if: condition, permissions: block, secret or input mapping, environment, or action pin changes. The unchanged context lines (sandbox: "false", permission-mode: dontAsk, environment: name: pr-pipeline-scan-carrier, the probe step's if:) are identical at base and head.

  • Trust controls: none are widened. The trusted-trigger check, the lane-token scope, the kill switch, the broker and the merge holds are all untouched. No new actor, token scope or path for untrusted text appears.
  • Instruction surface: the reworded comments are not instructions to any model. In scrub-probe-fallback, the note about what continue-on-error does now says this last leg never hands off. That change only describes the workflow; it does not alter what any step does.
  • Manifests: none changed.
  • Embedded text: the PR context contains no directives aimed at this lane.

Spend: none. The change is comments only and changes no run count, model or turn limit.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #15914 (complete review of 1 of 1 changed files)

This pull request changes only YAML comments in .github/workflows/upstream-apply-changelog.yml, a trusted path. No keys, values, steps, job ids or triggers change, so the workflow behaves exactly as before.

I checked each rewritten comment against the file at head:

  • scrub-probe-subscription: the comment now says the token goes to the subscription-token input. That is correct: the probe step passes subscription-token: (L1618).
  • scrub-probe-fallback: the comment now names the fallback-token input. That is correct (L1846).
    • Its new note says "this last leg never hands off". The job's header comment says the same (L1743-L1744), and the leg has no handoff-report step.
    • Its "Check the probe" step fails the job on any failure it finds (L1908-L1944).
  • scrub-probe, the API-key leg: its comment still says api-key (L1370). That is correct for that leg, and the PR leaves it unchanged.
  • Rewraps: the sandbox-off notes, the scan environment comment and the publish header keep their original wording.

Closing issue #15888, acceptance criteria:

  • Behavior unchanged, file names, job ids and triggers unchanged: met, since only comments change.
  • Only the listed file is edited: met.
  • Within 400 lines and 15 files: met (1 file, about 30 lines).
  • Only jobs in range 2 of 2 change: met. The earliest hunk is at L1388 in scrub-probe, inside the range the PR states (L1224 to the end).
  • ci-status is green: I can't check this from here. The PR's local test, actionlint and retention-check results are the author's claims, and I did not run them.

None of these criteria needs a test, because no code changes.

No .claude/rules/ files, plugin manifests or paved-path checks apply to this file. I found no embedded instructions in the PR context.

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 1b9899c Nov 13, 2026
52 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s094-upstream-apply-changelog-part2 branch November 13, 2026 08:52
@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 upstream-apply-changelog.yml workflow (part 2 of 2)

1 participant