Repository navigation
WIP: test(2261): nested-binary observer repair for the numbered readwrite control pin - #2296
Merged
Merged
Conversation
…ubash spawn Refs #2286 The control pin for the numbered `3<>` face observed spawn fd delivery through `./child.sh`, an ENOEXEC script child that rubash runs in-process, where spawn-delivered bindings do not appear the same way — its green could not by itself prove the spawn delivery face it guards (the same harness defect PR #2283 repaired for the #2270 pins). The observing child is now the nested rubash binary re-invoked as a real spawned process (`"<RUBASH>" -c 'echo via3 >&3' 3<>num.txt`), making the exact same observation: write `via3` to fd 3, exit 0. The redirect shape and both expectations are unchanged. Tests only; no product code touched. Local verification: `cargo check --test issue2261_child_script_readwrite_fd0_regressions` clean. The pin target itself was not run locally (compile rationing) — it is pending the collector's scrubbed-fd batch.
This was referenced Oct 30, 2026
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.
Tests-only harness repair for the #2286 pin. No product code changes.
Problem
tests/issue2261_child_script_readwrite_fd0_regressions.rs's control pinissue2261_child_script_numbered_readwrite_controlobserved the numbered3<>spawn delivery through./child.sh 3<>num.txt— an ENOEXEC script child that rubash executes via its in-process script face, where spawn-delivered fd bindings do not appear the same way. Its green therefore could not by itself prove the spawn delivery face the control claims to guard — the same invalid-observer defect PR #2283 repaired for the #2270 pins. (The fd-0<>pins in the same file are the script face's own subject and are untouched.)Change
The observing child is now the nested rubash binary re-invoked as a real spawned process — the pattern PR #2283 / the #2272 pins use:
The observation is identical: the child writes
via3to its fd 3 and exits 0. The redirect shape (3<>num.txt), the expected stdout (rc=0+num.txt: [via3]), and the empty-stderr expectation are unchanged. An OBSERVER NOTE on the pin records why, citing #2286.Verification (local)
cargo check --test issue2261_child_script_readwrite_fd0_regressions— clean.git difftouches only that one file (+17/−7).Refs #2286