Repository navigation
Use runtime Bash for Jev profiles and custody operations - #141
blast-hardcheese wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Confidence Score: 4/5
Summary
Jev, custody and tmux lane helpers now resolve Bash from absolute runtime paths, with an exported nonempty SHELL as the only operator override; delivery.env now records the selected shell. Focused tests, shellcheck, ruff and devshell patch-source all pass; low risk.
Important Files Changed
| File | Overview |
|---|---|
| harness/run_context.sh | factory_select_lane_shell writes $BASH or exported SHELL into a named variable |
| harness/tmux_lane.sh | Uses the selector; delivery.env records SAFE_SHELL instead of raw SHELL |
| harness/tmux_lane_message.sh | Uses the selector for resumes; /bin/bash default removed |
| harness/jev_screen.py | Absolute-PATH bash lookup; provider-unavailable when missing (unchanged since prior review) |
| harness/lane_custody.py | Plan._operation, late bash lookup, interpreter in started receipt (unchanged since prior review) |
| tests/test_lane_controls.py | Parametrizes operator shell None/empty/path for launch, resume and delivery.env |
| tests/test_lane_custody.py | Runtime bash on spaced path, replay, relative-PATH refusal |
| tests/test_system_one_profile.py | SHELL/BASH_ENV/ENV absent; relative PATH yields provider-unavailable |
Findings
- Launches without an exported SHELL now hand lanes $BASH instead of the account login shell, so Claude launchers defined only as login-shell functions there stop resolving; intentional, worth a CHANGELOG line.
Reviewed 2488390...414162c · ↻ Re-run review · View in Adapt
|
@adaptcom review |
1 similar comment
|
@adaptcom review |
|
@adaptcom review |
|
The Adapt review’s packaging finding applies to the older tooling-devshell #114 branch, which is still open. Current tooling-devshell dev and the #152 candidate use a blanket Bash substitution. That substitution tolerates the absence of these two literals. I built the native package from the tree at 69201b5 with the #152 activation-anchor update. The installed Jev and custody files matched the upstream source byte for byte, and both launched the bundled Bash. The two tmux fallback literals and the separate lane PATH, pinned Python, revision, and retention adaptations remain downstream work. The PR description records those dependencies for the repin. |
|
@adaptcom review |
|
@adaptcom review |
|
For the review of 7975c75, commit 414162c records the selected |
Summary
Jev and lane custody select Bash from absolute directories on their existing runtime tool paths. The tmux launch and message/resume helpers use the Bash running the helper when no nonempty operator
SHELLwas exported. Bash can synthesize an unexportedSHELLfrom the account, so the helpers distinguish that default from a caller-supplied setting. The tmux command arguments and existing permission wrappers stay as they were. Metered watcher delivery records the selected shell so unattended wrap-up uses the same value. Callers that discover a Claude launcher through a login-shell function can export that shell explicitly when starting the lane.Packaging
The Chiron source at this head has no hardcoded system Bash executable under the harness or runtime. The native aarch64-darwin package built from this exact source using the downstream recipe with the blanket Bash substitution removed. Direct installed launch and resume selected Nix Bash with unset or empty
SHELLand preserved a nonempty operator shell. The installed Jev and custody helpers selected Nix Bash, and the installed scrubbed lane helper retained pinned tools.Pair the compatible Chiron source pin and removal of the Bash substitution in one downstream change. Shane confirmed the paired repin, direct-helper regression check, and macOS/Linux validation. Tooling-devshell #162 The separate lane PATH default, Python wrapper, build revision, and retention hooks still need their own migration.
Verification
make shippassed the static gates. Its tests reported 3,204 passed, 56 skipped, and eight failures, all reproduced on the unchanged PR base.