Repository navigation
Conversation
#875) A launch's reach probe gives a gateway five seconds, and curl's own start sits inside that bound (util/reach.go). macOS validates a freshly written executable on its first exec; under the load the gate ran at, those scans queue past the bound, the probe kills the stub before it runs, and a healthy route is reported as "no answer" (exit 75). test_launch_model_flag_drives_the_window_not_the_conf_default and test_launch_reads_its_arrays_under_a_callers_ksh_arrays were the two that lost that race; both hid it by deleting the test home on the launch's status. Both now keep the launch's status and output in the test home and name them, and the model-flag test prints the MAX_CONTEXT line it read beside the one it expected. Installing a stub pays its first exec through warm_curl_stub, outside every bound, with an isolated HOME so fake_gateway's curl.args record stays the launch's own; setup_home and the shared curl helpers call it, and the three inline stubs that share this one call it after their write. The product contract is untouched: a gateway that really stays silent is still fatal within doctor's five seconds. Proven: a stub whose first exec sleeps 6s makes the old path fail with exit 75 and the new one pass; both tests pass 3 consecutive solo runs; the full zsh suite passes 341/0 while go test ./... runs alongside at load average 76.39 on 4 CPUs. Closes #875 Co-Authored-By: Claude Code <noreply@anthropic.com>
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.
Closes #875
A launch's reach probe gives a gateway five seconds, and curl's own start
sits inside that bound (util/reach.go). macOS validates a freshly written
executable on its first exec; under the load the gate ran at, those scans
queue past the bound, the probe kills the stub before it runs, and a
healthy route is reported as "no answer" (exit 75).
test_launch_model_flag_drives_the_window_not_the_conf_default and
test_launch_reads_its_arrays_under_a_callers_ksh_arrays were the two that
lost that race; both hid it by deleting the test home on the launch's
status.
Both now keep the launch's status and output in the test home and name
them, and the model-flag test prints the MAX_CONTEXT line it read beside
the one it expected. Installing a stub pays its first exec through
warm_curl_stub, outside every bound, with an isolated HOME so
fake_gateway's curl.args record stays the launch's own; setup_home and the
shared curl helpers call it, and the three inline stubs that share this
one call it after their write. The product contract is untouched: a
gateway that really stays silent is still fatal within doctor's five
seconds.
Proven: a stub whose first exec sleeps 6s makes the old path fail with
exit 75 and the new one pass; both tests pass 3 consecutive solo runs; the
full zsh suite passes 341/0 while go test ./... runs alongside at load
average 76.39 on 4 CPUs.
Closes #875
Co-Authored-By: Claude Code noreply@anthropic.com