-
Notifications
You must be signed in to change notification settings - Fork 0
fix: harden Codex auto-resolve review guard #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f86ae20
feat: add image generation metadata re-stamp script
BigSimmo bac1752
chore: reconcile ingestion RPC execute privileges, schema.sql and dri…
BigSimmo 9216187
ci: add db-reset-verify and dependency-review workflows
BigSimmo 83b437e
ci: remove dependency-review workflow because repository is private w…
BigSimmo 1eee7d8
Merge origin/main into claude/llm-pipeline-review
Copilot 50adfd5
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
Copilot 6b7e581
📝 CodeRabbit Chat: Simplify code implementation (#434)
coderabbitai[bot] 7efedc2
fix(db): rename duplicate migration version 20260708160000 to unique …
BigSimmo 24314db
fix: run prettier on 19 files to fix CI format:check failure (#436)
Copilot def4753
fix: address PR 433 review comments
cursoragent 255ca67
fix: address follow-up PR 433 review comments
cursoragent e811cc1
fix: address PR 433 review blockers
BigSimmo 553eac9
fix: address PR 433 review comments on image re-stamp and eval forcing
cursoragent d831252
Merge origin/main into claude/llm-pipeline-review
Copilot 7449ebf
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo a76fc39
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo 6a90516
fix: restore neutralized 160000 migration for Supabase Preview parity
BigSimmo e1b5407
ci: keep supabase cache save non-blocking
BigSimmo 6c06307
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo 93c70e3
ci: run migration verification before docker image cache save
Copilot c424845
fix: address registry corpus review comments
BigSimmo 75ad728
Finish RAG registry re-embed and quality routing (#438)
BigSimmo 3e64189
docs: codify review and branch cleanup workflow
BigSimmo 009e85c
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo fb382ee
ci: soft-skip Codex autoresolve comment permission errors
BigSimmo b40d991
merge: start resolving conflicts with origin/main
Copilot bb2f12c
Merge branch 'main' into codex/autoresolve-listcomments-403
BigSimmo 11d567d
merge: resolve conflicts with origin/main
Copilot c5cd50a
fix: run prettier on files failing CI format:check
Copilot 73aab70
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] 9130372
fix: format docs/branch-review-ledger.md to pass Prettier check
Copilot f81bdc4
merge: resolve conflicts with origin/main
Copilot ecd4fd4
fix: harden Codex auto-resolve review guard
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| import fs from "node:fs"; | ||
|
|
||
| const workflowPath = ".github/workflows/codex-autofix-review-comments.yml"; | ||
| const workflow = fs.readFileSync(workflowPath, "utf8"); | ||
|
|
||
| const failures = []; | ||
|
|
||
| const forbiddenPatterns = [ | ||
| { | ||
| pattern: /github\.event\.pull_request\.head\.sha/, | ||
| message: "Do not key the Codex auto-resolve workflow on github.event.pull_request.head.sha.", | ||
| }, | ||
| { | ||
| pattern: /pr\.head\.sha/, | ||
| message: "Do not key the Codex auto-resolve workflow on pr.head.sha.", | ||
| }, | ||
| { | ||
| pattern: /^\s*issue_comment:/m, | ||
| message: "Do not trigger Codex auto-resolve from issue_comment events.", | ||
| }, | ||
| { | ||
| pattern: /^\s*pull_request_review:/m, | ||
| message: "Do not trigger Codex auto-resolve from whole pull_request_review events.", | ||
| }, | ||
| ]; | ||
|
|
||
| for (const { pattern, message } of forbiddenPatterns) { | ||
| if (pattern.test(workflow)) { | ||
| failures.push(message); | ||
| } | ||
| } | ||
|
|
||
| if (!workflow.includes("group: codex-autoresolve-${{ github.event.pull_request.number }}")) { | ||
| failures.push("Codex auto-resolve concurrency must be scoped to the pull request number only."); | ||
| } | ||
|
|
||
| if (!workflow.includes("codex-autoresolve-pr:${pr.number}")) { | ||
| failures.push("Codex auto-resolve marker must be scoped to the pull request, not the head SHA."); | ||
| } | ||
|
|
||
| if (!workflow.includes('sourceBody.includes("@codex resolve all review comments")')) { | ||
| failures.push("Codex auto-resolve workflow must skip comments that already look like resolve requests."); | ||
| } | ||
|
|
||
| if (failures.length > 0) { | ||
| console.error(`Codex auto-resolve workflow guard failed for ${workflowPath}:`); | ||
| for (const failure of failures) { | ||
| console.error(`- ${failure}`); | ||
| } | ||
| process.exit(1); | ||
| } | ||
|
|
||
| console.log("Codex auto-resolve workflow guard passed."); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.