Repository navigation
fix(ci): pr-require-checks fixes for #8405, #9520 and #9777 - #10273
Conversation
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]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings in this pull request. critical-findings: 0 I read the whole change to the trusted path
Manifests: the diff changes no 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 |
|
claude-review reviewed 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
Closing issues
Manifests: no 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: Embedded instructions: the PR context file contains no embedded instructions. |
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(ci): stop running markdownlint from an unverified npx cache #8405:
lint-repono longer restores or saves the markdownlint npx cache. Cache contents are not verified, and npx runs a matching cached tree without fetching it again.fix(ci): ci-status's hold-lift window counts a removal made through an App #9520: the lift window in ci-status's cost-hold step no longer opens on a removal of the human-gated label that an App made on behalf of a trusted person.
The same rule now also applies in ci-status's hold-lift step: a removal an App made does not count as a person lifting a review-lane hold.
ci: retire the unused description-voice gate, the drive-root no-op step and the default listing-budget report #9777: removes three CI items that cannot change an outcome:
drive_root_noopstep;The configured-fraction listing-budget step now runs only on the schedule. The owner's added scope is also in: the
pr-body-linkage-gateandpr-linkage-mcp-gatehooks now recognise the renamedpr-require-checks/check-contractcomposite path.Fix
sinceselect in the "Clear a cost-only review hold the owner decided" step also requires.performed_via_github_app == null.performed_via_github_appon the removal that lifts the hold.::errorthat names the App, the same way it fails for an untrusted actor.performed_via_github_app: null. The owner's own removals on fix(ci): stop running markdownlint from an unverified npx cache #8405 (2026-10-25 and 2026-10-26) shownull.drive_root_noopstep and its comment block, and drops it from thelint-shellheader.listing_budgetstep.CHECK_RESULTSand fromscripts/check-affected-gates.txt.listing_budget_configuredstep now hasif: github.event_name == 'schedule'. Its aggregate entry maps the skip tosuccessonly on the complement of that condition (github.event_name != 'schedule' && 'success' || steps.listing_budget_configured.outcome). This follows the feed rule that an override tests the same condition that gates its step; the aggregator itself still fails on anyskippedit receives.scripts/check-skill-description-voice.shand its test.scripts/lib/gate-entry.sh("Two gates stay outside"), and itssuite-seconds.txtline.docs/cloud-sessions.mdnow calls the remaining listing-budget step "scheduled".gate_reis now\.github/actions/(pr-contract|pr-require-checks/check-contract)([@[:space:]]|$). The old path still matches for consumers on older pins. The hook comments, the plugin README and asource-controlpatch fragment are updated to match.Verification
actionlint .github/workflows/pr-require-checks.ymlexits 0.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.scripts/ci-hold-lifted-by.test.sh.pr-body-linkage-gate.test.shandpr-linkage-mcp-gate.test.shuse a repository that wires in only the new path. Both failed before the fix and pass after it.git grep -n 'check-skill-description-voice'prints nothing.git grep -n 'drive-root-scan-noop\|drive_root_noop' -- .github scriptsprints nothing.scripts/check-drive-root-litter.shstill exists.grep -n 'id: listing_budget$'prints nothing.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.shandcheck-lane-coverage.shwere run locally. Results are in the session report.ci-statuson the PR head is left to CI.Related
cache-mode: read) for fix(ci): stop running markdownlint from an unverified npx cache #8405.🤖 Generated with Claude Code