Devbox mode (#474): carlos devbox publishes owned, tailnet-only https://<name>.<devbox domain> links on a shared workstation, either to a user's loopback dev server (live reload passes through) or to a folder snapshot served with its _headers rules. An unprivileged edge entrypoint (edge.ServeDevbox) runs wildcard-only TLS by DNS-01 on one private address, with no :80, no per-host ACME, no cache, no guard and no rate limit. A registrar on a Unix socket identifies callers by SO_PEERCRED uid, keeps per-name ownership, writes ordinary registry routes and enforces 200 MiB per folder and a 5 GiB spool cap. infra/devbox has the systemd unit (CAP_NET_BIND_SERVICE only), the Route53 challenge-record policy and the runbook. Spec, plan and copy deck are under docs/superpowers. Reviews: Astra per task (T2, T3, T5) and whole-branch at xhigh, with all findings fixed. Root-read and record-write census approved by Astra on #280. Copy DBX-C1..C57 approved by Paul. Not released.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from design-devbox-mode into main.
31 files changed,
+6,296
−3
approved_devbox_copy_test.go+72 −0devbox_cli.go+662 −0devbox_cli_test.go+491 −0docs/site/cli.md+13 −0docs/superpowers/notes/census-proposal-devbox-mode.md+47 −0docs/superpowers/plans/2026-10-30-devbox-mode-copy.md+125 −0docs/superpowers/plans/2026-10-30-devbox-mode.md+265 −0docs/superpowers/specs/2026-10-30-devbox-mode-design.md+290 −0infra/devbox/README.md+118 −0infra/devbox/carlos-devbox.service+67 −0infra/devbox/route53-acme-policy.json+23 −0internal/devbox/links.go+214 −0internal/devbox/links_test.go+222 −0internal/devbox/names.go+61 −0internal/devbox/names_test.go+58 −0internal/devbox/peer_linux.go+38 −0internal/devbox/peer_other.go+14 −0internal/devbox/registrar.go+831 −0internal/devbox/registrar_linux_test.go+100 −0internal/devbox/registrar_test.go+1,295 −0internal/edge/devbox.go+245 −0internal/edge/devbox_test.go+488 −0internal/edge/edge.go+8 −0internal/edge/localstatic.go+94 −0internal/edge/localstatic_test.go+273 −0internal/edge/static.go+43 −2internal/provision/devbox_mode_census_test.go+75 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-devbox-mode.tsv+59 −0main.go+3 −0
CI passed — run details
approved_devbox_copy_test.goLoading diff…
devbox_cli.goLoading diff…
devbox_cli_test.goLoading diff…
docs/site/cli.mdLoading diff…
docs/superpowers/notes/census-proposal-devbox-mode.mdLoading diff…
docs/superpowers/plans/2026-10-30-devbox-mode-copy.mdLoading diff…
docs/superpowers/plans/2026-10-30-devbox-mode.mdLoading diff…
docs/superpowers/specs/2026-10-30-devbox-mode-design.mdLoading diff…
infra/devbox/README.mdLoading diff…
infra/devbox/carlos-devbox.serviceLoading diff…
infra/devbox/route53-acme-policy.jsonLoading diff…
internal/devbox/links.goLoading diff…
internal/devbox/links_test.goLoading diff…
internal/devbox/names.goLoading diff…
internal/devbox/names_test.goLoading diff…
internal/devbox/peer_linux.goLoading diff…
internal/devbox/peer_other.goLoading diff…
internal/devbox/registrar.goLoading diff…
internal/devbox/registrar_linux_test.goLoading diff…
internal/devbox/registrar_test.goLoading diff…
internal/edge/devbox.goLoading diff…
internal/edge/devbox_test.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/localstatic.goLoading diff…
internal/edge/localstatic_test.goLoading diff…
internal/edge/static.goLoading diff…
internal/provision/devbox_mode_census_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-devbox-mode.tsvLoading diff…
main.goLoading diff…