Repository navigation
appeal: relay a main-loop grant on its pass, only where nobody would be asked (7.219.0) - #490
Merged
Merged
Conversation
…be asked (7.219.0) The relay ran the granted call through $.tool.call and relied on the plugin-origin fast path to skip the classifier. That path is off wherever the user has autoMode deny rules, so every relay met the classifier: of 11 main-loop relays since 2026-11-01, 6 were refused as too long to classify and 2 held the session 69 and 15 minutes on a verdict inside the appeal's own call that the person never saw, until they interrupted. Every grant now leaves its pass. Before relaying, the appeal asks $.tool.check, which runs nothing and opens no dialog, and runs the call only when core allows it or its plain ask meets the pass; the relay spends the pass (logged as relayed, not used) and any leftover is withdrawn so the call cannot run twice. A rule's or setting's ask, a deny, or a failed check leaves the call to the model's re-run, where a dialog is the person's to answer. The tool.check hook and the pre-check share one predicate (passCovers). Sminos-Session: codex-exhaustion-claude-fallback#5ededaa9 (doperpowers on macbook)
…the cause as reproduced Review follow-up. A prompt, an answer or a moved directory between the permission query and the relay's own check spent or voided the pass and left the relay at core's ask, the state that hangs. The tool.check hook now refuses a call the appeal is relaying (keyed by pass, so two relays at once do not share one slot) whenever it would leave it at an ask, including through its catch. The cause is now stated as reproduced: a probe plugin relaying a Bash write from its own tool, headless on 2.1.321 and 2.1.322, outlasted a 180 s timeout while left at the plain ask and ran in 2 s once its tool.check hook allowed it. It is the engine not answering a plugin's call at an ask, not a dialog the person could not see. The relay mock now runs the mod's other tool.call hook first, as the engine does, so a Bash relay is tested through the Bash generation its call moves. The spec no longer says a relay leaves no pass. Sminos-Session: codex-exhaustion-claude-fallback#5ededaa9 (doperpowers on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Problem
When the judge grants a main-loop block, the appeal runs the call itself through
$.tool.call(the relay). A plugin's call left at core'saskis never answered by the engine. On 2.1.321 two relays (manim-master session904e094e, 2026-11-11) held the session for 69 and 15 minutes until the person pressed Esc. The appeal log showsruling: grant, thenno-relaywith the interrupt's rejection text, and the relayed command's first side effect never happened. Older engines sent the relay to the classifier wherever the user hasautoModedeny rules. Of the 11 main-loop relays from 2026-11-01 to 11-11, 3 ran, 6 were refused as "conversation too long" for the classifier, and 2 were these hangs.Reproduced headless with a probe plugin that relays a Bash write from its own tool:
tool.checkhook answersallowThe 2.1.321/2.1.322 declarations say such a call "runs with nobody asked". In practice it does not.
Change
$.tool.check, which runs nothing and opens no dialog. It relays only when core allows the call, or when the call's plain ask meets the pass. Thetool.checkhook and this query share one predicate,passCovers.relayed, notused, and any leftover pass is withdrawn so the call cannot run twice.Rejected: a timeout on the relay, because
$.tool.calltakes no signal and a call left running after the appeal answered could still delete. Also rejected: dropping the relay, which costs the model turn it was chosen to save.Validation
tests/mods/run-mods-tests.sh: 246 pass, including 6 new appeal tests. The relay mock now runs the mod's owntool.callandtool.checkhooks the way the engine does, and records any ask left standing as reaching the decider. Under that mock the old code fails 7 tests.tests/mods/typecheck.shpasses against the 2.1.322 declarations.scripts/bump-version.sh --since origin/main: doperpowers 7.218.0 → 7.219.0.doperpowers:reviewer-medium): verdict correct, with three P3 findings. All three are addressed in the second commit: the lapse fall-through, a stale sentence in the spec, and the mock skipping the othertool.callhook.Sminos-Session: codex-exhaustion-claude-fallback#5ededaa9 (doperpowers on macbook)