Skip to content

fix(ci): pr-require-checks fixes for #8405, #9520 and #9777 - #10273

Merged
kyle-sexton merged 6 commits into
mainfrom
fix/pr-require-checks-8405-9520-9777
Oct 26, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
fix/pr-require-checks-8405-9520-9777

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #8405
Closes #9520
Closes #9777

Summary

Three fixes to .github/workflows/pr-require-checks.yml, one commit each. The issue lane cannot push workflow files, so an agent session built them.

Fix

Verification

  • actionlint .github/workflows/pr-require-checks.yml exits 0.
  • fix(ci): ci-status's hold-lift window counts a removal made through an App #9520: a new case in scripts/ci-hold-cost-decision.test.sh ("a removal an App made for a trusted person does not open the window") failed before the fix and passes after it. The existing case "a trusted person's removal of the trust-gate hold opens a new window" still passes.
  • Hold-lift step: two new cases in scripts/ci-hold-lifted-by.test.sh.
    • "a removal an App made for a trusted person fails, naming the App" failed before the change (rc=0, the hold was lifted) and passes after it.
    • "a trusted person's direct removal (performed_via_github_app null) passes" passes.
    • The suite is 35 passed, 0 failed.
  • ci: retire the unused description-voice gate, the drive-root no-op step and the default listing-budget report #9777 added scope: new cases in pr-body-linkage-gate.test.sh and pr-linkage-mcp-gate.test.sh use a repository that wires in only the new path. Both failed before the fix and pass after it.
  • ci: retire the unused description-voice gate, the drive-root no-op step and the default listing-budget report #9777 done-when greps: git grep -n 'check-skill-description-voice' prints nothing. git grep -n 'drive-root-scan-noop\|drive_root_noop' -- .github scripts prints nothing. scripts/check-drive-root-litter.sh still exists. grep -n 'id: listing_budget$' prints nothing.
  • Every test suite that reads pr-require-checks.yml, scripts/check-script-contract.test.sh, the hook tests, aggregate-hygiene-results.sh --self-test, check-silent-skips.sh, check-docs-only-gate.sh and check-lane-coverage.sh were run locally. Results are in the session report.
  • ci-status on the PR head is left to CI.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 6 commits October 25, 2026 23:36
lint-repo restored ~/.npm/_npx and ~/.npm/_cacache under a static key
before the markdownlint composite ran `npx --yes markdownlint-cli2@<pin>`,
and saved them from main. Cache contents are not signed or verified, and
npx runs a matching tree it finds without re-fetching it, so a poisoned
cache entry would run in lint-repo on every pull request and could forge
the results that feed ci-status. Delete both cache steps so npx fetches
from the registry on each run.

Closes #8405

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…oval

ci-status's cost-hold step opened its lift window at the newest
`unlabeled` event for the human-gated label whose actor id is on the
trusted list, without checking performed_via_github_app. A removal an
App made while acting for a listed person counted as that person's lift,
which the merge policy's own rule refuses. The select now also requires
performed_via_github_app to be null. A new case in
scripts/ci-hold-cost-decision.test.sh shows an App-made removal by a
listed id opens no window; the existing trusted-removal case shows a
person's direct removal still does.

Closes #9520

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the default listing-budget report

Removes CI work that cannot change an outcome:

- scripts/check-skill-description-voice.sh and its test had no caller;
  their contract row, gate-entry mention and suite-seconds line go too.
- lint-shell's drive_root_noop step asserted on every PR that a
  Windows-only scanner does nothing on Linux. The step, its aggregate
  row and its check-affected-gates row are gone; the scanner stays,
  tested on Windows by pr-test-windows.yml.
- check-skills' default-consumer listing-budget report measured a budget
  this fleet is permanently over. The configured-fraction tripwire now
  runs only on the schedule, and its aggregate entry maps the skip to
  success on the complement of that condition, as the feed rules ask.

Added scope from the issue: the pr-body-linkage-gate and
pr-linkage-mcp-gate hooks' scope guard now also matches the renamed
composite path .github/actions/pr-require-checks/check-contract, with a
test in each that fires the gate in a repository wiring only that path.

Closes #9777

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ci-status's "Fail a review-lane hold an untrusted account lifted" step
took the first removal of the human-gated label after a review-lane hold
as a person's approval whenever the actor id was on the trusted list,
without checking performed_via_github_app. A removal an App made with a
listed person's user token therefore counted as that person's approval.
The step now fails with an ::error naming the App, as it does for an
untrusted actor. A person's direct removal, whose event carries
performed_via_github_app null, still lifts the hold.

This applies the rule #9520 set for the cost-hold lift window, and the
one #9512 applied in pr-merge's escalation. New cases in
scripts/ci-hold-lifted-by.test.sh cover both the App-made and the direct
removal.

Refs: #9520

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T12:43:24.828416Z 953ef76 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 953ef76704ce9ce90756e3a6f56a4c7ff2030403: 0 finding(s), 0 as inline comments.

No security findings in this pull request.

critical-findings: 0

I read the whole change to the trusted path .github/workflows/pr-require-checks.yml and what it gates. I judged each change from the code alone. Every change to a merge hold makes it stricter or leaves it as it was, and none widens a trust control.

  • Cost-hold step, since selector: the lift window now opens only on a removal with performed_via_github_app == null. A removal an App made for a trusted person no longer opens it, so the set of removals that can lift the hold is smaller.
  • Hold-lift step ("Fail a review-lane hold an untrusted account lifted"):
    • The query now returns the App behind the removal, and a new check fails the step when one is present.
    • The untrusted-actor check still runs first.
    • The removal checked is the earliest one after the hold, so an App removal followed by a later direct removal still fails. That fails closed.
    • The tab-separated read is safe: the new field is last, and an empty value cannot shift the others.
  • Markdownlint npx cache removed: dropping the restore and save steps for ~/.npm/_npx and _cacache removes a cache-poisoning route into the lint job. This is a hardening.
  • listing_budget and drive_root_noop removed, listing_budget_configured made schedule-only: the aggregate maps a skip to success only on github.event_name != 'schedule', the exact complement of the step's if. The step is continue-on-error and report-only. On a scheduled run its real outcome still reaches the aggregator, so a failure there still counts as a failure.
  • Hook scope guards (pr-body-linkage-gate.sh, pr-linkage-mcp-gate.sh): the guard now also matches pr-require-checks/check-contract, so the PR-body linkage hooks enforce in more repositories. The [@[:space:]]|$ anchor still keeps sibling directories out.
  • Deleted check-skill-description-voice.sh and its test, plus the doc, gate-list, contract-row and suite-seconds.txt edits: the PR description says the gate was not wired to the aggregate. No merge hold depends on it.

Manifests: the diff changes no plugin.json or marketplace.json, so there is no manifest <field> line to report. The .changes fragment is a changelog entry only.

Spend: the change removes CI steps and cache usage and adds no billed resource, so there is no hold.

The pull request description and issue comments hold no embedded instructions aimed at this lane.

Not done: I had no shell, so I did not run the tests the description cites. I also did not look for a base-side check that depends on the removed drive-root-scan-noop or listing-budget result names. scripts/aggregate-hygiene-results.sh and check-affected-gates.txt are outside the listed trusted paths, and the description says the aggregator and gate-list consistency checks were run and pass.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 953ef76704ce9ce90756e3a6f56a4c7ff2030403: 0 finding(s), 0 as inline comments.

I read the whole diff and the PR context and found nothing to flag. I did not run any tests; the test results in the PR description are the author's claims and I did not confirm them.

What I checked

  • fix(ci): stop running markdownlint from an unverified npx cache #8405: the markdownlint cache restore and save steps are gone. Nothing else reads steps.npx_cache.
  • fix(ci): ci-status's hold-lift window counts a removal made through an App #9520: the cost-hold lift-window select now also requires .performed_via_github_app == null. A missing field reads as null in jq, so a person's direct removal still opens the window.
  • Hold-lift step (pr-require-checks.yml:4125-4148): the new fourth @tsv column holds the App slug and is empty for a direct removal. The IFS=$'\t' read handles an empty trailing field. A removal made through an App for a listed person now fails and names the App. A trusted person re-adding the label starts a new hold, so that case is recoverable.
  • ci: retire the unused description-voice gate, the drive-root no-op step and the default listing-budget report #9777 workflow: the drive_root_noop and listing_budget steps are removed, along with their CHECK_RESULTS rows and check-affected-gates.txt rows. listing_budget_configured now has if: github.event_name == 'schedule'. Its aggregate entry maps a skip to success only on the complement of that condition, so a scheduled run still reports the real outcome.
  • ci: retire the unused description-voice gate, the drive-root no-op step and the default listing-budget report #9777 scripts: the description-voice script, its test, its contract row, its gate-entry.sh mention and its suite-seconds.txt line are all removed. check-drive-root-litter.sh and its tests stay. A repo-wide grep found no leftover references to the deleted gate or the drive-root-scan-noop row.
  • Linkage gates: both hooks' gate_re accepts pr-contract and pr-require-checks/check-contract, each followed by @, whitespace or end of line. A sibling directory such as pr-contract-foo is still excluded. Both hooks have new tests that wire in only the renamed path.
  • Changelog fragment: bump: patch fits a hook-scope fix.

Closing issues

Manifests: no plugin.json or marketplace.json changed, so there are no manifest lines.

Spend: removing the two report-only steps and limiting the configured-fraction step to scheduled runs only reduces CI minutes. Nothing here can start a billed charge.

Trusted path: .github/workflows/pr-require-checks.yml matched. I read its whole change and what it gates. The App-removal rule tightens the human-gated label gate and does not widen anything.

Embedded instructions: the PR context file contains no embedded instructions.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 2453617 Oct 26, 2026
48 checks passed
@kyle-sexton
kyle-sexton deleted the fix/pr-require-checks-8405-9520-9777 branch October 26, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant