Skip to content

Stop the sandbox when the student process reports a timeout - #46

Merged
eliotwrobson merged 1 commit into
mainfrom
claude/child-timeout-stops-sandbox
Nov 17, 2026
Merged

eliotwrobson merged 1 commit into
mainfrom
claude/child-timeout-stops-sandbox

Conversation

@eliotwrobson

Copy link
Copy Markdown
Collaborator

The student process times out each function call itself, and its reply can arrive before the grader's socket read times out. query_function_raw only stopped the sandbox on a socket timeout. If the reply came first, later queries still ran, waited behind the function that was still running, and timed out too. The student then saw "Function timed out after 1.0 seconds" plus a second timeout. This happened in about 1 of 8 runs of a fib question whose solution sleeps on one input.

Now a "timeout" status stops the sandbox either way, with the same message. The new test makes the socket wait longer than the call, so the student process's reply always arrives first.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eliotwrobson
eliotwrobson marked this pull request as ready for review November 17, 2026 19:52
@eliotwrobson
eliotwrobson merged commit b865352 into main Nov 17, 2026
5 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