Skip to content

appeal: relay a main-loop grant on its pass, only where nobody would be asked (7.219.0) - #490

Merged
SSFSKIM merged 2 commits into
mainfrom
appeal-relay-pass
Nov 11, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
appeal-relay-pass

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 11, 2026

Copy link
Copy Markdown
Owner

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's ask is never answered by the engine. On 2.1.321 two relays (manim-master session 904e094e, 2026-11-11) held the session for 69 and 15 minutes until the person pressed Esc. The appeal log shows ruling: grant, then no-relay with 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 has autoMode deny 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:

engine the relay's check left at the plain ask the probe's tool.check hook answers allow
2.1.322 no return, killed at the 180 s timeout ran in 2.4 s, file written
2.1.321 no return, killed at 181 s ran, file written (14 s run)

The 2.1.321/2.1.322 declarations say such a call "runs with nobody asked". In practice it does not.

Change

  • Every grant leaves its pass, main-loop grants included.
  • Before relaying, the appeal asks $.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. The tool.check hook and this query share one predicate, passCovers.
  • The relay spends the pass. It is logged as relayed, not used, and any leftover pass is withdrawn so the call cannot run twice.
  • The pass can lapse before the relay's own check: a prompt, an answer, or a moved directory. The hook then refuses the relayed call instead of leaving it at the ask. Relays are keyed by pass, so concurrent relays don't share one slot.
  • In every other case the call is left to the model's re-run, where an ask is the person's to answer: a rule's or setting's ask, a deny, a failed query, or a handle-carrying call with no pass.

Rejected: a timeout on the relay, because $.tool.call takes 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 own tool.call and tool.check hooks the way the engine does, and records any ask left standing as reaching the decider. Under that mock the old code fails 7 tests.
  • A mutation check: removing the lapse guard fails the new lapse test.
  • tests/mods/typecheck.sh passes against the 2.1.322 declarations.
  • scripts/bump-version.sh --since origin/main: doperpowers 7.218.0 → 7.219.0.
  • Independent review (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 other tool.call hook.
  • Not run: an end-to-end appeal in a real session. That needs a classifier block followed by a judge grant, which can't be produced on demand. The probe covers the engine mechanism the fix relies on.

Sminos-Session: codex-exhaustion-claude-fallback#5ededaa9 (doperpowers on macbook)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T21:59:31.495693Z 7c85f06 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 1503695 into main Nov 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant