Skip to content

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

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

kyle-sexton merged 1 commit into
mainfrom
refactor/s093-upstream-apply-changelog-part1

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15883

session: Simplify E2 B

Summary

A /simplify pass over the first half of .github/workflows/upstream-apply-changelog.yml (part 1 of 2): lines 1-1224 of 2448 at origin/main b2e05ca. That covers the header and the jobs gate, model, model-subscription and model-fallback. Only comments and whitespace change, so behavior is the same.

Fix

  • model-subscription and model-fallback: removed the double blank lines left where key-only steps were taken out of these legs. The fallback leg also had one before "Upload the sealed transcript".
  • "Record the start" comment in those two legs: it ended "…scanned, as the marker is". Only the key leg writes a marker, so that clause is dropped. In model-fallback, the comment also said a leg that hands off leaves the release to the next leg. This is the last leg and it never hands off, and its if: has no handoff term, so the comment now says that.
  • Rewraps: the header's per-day cap line (120 columns), the three legs' identical sandbox-off notes (102 columns), and one script comment.

Considered and left as is

  • upstream-apply-changelog.test.mjs strips comment lines and trims each step, then holds the three legs' steps deep-equal, so any code edit would have to land in all three. The one code candidate was moving PUBLIC_KEY_FILE into step env. It is left out because it would diverge from maintenance-tidy-code-upkeep.yml, which mirrors these legs, for no net saving.
  • The rm -rf steps for .lane-trusted, $OUT, started and key-credit-stop: a sandbox-off model runs earlier in each job.
  • Trust checks: the staged-plugin symlink check, the who-started check, the credential checks and the scans stay.
  • The prompt heredocs: rewrapping them would change the bytes the model receives.

Verification

  • The local test files that name this workflow all pass under scripts/run-test-file.sh, upstream-apply-changelog.test.mjs, credential-legs.test.mjs and callers.test.mjs among them.
  • Local actionlint 1.7.12 reports no errors beyond the cache-mode and concurrency.queue keys it does not know, which origin/main also trips.
  • 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

🤖 Generated with Claude Code

…of 2)

Comment and whitespace only:
- model-subscription and model-fallback: drop the double blank lines
  left where key-only steps were removed, and "as the marker is" (only
  the key leg writes a marker); the fallback leg's Record the start
  comment no longer says a next leg runs the release, since it is the
  last leg and never hands off.
- Rewrap the header's per-day cap line, the three legs' identical
  sandbox-off notes and one script comment.

The three legs' steps stay equal (upstream-apply-changelog.test.mjs
compares them with comments stripped).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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-13T07:59:42.041176Z 6b9e3b2 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-review reviewed 6b9e3b2490731cb417f835c1215a5b257f1fc5dd: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings. I read the whole diff of .github/workflows/upstream-apply-changelog.yml, the only changed file.

The PR changes only comments and blank lines, so the workflow behaves the same:

  • Rewraps. It rewraps the header's per-day cap note, one script comment, and the three identical sandbox-off notes in the model, model-subscription and model-fallback legs. The words do not change.
  • Blank lines. It removes doubled blank lines in model-subscription and model-fallback.
  • "Record the start" comment. I checked the new wording against the code and both claims hold:
    • Only the key leg writes a marker. The credit-stop marker steps exist only in the model job (L451-L472), so dropping "as the marker is" from the other two legs is correct.
    • The fallback leg never hands off. The if: on model-fallback's Record-the-start step (L1205) has no handoff term, unlike the subscription leg's (L843). So the new comment matches the code.

Closing issue #15883 acceptance criteria:

  • Behavior unchanged: met. No YAML keys, values, step names, job ids or triggers change.
  • Only the listed file is edited: met.
  • Within 400 changed lines and 15 hand-edited files: met.
  • Every edit inside part 1 of the file: met. The last hunk ends near line 1208, within lines 1-1224.
  • ci-status green: not something this lane can check.
  • The PR's test, actionlint and retention-check results are the author's claims; I did not run them.

No prior findings and no settled threads. Neither the PR body nor the issue contains text aimed at the review lane. This change adds no spend.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #15901

critical-findings: 0

I read the full diff for .github/workflows/upstream-apply-changelog.yml, the only changed file. It is on the trusted-path list, so I read every hunk. I found no security issues.

What changed: only YAML comments and blank lines, in all eight hunks:

  • The header comment about the per-day cap is rewrapped.
  • One comment inside a run: script is rewrapped. The commands next to it are unchanged.
  • The "Sandbox off" comment is rewrapped in each of the three legs. The sandbox: "false" line, the permission-mode: dontAsk line and the tools: list are unchanged.
  • The "Record the start" comment is reworded in the model-subscription and model-fallback legs. The if: lines are unchanged, including the steps.credential.outputs.present != 'false' term at head line 1205 (permalink).
  • Three double blank lines are cut to one.

What I checked:

  • Executable content: no step, if: condition, permissions: block, token request, pin, environment variable or tool allowlist changed. The prompt heredocs are untouched.
  • Comment accuracy: the reworded model-fallback comment says this leg never hands off. That matches its unchanged if:, which has no handoff term, unlike the subscription leg's if: at head line 841.
  • Trust controls: no gate, merge hold, kill-switch read, credential leg or trusted-actor check is widened or narrowed.
  • Instructions in the PR text: the PR description and the closing-issue context contain no embedded instructions.
  • Cost: none. The change spends no new credits or minutes.

This was a full review of the head, not a blocking-only pass: no earlier heads were reviewed and there are no prior findings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 2fa3c65 Nov 13, 2026
52 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s093-upstream-apply-changelog-part1 branch November 13, 2026 08:18
@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 1 of 2)

1 participant