You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
Review gate (Codex review credits exhausted, SC-9; D-12 ruled 2026-09-05: the Codex session's PRs are reviewed and merged by the coordinator): one fresh-context read-only reviewer (Opus 5) on head a47b0bcb3. Verdict: SHIP.
Checked by reading: with .git rewritten to point at the primary .git, the git dir equals the common dir, which fails substance check 1 and takes the _wt_fatal / return 1 path at scripts/worktree_guard.sh:103-114 (mirrored in the PowerShell guard), so the 2-to-1 change records the code rather than weakening the contract; local code=$? after the assignment is correct (the identical idiom already works in expect_sh); the canary prints the needle and then returns 1, so under the old helper it would have passed on output alone; the suite runs without set -e, so the new return 1 cannot abort the run; the only real expect_sh_output call already asserts exit 0; only the test script is touched.
Findings and disposition (all LOW, tracked on #1855):
this suite runs in no workflow (reusable-docs-governance.yml runs only the three PowerShell harnesses), which is why the two expectations sat red unnoticed; a Linux step is a separate issue.
the rewritten comment attributes the malformed-pointer exit 2 to the guard's layout check, but it comes from git failing repository discovery.
the canary swallows the subshell's diagnostics on failure.
Issue disposition: slice of #1855 (PowerShell implementation, submodule and path-normalization residuals parked by the body).
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
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.
Summary
expect_sh_outputhelper require both the expected NOTE and exit 0Verification
bash scripts/worktree_guard.tests.sh: 36 passed, 0 failed, 0 skippedbash -n scripts/worktree_guard.tests.sh: passedgit diff --check: passedAutomatic Codex review is unavailable because the account review quota is exhausted. Hosted checks remain pending.
Refs #1855