diff --git a/Dockerfile b/Dockerfile
index e1cba04..05e6b2a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@
# Run: docker run -d --restart unless-stopped -p 8088:8088 -v devbox:/data devbox-hub
# (or just `docker compose up -d` — see docker-compose.yml)
-FROM golang:1.26-alpine AS build
+FROM golang:1.27.4-alpine AS build
WORKDIR /src
# cache deps separately from source for faster rebuilds
COPY go.mod go.sum ./
diff --git a/README.md b/README.md
index e8ff1d1..fbcbf57 100644
--- a/README.md
+++ b/README.md
@@ -1,742 +1,305 @@
-
-

+# 📦 devbox
-### 📦 **Continuous file sync for developers — like Dropbox, but it respects your `.devignore`, refuses to leak secrets, runs your hooks, and keeps Git-like history.** 📦
+### Your working tree, everywhere. Now with built-in Tailscale. 🔒
-
+Continuous file sync for developers: private networking, selective mounts,
+conflict copies, snapshot history, and a secret guard that keeps credentials home.
-
-
-
-
-
-
-
+**Linux · macOS · Windows · Raspberry Pi**
-
-
-
-
-
-
-
-
-
-```
- ╔═══════════════════════════════════════════════════════════╗
- ║ ┌─┐ ┌─┐ ┬ ┬ ┌┐ ┌─┐ ┬ ┬ ║
- ║ ││─┤ ├┤ │ │ ├┴┐│ │ │┴┤ sync your dev tree, ║
- ║ ┴─┘─┘└─┘ └──┘ └─┘└─┘ ┴ ┴ skip the junk, keep history ║
- ╚═══════════════════════════════════════════════════════════╝
-```
-
-> [!NOTE]
-> 🎉 **devbox v1 is feature-complete** (M0–M7.6, **fleet-verified on real hardware** —
-> Macs + arm64 Pis live-syncing through a hub on a NAS) **and v2 has begun.** 🔮
-> The [v1 spec](docs/superpowers/specs/2026-06-22-devbox-design.md) is fully implemented;
-> the [v2 spec](docs/V2-SPEC.md) sequences M8→M11 — **M8 foundations are landing now.**
-> Star/watch and follow along. ⭐
->
-> | Milestone | Status |
-> |---|---|
-> | M0 — Skeleton (CLI, identity, config) | ✅ done |
-> | M1 — Watch · `.devignore` · secret-guard · chunking · manifest | ✅ done |
-> | M2 — Hub + one-way push (deployed + verified cross-machine 🛰️) | ✅ done |
-> | M3 — Two-way sync · SSE fan-out · 3-way conflict copies · live daemon | ✅ done — **two real Macs sync live through the hub** 🔄 |
-> | M4 — Read-only mounts · **sub-path mounts** · bandwidth cap | ✅ done — fleet-verified |
-> | M5 — Lifecycle hooks (pre/post push/pull, on-conflict) | ✅ done — **`post-pull` ran on a real fleet node** 🪝 |
-> | M6 — Versioning: `log` / `restore` + hub GC | ✅ done — restore reverted a file on the fleet 🕰️ |
-> | M6.5 — `devbox deploy` (pin a mount to a snapshot, no push) | ✅ done — **blue/green-deployed v1 on a real box while head stayed v2** 🚀 |
-> | M7 — Hardening: `devbox doctor`, reconnect/backoff, rescan fallback, name-clash, release builds | ✅ done — **doctor/stop/hooks + share-name guard + dead-watcher rescan fleet-verified** 🛡️ |
-> | M7.5 — Adversarial security/data-loss audit + fixes (path-traversal, blob integrity, never-clobber, safe GC) | ✅ done — **26 findings, all promise-breakers fixed, race-clean** 🔐 |
-> | M7.6 — Hardening: fsync durability · DoS caps + timeouts · pidfile PID-reuse guard · join proof-of-possession | ✅ done — fleet-verified on arm64 🛡️ |
-> | 🔮 **M8 — v2 Foundations**: migration runner · per-`(share,id)` snapshots · control socket + `pause`/`resume` · **M8a teams** · `restore` byte-safety | ✅ **justified-now scope complete & fleet-verified** (Pi `.13` owner invited an editor, Pi `.15` redeemed & pushed); 3 migrations verified on a copy of the real hub DB. M9–M11 stay demand-driven 🏗️👥 |
-
----
-
-## 📑 Table of Contents
-
-| | | |
-|---|---|---|
-| 🤔 [Why devbox?](#-why-devbox) | 🧠 [Core Concepts](#-core-concepts) | 🏗️ [Architecture](#%EF%B8%8F-architecture) |
-| 🔄 [How Sync Works](#-how-sync-works) | 💥 [Conflicts](#-conflicts-never-lose-a-byte) | ⚡ [Install & Run](#-install--run) | 🚀 [Quick Start](#-quick-start) |
-| 🧰 [CLI Reference](#-cli-reference) | 📊 [Live Dashboard](#-live-dashboard--watch-your-fabric-breathe) | 🪝 [Hooks](#-hooks) | 🙈 [.devignore & Secrets](#-devignore--secret-guard) |
-| 🕰️ [Versioning & Deploy](#%EF%B8%8F-versioning--deploy) | 🖥️ [Cross-Platform](#%EF%B8%8F-cross-platform) | 🔐 [Security & Durability](#-security--durability) |
-| 🗺️ [Roadmap](#%EF%B8%8F-roadmap) | ⚖️ [License & Open-Core](#%EF%B8%8F-license--open-core) | 🙌 [Contributing](#-contributing) |
-
----
-
-## 🤔 Why devbox?
-
-You've got a MacBook, a 40-node Pi cluster, and a TrueNAS box. You want your **active working
-tree** mirrored across them — *right now*, automatically — without committing half-done work.
-
-Your options today all hurt:
-
-
-
-| Tool | The pain 😖 |
-
-
-| ☁️ Dropbox / iCloud |
-Syncs everything blindly — chokes on node_modules, happily uploads your .env, thrashes on build artifacts. |
-
-
-| 🐙 Git |
-Manual. Commit-based. Not built to live-mirror an in-progress working tree. Branching ≠ syncing. |
-
-
-| 📁 rsync / scp |
-One-shot, one-direction, no history, no hooks, no conflict safety. You babysit it. |
-
-
-| 🔁 Syncthing |
-Great P2P sync — but no .devignore dev-ergonomics, no lifecycle hooks, no snapshot/deploy story. |
-
-
-
-### ✨ devbox is the missing layer
-
-
-
-| 🎯 | Feature |
-|:---:|:---|
-| 🔄 | **Continuous bidirectional sync** across all your machines |
-| 🙈 | **`.devignore`** (gitignore syntax) — skip `node_modules`, `dist`, the junk |
-| 🔐 | **Default-on secret guard** — *hard-refuses* to upload `.env`, keys, secrets |
-| 🪝 | **Lifecycle hooks** — `pnpm install` / restart a container when files land |
-| 🕰️ | **Git-like snapshots** per share — roll back any file, any time |
-| 🎚️ | **Selective mounts** — cherry-pick a share, or *just one sub-path*, per machine |
-| 💥 | **Conflict-safe** — never blocks, never asks, **never loses a byte** |
-| 🏠 | **Self-hostable** — one Go binary on your Pi/TrueNAS, no SaaS required |
-| 🌍 | **Cross-platform** — Linux · macOS · Windows |
+[Install](#-install) · [Tailscale quick start](#-tailscale-quick-start) · [Commands](#-commands) · [Configuration](#-configuration) · [Build](#-build-and-release)
---
-## 🧠 Core Concepts
+## 🔒 Built-in Tailscale, one hub binary
-```mermaid
-mindmap
- root((📦 devbox))
- 🛰️ Hub
- publishes shares
- stores chunks + manifests CAS
- brokers change events
- one owner · many devices
- 💻 Device
- Ed25519 identity
- joins with a token
- runs one daemon
- 📂 Share
- named tree projects/ repos/ services/
- unit of snapshot history
- 🔗 Mount
- share + subpath to local path
- read-write or read-only
- 📸 Snapshot
- immutable BLAKE3 manifest
- per share history
+Run your own sync hub on a NAS, Pi, server, or spare computer. **The hub can join
+its tailnet directly** using embedded [Tailscale (`tsnet`)](https://tailscale.com/docs/features/tsnet).
+No separate Tailscale installation on the hub, root privileges, TUN device,
+router port forwarding, or reverse proxy is required for this mode.
+
+```bash
+devbox-hub serve --data ./hub-data --tailscale --tailscale-hostname devbox-hub
```
-| Term | What it is |
-|---|---|
-| 🛰️ **Hub** | The server. Publishes shares, stores content-addressed chunks + manifests, brokers events. One owner, many devices. Self-hosted single binary. |
-| 💻 **Device** | A machine with an Ed25519 identity, joined to a hub. Runs one daemon (`devboxd`). |
-| 📂 **Share** | A named top-level tree on the hub (`projects`, `repos`, `services`). The unit of permission & history. |
-| 🔗 **Mount** | A device-side binding: `share[/subpath] → localpath`, read-write or read-only. One daemon watches many. |
-| 📸 **Snapshot** | An immutable, per-share manifest version (id = BLAKE3 of the manifest). |
+On first launch, open the authentication URL printed in the terminal. Once
+connected, the hub prints its private endpoint:
----
-
-## 🏗️ Architecture
-
-```mermaid
-flowchart LR
- subgraph LAP["💻 MacBook"]
- D1["devboxd 🛡️"]
- M1["📂 projects/"]
- M2["📂 repos/"]
- end
-
- subgraph HUB["🛰️ Hub · Pi / TrueNAS"]
- WS{{"🔌 WebSocket\nchange events"}}
- HTTP{{"🌐 HTTP\nblob GET/PUT"}}
- CAS[("🧊 CAS\nchunks + manifests\nBLAKE3")]
- DB[("🗄️ SQLite WAL\nshares · snapshots\ndevices · tokens")]
- MET["📊 /metrics + status"]
- end
-
- subgraph PI["🍓 pi-07"]
- D2["devboxd 🛡️"]
- M3["📂 projects/p22/backend\n(read-only → /var/www)"]
- end
-
- M1 & M2 -->|"events"| WS
- M1 & M2 -->|"blobs"| HTTP
- WS --> CAS
- HTTP --> CAS
- CAS --- DB
- WS -->|"events"| D2
- HTTP -->|"blobs"| D2
- D2 --> M3
-
- classDef hub fill:#0d1117,stroke:#4F9CF9,stroke-width:2px,color:#fff;
- class HUB,WS,HTTP,CAS,DB,MET hub;
+```text
+http://devbox-hub..ts.net:8080
```
-> 💡 **Why two channels?** WebSocket for live events (tiny, ordered) + **stateless HTTP for
-> blobs** (`GET /blob/` → range/resume/caching for free). Same TLS endpoint, same token.
-> Pure-WebSocket would force us to reinvent resumable transfer over a socket — *more* code.
+**The `http://` endpoint travels inside Tailscale's encrypted network.** Embedded
+mode exposes the hub API only through its Tailscale node; it does not also open
+the API port on your machine's LAN or public interfaces. Tailnet access rules
+still apply, and devbox's own join tokens and bearer authentication remain required.
----
+**This release embeds Tailscale in the hub.** Client machines need the regular
+Tailscale app, connected to a tailnet that can reach the hub. The `devbox` client
+uses the private URL through that connection. Embedded client networking is not
+included in this release. The embedded hub is a separate Tailscale device, even
+if its host machine already runs Tailscale.
-## 🔄 How Sync Works
+## ✨ Why devbox?
-```mermaid
-sequenceDiagram
- autonumber
- participant FS as 📁 Filesystem
- participant D as 🛡️ devboxd
- participant H as 🛰️ Hub
- participant P as 🍓 Peer
+Git records the work you choose to commit. devbox continuously mirrors the
+working files you are editing across your machines, including uncommitted work.
- FS->>D: ✏️ file changed (fsnotify, debounced ~300ms)
- D->>D: 🙈 .devignore + 🔐 secret-guard filter
- D->>D: 🧩 FastCDC chunk → BLAKE3 → manifest diff
- D->>D: 🪝 pre-push hook (can veto 🛑)
- D->>H: ⬆️ upload missing chunks (HTTP, bw-capped)
- H->>H: 📸 append snapshot, advance share HEAD
- H-->>D: ✅ ack
- D->>D: 🪝 post-push hook
- H->>P: 🔔 change event (WebSocket)
- P->>P: 🪝 pre-pull hook (can veto 🛑)
- P->>H: ⬇️ fetch missing chunks (HTTP)
- P->>P: 🧱 reassemble → ⚛️ atomic rename into place
- P->>P: 🪝 post-pull hook (pnpm install / restart 🚀)
-```
+- **Live, bidirectional sync.** A filesystem watcher sends changes; peers receive
+ them through a persistent event stream. Periodic rescans catch missed events.
+- **Developer-friendly filtering.** `.devignore` uses gitignore syntax. Optional
+ default ignores skip caches, dependencies, and build output.
+- **Secret guard.** Default deny patterns block `.env` files, private keys, and
+ credential paths independently of `.devignore`; add your own patterns too.
+- **Conflict copies.** Concurrent edits preserve losing file versions as
+ `.conflict-*` copies instead of silently discarding them.
+- **Efficient transfers.** FastCDC chunking, BLAKE3 content addressing, deduplication,
+ optional gzip, and bandwidth caps reduce repeated uploads.
+- **Selective mounts.** Mount a whole share or one subdirectory, read-write or
+ read-only. Per-device exclusions keep local choices local.
+- **Snapshots and deployment.** Browse history, restore a file or tree, or pin a
+ mount to a snapshot for a deployment.
+- **Hooks and visibility.** Run lifecycle hooks, inspect JSON status, diagnose
+ problems with `doctor`, and enable the hub's built-in live dashboard.
-A **read-only** mount skips steps 1–8 (it never pushes) but still receives and applies inbound
-changes. 🔒
+## ⚡ Install
----
-
-## 💥 Conflicts: Never Lose a Byte
-
-devbox is **Dropbox-easy** (never nags you mid-work) **and** data-loss-proof. Here's the magic:
-the hub keeps a **linear HEAD per share**, and every push declares the snapshot it was based on.
-
-```mermaid
-flowchart TD
- START([📤 push arrives]) --> Q{parent == HEAD?}
- Q -->|✅ yes| FF["⏩ fast-forward\nadvance HEAD"] --> DONE([🎉 done])
- Q -->|❌ no| THREE["🔱 per-file 3-way\nvs common ancestor"]
- THREE --> ONLY{changed by\nonly the pusher?}
- ONLY -->|yes| CLEAN["✨ applies cleanly"] --> DONE
- ONLY -->|both sides| CONF["💥 CONFLICT"]
- CONF --> KEEP["👑 first-to-land stays canonical"]
- CONF --> COPY["📝 loser saved as\nfoo.conflict-laptop-1719.go"]
- CONF --> HOOK["🔔 on-conflict hook fires"]
- KEEP & COPY & HOOK --> SAFE([🛟 zero data lost])
-
- style CONF fill:#5a1e1e,stroke:#ff6b6b,color:#fff
- style SAFE fill:#1e5a2e,stroke:#51cf66,color:#fff
- style DONE fill:#1e5a2e,stroke:#51cf66,color:#fff
-```
-
-
-📖 The classic "laptop was offline" scenario — click to expand
-
-
-
-Both machines synced at snapshot `S3`, both have `foo.go` v1:
-
-1. 🔌 **Laptop goes offline**, edits `foo.go` → **v2-laptop** (queued, parent still `S3`).
-2. 🍓 **Pi (online)** edits the same `foo.go` → **v2-pi**, pushes. Hub HEAD `S3 → S4`. Pi's wins canonical.
-3. 🔌 **Laptop reconnects**, pushes with `parent=S3` — but HEAD is `S4`. `parent ≠ HEAD` → conflict path.
-4. 🔱 Both changed `foo.go` since `S3` → real conflict.
-5. 🛟 **Result, nothing destroyed:** both machines end up with
- `foo.go` = **v2-pi** (canonical) **and** `foo.conflict-laptop-1719.go` = **v2-laptop** beside it.
-
-The offline edit is **never lost** — it just lands as a clearly-named sibling. 🎯
-
-
-
-**Conflict rules at a glance:**
-
-| Situation | Outcome |
-|---|---|
-| 🤝 Both edit same file | First-to-land canonical; loser → `.conflict--` copy |
-| 🗑️ One deletes, one edits | **Edit always wins** — a delete has no bytes to lose |
-| 🔤 Rename | Free — old-gone + new-added; content-addressed = zero re-transfer |
-| 🔒 Read-only mount about to clobber a local edit | Local stashed as `.conflict-local-` first |
-| 👀 You find out via | `devbox status` badge · `on-conflict` hook · `devbox conflicts` list |
-
-> 🚫 **No blocking prompts.** A headless daemon can't prompt you, and nagging would break the
-> whole "Dropbox-easy" promise. You get told; you choose when to look.
-
----
-
-## ⚡ Install & Run
-
-**Client (macOS / Linux)** — one line. Detects your platform, lets you pick where the binary lives, and offers a **keep-alive auto-restart service** (launchd `KeepAlive` on mac, systemd `Restart=always` on Linux):
+**Linux / macOS client:**
```bash
curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh | sh
-# non-interactive: DEVBOX_BIN_DIR=~/.local/bin DEVBOX_SERVICE=1 sh install.sh
-# also install the hub: sh install.sh --hub
```
-🪟 Windows · 🍎 macOS Full Disk Access · 🛠️ knobs
-
-- **Windows:** `irm https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.ps1 | iex` — copies `devbox.exe`, adds it to PATH, and (optionally) a restart-on-failure **Scheduled Task** at logon. Notes Controlled Folder Access if you have it on.
-- **From Go (have a toolchain):** `go install github.com/shoemoney/devbox/cmd/devbox@latest` (hub: `…/cmd/devbox-hub@latest`).
-- **macOS Full Disk Access:** to sync `~/Desktop`, `~/Documents`, `~/Downloads`, or **iCloud**, grant Full Disk Access to the `devbox` binary (System Settings → Privacy & Security → Full Disk Access). `devbox doctor` tests your actual mounts and tells you the exact fix + a deep link — a background daemon can't show the per-folder prompt, so without it those mounts silently fail.
-- **Knobs:** `--bin-dir DIR` · `--hub` · `--service` / `--no-service` · `--release-url URL` (or the `DEVBOX_*` env equivalents). No prebuilt release? The script falls back to a local `dist/` (run `scripts/build-release.sh`) or `go build`.
-- **Service control:** `systemctl --user {status,disable} devbox` (Linux) · `launchctl unload ~/Library/LaunchAgents/ai.shoemoney.devbox.plist` (mac).
-
-
-
-**Hub on a NAS (TrueNAS / Synology / unRAID / any Docker host)** — self-healing container, drop-in:
+**Install the hub as well:**
```bash
-docker compose up -d --build # hub on :8088, data persisted, restart: unless-stopped
-docker compose exec hub devbox-hub token --data /data # mint a join token
-# live dashboard: uncomment the :8099 port + --dashboard command in docker-compose.yml
-# stronger self-heal (restart on unhealthy): docker compose --profile selfheal up -d
+curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh -o install.sh
+sh install.sh --hub --no-service
```
-The image is a tiny (~32 MB) static, non-root Alpine build — `Dockerfile` + `docker-compose.yml` at the repo root.
+`--service` installs a keep-alive service for the **client sync daemon**. Run the
+hub separately, or configure its own service with the `serve` arguments below.
-
-🔒 Production: TLS + safe upgrades
+**Windows (PowerShell):**
-**Put the hub behind TLS.** The hub speaks plain HTTP and the bearer token + your file bytes cross the wire in the clear — front it with a reverse proxy (nginx / Caddy / Nginx Proxy Manager) and terminate TLS there (the API is bearer-authed). Two settings a *sync* hub needs in the proxy:
-
-```nginx
-location / {
- proxy_pass http://:8088;
- client_max_body_size 0; # large blob uploads — never cap them
- proxy_buffering off; # stream the /v1/events SSE to clients
- proxy_read_timeout 3600s; # long-lived event stream
-}
+```powershell
+irm https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.ps1 | iex
```
-Devices then `devbox join https://hub.example.com ` — Go's client does TLS natively.
-**Upgrade safely.** The hub DB is the canonical index to every share's history, so don't hot-swap the binary. `deploy/redeploy-hub.sh` runs the never-YOLO pipeline: **migration dry-run on a *copy* of live data** (`scripts/verify-hub-migration.sh`) → **auth smoke** the new binary in a throwaway instance (`scripts/hub-auth-smoke.sh`) → back up binary + DB → swap → verify the new code is live → **auto-rollback** on any failure. (`--gc-every ` self-maintains so blobs don't accumulate.)
-
+Release downloads include both `devbox` and `devbox-hub` for Linux amd64/arm64/arm,
+macOS amd64/arm64, and Windows amd64, plus `SHA256SUMS`. The shell installer
+supports amd64 and arm64; download the Linux arm binaries directly for 32-bit Pi OS.
+Use `--release-url` / `DEVBOX_RELEASE_URL` to select a versioned release.
----
+## 🚀 Tailscale quick start
-## 🚀 Quick Start
-
-> ✅ *Every command below is implemented and fleet-tested. Build with `scripts/build-release.sh`.*
+### 1. Start your private hub
```bash
-# 🛰️ On your hub (Pi / TrueNAS / NAS)
-devbox-hub serve --data /srv/devbox --listen 0.0.0.0:8088
-devbox-hub token # prints a one-time join token
+devbox-hub serve --data ./hub-data --tailscale --tailscale-hostname devbox-hub
+```
-# 💻 On your laptop
-devbox join http://hub.lan:8088 # enroll this machine
-devbox publish ~/Projects projects # create a share from a folder
-devbox start # live-sync daemon (foreground)
+Authenticate using the terminal's login URL. The default startup deadline is two
+minutes; allow longer with `--tailscale-start-timeout 5m` if needed. Keep the hub
+running and use another terminal for administrative commands.
-# 🍓 On another machine — clone the share and keep it in sync
-devbox join http://hub.lan:8088
-devbox mount projects ~/Projects # clone + register the mount
-devbox start
+For unattended first enrollment, set **`TS_AUTHKEY`** in the service environment
+or a protected environment file. Do not commit it or put it in command-line
+arguments. Once enrolled, the persisted state reconnects without the auth key.
-# 🚀 A read-only deploy box — pulls, never pushes its runtime cruft back up
-devbox mount api /var/www/api --ro
+The embedded node stores its identity under **`/tailscale`**, with a private
+state directory. Keep this directory across upgrades and include it in protected
+filesystem backups. Do not share one state directory between running hub processes
+or clone the same node identity onto multiple hosts. `devbox-hub backup` backs up
+the hub database and blobs; separately preserve the Tailscale state directory.
+
+### 2. Enroll the first client
+
+On the hub machine, mint a one-time token:
+
+```bash
+devbox-hub token --data ./hub-data
+```
+
+On your client, connect the Tailscale app, then use the endpoint printed by the hub:
+
+```bash
+devbox join http://devbox-hub..ts.net:8080
+devbox publish ~/Projects projects
devbox start
```
-That's it. ✨ Edit on your laptop → it lands on the Pi in near-real-time, `node_modules` stays
-home, your `.env` *never leaves the building*, and `post-pull` can `pnpm install` + restart your
-container automatically. 🪄
+The hostname is an example: Tailscale may assign a different name when a device
+with that name already exists. Use the actual printed endpoint. MagicDNS must be
+available on clients to use its hostname; the hub's Tailscale IP works too.
----
+### 3. Mount it on another machine
-## 🧰 CLI Reference
-
-
-💻 Device commands
-
-| Command | What it does |
-|---|---|
-| `devbox setup` | 🧭 Step-by-step first-run wizard (also auto-offered once on a fresh machine; opt out with "don't ask again") |
-| `devbox join ` | 🎟️ Enroll this device against a hub |
-| `devbox mount ` | 🔗 Mount a share into a local dir (clone + sync) |
-| `devbox mount --ro` | 🔒 Mount **read-only** (pull only, never push) |
-| `devbox mount … --exclude ` | 🙈 Device-local ignore (gitignore syntax, repeatable) layered on the shared `.devignore` — e.g. skip a local build dir |
-| `devbox publish ` | 📂 Create a share from a local folder + push it |
-| `devbox unmount ` | ⏏️ Stop syncing a mount (files stay on disk) |
-| `devbox start` / `stop` | ▶️⏹️ Run / stop the daemon |
-| `devbox status` `[--json]` | 📊 Device, hub, mounts (with `ro`/`pinned`), per-mount sync-age **and last sync error** (`⚠️ last sync failed: …`); ⚠️ says when the **daemon isn't running** (no silent stale state); `--json` exposes `last_err` (prefers live daemon state) |
-| `devbox log ` `[--json]` | 🕰️ Snapshot history (full ids); `--json` for machine-readable output |
-| `devbox restore [path]` | ↩️ Roll back a file or a whole share |
-| `devbox deploy ` | 🚀 Pin a mount to a snapshot — applies it without pushing (blue/green) |
-| `devbox conflicts` `[--json] [--rm]` | 💥 List conflict copies across all mounts; `--json` emits a JSON array, `--rm` deletes them (review first!) |
-| `devbox ignore ` | 🙈 Append a pattern to `./.devignore` (rejects a pattern that doesn't compile) |
-| `devbox hook edit ` | 🪝 Scaffold/open a hook in `$EDITOR`; `hook list ` shows installed |
-| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer + **clock skew vs hub** (warns >30s) + **free disk** on each mount/config dir (warns <1 GiB); non-zero exit on ❌ — cron-friendly; `--json` for monitoring |
-| `devbox status` shows sync age | ⏱️ Live status now prints per-mount last-sync age ("synced 12s ago" / "not synced yet") |
-| `devbox pause [--for ]` / `resume` | ⏸️▶️ Suspend/resume the running daemon's syncing via its control socket; `--for 2h` auto-resumes (M8) |
-| `devbox invite ` | ✉️ Mint an invite token granting a role (`--reshare` for `+s`); attenuation-enforced (M8a) |
-| `devbox invite revoke ` | 🗑️ Kill a pending invite before it's redeemed (only a caller who could mint it) |
-| `devbox members ` | 👥 Show who can access a share, or "legacy share" (M8a) |
-| `devbox-hub member set/rm/list` · `principal` | 🛡️ Hub-side role admin (M8a) |
-| `devbox peers` | 🌐 *Planned — needs a hub peers endpoint (M10)* |
-
-
-
-
-🛰️ Hub commands (run on the hub host)
-
-| Command | What it does |
-|---|---|
-| `devbox-hub serve --config ` | 🚀 Start the hub |
-| `devbox-hub token` | 🎟️ Mint / rotate the join token |
-| `devbox-hub device ls` `[--json]` · `revoke ` | 📋❌ List enrolled devices (id/name/principal/last-seen/revoked) / revoke one |
-| `devbox-hub share ls` `[--json]` | 📑 List shares (name/head/ACL mode/#snapshots/#members/updated) |
-| `devbox-hub readonly ` | 🔒 Mark a device read-only on a share |
-| `devbox-hub member set/rm/list` · `principal` | 🛡️ Per-share roles + principals (M8a) |
-| `devbox-hub backup ` | 💾 Disaster-recovery snapshot: consistent DB copy (`VACUUM INTO`) + the blob tree into `` — flocked against gc so a sweep can't strand it mid-copy |
-| `devbox-hub fsck` `[--json]` | 🔬 Integrity scan: re-hash every blob (bit-rot) **and** flag dangling snapshots (manifest → missing blob); non-zero exit on either — pairs with `backup` for DR confidence |
-| `devbox-hub serve --dashboard` | 📊 Serve the live web dashboard (loopback `:8099` by default) |
-| `devbox-hub serve --dashboard-token ` | 🔐 Require a token to view the dashboard (recommended for any non-loopback bind) |
-| `devbox-hub serve --metrics-token ` | 🔐 Require a token for `/metrics` — close the unauthenticated leak on a WAN-exposed hub |
-| `devbox-hub serve --access-log` | 📝 Log one line per request (method, path, status, bytes, addr, **device id**) for WAN forensics |
-| `devbox-hub serve` (startup) | 🛰️ Logs build version + dashboard state; ⚠️ warns if `--listen` is non-loopback (plain HTTP → cleartext bearers without the TLS proxy) |
-| `devbox-hub serve` (SIGTERM) | 🛑 Graceful shutdown — drains in-flight requests via `http.Server.Shutdown` and drops live SSE streams immediately (no 10s wait), so the hardened redeploy swaps cleanly |
-| `devbox-hub serve --gc-every ` | 🧹 Opt-in in-process periodic GC (off by default; each sweep animates on the dashboard) |
-| `devbox-hub gc [--dry-run] [--keep ] [--keep-days ]` | 🧹 GC unreferenced chunks; `--dry-run` previews, `--keep` keeps N newest/share, `--keep-days` also keeps anything from the last N days |
-| `GET /healthz` · `GET /readyz` | 🩺 Liveness (`/healthz` reports the build version) / readiness (`/readyz` pings the DB → 503 if unreachable) for Docker/LB |
-| `GET /metrics` | 📊 Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts); gate with `--metrics-token` |
-
-
-
----
-
-## 📊 Live Dashboard — watch your fabric breathe
-
-> Our own. No Grafana, no Prometheus required, **no external deps** — it ships *inside the hub binary*
-> and runs air-gapped. **Off by default**; flip it on and watch every push, join, and chunk flow in real time. ✨
-
-
+Mint a **new** token on the hub, connect that machine's Tailscale app, then:
```bash
-devbox-hub serve --dashboard # loopback http://127.0.0.1:8099 (safe default)
-devbox-hub serve --dashboard --dashboard-addr 0.0.0.0:8099 # expose on the LAN (unauthenticated — warns you)
-devbox-hub serve --dashboard --gc-every 24h # also self-maintain (in-process GC) — each sweep animates
+devbox join http://devbox-hub..ts.net:8080
+devbox mount projects ~/Projects
+devbox start
```
-A mission-control flow visualization rendered on `