Repository navigation
feat(scripts): add warn-only gate for git-bearing multi-line precompute blocks - #2442
Conversation
…te blocks Encodes the #1619 composition rule: a skill whose Pre-computed context section has more than one inline injection and any git command will be refused in worktree-isolated agents. Warn-only by default until the #1619 remediation wave graduates the gate to --strict. Closes #1662. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 1m 37s —— View job Security review complete
No security issues found. This PR adds a static, read-only lint script (warn-only by default) and wires it into an existing CI job — no new trust-boundary crossing:
Nothing here matches the injection, authorization, secret-handling, or workflow-permission risk patterns this review was scoped to catch. (Supply-chain/action-pin and workflow-trigger/permission patterns are deferred to zizmor's advisory lane per review scope, and I didn't find anything in that category here either — the added steps don't touch |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ede4bc110
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude finished @kyle-sexton's task in 5m 14s —— View job Review complete
|
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Warning Automated security review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
The check is green on purpose, and it is not evidence. It certifies that a security pass ran, and this one did not complete — but the cause is outside this PR's control, so merging is deliberately left unblocked rather than locking every merge for the length of the outage. Nothing was reviewed at this head. Where this check is required, it is satisfied without that evidence; a human should review security-sensitive changes here before merging. Re-run the job to retry the review; a new push also retries it only if the caller's Re-running does NOT help for every class:
|
|
Warning Automated review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
Re-run the job to retry the review. A new push re-triggers this lane only if the caller's |

Implements the static gate proposed in #1662.
Summary
scripts/check-skill-precompute-compose.shto detect skills whose## Pre-computed contextblock has more than one inline!command`` injection and any git command — the composition that fix(skills): worktree-isolated agents cannot invoke a skill whose pre-compute block contains a $-expansion (21 skills; NOT git — see correction comment) #1619 proved breaks worktree-isolated agents.--strictfails closed for future graduation after fix(skills): worktree-isolated agents cannot invoke a skill whose pre-compute block contains a $-expansion (21 skills; NOT git — see correction comment) #1619 remediation.Decision brief (#1662)
RECOMMENDED: warn-first gate in CI, graduate to
--strictonce #1619 remediation clears existing violations. This PR ships warn-only as recommended.Closes #1662.
Related