Repository navigation
v0.2.0 — durability hardening + deterministic execution gate
Hardens hauntty into a solid multi-session ops tool and adds a deterministic completion gate. Every operational bug below was reproduced (on a remote 12-core host and a local go build -race daemon) and fixed with a regression test.
Highlights
- Foreground-group monitoring — the
/procmonitor tracks the terminal foreground process group (tpgid) instead of all bash children. Fixes wrong PIDs, maskedread -pprompts, and background-job confusion at the root. - Self-healing sessions — a shell that dies (e.g. ran
exit) is rebuilt under the same SID; no more[alive]sessions that silently swallow commands. - Safe recovery — runaway commands are killed by their foreground process group (real exit code preserved, e.g.
143); recovery never sends a blindexit. - Deterministic gate —
hauntty wait --pid/--seqblocks locally on the remote/proc, replacingsleep N; ssh host "ps aux | grep proc". A command's&jobs are surfaced asbackground_pids. - Verified wrapper injection (readiness nonce, no 100 ms race), wrapper-captured cwd (no PTY pollution), per-exec hard deadline plumbed through the protocol.
- Race-clean concurrency — connection-safe encoder, locked session state, serialized PTY writes.
Validation
- 21 tests under
go test -racedriving real bash. - Remote host under 16-way CPU saturation: 10 sessions spawned concurrently, 90 mixed concurrent commands — 0 failures, 0 dead sessions, 0 log anomalies.
Compatibility
Wire-protocol changes are additive (new fields omitted when empty); backward compatible apart from the new wait op.
Install
go install github.com/sch0tten/hauntty@v0.2.0
Or download a prebuilt static binary below (linux/amd64, linux/arm64). Verify with hauntty_0.2.0_checksums.txt.
Full notes: CHANGELOG.md · Threat model: SECURITY.md