Skip to content

v0.2.0 — durability hardening + deterministic execution gate

Choose a tag to compare

@sch0tten sch0tten released this 31 May 19:08
· 1 commit to main since this release

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 /proc monitor tracks the terminal foreground process group (tpgid) instead of all bash children. Fixes wrong PIDs, masked read -p prompts, 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 blind exit.
  • Deterministic gate — hauntty wait --pid/--seq blocks locally on the remote /proc, replacing sleep N; ssh host "ps aux | grep proc". A command's & jobs are surfaced as background_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 -race driving 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