fix: exclude .codex/** from the self-audit scanner, matching .claude/** - #87
Conversation
PR #86's self-audit CI job failed with 5 critical/8 high findings, all inside .codex/hooks/ -- the exact same byte-for-byte content already living in core/hooks/ and .claude/hooks/, which the scanner has never flagged. Root cause: .yana-aiignore already excludes .claude/** as 'internal tooling dirs -- scanner infrastructure, not user code' but was never updated to exclude .codex/** the same way when Codex adapter support was added. The findings themselves are the known false-positive class this ignore file already exists to handle -- guard-destructive.sh contains destructive-SQL and force-push keywords as its own detection patterns (text it matches against to block them), not code that executes or performs either action. Verified locally: full-repo scan before this fix showed 20 findings under .codex/ and 0 under .claude/ for identical content; after adding the ignore entry, 0 findings remain under .codex/. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
yana | 33bc4b8 | Commit Preview URL Branch Preview URL |
Jul 27 2026, 05:50 AM |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughCập nhật ChangesCấu hình phạm vi bỏ qua
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
main's
Yana AI Self-Auditjob is currently failing (5 critical / 8 high findings) after PR #86 merged.codex/(agents + hooks mirror) into the repo. All findings are inside.codex/hooks/— the exact same byte-for-byte content already living incore/hooks/and.claude/hooks/, which the scanner has never flagged.Root cause:
.yana-aiignorealready excludes.claude/**as "internal tooling dirs — scanner infrastructure, not user code" but was never updated to exclude.codex/**the same way when Codex adapter support was added. The findings themselves are the known false-positive class this ignore file already exists to handle —guard-destructive.shcontains destructive-SQL and force-push keywords as its own detection patterns (text it matches against to block them), not code that executes or performs either action.Verified locally
.codex/, 0 under.claude/for identical content..codex/.This is a single-line addition to
.yana-aiignore, cherry-picked from the same fix already pushed to the (separately merged) PR #86 branch, onto a clean branch off currentmainfor a minimal, easy-to-review diff.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Summary by CodeRabbit
.codex.