Skip to content

refactor(ci): simplify work-unblock.yml workflow - #15916

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/s479-work-unblock
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/s479-work-unblock

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15894

session: Simplify E2 B

Summary

A /simplify pass over .github/workflows/work-unblock.yml (whole file). Only comments change, so behavior is the same. This is the last chunk on session B's E2 list. It is held with do-not-merge once green, until the simplify orchestrator confirms R2's children are filed (E2 closes when its last chunk merges).

Fix

  • label-unblocked, the lane-token comment: it sat above "Report a lane the config turns off" but describes "Request the lane token". It now sits on that step. sweep-gap.test.mjs strips comment lines before it compares the steps.
  • Header, the hold list: it listed needs-owner-decision twice. "report-outcome no longer sets that hold" now reads "does not set".
  • Rewraps: the header (up to 117 columns), the API_BUDGET_HOLD note, the publish-lane-level header and the sync-status header were rewrapped.

Considered and left as is

  • KILL_SWITCH: its proceed == 'true' && 'proceed' || '' always yields proceed there. It stays as a kill-switch guard.
  • The steps.config.outcome == 'success' && clauses: sweep-gap.test.mjs and pace.test.mjs pin them.
  • The trusted-actor check in sync-status: it stays.

Verification

  • 25 local test files name this workflow, and each passes under scripts/run-test-file.sh. They include label-unblocked.test.mjs, sweep-gap.test.mjs, pace.test.mjs, log-api-budget.test.mjs, callers.test.mjs and check-kill-switch.test.mjs.
  • Local actionlint 1.7.12 reports no errors beyond the cache-mode and concurrency.queue keys it does not know, which origin/main also has.
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

  • Restructuring pass (R2, Restructure and dedupe workflow files (final group, host sessions) #15695): the revoke step appears three times and the kill-switch report step nearly three times. A shared composite action would remove the copies.
  • Pre-existing (advisory): docs/conventions/pr-pipeline.yaml (the sync-status entry, around line 889) says sync-status is "Started by a status label added or removed, and by the hourly sweep". The job never runs on schedule, as callers.test.mjs asserts, so the doc line is wrong. No runtime effect.

🤖 Generated with Claude Code

Comment-only:
- label-unblocked: move the lane-token comment from "Report a lane the
  config turns off" onto "Request the lane token", the step it
  describes.
- Header: needs-owner-decision was listed twice among the holds; drop
  "no longer" history narration.
- Rewrap the header, API_BUDGET_HOLD, publish-lane-level and
  sync-status comments that ran past 80 columns or broke short.

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-13T08:42:56.535067Z 38a7ad8 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 38a7ad82f8a4f731e5ef9ecec6f3ce5cdeea0e64: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings.

I read the whole change to .github/workflows/work-unblock.yml, the only file in the diff and a trusted path. Every hunk edits YAML # comments and nothing else. No step, if:, env:, job id, trigger or workflow name changes, so the workflow's behavior and the token broker's checks are unaffected.

What I checked against the code at head:

  • Moved lane-token comment. It now sits above Request the lane token (work-unblock.yml#L296-L300), the step it describes. It no longer sits above Report a lane the config turns off. This is correct.
  • Hold list in the header. Removing the duplicate needs-owner-decision leaves needs-owner-decision, needs-reporter-info, needs-human. Those are the first three entries of LANE_HOLDS (report-outcome.mjs#L921). The set also holds untrusted, attended, host-run and outside-actor labels, but the header left those out before this PR too, so the change introduces no new gap.
  • "report-outcome does not set that hold". This matches the source comment at report-outcome.mjs#L370-L373 ("report-outcome sets none").
  • Rewrapped paragraphs (header, API_BUDGET_HOLD note, publish-lane-level and sync-status headers). The wording is the same as before; only the line breaks moved.

Closing issue #15894, acceptance criteria:

  • Behavior unchanged; every workflow file name, job id and trigger unchanged: met, since the diff changes comments only.
  • Diff edits only the listed file: met.
  • Within 400 changed lines and 15 files: met.
  • ci-status green: I can't check this from here; it is left to CI. The PR's local test runs and actionlint result are the author's claims, and I did not verify them.

The PR context has no embedded instructions aimed at the lane. Nothing in this change spends API credits or creates a charge.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #15916 (refactor(ci): simplify work-unblock.yml workflow)

I found no security issues.

Scope. I read the whole diff for the only changed file, .github/workflows/work-unblock.yml. It is on the trusted-paths list, so I checked every hunk closely. All seven hunks change YAML # comment lines and nothing else:

  • Header comment. The duplicate needs-owner-decision is removed from the hold list, and "no longer sets" now reads "does not set". This is documentation only. The actual hold rules are in .github/scripts/work-unblock/label-unblocked.mjs, which this PR does not touch.
  • Lane-token comment moved. It used to sit above "Report a lane the config turns off" and now sits above "Request the lane token", the step it describes. The if: condition, id: and inputs of both steps are unchanged, so the lane token's scope and the conditions for minting it are the same.
  • Rewraps. The comments for API_BUDGET_HOLD, publish-lane-level and sync-status are rewrapped without changing what they say.

Trust controls. Nothing widens:

  • No permissions: block, if: condition, token request or trigger changes.
  • The kill-switch wiring and the trusted-actor check are untouched.
  • No new path lets untrusted text or code reach a credentialed step.

No standing instruction is deleted or weakened. The only change of meaning is the duplicate hold label removed from a workflow comment, which drops no hold.

Embedded text. The PR context contains no instructions aimed at the review lane.

Spend. The PR changes no runtime behavior, so it adds no spend.

critical-findings: 0

@kyle-sexton kyle-sexton added do-not-merge Hard merge gate: do not merge while applied. and removed do-not-merge Hard merge gate: do not merge while applied. labels Nov 13, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 090a8c2 Nov 13, 2026
90 of 92 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s479-work-unblock branch November 13, 2026 11:59
@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 work-unblock.yml workflow

1 participant