Skip to content

fix(auto): the spawn retry window was shorter than the thing it covers - #235

Merged
jitokim merged 2 commits into
mainfrom
fix/spawn-retry-window
Aug 24, 2026
Merged

fix(auto): the spawn retry window was shorter than the thing it covers#235
jitokim merged 2 commits into
mainfrom
fix/spawn-retry-window

Conversation

@jitokim

@jitokim jitokim commented Aug 22, 2026

Copy link
Copy Markdown
Owner

#214 gave the assessor a bounded spawn retry; #226 extended it to the planner. Both shipped at 3 attempts, 300ms apart — a 600ms window — and two more lanes died on the same failure after that shipped.

assessor run: claude run: spawn failed: exec: "claude": executable file not found in $PATH
planner run:  claude run: spawn failed: exec: "claude": executable file not found in $PATH

Four occurrences in one day, two of them post-fix. 600ms is less than a package manager takes to relink a binary, so the retry was correct in shape and useless in size.

Widened to 5 attempts, 2s apart — eight seconds of patience.

A machine that genuinely has no CLI installed still fails, eight seconds later, saying exactly what it said before. And nothing about reply handling changed: only a spawn that never happened is retried; a refused reply, a non-zero exit, a timeout and a cancelled context all still stop on the first answer.

The comment in assess.go now carries the two post-fix failures verbatim, so the next person to think 600ms is enough has the counter-evidence in front of them.

🤖 Generated with Claude Code

#214 gave the assessor a bounded spawn retry and #226 extended it to the
planner. Both shipped at 3 attempts, 300ms apart -- a 600ms window -- and two
more lanes died on the same failure AFTER that shipped:

  assessor run: claude run: spawn failed: exec: "claude": executable file not found in $PATH
  planner run:  claude run: spawn failed: exec: "claude": executable file not found in $PATH

Four occurrences in one day, two of them post-fix. 600ms is less than a
package manager takes to relink a binary, so the retry was correct in shape
and useless in size. 5 attempts, 2s apart.

A machine that genuinely lacks the CLI still fails -- eight seconds later,
saying what it said before. Only a spawn that never happened is retried; a
refused reply, a non-zero exit, a timeout and a cancelled context all still
stop on the first answer.

Co-Authored-By: oh-my-graph <graphs@oh-my-graph.dev>

Signed-off-by: jitokim <pigberger70@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2f0a4810-e012-45b2-94d7-1bfd98b54c27


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jitokim
jitokim merged commit d250d8b into main Aug 24, 2026
4 checks passed
@jitokim
jitokim deleted the fix/spawn-retry-window branch August 24, 2026 09:05
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