Skip to content

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

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

kyle-sexton merged 1 commit into
mainfrom
refactor/s087-pr-unblock-part3

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15877

session: Simplify E2 B

Summary

A /simplify pass over the final third of .github/workflows/pr-unblock.yml (part 3 of 3). The range is lines 3388-5081 of 5081 at origin/main 8c0d043: the jobs from review-dependency to the end of the file. Only comments change; behavior does not.

Fix

  • Leg order: the apply-dependency-patch and apply-patch comments said one leg answers with "the fallback call when it ran, else the first". Their output expressions pick the fallback call, else the subscription call, else the first. Both comments now say so, matching refactor(ci): simplify pr-unblock.yml workflow (part 1 of 3) #15880 and refactor(ci): simplify pr-unblock.yml workflow (part 2 of 3) #15893.
  • apply-patch: "Both fix-ci calls refuse a context for another head" now reads "Every fix-ci call". Three calls pass head-sha from fix-ci-context.
  • fix-ci-not-run: it compared itself with publish-feedback-not-run, a job that no longer exists. It now names address-feedback-not-run.
  • Rewrapped headers: a job rename left the handoff, subscription-handoff and fallback headers of the review-dependency, fix-ci and fix-ci-rung-up families 82-133 columns wide. They now match the sibling families' wrapping.
    • "subscription's subscription leg" loses its doubled word.
    • "an review-dependency" becomes "a review-dependency".
  • Other rewraps: the report-stop-status header (with its stacked parentheticals merged), the fix-ci-context skip-reason comment and the apply-dependency-verdict comment are rewrapped.

Why no code changes

  • Pinned by tests: callers.test.mjs pins the handoff jobs' shape, the leg wiring, the rung-up gating, the report-stop-status and report-escalation gates, and key-credit-markers. workflow-gates.test.mjs pins the resolve-config install line and the subscription gates.
  • Not repeated job env: no npm ci line in range repeats the job env.

Verification

  • 22 local test files name this workflow; each passes under scripts/run-test-file.sh.
  • Local actionlint 1.7.12 reports no errors except on the cache-mode and concurrency.queue keys, which it does not know. origin/main gets the same errors.
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

  • Stale test comments: in callers.test.mjs (lines 6055 and 6189), the comments still say "fallback … else the first". They are test text, which is out of scope here.
  • Job-count headers: " is N jobs" is stale across the file. All instances should be fixed in one change.
  • fix-ci-not-run skip list (UNVERIFIED): the job's comment lists a closed PR, a human-gated hold or no failing check as skips. fix-ci-context.mjs may also skip an owned branch.

🤖 Generated with Claude Code

Comment-only:
- apply-dependency-patch and apply-patch pick the fallback call, else
  the subscription call, else the first; the comments left the
  subscription call out.
- apply-patch: every fix-ci call refuses a context for another head,
  not "both" (there are three).
- fix-ci-not-run named publish-feedback-not-run, a job that no longer
  exists; it is address-feedback-not-run.
- Rewrap the handoff, subscription-handoff and fallback headers a job
  rename left 82-133 columns wide in the review-dependency, fix-ci and
  fix-ci-rung-up families ("subscription's subscription leg" loses its
  doubled word, "an review-dependency" becomes "a"), and the
  report-stop-status, fix-ci-context and apply-dependency-verdict
  comments.

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:20:36.240528Z c9c69cf 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 c9c69cf2fc8d4e4f397cd598a4aca65a965dc5da: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no findings

I found no security issues.

Scope. I read the whole diff of .github/workflows/pr-unblock.yml, the PR's only changed file and a trusted path. Every line the diff adds or removes is a YAML comment starting with #, including the three lines inside the apply-dependency-patch job header next to its if:. These parts of the workflow are unchanged:

  • if: conditions
  • needs: lists
  • output expressions
  • permissions: blocks
  • secrets
  • run: steps

So nothing changes in what any job runs, which tokens it gets, or which jobs are gated.

Trust controls. No trust control is widened. The workflow's comment text sets no scope for the lanes App token or broker grants. No trusted-actor check, kill-switch read or merge hold changes, and no untrusted text gains a new route into a lane.

Instruction surface. These are workflow comments, not standing instructions to a model: they are not CLAUDE.md, AGENTS.md, a rules file, a skill or agent body, or a hook list. Nothing is deleted or softened that a session would read as a rule.

Comments vs. code. I compared the reworded comments with the expressions next to them. One example: the "fallback, else subscription, else first" leg order matches the apply-dependency-patch if: expression and outputs. None of the rewording hides a behavior change.

PR context. The description is consistent with the diff. It contains no embedded directives aimed at the review lane.

Plugin manifests. None are touched.

Spend: none. The diff changes no turn limits, models, schedules or runners.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings. This was a full review. I read every hunk of the single changed file, .github/workflows/pr-unblock.yml, which is a trusted path.

Every hunk changes only YAML # comments. No job id, needs, if, with, output expression, permission or trigger changes, so the workflow behaves exactly as before.

I checked the comment fixes against the code at head:

  • Leg order: the apply-dependency-patch and apply-patch comments now say "the fallback call when it ran, else the subscription call when it ran, else the first". Their if and output expressions pick the legs in that order (for example pr-unblock.yml#L4233).
  • Renamed job: fix-ci-not-run now points to address-feedback-not-run. That job exists and also posts neutral when it does not run (L1561). publish-feedback-not-run no longer appears anywhere in the file.
  • "Every fix-ci call": matches the three legs that refuse a context for another head.
  • Rewraps: they keep the original wording, apart from the stated fixes ("subscription's subscription", "an review-dependency", and the merged parentheticals in report-stop-status).

Closing issue #15877 acceptance criteria:

  • Behavior unchanged: met. Only comments change.
  • Only the listed file is edited: met.
  • Within 400 changed lines and 15 files: met (about 100 lines in 1 file).
  • Job ids and triggers unchanged: met.
  • Only range 3 of 3 is touched: met. All hunks start at line 3428 or later, inside the stated range of 3388 to 5081.
  • ci-status green: I could not check this here, so it is unverified.

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

There is no embedded instruction text in the PR context, and there are no prior findings.

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 b1d9172 Nov 13, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s087-pr-unblock-part3 branch November 13, 2026 08:40
@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 3 of 3)

1 participant