Commit Graph
7 Commits
Author SHA1 Message Date
bcherb2 4e2452e994 feat: install herdr agent integrations after the install pipeline
herdr hook files are herdr-managed, so none is committed. The installer ends
by running `herdr integration install <agent>` for each of claude, codex, pi
and omp that is present, skipping any herdr already reports current and
saying nothing when herdr is absent. Seal and fake learn herdr; tests and two
mutations cover install, idempotence, failure and absence (G-AG-5).
2026-11-18 02:13:05 -05:00
bcherb2 f8b17a79d3 fix: [y/N] is asked on the terminal, not on stdin
confirm() returned yes whenever stdin was not a tty, so `dotup < /dev/null` in
a terminal drew the picker on /dev/tty and then installed without asking. It
now opens /dev/tty the way cmd_pick does and reads the answer there; it
auto-approves only when no terminal exists at all. pty test plus a mutation
(ISSUE-9).
2026-11-18 02:13:00 -05:00
bcherb2 91a1224a5e fix: a fresh Mac installs Homebrew before the brew stage
core/brew was `-builtin` on Darwin, and builtin runs after install_brew, so a
Mac without Homebrew failed every brew row "brew missing" and needed a second
run. It is a script row on both platforms now. The apt prerequisite line is
guarded to apt platforms, and on macOS `sudo -v` caches the timestamp that
NONINTERACTIVE=1 Homebrew requires. Darwin dispatch-order test via the fake
uname, plus a mutation (G-boot-1).
2026-11-18 02:12:55 -05:00
bcherb2 6fa7603633 test: mutations for the claude script, desktop key and go channel
Piping the Claude Code installer into bash, placing the Claude Desktop key
unverified, and running the go channel before go is unpacked. The unit suite
kills all three.
2026-11-18 02:01:01 -05:00
bcherb2 9b81bfb616 test: mutations for the docker script channel
One pipes get.docker.com straight into a root shell; one reports the plugin rows as covered after a failed install. Both are killed by the unit suite.
2026-11-18 01:41:43 -05:00
bcherb2 4043787a58 fix: close the four known installer bugs (DU-H1, DU-H2, BUG-1, BUG-2)
- DU-H1: flags are parsed wherever they sit, so `install --unattended`
  and `--unattended install` are the same run; any unknown flag, word,
  or subcommand exits 2 to stderr before a package manager is touched.
- DU-H2: every download lands in one private mktemp -d (mode 700)
  workdir per run, is checked non-empty before sudo tar sees it, and an
  EXIT/INT/TERM trap cleans up. No fixed /tmp paths remain.
- BUG-1: ^t is now toggle-shown — it ticks only the rows the active
  filter is showing, and @needs expansion stops at the first invasive
  row, so an invasive package can never be ticked off-screen.
- BUG-2: ^t journals what it added, so a second ^t over the same shown
  set unticks exactly that set; the bind no longer clears the query.
- lab: the type verb polls fzf's reported query to a deadline instead
  of a fixed sleep; marks_settled retries within its deadline.

Suite 256/0 host, 214/0 docker (ubuntu:24.04), mutations 24/24 killed
(six new mutants re-introduce each bug and all die), lab 6/6 green.
2026-08-22 13:25:21 -04:00
bcherb2 d1e3f8bce2 test: mutation testing — break dotup on purpose and check the suite notices
Each file in .tests/mutations/ is one deliberate bug: what it breaks, why that
matters, the assertion meant to catch it, and an OLD/NEW pair applied to a copy
of the tree. A mutation is KILLED only when the suite fails AND the named
assertion is among the failures — failing for an unrelated reason is reported
as WRONG-TEST, because that is luck, and luck is lost the next time the
unrelated test moves. A mutation whose OLD block no longer matches is STALE
rather than quietly skipped.

19 reproduces the DU-C1 shape: a comment moved back inside the fzf
line-continuation. It is killed by "dotup pick exits 0".
2026-08-21 22:34:53 -04:00