Repository navigation
Treat a claude wrapper's EX_TEMPFAIL exit as a blocked run - #268
Merged
Merged
Conversation
GARDENER_CLAUDE_BIN may be a wrapper that points Claude Code at another model provider. When that provider is paused or unreachable, the wrapper can exit 75 (sysexits EX_TEMPFAIL) without a JSON envelope. That says nothing about the repo and would fail every remaining repo alike, so the run is now blocked: an overnight batch stops with its resume cursor withheld and retries the rest next run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LYNeujxeMjcjdhUF7mg3s3
…cked The router checked blocked before exit 75, so after this branch a wrapper's EX_TEMPFAIL exit was labelled blocked, and a provider escalating on tempfail but not blocked stopped escalating. Exit 75 is now checked first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LYNeujxeMjcjdhUF7mg3s3
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.
GARDENER_CLAUDE_BINmay be a wrapper that points Claude Code at another model provider, such as a self-hosted model on a LAN GPU. When that provider is paused or unreachable, the wrapper can exit 75 (EX_TEMPFAILfrom sysexits.h) without printing a JSON envelope.Before this change, such a run was an ordinary per-repo error, so an
overnightbatch would fail repo after repo within seconds. With this change, a non-JSON exit of 75 is classified asblocked, like the other device-wide failures. The batch then stops with its resume cursor withheld, and the remaining repos are retried on the next run.claudeitself never exits 75, so unwrapped runs are unaffected.dispatch.py:EX_TEMPFAIL = 75, checked alongsideis_device_global_failurein_run_claude_once's non-JSON path.tests/test_dispatch.py: a wrapper exiting 75 with no JSON isblocked, and the other non-JSON failures are unchanged.docs/HARNESSES.md: theGARDENER_CLAUDE_BINrow describes the exit-75 contract.Full suite: 1,397 tests pass, 2 skipped.
drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code
https://claude.ai/code/session_01LYNeujxeMjcjdhUF7mg3s3