Repository navigation
Fix verified findings from AI review (pass 2) - #63
Conversation
…DIR for systemd unit Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI review (advisory)install.sh ~L56–58 (unquoted heredoc): Removing the quotes from install.sh ~L67 ( install.sh ~L57 ( install.sh ~L57 ( src/agent/exec.rs ( Missing tests:
|
Second pass over the full (untruncated) review. Pass 1 (#62) already covered topo_sort, action.yml input injection and the wheel glob; those are not touched.
Fixed
src/agent/exec.rs: a guest command killed by a signal was reported with exitcode 1. It now reports 128+signal (shell convention), so callers can tell a SIGKILL from an ordinary failure.install.sh: the systemd unit was written to the predictable path/tmp/guestkit-worker.serviceand then copied with sudo (symlink/race risk); it now usesmktempwith cleanup.ExecStartalso honoursINSTALL_DIRinstead of hardcoding/usr/local/bin.Verified
cargo test -p guestkit --features agent --lib exec::testspasses (2 tests). The new signal test fails without the fix (left: 1, right: 137) and passes with it.bash -n install.shpasses. The install.sh change was not run end to end.Skipped
fs_frozenin snapshot_live.rs always false: real, but correct detection needs a design decision.exec_synchas no timeout: larger behavioural change.User=nobodyandReadWritePaths/PrivateTmpunit issues: need unit design.operatorin rbac.rs, auth off by default, privileged docker-compose, hostPID worker, SECURITY.md contact and claims, LGPL text in a presentation,latestdefault version.🤖 Generated with Claude Code