Repository navigation
🐛 [fix] github: pause runs when required reads fail - #24
Merged
Merged
Conversation
- Verify trusted request and human reply for the current PR head and steps. - Refresh stale blocked requests without treating them as approved. - Pass 34 offline safety suites and independent review.
- Retry required reads up to three times and reject incomplete evidence. - Preserve a shared local halt until explicit checked recovery. - Stop dispatch and unsafe writes; reconcile uncertain merge outcomes once. - Pass 36 safety suites and independent review.
- Include the required reader in setup checks and repair. - Cover removal and repair of both safety helpers. - Pass setup and install checks plus independent delta review.
Keep bounded evidence reads and exit79 while integrating head-bound approvals, upgrade recovery, task-status restoration, and PR author-note policy. Co-Authored-By: Codex <noreply@openai.com>
Resolve the shared halt helper before router-owned paths and recheck before each comment, label, and project mutation. Preserve known issue numbers and exit79 on mid-run pauses, including placement. Offline regression: unfixed router fails12pause assertions; fixed router passes66assertions covering preexisting pauses, read-time pauses, labeling, placement, and issue identity. Co-Authored-By: Codex <noreply@openai.com>
EricTechPro
marked this pull request as ready for review
October 4, 2026 06:25
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Note
⏳ In review · round 1 · ✅ 6/6 AC · head
3668990Depends on #23. This draft targets
codex/approval-freshnessso the diff contains only the GitHub failure handling change. Retarget tomainafter #23 lands.Problem
A failed
gh pr diffrequest became an empty diff, so the merge gate could miss a risky change and continue to migrations or merge. Other required reads could turn failures into an empty board, an open issue, or full API quota.A run also had no shared local pause state. A worker could keep dispatching or writing after another worker lost the GitHub evidence it needed.
Solution
halted, stop queued work, and check the shared halt before writes. Install the helper with the existing script pack and include it in setup checks and repair.Acceptance criteria
↳
tests/test_github_reads.py↳
tests/test_github_reads.py,tests/test-merge-gate.sh,tests/test-preflight.sh↳
tests/test_github_reads.py, including failed recovery and corrected-query recovery↳
tests/test-workflow-halt.sh, 5 scenarios↳ merge-gate, bug filer, refactor filer, collector, and legacy runner regressions
↳
bash tests/run-safety.sh: 36 suites passed; all 8 GitHub checks passed on final head3668990; setup 10 and install 17 scenarios passed after the helper-check follow-up;git diff --checkpassedIteration history
39ce91b; 36 safety suites passed3668990; helper check/repair coverage passed; independent delta review clearedRisk
🟡 Medium · shared failure handling changes several CLI paths. Tests use offline GitHub stubs; live board, database, and release actions were not run.
Workflow cancellation takes effect at checkpoints. Already-running agent commands cannot be recalled. The legacy runner signals only workers it launched. Unknown write outcomes require checking GitHub before clearing the halt. Duplicate searches that reach the existing 200-item limit pause instead of assuming no match. Automatic database or other tool outage detection is outside this change.