Skip to content

refactor(ci): simplify pr-require-checks.yml workflow (part 2 of 4) - #15884

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-pr-require-checks-p2
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-pr-require-checks-p2

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15830

session: Simplify E2 A

Summary

Runs /simplify on the second quarter of .github/workflows/pr-require-checks.yml (E2 chunk S072, part 2 of 4), after part 1 (#15870) merged. The file had 7747 lines at origin/main; part 2 owns lines 1938-3874, so the jobs that start there: lint-shell, check-plugins, check-catalog, check-skills, test-bash and test-python. Every edit is a comment: the parsed workflow, and so every job, step, if:, env line, output, permission and printed line, is unchanged.

Fix

Comments that misstated the code:

  • check-plugins header: the schema steps run check-jsonschema from the pip install; no step uses a composite that leaves uv on PATH.
  • "Find the shell files to lint": it branches in the shell because the diff base is a data output, which the docs-only gate (scripts/check-docs-only-gate.sh, property 10) bars from conditions, not because of a resolver/event gate clash.
  • The manifest-validation trigger also covers the root package.json; the fixture-isolation step also declines on a change to this workflow, and declines with a notice rather than skipping.
  • The listing-budget comment named "a literal 0.05" (.claude/settings.json sets 0.06) and said the script "always exits 0" (it exits 2 on a usage error).
  • The eval quality lint is not whole-repo: it lints the sets of skill directories the diff touched, or every set without a diff base.
  • The toolchain-install comment credited it with ffmpeg (an earlier step installs it) and left out check-visual-parity's packages and VISUAL_COMPARE_REQUIRE; the check-skills header left out the eval suite validation.
  • The killswitch-hoist comment cited a 2,684-line hook-utils.sh and timings measured at that size (it is now about 5,100 lines); it now states the rule.

Also: incident timelines ("shipped three times", "two unbumped vendor edits shipped", a 14-minute dropped manifest) are cut to the rule with the issue references kept; repeated sentences between the job headers and step comments are dropped; about a dozen comments that broke mid-sentence or ran past the width (up to 130 columns) are rewrapped.

Left out: rejoining .claude/cloud-bootstrap.sh, which a comment splits across two lines (on one line it would become visible to the workflow path scrapers), and the lint-shell aggregator comment's twin in lint-repo.

Verification

  • actionlint .github/workflows/pr-require-checks.yml: clean; node scripts/check-artifact-retention.mjs: 152 upload steps match.
  • scripts/check-docs-only-gate.sh --check and scripts/check-lane-coverage.sh --check: pass.
  • node --test --test-concurrency=4 on the 30 node test files that name this workflow: 4034/4034 pass.
  • scripts/run-test-file.sh on the 36 shell test files that name it (under uv run --with pyyaml, since this machine's python3 lacks PyYAML): all pass.
  • test_merge_holds_sync.py, which scrapes workflow text for action and script paths: 21 passed.
  • Left to CI: the full .github suite (ci-status).

Follow-ups

  • check-catalog's header says "every step, the checkout included, is gated"; "Save the npm cache" and the API-budget step gate differently, so "every work step" would be accurate.
  • The counter-ceilings comment sits above "Restore the pinned tool downloads" rather than the step it describes, and an orphan PowerShell note in check-plugins sits above no step.

Related

Part of #15694 (E2, the /simplify epic's workflow group). Part 1: #15870. Parts 3-4: S073 (#15851), S074 (#15861).

🤖 Generated with Claude Code

Comments only, in the jobs that start in the second quarter of the
file (lint-shell, check-plugins, check-catalog, check-skills, test-bash,
test-python): correct comments that misdescribe the code (no step uses
uv any more, the changed-shell branch is in the shell because the diff
base is a data output, the manifest regex covers package.json, the
fixture-isolation step also declines on this workflow, the listing
budget fraction and the script's exit codes, the eval quality lint's
scope, the toolchain step's installs, check-skills' contents), replace
incident narration and stale measurements with present-tense rationale
keeping the issue references, drop repeated sentences, and rewrap
comments that broke mid-sentence or ran past the width.

Closes #15830

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 07:04
@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:05:34.368173Z fb07c68 Draft marked ready
ℹ️ 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 fb07c683e898c4265a46f6df2dd7e6cad10883d0: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

Scope: I read all of the one changed file, .github/workflows/pr-require-checks.yml. It is on the trusted-path list, and it holds the ci-status merge-hold steps, so I read every hunk with the trust-control lens.

What I checked: I compared each of the 18 hunks line by line. Every removed line and every added line is a YAML # comment. That includes the two hunks that sit inside a step body, the env: block at L2363-2370 and the manifest-validation step comment at L3041-3045. No key, value, if: condition, permissions: entry, env: value, run: script, uses: pin or output changes. The context lines show the executable lines unchanged, for example GH_TOKEN: ${{ github.token }}, the CHECK_RUN_ID line, the shellcheck@2476d5dd... pin and the if: github.event_name == 'merge_group' gate. So the parsed workflow is the same, which matches what the PR description says.

Trust controls:

  • ci-status merge hold: no merge hold is weakened, narrowed or removed. None of the ci-status hold logic is touched.
  • Kill switch: the kill-switch hoist comment (L2183-2188) is reworded only. The hooks' ordering rule and the check that enforces it are unchanged.
  • Other controls: nothing widens who is trusted, what a token may do, or what untrusted text reaches a lane.

Instruction-surface lens: the deleted text is workflow comments: incident timelines and repeated explanations. These are not standing instructions to a model: they are not CLAUDE.md or AGENTS.md text, a skill or agent body, or a hook's block list or allowlist. The gates they describe still run unchanged, so no protected rule loses its only enforcement. I did not consult the instruction-exception register because no instruction-surface rule was removed.

Embedded text: the PR context has no directives aimed at the review lane.

Spend: none. Comment-only changes alter no lane's runtime, schedule or model use.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR changes only comments in .github/workflows/pr-require-checks.yml, the second quarter of the file. I read every hunk of the diff. Each added or removed line is a YAML comment, so no job, step, if:, env entry, output or run body changes.

New comments I checked against the code they describe at head:

  • Fixture git isolation step: the step declines with a ::notice:: when the diff has no *.sh or *.py file, no baseline change and no change to this workflow (L2229-L2244). The new comment matches.
  • Killswitch hoist, rule 1: scripts/check-killswitch-hoist.sh applies rule 1 to PreToolUse and PostToolUse hooks, as the comment now says.
  • Why the shell-file step branches in the shell: scripts/check-docs-only-gate.sh ("DATA IS NOT A GATE", property 10) rejects a data output used in an if:. That matches the new reason given for branching in the shell.
  • check-plugins header: the schema steps run check-jsonschema from the pinned requirements install (L2781-L2796), not a composite that leaves uv on PATH.
  • Node gating: "Set up Node" and "Check performance counter ceilings" both gate on run_tests == 'true'.
  • Plugin validation trigger: the full-validation regex includes package(-lock)?\.json (L3051).
  • Listing-budget exit codes: check-listing-budget.sh exits 0 except for exit 2 on a usage or environment error.
  • ShellCheck install check: scripts/aggregate-hygiene-results.sh has exactly one # shellcheck source=/dev/null source.
  • Toolchain install: the step installs check-visual-parity's packages on the visualcheck leg, and VISUAL_COMPARE_REQUIRE: '1' is set at L3788.

Closing issue #15830, criterion by criterion:

  • Behavior unchanged: met, since only comments change. No test is needed for a comment-only change.
  • Only the listed file edited: met; the diff touches one file.
  • Within 400 changed lines and 15 hand-edited files: met.
  • Workflow file names, job ids and triggers unchanged: met.
  • Only jobs that start in range 2 of 4 changed: met. Every hunk falls between head lines 2121 and 3815, inside the 1938-3874 range the PR states.
  • ci-status is green: not yet known. It depends on CI, and the PR body leaves it to CI (author-claimed and unverified).

The PR's Verification section (actionlint, the docs-only and lane-coverage gates, the node and shell suites) is the author's claim; I did not run any of it. The PR context, which includes the PR body and the closing issue, contains no text addressed to this lane.

Spend: none beyond this review run.

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 f9d09f9 Nov 13, 2026
101 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/simplify-pr-require-checks-p2 branch November 13, 2026 07:25
@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-require-checks.yml workflow (part 2 of 4)

1 participant