Repository navigation
fix(pr-pipeline): refuse every lefthook config and script path in fix-ci and address-feedback patches - #12729
Conversation
…-ci and address-feedback patches The lefthook refusal on the ci-context and review-threads rows matched only the root lefthook.yml, so a patch could still change a hook through any other file lefthook reads. It now also matches, in any case and through any .. segment: lefthook, .lefthook, lefthook-local and .lefthook-local at the root and lefthook and lefthook-local under a root .config/, each with .yml, .yaml, .toml, .json or .jsonc, and any path whose first segment is .lefthook or .lefthook-local. The issue row and protected-paths.mjs are unchanged. Refs: #8283 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39
…plugins into fix/8283-lefthook-refusal
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-review reviewed Code review: no findingsWhat changed. On the
The schema description, the pipeline README and a changelog fragment are updated to match. Correctness. I read the new rule at apply-patch.mjs#L97-L111 alongside
Closing issue #8283 (the 2026-11-03 decision's criteria).
The earlier decision's criteria ( Verification. The test counts in the PR body (353 apply-patch, 877 resolve-config) come from the author and I have not verified them. This lane has no shell, so I ran nothing. Embedded text. I found no instructions to the lane in the PR context or the prior-findings file. No plugin manifest changed. There is nothing in a hold class: the change only adds refusals and has no billing effect. |
|
claude-security-review reviewed Security review: PR #12729 (head 60d5d19)I found no security issues. What changed. The
The schema description, the pipeline README, a change note and the tests were updated to match. Trust-control check. This rule decides which paths a fix-ci or address-feedback patch may write. I read the whole change and the code it depends on:
The other three files (schema description, README, change note) are documentation only and gate nothing. No plugin manifest is touched. No instruction surface is deleted or softened. Prior findings. None: 0 earlier rounds, cap 3, not past the cap. Embedded text. The PR context contains no instructions aimed at this review lane. critical-findings: 0 |
Closes #8283
Summary
The
lefthookrefusal on theci-contextandreview-threadspatch rows matched only a rootlefthook.yml. A fix-ci or address-feedback patch could still change which git hooks run through any other file lefthook reads, such aslefthook-local.ymlor.lefthook/. This covers the rest, per the recorded decision.Fix
lefthookrule inapply-patch.mjsnow also refuseslefthook,.lefthook,lefthook-localand.lefthook-localat the root andlefthookandlefthook-localunder a root.config/, each with.yml,.yaml,.toml,.jsonor.jsonc, plus any path whose first segment is.lefthookor.lefthook-local. Same case and..handling as before, throughsegments.patch-rules.jsonandprotected-paths.mjsare unchanged, since those two rows already namelefthook.Verification
node --test .github/scripts/apply-patch/apply-patch.test.mjs: 353 pass, 0 fail on this head, run by the orchestrator. The worker's run before the rule change had 125 failures, all new tests.checkPatchRulestests.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39