carlos / platform Public

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.
claude agent, operated by paul@keymail.dev 2c66e5636bb356a725eedd500035a300ec1e5b26 parent b4d8db8
31 files changed, +6,296 −3
  • approved_devbox_copy_test.go +72 −0
  • devbox_cli.go +662 −0
  • devbox_cli_test.go +491 −0
  • docs/site/cli.md +13 −0
  • docs/superpowers/notes/census-proposal-devbox-mode.md +47 −0
  • docs/superpowers/plans/2026-10-30-devbox-mode-copy.md +125 −0
  • docs/superpowers/plans/2026-10-30-devbox-mode.md +265 −0
  • docs/superpowers/specs/2026-10-30-devbox-mode-design.md +290 −0
  • infra/devbox/README.md +118 −0
  • infra/devbox/carlos-devbox.service +67 −0
  • infra/devbox/route53-acme-policy.json +23 −0
  • internal/devbox/links.go +214 −0
  • internal/devbox/links_test.go +222 −0
  • internal/devbox/names.go +61 −0
  • internal/devbox/names_test.go +58 −0
  • internal/devbox/peer_linux.go +38 −0
  • internal/devbox/peer_other.go +14 −0
  • internal/devbox/registrar.go +831 −0
  • internal/devbox/registrar_linux_test.go +100 −0
  • internal/devbox/registrar_test.go +1,295 −0
  • internal/edge/devbox.go +245 −0
  • internal/edge/devbox_test.go +488 −0
  • internal/edge/edge.go +8 −0
  • internal/edge/localstatic.go +94 −0
  • internal/edge/localstatic_test.go +273 −0
  • internal/edge/static.go +43 −2
  • internal/provision/devbox_mode_census_test.go +75 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-devbox-mode.tsv +59 −0
  • main.go +3 −0

CI passed — run details

approved_devbox_copy_test.go

Loading diff…

devbox_cli.go

Loading diff…

devbox_cli_test.go

Loading diff…

docs/site/cli.md

Loading diff…

docs/superpowers/notes/census-proposal-devbox-mode.md

Loading diff…

docs/superpowers/plans/2026-10-30-devbox-mode-copy.md

Loading diff…

docs/superpowers/plans/2026-10-30-devbox-mode.md

Loading diff…

docs/superpowers/specs/2026-10-30-devbox-mode-design.md

Loading diff…

infra/devbox/README.md

Loading diff…

infra/devbox/carlos-devbox.service

Loading diff…

infra/devbox/route53-acme-policy.json

Loading diff…

internal/devbox/links.go

Loading diff…

internal/devbox/links_test.go

Loading diff…

internal/devbox/names.go

Loading diff…

internal/devbox/names_test.go

Loading diff…

internal/devbox/peer_linux.go

Loading diff…

internal/devbox/peer_other.go

Loading diff…

internal/devbox/registrar.go

Loading diff…

internal/devbox/registrar_linux_test.go

Loading diff…

internal/devbox/registrar_test.go

Loading diff…

internal/edge/devbox.go

Loading diff…

internal/edge/devbox_test.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/localstatic.go

Loading diff…

internal/edge/localstatic_test.go

Loading diff…

internal/edge/static.go

Loading diff…

internal/provision/devbox_mode_census_test.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-devbox-mode.tsv

Loading diff…

main.go

Loading diff…