Repository navigation
fix(ai-slop): skip generated regions in audit and fix - #7646
Conversation
The pr-refine fix-docs lane runs ai-slop:audit fix, which rewrote prose inside the plugin-options README block that scripts/sync-plugin-options-docs.py owns, so check-plugins failed with STALE options docs. A standalone BEGIN GENERATED / END GENERATED pair now bounds a region neither the detector nor the fix flow touches; an unclosed region is reported on stderr. Closes #7554 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01142G3q93eRo5F2pCccf74t
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 finished @kyle-sexton's task in 1m 41s —— View job Security review complete
No security issues found. This PR adds a "generated region" exemption to the ai-slop audit's text extractor Checked for:
No CI workflow files were touched, so Actions-hardening concerns (zizmor's lane) don't apply here. claude-lane-summary: lane=claude-security-review sha=16ea14133c9b233bc54ccd9a57bd39c2b99839d0 run=38952143892 |
|
Claude finished @kyle-sexton's task in 4m 11s —— View job Code review
Findings1. The fix doesn't cover the layer the bug actually came from (inline comment on The PR body says the original edit (
Net effect: Everything else checked out:
claude-lane-summary: lane=claude-review sha=16ea14133c9b233bc54ccd9a57bd39c2b99839d0 run=38952143602 |
|
claude-security-review has reviewed this pull request through 6c996aa; a later push is reviewed from there. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16ea14133c
ℹ️ 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-review has reviewed this pull request through 6c996aa; a later push is reviewed from there. |
|
Claude finished @kyle-sexton's task in 1m 23s —— View job Security review complete
No security issues found. The code at HEAD (
Note: a separate review already flagged (as a correctness/code-quality finding, not security) that the rubric fan-out layer isn't wired to skip generated regions, so the stated "neither layer audits it" guarantee doesn't hold end-to-end. That's a functional gap, not an exploitable security boundary, since the ai-slop audit doesn't gate anything security-sensitive — out of scope for this lane. No CI workflow files were touched, so Actions-hardening concerns (zizmor's lane) don't apply here. claude-lane-summary: lane=claude-security-review sha=b61bb822bb328a8e00fab3d6e0d9a16fbe02fbac run=39005746894 |
|
Claude finished @kyle-sexton's task in 50s —— View job Code review complete
Result: skip gate — no new review neededThe new HEAD ( So this lane's prior review at claude-lane-summary: lane=claude-review sha=b61bb822bb328a8e00fab3d6e0d9a16fbe02fbac run=39005746950 |
…check The rubric fan-out prompt's boundary list and its cue counter, and the closing em-dash cross-check, still read generated regions, so the rubric layer could still edit them and the cross-check reported a false Disagree row. Each parser now skips a BEGIN GENERATED / END GENERATED region; the parsers stay separate, since cross-check.sh is an independent parse by design. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01142G3q93eRo5F2pCccf74t
|
Claude finished @kyle-sexton's task in 4m 24s —— View job Code review complete
ScopeReviewed only the diff since FindingsNone. The incremental change closes both previously flagged gaps:
Both files' claude-lane-summary: lane=claude-review sha=6c996aa7ac3d7eccb3322209a0ca29db56b2bb95 run=39006774276 |
|
Claude finished @kyle-sexton's task in 1m 23s —— View job Security review complete
No security issues found. This increment wires the same "generated region" exemption that
No CI workflow files were touched, so Actions-hardening concerns (zizmor's lane) don't apply here. claude-lane-summary: lane=claude-security-review sha=6c996aa7ac3d7eccb3322209a0ca29db56b2bb95 run=39006774365 |
Closes #7554
Summary
The
pr-refine / fix-docslane runsai-slop:audit fix(docs/conventions/pr-pipeline.yaml:6-7). Neither the audit's detector nor its fix flow knew about generated regions, so the fix pass rewrote prose inside the plugin-options README block thatscripts/sync-plugin-options-docs.pyowns, andcheck-pluginsthen failed withSTALE options docs.Fix
plugins/ai-slop/skills/audit/scripts/detect.sh: a standalone<!-- BEGIN GENERATED: ... -->line through the next standalone<!-- END GENERATED: ... -->line is dropped before any rule runs, like fenced code. A backticked mention opens nothing. A region with no END line is reported on stderr, as an unclosed fence is.plugins/ai-slop/skills/audit/SKILL.md: neither layer audits a generated region, and the fix flow never edits it, rubric and voice rewrites included. That covers the reported edit, which was a judgment rewrite rather than a detector finding.reference/catalog.md: the policy-level exemption lists generated regions.The rule keys on the shared
BEGIN GENERATED:/END GENERATED:spelling, so it also covers the convention-home, config-cascade and instruction-placement generators, not only plugin options.Verification
bash plugins/ai-slop/skills/audit/scripts/detect.test.sh: All 248 cases passed. The 4 new cases cover prose outside a region still being flagged, the line after END being scanned again, region content staying exempt, a backticked marker mention opening nothing, and an unclosed region being reported.detect.shover all 65 tracked markdown files that carry aBEGIN GENERATED:marker: no unclosed-region warning.shellcheckondetect.shanddetect.test.sh: clean.scripts/check-changelog-fragments.sh --checkand--check-required origin/main: pass.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01142G3q93eRo5F2pCccf74t