GeezerVison is showing github.com — fix: harden Codex auto-resolve review guard by BigSimmo · Pull Request #445 · BigSimmo/PsychSift
Conversation
BigSimmo
commented
Jul 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- keep Codex auto-resolve dedupe scoped to the PR instead of head SHA
- skip review-thread replies and auto-resolve request comments to avoid self-trigger loops
- narrow AGENTS instructions to actionable Codex findings for the current PR head
- make pure-review ledger updates opt-in instead of automatic mutations
- add a CI/static guard to prevent reintroducing SHA-scoped dedupe or broad triggers
Verification
- npm run check:codex-autofix-workflow
- npx prettier --check .github/workflows/codex-autofix-review-comments.yml .github/workflows/ci.yml AGENTS.md docs/codex-review-protocol.md scripts/check-codex-autofix-workflow.mjs package.json
- git diff --check
Notes
- Preserved unrelated dirty local files in the primary worktree; the pushed commit was replayed through a clean detached worktree at the remote branch head.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… claude/llm-pipeline-review
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Defer embedding until after text/document fast paths and coverage gate
- Rehydrate cached document metadata in attachDocumentRankingMetadata
- Load env-dependent script imports after loadEnvConfig in seed/reindex scripts
- Harden registry corpus: shared identity, medication tags, rollback, detail hrefs
- Route registry citations to detail pages; handle registry rows in signed-url API
- Prioritize safety warnings over registry info; preserve stale registry labels
- Guard OCR repair against dropping isolated single-letter clinical tokens
- Update skill docs, changelog dedup, CI Supabase setup-cli@v3
Co-authored-by: BigSimmo <[email protected]>
- Backfill NULL document_images.index_generation_id during re-stamp
- Count globally forced embedding eval cases in retrieval summaries
Co-authored-by: BigSimmo <[email protected]>
Treat NULL document_images.index_generation_id as stale even when JSON
metadata already matches the committed generation, and propagate global
--force-embedding into eval reporting/validation so index-unit-vector runs
count forced cases correctly.
Co-authored-by: BigSimmo <[email protected]>
… codex/pr433-fix
# Conflicts:
# .cursor/skills/supabase-postgres-best-practices/CHANGELOG.md
# .cursor/skills/supabase-postgres-best-practices/references/security-rls-performance.md
# scripts/reindex-image-generation-metadata.ts
# src/lib/differential-seed.ts
# src/lib/document-index-units.ts
# src/lib/medication-seed.ts
# src/lib/rag.ts
# src/lib/registry-corpus.ts
# src/lib/registry-seed.ts
# src/lib/source-governance.ts
# src/lib/source-metadata.ts
# supabase/migrations/20260708160000_retrieval_owner_matches_fail_closed.sql
# supabase/migrations/20260708160001_retrieval_owner_matches_fail_closed.sql
# supabase/migrations/20260708161000_retrieval_owner_matches_fail_closed.sql
# tests/document-index-units.test.ts
# tests/registry-corpus.test.ts
# tests/source-governance.test.ts
PR #433 preview branch recorded 20260708160000 before the file was removed, causing remote migration versions not found in local migrations directory. Keep a no-op stub for history sync; transactional index DDL stays on 170000.
Co-authored-by: Cursor <[email protected]>
* fix(rag): finish registry re-embed and quality routing
* fix: resolve merge conflicts with claude/llm-pipeline-review
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… claude/llm-pipeline-review
# Conflicts:
# tests/rag-routing.test.ts
coderabbitai
Bot
commented
Jul 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

📝 Walkthrough
Walkthrough
Adds try/catch error handling for 403 responses when listing PR comments in a Codex autofix workflow, introduces a validation script and CI step guarding that workflow's structure, and updates AGENTS.md/docs to scope auto-resolve requests to actionable findings and restrict branch-review-ledger updates during pure reviews.
Changes
Codex autofix workflow hardening and guard
| Layer / File(s) |
Summary |
403 error handling for comment listing .github/workflows/codex-autofix-review-comments.yml |
Wraps issues.listComments pagination in try/catch; 403 responses log a warning and return early, other errors are re-thrown; minor blank-line formatting near comment-creation error handling. |
Workflow guard script and CI wiring scripts/check-codex-autofix-workflow.mjs, package.json, .github/workflows/ci.yml |
Adds a script validating forbidden trigger patterns and required concurrency/marker scoping and resolve-skip guard in the autofix workflow file; wires it as check:codex-autofix-workflow npm script and adds a "Codex auto-resolve workflow guard" CI verify step. |
AGENTS.md auto-resolve scoping update AGENTS.md |
Updates the automatic resolve trigger and primary PR command text to scope Codex resolve requests to actionable findings for the triggering PR/head instead of resolving all review comments. |
Branch review ledger and protocol mutation rules docs/branch-review-ledger.md, docs/codex-review-protocol.md |
Adds a new ledger document describing lookup procedure and record schema; updates mutation rules to prohibit ledger updates during pure review unless explicitly requested, instead suggesting the ledger row in the response. |
Estimated code review effort: 2 (Simple) | ~12 minutes
Caution
Pre-merge checks failed
Please resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Verification Claims |
❌ Error |
FAIL: The PR description/summary use vague verification labels (“parse check: passed”) instead of explicit “Ran : passed” wording. |
Reword every verification note to an exact command/check plus result, e.g. “Ran npm run X: passed” or “Not run: reason.” |
| Docstring Coverage |
⚠️ Warning |
Docstring coverage is 2.00% which is insufficient. The required threshold is 70.00%. |
Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (9 passed)
| Check name |
Status |
Explanation |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Generated And Sensitive Files |
✅ Passed |
No committed secrets, tokens, keys, .env files, caches, or build artifacts were added; the PR only changes docs, workflow YAML, package.json, and one validation script. |
| Risky Git Or Deployment Actions |
✅ Passed |
No changed file recommends force-push, hard reset, destructive clean, branch deletion, or deployment without confirmation; the edits add guardrails and safe-only guidance. |
| Supabase Project And Schema Safety |
✅ Passed |
No Supabase project refs or schema/RLS/policy/migration changes were introduced; the diff only updates workflow/docs and a guard script. |
| Runtime And Package Manager Integrity |
✅ Passed |
PASS: PR only adds a guard script and CI check; package.json still pins [email protected]/Node 24.x, .npmrc keeps engine-strict=true, and CI still uses npm ci + package-lock. |
| Api Route Failure Handling |
✅ Passed |
PASS: The workflow now wraps issues.listComments in a 403-aware try/catch, soft-skips on auth failure, and rethrows non-403 errors; createComment is handled similarly. |
| Title check |
✅ Passed |
The title is concise and accurately summarizes the main change: hardening the Codex auto-resolve review guard. |
| Description check |
✅ Passed |
The description follows the repository template with Summary, Verification, and Notes, and includes relevant validation steps. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
codex/autoresolve-listcomments-403
✨ Simplify code
- Create PR with simplified code
- Commit simplified code in branch
codex/autoresolve-listcomments-403
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
supabase
Bot
commented
Jul 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Updates to Preview Branch (codex/autoresolve-listcomments-403) ↗︎
| Deployments |
Status |
Updated |
| Database |
✅ |
Thu, 09 Jul 2026 12:20:54 UTC |
| Services |
✅ |
Thu, 09 Jul 2026 12:20:54 UTC |
| APIs |
✅ |
Thu, 09 Jul 2026 12:20:54 UTC |
Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.
| Tasks |
Status |
Updated |
| Configurations |
✅ |
Thu, 09 Jul 2026 12:20:56 UTC |
| Migrations |
✅ |
Thu, 09 Jul 2026 12:20:58 UTC |
| Seeding |
✅ |
Thu, 09 Jul 2026 12:20:59 UTC |
| Edge Functions |
✅ |
Thu, 09 Jul 2026 12:21:00 UTC |
View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@copilot resolve the merge conflicts in this pull request
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
auto-merge was automatically disabled
July 9, 2026 11:50 Head branch was pushed to by a user without write access
coderabbitai
Bot
commented
Jul 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.
Fixes Applied Successfully
Fixed 3 file(s) based on 3 unresolved review comments.
Files modified:
docs/branch-review-ledger.md
docs/codex-review-protocol.md
scripts/embed-registry-records.ts
Commit: 73aab704169e6902481eb5ac5357a4f946849b22
The changes have been pushed to the codex/autoresolve-listcomments-403 branch.
Time taken: 5m 24s
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fixed 3 file(s) based on 3 unresolved review comments.
Co-authored-by: CodeRabbit <[email protected]>
auto-merge was automatically disabled
July 9, 2026 12:07 Head branch was pushed to by a user without write access
|
@copilot resolve the merge conflicts in this pull request
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
@copilot resolve the merge conflicts in this pull request
Resolved. Merge commit: f81bdc4
docs/codex-review-protocol.md, scripts/embed-registry-records.ts, src/lib/rag-routing.ts, src/lib/registry-corpus.ts, supabase/drift-manifest.json — accepted origin/main
docs/branch-review-ledger.md — kept branch's Prettier-formatted version
Typecheck and Prettier checks pass.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
changed the title
ci: soft-skip Codex autoresolve permission errors
fix: harden Codex auto-resolve review guard
Jul 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ecd4fd4a0a
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|