Skip to content

refactor(ci): simplify pr-unblock.yml workflow (part 1 of 3) - #15880

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/s085-pr-unblock-part1
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/s085-pr-unblock-part1

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15864

session: Simplify E2 B

Summary

A /simplify pass over the first third of .github/workflows/pr-unblock.yml (part 1 of 3). The range is lines 1-1690 of 5072 at origin/main 4050cce: the header and the jobs from dispatcher-current through address-feedback-handoff. Only comments change, so behavior is unchanged.

Fix

  • apply-conflict-patch header: the comment said the job answers from "the fallback call when it ran, else the first". Its output expressions pick the fallback call, else the subscription call, else the first. The comment now names all three.
  • sync-shared-copies-select, "Copy the merge scripts from the base": the comment said the step copies the sync script, but the "Regenerate the shared copies" step does that. The comment also left out that this step reads loop.no-progress. It now uses the same wording as resolve-conflicts-select's identical step.
  • Rewrapped comments:
    • A job rename left comment lines up to 133 columns long. These are rewrapped, with the text kept apart from one redundant word dropped.
    • Three other broken wraps are fixed, in the resolve-conflicts-select, resolve-conflicts-not-run and sync-shared-copies-not-run headers.

Why no code changes

Every code candidate in this range is either pinned or a guard:

  • Pinned by tests: callers.test.mjs pins the handoff jobs' shape, the key and subscription legs, resolve-conflicts-select's steps, outputs and cache-mode, and the select jobs' outputs. workflow-gates.test.mjs runs the "Read the PR head" script and pins the !cancelled() && gates.
  • Guards: the PR_NUMBER and sender-id checks, the head-repository check and the script hashing are trust-boundary checks, left as they are.

The leg-select expression repeats eight times. Sharing it would need a new job or YAML anchors, so it stays.

Verification

  • 22 local test files name this workflow, and each one, run with scripts/run-test-file.sh, passes.
  • Local actionlint 1.7.12 reports two kinds of error, concurrency.queue (26) and cache-mode. It reports the same errors on origin/main, because it does not know either key. CI's pinned actionlint action is the one that counts.
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

These go to the restructuring pass (R2, #15695):

  • "else the first" wording: the same incomplete wording sits at line 4210 (apply-patch), in part 3's range.
  • Over-long "Whether the third call can run" comment: it repeats at lines 3473, 4050 and 4351.
  • Shareable steps: sync-shared-copies-select's Pin, Behind and Merge steps copy resolve-conflicts-select's, and the tip and checkout steps repeat in seven jobs. Sharing either needs a composite action.
  • Job counts in headers (UNVERIFIED): the header at line 166 says "resolve-conflicts is five jobs", while the range holds nine resolve-conflicts jobs. The sibling counts at lines 1340, 3109 and 3756 follow the same pattern and may count something else, so all four should be fixed together or left alone.

🤖 Generated with Claude Code

Comment-only:
- apply-conflict-patch picks the fallback call, else the subscription
  call, else the first; the comment left the subscription call out.
- sync-shared-copies-select's merge-scripts copy step does not copy the
  sync script (the regenerate step does) and reads loop.no-progress;
  the comment now matches resolve-conflicts-select's.
- Rewrap comment lines a job rename left over 80 columns and three
  broken wraps.

Every code candidate in range is pinned by callers.test.mjs or
workflow-gates.test.mjs, or is a trust-boundary guard.

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-13T06:37:36.686982Z 0f730d5 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 0f730d56c932d213f085d521b5bac5668b2d6d90: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15880 (head 0f730d56)

No security issues found.

I read the whole diff, all 9 hunks in the one changed file, .github/workflows/pr-unblock.yml. That file is on the trusted-paths list, so it got extra scrutiny. Every added and removed line is a YAML comment starting with #. No step, if: condition, permissions: block, env: entry, secrets reference, needs: list, output expression or run: body changes. The changes:

  • Comments rewrapped in the headers of resolve-conflicts-select, resolve-conflicts-not-run, resolve-conflicts-subscription-handoff, resolve-conflicts-fallback, sync-shared-copies-not-run and apply-shared-copies, and on both "Check the fallback token" steps.
  • The apply-conflict-patch header now also names the subscription leg.
  • The comment on sync-shared-copies-select's "Copy the merge scripts from the base" step changes. It no longer says the step copies the sync script, and it now mentions the loop.no-progress read.

Trust controls: comments are not executable, so none can widen. The trusted-trigger check, the lane token scope, the kill switch, merge holds and model-input isolation all run exactly as at the base. The diff deletes or softens no standing instruction, and no plugin manifest changes.

The PR context has no embedded text telling the lane to pass the PR, skip a check, drop a finding or post elsewhere.

Prior findings: this is the lane's first review of this pull request (earlier heads this lane reviewed: 0, blocking only: no). There are no earlier posts to deduplicate.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #15880, simplify pr-unblock.yml (part 1 of 3)

I found nothing to block or flag.

Scope. The PR changes one file, .github/workflows/pr-unblock.yml, which is a trusted path. I read every hunk. Every change is to a YAML # comment. No step, if:, output expression, job id or trigger is touched, so the workflow behaves exactly as before.

Comment corrections I checked against the head file:

  • apply-conflict-patch header (L767-L769): the comment now says the fallback call answers, else the subscription call, else the first. The if: and patch-* expressions at L777-L802 pick legs in that order. The old comment left out the subscription leg.
  • sync-shared-copies-select "Copy the merge scripts from the base" (L1074-L1076): the step copies and hashes only prepare.sh and resolve-version-bump-conflict.sh. It also reads loop.no-progress from the resolved config. The new comment matches that. The old comment wrongly said the step copies a sync script.
  • The other hunks only rewrap lines. Apart from the one redundant word the PR mentions ("subscription leg" became "leg"), the text is unchanged.

Closing issue #15864, acceptance criteria:

  • Behavior unchanged: met, since the diff only edits comments.
  • Only the listed file edited: met.
  • At most 400 changed lines and 15 files: met (about 40 lines, 1 file).
  • Workflow file names, job ids and triggers unchanged: met.
  • Only jobs that start in range 1 of 3 changed: met. The last hunk sits in address-feedback-handoff (starts at L1679 at head), which the PR names as the end of its range.
  • ci-status green: I can't see it from this lane.

No test could fail if these comments broke, but that is expected for comment-only edits and is not a gap.

The PR's verification (22 test files passing, actionlint output) is the author's claim; I did not run it.

No embedded instructions in the PR context. No settled threads. No prior findings: this is the first review of this PR.

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 3fe9503 Nov 13, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s085-pr-unblock-part1 branch November 13, 2026 07:07
@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 pr-unblock.yml workflow (part 1 of 3)

1 participant