box setup-host stopped halfway when it had to add you to incus-admin: it usermod'd, printed a NOTE telling you to re-login and re-run, and exited 0 — a success-shaped no-op with no boxnet, no ACL, no box-net profile and no firewall behind it. It now re-execs itself under 'sg incus-admin' and finishes in that same invocation. The membership check was also asking the wrong question. 'id -nG "$USER"' names a user, so it reads the group database — which lists incus-admin the instant usermod returns, while the shell's own credentials still lack it (supplementary groups are fixed at login). A same-session re-run therefore passed the check and died further down on a bare permission error from incus that mentioned neither the group nor the re-login. Argless 'id -nG' asks the process what it actually holds, which is what incus checks when it opens /var/lib/incus/unix.socket. With one run now sufficient, install.sh runs the setup itself instead of printing a warning and leaving the user a command: the install reported success and 'box new' then failed on a host with no Incus. setup-host is idempotent, so doing this on every install is also how an upgraded host picks up stack changes. BOX_SKIP_SETUP_HOST=1 opts out, and a failed setup leaves the install standing and says what to re-run. Fixes #63 Fixes #64 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5.1 KiB
5.1 KiB
Changelog
History before 0.5.0 lives in git and in drill/RUNS.md, which records not just what changed but what each drill run proved.
Unreleased
Fixed
box setup-hostfinishes in one run (#63). When it had to add you toincus-adminit stopped there and told you to re-login and re-run — anexit 0that reported success having built none of the stack: noboxnet, no ACL, nobox-netprofile, no firewall. It now re-execs itself undersg incus-adminand completes in that one invocation. The membership check was also asking the wrong question:id -nG "$USER"reads the group database, which lists the group the momentusermodreturns, so a same-session re-run passed the check with credentials that still lacked the group and died further down on a bare permission error fromincus. Arglessid -nGasks the process what it actually holds.
Changed
install.shruns the host setup itself (#64) — it printed a warning and left you a command to run, so the install reported success andbox newfailed on a host with no Incus. Sincesetup-hostis idempotent, doing this on every install is also how an upgraded host picks up stack changes.BOX_SKIP_SETUP_HOST=1opts out; if setup fails, the install still stands and says what to re-run.
0.5.0 — 2026-07-15
The release the project was renamed in: the repo is heavy-duty/box, matching
the CLI it ships. Everything legacy-facing is honored forever — the
user.claudebox=1 tag, the .claudebox/ runbook folder, the old symlink the
installer retires — but nothing current carries the old name.
Added
codexandgroktemplates — OpenAI Codex CLI and xAI Grok CLI boxes, creds-free like every template. The template mechanic (image + user + resources, never a network or asecurity.*key) now has three tenants besideblank, and the drill mints all of them cold.box expose <box> <port> [<host-port>]— a deliberate, loopback-only door to a port inside a box, for seeing a dev server in your browser. The listen side is always the host's127.0.0.1(no flag to widen it), the door is per-port,--list/--removemanage it, andbox infoshows open exposures — a box with a hole says so.- Inline resource overrides on
new—--cpu <n> --memory <size> --disk <size>(#57). Resolution most-specific-first: flag >BOX_CPU/BOX_MEMORY/BOX_DISKenvironment (the scripting form) > templatebox.env> defaults. Values pass to Incus verbatim; resources are all a flag can touch.--fromrefuses them — a clone carries its source's resources. - Host lifecycle as verbs —
box setup-host,box teardown-host, andbox migrate-host, which re-homes pre-0.4.0 boxes onto the current stack (--box <n>/--all-boxes, authed state preserved) and retires the legacy bridge once empty (--retire-legacy). - The
.box/recipe convention — the agent-facing runbook folder a repo can ship, renamed from.claudebox/(both spellings read).
Fixed
- VM mints no longer hang at GRUB — Incus defaults VMs to Secure Boot on,
and a cloud image whose shim the host's OVMF doesn't trust dies with "bad
shim signature" forever. Boxes now launch with
security.secureboot=false; the VM boundary, not boot attestation, is the box threat model. box exposeactually delivers packets — a trilogy of drill-found absences: the NAT proxy needs the box's boxnet lease pinned as a staticipv4.address(Incus resolvesconnect=0.0.0.0against device config, not the lease); a loopback-sourced packet needsroute_localnetplus a masquerade on the bridge to leave the host and be answerable; and the box's replies need act state established,relatedaccept ahead of the host firewall's input drop, which was eating them statelessly. Boxes still cannot initiate toward the host — a box-originated SYN is a NEW flow.- Firewall rules now converge on upgrade —
box-firewall.shrebuilds its chains every run (add + flush + re-add) instead of skipping when they exist, which had pinned every host to the rule set of the release that first ran there. - Failed mints tell you why — cloud-init failures print the box's own log excerpts and leave the box up to inspect; a mint that never boots names the likely cause (corrupt image, Secure Boot, GRUB hang) and ships a sanitized console dump; the installer asserts it landed the ref it was asked for.
grokinstalls the binary it actually ships — the installer was read, not guessed at, and the CLI lands on the non-interactive PATH (same fix class as codex).
Changed
- Debrand complete — env vars, install dir, docs, template descriptions
and the README all say
box; the install URL isheavy-duty/box(GitHub redirects the old one,BOX_REPOoverrides). - The drill grew from 47 to 84 checks — the expose door opened, exercised
and shut (with the contract re-probed around it), every template minted
cold, a faithful pre-0.4.0 box re-homed through
migrate-host, and the inline resource flags asserted (including their precedence over the environment).