Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 16:14
· 247 commits to main since this release

One user model on every runtime: inside a sandbox you are a user with your host uid/gid, so workspace files come out owned by you on rootful docker, rootless docker, rootless podman and VM-backed runtimes alike. Browsers keep their own sandbox wherever it can work, and tools are told when it can't. Interactive exec sessions survive a dropped connection: --attach gets the program back, and a machine's terminal reconnects by itself. Machines become one fleet: members with their own keys and trust, a hub, routing through other members, run --place to send a sandbox where there's room and devsandbox fetch to bring the work back. Fleet is experimental in 0.9.0: its commands, config, files and the protocol between machines may change between releases with no migration, so don't use it for anything you can't redo. Its entries are grouped under Experimental: fleet below.

Behaviour change: sandboxes run as the host user by default (identity = "host"). The config's remoteUser (else containerUser, else the image's USER) is adopted with your host uid/gid, keeping its name, home and shell. A config that assumes root in the container (mounts or paths under /root, a root remoteUser/containerUser) can break under it, so run, start and rebuild now offer to update it first (the dashboard asks too), and identity = "image" keeps the old behaviour. Existing instances keep the user they were created with until rebuilt (devsandbox rebuild --force <name>).

[sandbox.legacy]
identity = "image"   # users as written, no remapping

Machines added with 0.8.0 must be added again with machine add: their old links are refused (see Experimental: fleet).

Added

  • Sandboxes run as the host user, planned per runtime mode. run probes the runtime's user-namespace mode (rootful, rootless docker, rootless podman, VM-backed) once per runtime context, picks how to create and exec the container so the adopted account ends up with your ids, and prints the plan in one line (identity: rootful: exec as vscode, remapped to 1000:1000) plus any warning. On rootless docker, where root is the host user, execs run as root with HOME set to the account's home. With no account to adopt, the sandbox runs as root with a warning recommending the common-utils feature. A docker socket mount gets the right group, and SELinux-enforcing hosts get their binds relabelled. --reprobe on run and rebuild probes the mode again.
devsandbox run web --reprobe
  • identity config field. identity = "host" (default) or "image" (users taken literally, as before). When it's unset, updateRemoteUserUID = false means "image", so devcontainer configs that opt out of uid remapping keep doing so.

  • Updating configs that mount into /root. Before run, start and rebuild, on a terminal, devsandbox lists the config entries that break under host identity and asks [u]pdate / [c]ontinue as is (don't ask again) / [s]kip this time. Update rewrites the config file in place, comments and layout kept: /root becomes ${containerEnv:HOME}, a root user is removed (or kept with identity = "image"), and it names the instances that now need a rebuild. A YAML config gets the edits to make by hand. Off a terminal, under run --json and from autostart, run prints one warning line instead. The dashboard flags these sandboxes in its header (N sandboxes use /root (U to update)) and Detail panel, and offers the same update when it opens, on U, and before run, start and rebuild. Machines' configs are checked on the machine. API: config.findings, config.migrate, config.ack (docs/reference/api.md, Config).

  • ${containerEnv:NAME}. Resolves at create, once the image is built, from the sandbox's containerEnv, else the image's ENV, else for HOME the home of the account the container runs as. It works in mounts, shell-rc, feature mounts, containerEnv and remoteEnv, so a mount can land in the user's home whoever that is, and PATH = "${containerEnv:PATH}:/opt/bin" extends the image's PATH.

mounts = ["source=${sharedVolumes}/gh,target=${containerEnv:HOME}/.config/gh,type=bind"]
  • Browsers keep their sandbox. Docker sandboxes are created with devsandbox's seccomp profile: docker's default plus user namespaces for unprivileged processes, which Chromium's and Electron's own sandbox needs (podman already allows it). That opens kernel surface docker's default closes; userns = false keeps docker's default profile. Where execs run as root (rootless docker, root images), chrome, chromium and google-chrome go through a wrapper that starts the real browser at a non-root uid; DEVSANDBOX_CHROME (and CHROME_PATH, CHROME_BIN, PUPPETEER_EXECUTABLE_PATH) point at it, so a Playwright script passes executablePath: process.env.DEVSANDBOX_CHROME and chromiumSandbox: true. Root plans also silence pip's and bundler's root warnings.
[sandbox.web]
userns = false
  • Tools are told whether a browser sandbox works. Each new container checks whether a browser sandbox can start there, and run says so (browser sandbox: on, or off (<why>); sandbox-off knobs set). Where it works, every exec gets DEVSANDBOX_BROWSER_SANDBOX=1; where it doesn't, the tools' sandbox-off knobs (PUPPETEER_DANGEROUS_NO_SANDBOX, ELECTRON_DISABLE_SANDBOX, QTWEBENGINE_DISABLE_SANDBOX, PLAYWRIGHT_MCP_SANDBOX=false, CHROMIUM_FLAGS=--no-sandbox). Keys you set in containerEnv or remoteEnv win. inspect prints the verdict; instances created before this say not recorded until rebuilt.

  • Resumable exec sessions. On an instance with the helper, a tty exec runs in a session that outlives the client: if the terminal or connection goes, the program keeps running, and exec --attach gets back to it (the one detached session, a pick list when there are several, or --attach=<id>). --sessions lists them, --session <id> runs in a named one, attaching if it's live. Dashboard terminals run in sessions too, so a shell closed with the dashboard can be reattached from the CLI; the Detail panel shows sessions: N (M detached) and the row a ▣N badge. Ended sessions are cleaned up after a few minutes; detached ones stay until removed.

devsandbox exec web --sessions
devsandbox exec web --attach
devsandbox exec web --attach=1790000000-a1b2
  • Machine terminals reconnect. A tty exec on a machine's instance, and a dashboard terminal tab on one, reattach to their session when the connection drops (connection lost, reconnecting… (Ctrl-C to stop), backing off up to 10 s), instead of ending the program's terminal. To keep the connection's own failure apart, a program there that exits 255 reports 254.

  • exec --service <name> opens a terminal in a service container the instance uses (its command, else a login shell).

Fixed

  • Feature mounts under ${sharedVolumes} work on a first run. A feature's bind mount whose source is under ${sharedVolumes} is now created when missing, like a config mount, instead of skipped with a warning. Other missing feature sources are still skipped.
  • caches work for a non-root user. Cache mounts now go to /var/cache/devsandbox/<name> instead of /root/…, which a non-root remoteUser couldn't reach. The tools find them through their env vars as before.
  • Same-named sandboxes in two config roots no longer clobber each other's images, nor does sandbox foo-feat clobber sandbox foo's features image. Built images are tagged per config root, one prefix per kind (devsandbox-img-<root>-<sandbox>, devsandbox-feat-<root>-<sandbox>, devsandbox-img-svc-<root>-<service>), so the first run or rebuild after upgrading builds them again; images under the old tags are left for docker image prune.
  • ${localEnv:NAME:default} uses its default. An unset NAME now expands to default (everything after the :) instead of empty; a set one, even to empty, to its value. ${containerEnv:NAME:default} works the same.
  • Running devsandbox as root on rootful docker or podman works. Instead of failing to remap the adopted account to uid 0, execs run as root with HOME set to the account's home, as on rootless docker.
  • The dashboard's build log follows a running build, refreshing within about 100 ms instead of only on snapshots.
  • Dashboard prefills no longer fail as ambiguous. r's prefill and tab completion, and p's port prefills, write a local name a machine also has as @/<name>, so the line submits.
  • Machines' rows stay current. A late update from a machine could bring back a root that was dropped, or overwrite a newer snapshot with older rows.
  • A signal no longer fails a command talking to the host daemon. An interrupted read of the daemon's reply is retried instead of failing the command.

Experimental: fleet

Everything in this group may change between releases (commands, member.toml, the fleet's files next to state.toml, the protocol between machines) with no migration. Don't use it for anything you can't redo.

  • One link per pair of machines, under the machine's trust. Everything done on a machine (CLI commands, verbs, terminals, port forwards, the ssh agent) rides one held link instead of an ssh connection per use; ssh carries only that link and machine add's probe. Links from before this release are refused until both ends have keys and a signed member list, so add 0.8.0 machines again. What a link reaches is the machine's own machine trust (worker by default): a machine you drive freely needs machine trust full there.

  • Machines form one fleet around a hub. machine add joins fleets: the machine joins this host's fleet, this host joins the machine's, or (neither in one) the two start one with this host as hub, --hub making the target the hub instead; two different fleets are refused. A laptop joins an always-on server's fleet with machine add <server> and dials it, so the server never needs ssh into the laptop. A machine with no config roots (or none picked) can be added and runs only other members' configs. Every member sees the whole fleet. machine rm <name> takes a member out (machine rm <this host> leaves); forgetting only the link is machine unlink <name>. machine hub <m> moves the hub role with no link changing; members that were offline follow when they reconnect, and a hub that's down can be replaced unless it's the machine that created the fleet.

devsandbox machine add me@my-server --hub
devsandbox machine hub my-server
  • Member keys and a signed member list. Every machine has its own key (machine key prints its fingerprint, machine key rotate replaces it without leaving). Only the machine that created the fleet signs who belongs, and every member checks the list; every link checks both ends' keys against it, so no machine can pass itself off as another member or as the hub. machine add shows the other machine's fingerprint to confirm (--yes skips it off a terminal). machine rm, machine key rotate, machine hub and adds typed on another member go to the creating machine, which shows a desktop notification: machine pending lists them, machine approve <id> and machine deny <id> decide. A machine added by another member shows as introduced by … in machine ls and can't add others until approved.
devsandbox machine key
devsandbox machine add me@my-server   # my-server's key fingerprint is SHA256:…
devsandbox machine pending
  • Each machine decides what others reach on it: machine trust and machine roots. worker (the default) admits only this host's own config roots (those with instances, plus the ones machine roots add picks) and the code placed on it, and holds placed configs to a worker policy: binds only under the placed code, no extra capabilities or devices, no initializeCommand, and host networking, the runtime socket, ${localEnv:…}, public ports and the like only where [allow] in member.toml permits. full gives other machines what a local client has. When a machine on the hub's side has an ssh link into this one (a shell that could change its trust), machine trust warns and machine ls and the Machines tab mark it exposed via <machine>. On every machine and under any trust, run, rebuild and services refuse a bind mount, build context or build secret that would expose the machine's key ($HOME, the data dir, /, …), naming the path.
devsandbox machine trust full
devsandbox machine roots add ~/sandboxes
  • Routing through the fleet. Members share a signed graph of their links, so a machine with no link to this host is routed via <machine> in machine ls, and commands, verbs, terminals, port forwards and run --place reach it through the members in between, trying the next path when one is down. Routed streams are encrypted end to end and prove which member they came from, so a machine in the middle can't read, alter, replay or speak for them, and the far end applies its own trust to the real origin. The ssh agent is a per-machine grant (machine set <m> --agent on) that reaches the granted machine over any path; a machine in the middle's own grant never carries over.

  • Placed runs: run --place. A typed run always runs on the machine whose config it names. run --place (also :run … --place in the dashboard) asks the hub where the new instance goes: the hub or the machine with the most headroom against its soft caps ([caps] in member.toml; over cap: … warns, never refuses), and says where (placed on <machine> (…)). Placed elsewhere, the config root and the folder's branch move there first, straight from your checkout with no remote needed: unpushed commits, a local-only branch and the uncommitted work of the branch you have checked out (untracked files included, ignored ones not) all go; a repeat placement sends only what that machine lacks, and the hub keeps a copy of each repo placed elsewhere. The instance is that machine's, <machine>/<instance>. A sandbox whose config ties it to this host (binds outside what moves, ${localEnv:…}, shared volumes, the runtime socket, caches, privileged, initializeCommand, global services, build paths outside the root) runs here with a note naming why, as does one with placement = "home" or when the hub is unreachable.

devsandbox run web --place --branch fix-login   # placed on lap (mem 71% free, …)
[sandbox.web]
placement = "home"   # run --place never moves it
  • devsandbox fetch: placed work comes back. devsandbox fetch <machine>/<instance>, on the host that placed it, brings the instance's branch and a snapshot of its working tree into the checkout it came from as hidden refs (refs/devsandbox/<machine>/<instance>/heads/<branch> and …/wip); your branches, index and working tree are never touched. rm of a placed instance fetches it back first and refuses if it can't (rm --force skips that); done fetches back too, warning if it can't.
devsandbox fetch lap/web-2
git log refs/devsandbox/lap/web-2/wip
  • Members follow the hub's build. A member runs its hub's exact build, downgrades included, so a fleet never mixes protocols. A hub on a release has its members download that release from GitHub (linux x86_64/arm64, macOS arm64), installed only once its checksums verify against the signing key built into devsandbox (releases now ship SHA256SUMS.sig); the download is time-bounded, and a member stops retrying where no release exists for its platform. A hub on a dev build (from source, cargo install included) hands its binary to members on the same OS/arch that set dev-builds = true in member.toml (or whose trust is full).

Internal

  • Gated tests run under rootless podman on CI, alongside docker, so the rootless-podman identity mode is exercised.
  • Host-to-helper RPC channel. The host calls the in-container helper over the bridge instead of a fresh runtime exec per request; the dispatcher's wait and follow are one held stream instead of an exec per poll.
  • Release builds are checked and signed. CI refuses a release whose binaries don't report the tag's version, commit and platform, and signs SHA256SUMS.
Commits
  • 85d19ce feat(release): sign the release checksums and have members verify them against an embedded key before installing, since a checksum from the same release would share the asset's trust root
  • 2fc706e ci(release): fail a release build whose fleet-hello isn't the tag's version, commit, published and platform, since members download these binaries and a wrong stamp makes them loop or refuse the hub
  • c87ff13 docs(fleet): tag the fleet api @experimental and mark placement in the config spec, so the generated node-api and config pages flag fleet like the hand-written ones
  • 391eb22 fix(fleet): bound a release download overall and stop following a published hub where no release exists for this platform, so a member never hangs on a trickle or retries a doomed download at every link
  • d82126a docs(site): badge fleet mentions on indexed pages as experimental, since 0.9.0 ships fleet before its design settles
  • 9074557 fix(fleet): mark release builds published and check a downloaded release's whole build, not just its version, so released members follow their hub instead of looping on a moved tag
  • 82639ea docs(site): draw the fleet architecture page's machines as a data-driven FleetDiagram, so the diagram stays in step with fleet-data.ts
  • c24c2ea feat(site): say what devsandboxes is in the home title, add schema.org app data, a robots.txt pointing at the sitemap and noindex on /architecture, so search engines rank the docs for what people search and keep the contributor pages out
  • 88476e4 docs(fleet): correct step 12's docs where a review found them claiming more than the code does (the fetch-back gate's guarantee, WIP reaching every placed run, the one ref left in a user's repo, a rename skipping fetch-back), so the docs say what is built
  • 4e40da8 docs(fleet): close step 12 with its as-built note, status (steps 1-12 shipped, next 13, the transfer extras parked) and the changelog, so step 13 starts from code that moves and comes back
  • fe9a6dc feat(fleet): rm and done of an instance this host placed fetch it back first (rm refused when that fails unless --force, done with a warning), so removing placed work never loses what was done there (fleet step 12f, decision 77)
  • e1479af feat(fleet): devsandbox fetch pulls a placed instance's branch and a WIP snapshot back into the checkout it was placed from as hidden refs, recorded in placements.json and admitted on the worker only under the caller's fleet root, so work done elsewhere comes home without touching the user's branches (fleet step 12e, decision 76)
  • 6ea2118 fix(fleet): recut a moved checkout no instance mounts and leave a mounted one's tree alone, since every new checkout is dirty from its WIP and a repeat placement's fast-forward either failed on it or moved code under a running instance (fleet decision 73 amended)
  • 306f625 feat(fleet): a member placing on another machine also sends the same refs into its hub's cache, best effort with a note, so a repo's latest work outlives the laptop it came from (fleet step 12d, decision 75)
  • 6db6684 feat(fleet): placement bundles each folder from its own checkout with a WIP snapshot and asks no origin, so repos without a remote, unpushed commits and uncommitted work can be placed (fleet step 12c, decisions 72, 73)
  • 8d54cb2 feat(fleet): a worker keeps one repo cache per repo and sender and cuts checkouts from it, and code.haves tells the sender what it has, so a repeat placement sends only the delta and never the same root twice (fleet step 12b)
  • 0122d17 feat(fleet): repo identity by root commits, WIP snapshots through a temp index, delta bundles over haves and every host git bounded with its process group, so transfer v1 builds on plumbing that never touches the user's index or hangs (fleet step 12a, decisions 71, 73)
  • cbe1a80 docs(fleet): break step 12 into seven sub-steps and record decisions 71-77 (identity by root commits, sends from the source checkout with no origin, WIP only into a fresh checkout, the hub mirror best effort, fetch-back pulled into hidden refs), and say step 13 is the one waiting on helper-rpc's runs, so transfer v1 starts from a settled design
  • f72872f docs(open): plan routing container url opens to the user's desktop, with per-instance profiles
  • 619bab2 docs(fleet): say a dead hub can be replaced only while the authority is up, since a fleet made without --hub has them on one machine and the step 11 docs promised more
  • 45cb4e7 docs(fleet): close step 11 with its as-built note, status (the swap moves the role only, a link can drop twice after it) and the changelog, so step 12 starts from the hub role as it moves
  • b97a0be test(fleet): a member down during a hub move follows at its next proof, hub-only calls follow the log's hub and an old hub stops saving remotes, so every role reader is shown to follow a live move (fleet step 11b)
  • 5b8a979 feat(machine): machine hub moves the hub role by a hub entry signed on the authority or proposed and approved there, each host following only once the change has left it, so the role can move off a laptop or a dead hub without cutting the links that carry it (fleet decisions 68, 69)
  • b8aaed8 docs(fleet): break step 11 into three sub-steps and record decisions 68-70 (a hub entry signed only by the authority, followed once the change has left the host, the role moving without the view's reach), so the swap lands on a settled design
  • 73fa298 test(machines): hold the machine's daemon in the api tests' pair and shut both down over held connections, since with nothing holding it the machine idled out before finish
  • f976d60 fix(machines): store a pushed root's rows only while remotes lists the root, and send a roots change after the sync, so a late push can't revive a dropped root nor an early one be lost
  • efc868b test(fleet): wait for the no-log refusal as unreachable with its error, like the clash test, not just not connected
  • 92e436a fix(fleet): retry interrupted reads in the route refusal, link.attach and notify replies, since a timed socket read fails with eintr even under sa_restart
  • db5d07d fix(serve): retry an interrupted read of the hello reply, since a timed socket read fails with eintr even under sa_restart
  • f753d24 test(fleet): inject m's report over b's link and wait for box's report, since k's flood skips the peer a change came from
  • b75d33e fix(machines): send a roots-only entry change to the running link instead of restarting it, so a new inbound machine's link doesn't drop just after connecting
  • 9dd4828 fix(serve): add a watched root's local params and its watch under one lock, and publish machines one at a time, so a watch's snapshot isn't pruned or overwritten with older remotes
  • ecccddc test(fleet): ignore the forged proof's write, since the answerer may refuse an oversized one and hang up before the body
  • 27ccfd3 test(devsbd): wait for the hang-up after a peer's drop, since a concurrent fork keeps the socket open until its exec
  • d1c7575 test(fleet): wait_box returns the row its condition matched, since a re-read can see a link retry that cleared the error
  • b3a0ef3 docs(fleet): state what a transport owes a link, since links add no encryption of their own
  • 03e3baf docs(fleet): close step 10c with its as-built note, status (routed streams encrypted, agent grants over any path, grant-as-exposure parked) and the changelog, so step 11 starts from sessions as built
  • 4e08ea4 feat(fleet): an agent reaches a member it granted over any path, routed or a link the member dialed, through an agent-route socket probed only while the granter's report lists it, so agent consent is per member and never comes from a relay (fleet decisions 58, 66)
  • e0b890c feat(fleet): agent access is a per-member grant in member.toml, by key and following rotations, set by machines.set on any machine and published in the member's link report, so routed and direct agent streams can follow one consent rule (fleet decisions 65-67)
  • 24f68fb feat(fleet): routed streams are end-to-end sessions between their two daemons (ephemeral keys signed in the opening, sealed records), so a relay carries ciphertext it can't read, alter, replay or reflect; adr 0046
  • a87642d feat(fleet): session layer for routed streams (ephemeral x25519, per-direction hkdf keys, chacha20poly1305 records with an authenticated end), so 10c can make a relay carry ciphertext only; plan decisions 61-67 and the 10c sub-steps
  • 413d61d chore: update changelog
  • f10b5c9 docs(fleet): close step 10b with ADR 0045 (a routed stream proves its origin per stream), 0043 accepted and 0041 removed, the routing docs as one account, its limitations and an as-built note, so 10c starts from routing as it is
  • b4fdffc feat(machine): machine trust worker warns, and machine ls and the Machines tab show, when a machine the hub's side controls dials this one over ssh, worked out from the link graph, so a worker setting that a shell can rewrite isn't mistaken for protection
  • 08ac478 feat(fleet): proposals, removals, forgets and run --place reach their member over any path, and every member floods graph changes to its links, so the fleet works for members with no direct link to the authority, the hub or the worker (lifts decision 49's direct-link limit)
  • de6c450 feat(machine): a member reached only through others is a routed machine, listed as such and taking quick calls, verbs, terminals and forwards over its route, so machines seen through the hub are no longer view-only (fleet decision 60; the agent stays direct until 10c)
  • 5b7ea54 feat(fleet): a route-.sock for every member with no link up here, opening each stream over the graph's paths in order and failing over to the next, and terminals, forwards and code moves fall back to it, so a member is reached through the fleet when no direct link is up
  • abfe3a2 feat(fleet): both ends of a link relay a routed stream to a next hop that's up and, as its destination, serve the inner channel under this host's trust for the proven origin, so a member is reachable through others whatever the relays' own trust
  • d22fa6f feat(fleet): a routed stream's opening on a ROUTE channel, its header checked at every hop and its origin and destination proving their keys to each other over fresh nonces, so no relay can speak for the origin, replay it or pose as the destination
  • 156214d feat(fleet): every member signs a report of its links on change and sends it to the hub, which pushes the graph to its members, and any member hands its copy to a neighbor on link-up, so each member holds the fleet's link graph to route over
  • 56bbf09 feat(fleet): a link graph of members' own signed link reports, taken only by the reporter's key in the log and newer than the last, with paths ordered direct, fewest hops, through always-on members, longest up, so routing (10b) has a graph no carrier can forge
  • 840787f docs(fleet): break step 10b into nine sub-steps and record decisions 53-60 (a ROUTE channel, per-stream origin challenge, source routing, relaying isn't access, routed origins as direct peers, AGENT direct-only until a per-member grant in 10c, signed link reports, routed machines as rows), so routing lands on a settled design
  • d9e7ead feat(config): placement = "home" pins a sandbox to the host whose config names it, so run --place never moves it even where nothing inferred would keep it home (fleet decision 40)
  • 17e88ea feat(fleet): run --place keeps a sandbox home when its config ties it there (binds outside what moves, ${localEnv:…}, shared volumes, sockets, host-only features, build paths), saying why before the hub is asked, so nothing moves to a worker only to be refused by its policy (fleet decision 40)
  • 2c28f0f feat(run): a typed run stays on the member whose config it names and only run --place asks the hub, so the user's own sandboxes never wait on or move through the fleet (fleet decision 38; --here goes, nothing is placed by default)
  • e0bb55d chore(deps): bump sha2 to 0.11 so it shares one version with ed25519-dalek
  • bf5cd91 docs(fleet): close step 10a with ADR 0044 (one authority signs membership), an as-built note, status, changelog and module map, so routing (10b) starts from member identity as it is
  • 6d3421f feat(run): refuse any container bind or build path that reaches the member key, on every host and under any trust, so a sandbox can never read the key that proves this machine to the fleet
  • cc080f1 feat(fleet): machine key rotate replaces a member's key through a rotate entry countersigned by the old key, signed on the authority or proposed to it, the new key taking over and every link redialing once the log lists it, so a key can be retired without leaving the fleet
  • 3c45e63 feat(fleet): machine rm revokes the member's key in the membership log, signed on the authority or proposed to it and approved there with machine pending|approve|deny, and a signed change floods to the members over fleet.sync before the step-9 removal follows it, so only the authority's key ends a membership
  • ca3943b feat(fleet): a link peer carries the key it proved and its introducer, the hub-only fleet calls are admitted by the hub's key in the membership log rather than the name the link announced, and machine ls marks introduced members, so a relay or a stranger with the right name gets nothing
  • 876a3cc feat(fleet): both ends of a link prove their member keys against the membership log after the hellos, the end behind taking the entries it lacks and a fork or another fleet refused, so no device acts as a member or the hub without that member's key
  • 418a3ea feat(machine): machine add signs the joining machine into the fleet's membership log (genesis by the creator, adds by the authority, introductions by other members) after the user confirms its key's fingerprint, and every host takes its hub from the log it adopted, so membership is signed before links start checking it
  • 7015c9a feat(fleet): a hash-chained membership log signed by the fleet's authority, with introductions held beside it and a membership.json store, so who belongs to a fleet is something every member can verify rather than take from the hub
  • 9bb5ea5 docs(site): catch the bridge page up with the helper protocol as built: rpc as the one host-opened channel, port queries, the daemon's full caps, and the serve daemon as a takeover trigger once machines follow their hub's version; fleet-only channels pointed to, not listed
  • fbce32b feat(fleet): every member has an ed25519 key in a 0600 member.key, shown by member.get and machine key, with signed statements whose versions only go up, so the membership log and link proofs of step 10a have keys to sign with
  • 2486e9b docs(fleet): break step 10a into eight sub-steps and record decisions 48-52 (the fleet's creator is its authority, forwarded changes approved there, a single-writer membership log with introductions beside it, the cap while trust is per host, a file key store for now), so each piece of identity lands on a settled design
  • d4455ec feat(machine): machine add --hub makes the target the hub of a new fleet, so a laptop holding the configs can make an always-on server the hub without the server sshing into it (fleet decision 36)
  • 4af90c0 feat(machine): machine add takes no config roots when the machine has none or none are picked, so a hub or worker that only runs other members' configs can join (fleet decision 37)
  • c0b31aa docs(fleet): make H the only authority, cap introduced members by their introducer and add end-to-end sessions as step 10c, so a less trusted always-on hub or relay can't mint members, swap keys or read routed streams
  • fe72296 docs(fleet): record decisions 36-44 (machine add --hub, rootless members, typed runs stay home, mesh-held dispatcher config and state, inferred and pinned placement constraints, named host resources as the target, identity before routing as step 10a), so the hub-on-a-server setup and what binds a sandbox to a host are settled before step 10 starts
  • d486014 docs(fleet): mark step 9 shipped with an as-built note, so step 10 starts from members, the join rule and hub-placed runs as they are
  • e832892 feat(fleet): a member's run asks the hub's fleet.place where to go and moves its code there over its own links, running here with a note when the hub can't answer, so placement has one decider for the whole fleet
  • 001ccfa feat(machine): machine rm takes a member out of the fleet through the hub's fleet.leave/forget, machine rm of this host leaves, and machine unlink keeps the old link-only removal, so membership can shrink as well as grow
  • 582b629 feat(fleet): a member watches its hub's federated view and shows the hub's other machines as view-only via rows, the asking member's own rows never sent back, so every member sees the whole fleet before routing can reach it
  • 9121363 test(machine): the fake peer tolerates a handshake that closed before its reply, so the sentinel-in-a-link-stream case stops failing on EPIPE under load
  • 581389b feat(machine): machine add joins the target to this host's fleet, this host to the target's, or starts a fleet of two, refusing two hubs and a name the fleet has, so every link is made inside one fleet whose members go by pinned names
  • 98d5c06 feat(fleet): the hub is member.toml's hub, named in every link's hello and followed at runtime, so membership has one home the join rule can write and two fleets never share a link
  • 3e5bb50 docs(site): rename host-and-helper to host and containers and catch its diagram up with the helper as built: the bridge carries the host's RPC calls (sessions, tracked runs), tty execs run in helper sessions, agents relayed by other machines come before the daemon's own; fleet is pointed to, not drawn
  • a1bb25d docs(fleet): break step 9 into 9a-9f and record decisions 31-35 (hub-decided placement, hub-only leave/forget, view-only indirect members, the hub named in the hello, member names as registry names), plus key-pair identity as an open question, so each piece of membership lands on a settled design
  • 3fa327c docs(fleet): finish the one-socket-per-link wording, hub rows persist
  • fda8634 refactor(fleet): one link socket per machine, channel named by first byte
  • 95a0839 docs(site): an interactive machines-to-fleet page from identity landing to step 8, so readers see why machines became one fleet before drilling into how
  • 941b105 fix(tui): re-read a followed build log 100 ms after each answer and wake the event loop every 30 ms meanwhile, so the 250 ms idle wake no longer stretches each refresh past half a second
  • 9ddf242 fix(tui): re-read an in-flight build log every 500 ms instead of only on snapshots, so the modal follows a build as it writes
  • 2d20b5a fix(tui): p's port prefills write a local instance or service a machine also has as @/, so the forward submits instead of failing as ambiguous
  • e97ec11 fix(tui): r's prefill and tab completion write a local name a machine also has as @/, so the line submits instead of failing as ambiguous
  • 08e8279 docs(fleet): mark step 8 shipped with one kind of machine on one link per pair, so step 9 starts from what's true
  • b9cab24 feat(fleet): drop lending, offered machines and drain, and count each dialed link as a holder, so a laptop joins with machine add and stays up as one kind of machine
  • dd4d2ed feat(machine): a dialed host holds a link to each inbound neighbor and a hub places on every connected machine, so a laptop that runs machine add is a machine there like any other
  • a83207c refactor(machine): delete the per-use ssh argvs, the agent relay, devsandbox tunnel's ssh half and the relay's session env, and drop the sentinel inside link streams, so the only ssh to a machine is its link and machine add's probe
  • bfc7846 feat(machine): dashboard terminals, forwards and port reach every machine over its link's PTY and TUNNEL channels, so nothing per-use dials an ssh machine around its trust
  • 90c7ee3 feat(machine): CLI re-runs on every machine are API calls and PTY dials over its link, so an ssh machine's commands go through its trust like an offered worker's
  • 2e1bd6d docs(fleet): break step 8 into 8a-8f and record decisions 27-30 (no sentinel in link streams, inbound neighbors as machines, the row kind, the agent's direction), so each removal lands after its replacement
  • 23ecf62 docs(fleet): mark step 7 shipped with ssh machines on one peer link per pair, so step 8 starts from what's true
  • e5b8f78 feat(machine): every ssh machine is held as a fleet-link --peer link whose sockets every client dials, its agent over AGENT and a hub's version followed, so an ssh machine reaches and is reached under trust over one link per pair
  • 6af5483 feat(fleet): fleet-link --peer binds the dialer's sockets, hands its streams to the daemon with link.attach and announces it as an inbound neighbor, following a hub dialer's build, so a dialed machine serves its link under its own trust
  • 4286ca8 feat(fleet): link.attach takes a channel and hands the connection to that channel's server under the peer's trust with its own fleet root, so a link's far end can pass every stream to its daemon over the socket
  • b1cd7d3 refactor(fleet): links dial through one transport seam and both link roles share one body that can bind sockets and answer opens, so ssh is swapped in one module and either end of a link can serve local clients
  • 8660be9 docs(fleet): split one link per machine pair from one kind of machine and renumber the rest, recording decisions 23-26 (both ends bind and answer, per-peer fleet root, versions on the hub flag, lend.toml with lending), so step 7 ships in small commits without regressions
  • 3ce588f docs(fleet): mark step 6 shipped with member.toml and the trust table on both kinds' connections, so step 7 starts from what's true
  • 1d956a0 feat(machine): gc on an offered worker is a daemon verb its member's full trust admits and worker trust refuses, so host maintenance over the link follows the member's setting
  • aa25738 feat(machine): an ssh machine's api relay attaches its connection as the linking host's with link.attach, so the machine's trust table applies to it as to a lending link
  • 2281189 feat(machine): machine add records the picked roots on the machine with machine roots add there, so its worker trust keeps admitting them once no instance holds them
  • 952c42e feat(fleet): a lending link's table admits the member's own roots beside its fleet root under worker trust and the whole API but member.* under full, so trust, not lending, decides what a remote caller reaches
  • 9f29d4d feat(fleet): member.toml holds a member's name, trust, roots, allowances, caps and dev-builds behind member.get/set and machine trust, so trust has a home before the trust table reads it
  • b28e1d8 docs(fleet): mark step 5 shipped on offered workers' links, so step 6 starts from what's true
  • 8b3e040 feat(exec): service terminals and terminals into helper-less or non-root-helper instances on an offered worker run as a runtime exec under a host pty there, and exec --service opens a service's shell, so no terminal is refused over the fleet link
  • 9abbf50 feat(exec): a non-tty exec on an offered worker runs as a piped PTY stream into a runtime exec there, so scripts and pipes work without ssh to the worker
  • f0308d9 feat(machine): service ls and a followed build log on an offered worker go over the API, and its snapshots no longer show other roots' isolated service containers, so the hub sees only what's lent
  • 8e5707c feat(machine): ps and stats on an offered worker are quick calls cut to what it lends, so they work without re-running devsandbox there
  • 709466f docs(fleet): split one kind of machine into steps 5-9 behind a transport seam and renumber the rest, recording the answered open questions as decisions 17-22, so each step is one reviewable change
  • ed7a621 docs(fleet): mark step 4 shipped on offered workers' links and settle the daemon-side attach question, so step 4b starts from what's true
  • 67a9dd5 feat(machine): logs, inspect, done, rename, ls and status on an offered worker run as API calls within its trust, and the rest say why they're refused, so the CLI never re-runs devsandbox on a worker
  • c39a57c test(fleet): the agent gate test tolerates a refusal closing before its write, so it stops failing under load
  • f0320ad feat(fleet): the hub's ssh agent reaches an offered worker's instances over the fleet link's AGENT channel while its entry has agent on, so agent forwarding needs no ssh relay to the worker
  • 1a2aaf4 feat(fleet): port forwards to an offered worker ride the fleet link's TUNNEL channel into a bridge there, so forwards need no ssh to the worker
  • 5435dca feat(fleet): exec and dashboard terminals on an offered worker attach over the fleet link's PTY channel, reconnecting as over ssh, so workers need no inbound ssh for terminals
  • de317bc feat(fleet): a worker serves PTY streams as helper session attaches and lists its instances' sessions, so the hub can open terminals without ssh to the worker
  • f87d0f2 refactor(fleet): a link serves a table of channels and either end opens any the peer serves, so PTY, TUNNEL and AGENT can ride the fleet link
  • b20420f chore(skills): orchestrator breaks down an existing plan's rollout step instead of writing a new plan, so design plans can be executed step by step
  • 5d9cecb docs(fleet): links are the ssh pairs machine add makes, routed over a graph, with trust applying to every caller, so the hub is only a role
  • fb0178d docs(exec): mark resumable exec step 4a-4d shipped, leaving only the items after fleet step 1
  • 8f0ee37 docs(fleet): one kind of machine, every machine a fleet member with its own trust setting, so configs live anywhere and machines are added one way
  • 4b7c4ae chore(toolchain): list the helper's musl targets in rust-toolchain.toml, so a fresh checkout or rebuilt sandbox can build devsbd without a manual rustup step
  • 760a41b fix(identity): plan a root host user on a rootful runtime like rootless docker, so running devsandbox as root stops failing on a remap to uid 0
  • 72b96cb fix(images): tag features images devsandbox-feat-…, so a sandbox named foo-feat can't overwrite sandbox foo's features image
  • e0dc02d fix(config): ${localEnv:NAME:default} and ${containerEnv:NAME:default} use their default, as devcontainers do, instead of looking up a variable named NAME:default
  • 5a03e86 feat(devsbd): session attach, ls and rm over RPC, so the daemon can attach to a session without an exec, as fleet's PTY channel will
  • 230d22a feat(fleet): run places a sandbox on the roomiest lending worker, moving its code first, so a hub spreads work without anyone picking machines
  • 3c8b19e feat(fleet): move a sandbox's config root as a tar and its repos as hub-cloned bundles onto a worker, so a worker can run hub configs without credentials
  • 8d54318 feat(fleet): a pure place over soft caps, locality and reachability, so the placed run has one tested rule for where work goes
  • 2c10a2d fix(images): key image tags and feature build dirs by config root, so two roots with a same-named sandbox stop overwriting each other's images
  • b214318 feat(fleet): a hub on a dev build pushes its own binary to workers that accept dev builds on its platform, so a dev fleet stays on one build
  • 2b2bb3c feat(fleet): a worker follows its hub's exact published build, downgrades included, so a fleet never runs mixed protocols
  • b7fd80b feat(fleet): a TRANSFER channel on the fleet link, size- and hash-checked, so binaries, config roots and bundles can move between hub and worker
  • f59a05d feat(fleet): each daemon reports capacity and a worker its fleet root, so the hub sees placed instances and where there's room
  • c5189f1 feat(fleet): hub mode keeps the daemon and every worker link up and saves remote rows, so a restarted hub shows its fleet before workers reconnect
  • 3a65d5b feat(fleet): check every container a fleet-root config creates against the worker's lending policy, so a hub can't reach the laptop's host through a config
  • e19a8f5 feat(lend): lend and fleet join|leave set lending through the daemon, applied live, so joining a hub needs no hand-edited file or restart
  • 782b07d feat(fleet): a lending worker dials its hub and serves it a confined Worker table, so the hub reaches only what the laptop lends
  • ca191f5 feat(fleet): a hub accepts worker offers as offered machines reached over the worker's own link, so a laptop can lend without the hub ever ssh-ing in
  • e8f1123 feat(fleet): one link primitive for host-to-host muxes, shared with the agent relay, so a worker can carry the API to its hub
  • a96b371 test(devsbd): send only the hello in the wire-mismatch check, so the supervisor's close can't reset the test's read
  • fabb742 feat(dispatch): run ops call the child's helper over RPC when it offers them, so wait and follow are one held stream instead of an exec per poll
  • bed361d feat(serve): a HelperClient over each bridge's RPC channel, so host code can call the in-container daemon with a queue, a log and cancel
  • 65f14ff feat(devsbd): an RPC channel the host opens on the bridge, flow-controlled like Connect, so host requests stop needing a fresh runtime exec
  • a409203 feat(tui): count an instance's exec sessions in instances.procs, so a detached session left behind is visible without --sessions
  • 5c03315 feat(devsbd): version the session wire and check it before any takeover, so a client never displaces or garbles a session of another helper build
  • 31f95b6 fix(devsbd): keep reading a session socket while the terminal stalls, so a displaced client still gets detached and exits
  • a446f52 feat(devsbd): prune settled session dirs on session new and add session prune, so ended sessions stop hiding live ones from ls
  • 30c14bb docs(plans): step-level landmarks and the user's fleet decisions, so implementers don't re-derive them from the code
  • b2547f1 docs(plans): order resumable-exec, helper-rpc and fleet so fleet's PTY rides a daemon-side session attach instead of ssh exit codes
  • 7716cb8 docs(test): say gated tests follow DEVSANDBOX_RUNTIME and rootless podman is now exercised on CI
  • b939766 ci(podman): opt into the service-manager e2e, which fails rather than skips on CI
  • 8869ad2 ci(podman): give the podman job a user session and isolated children its bus, so rootless builds get systemd cgroups like on a desktop
  • f8e852c test: share rootless podman's store with isolated children and drop the last docker-only assumptions, so the podman job tests the code, not the harness
  • 43041f1 ci: run the gated tests under rootless podman, the identity mode nothing exercised
  • f971a2c test: drive gated tests through the selected runtime, scoping the seccomp ones to docker, so podman runs the same suite
  • d1fe235 test(support): gate runtime tests on the selected runtime, with a docker_only scope, so the same tests can run under podman
  • 6d6aaec docs(site): cover host identity, the /root prompt, browsers and resumable exec, so the site matches what ships next
  • d0aed1d docs(changelog): notes for host identity, the browser sandbox, the /root migration and resumable exec
  • b2c4d7c docs(identity): close the identity plan, with ADRs for the user model, the browser sandbox and the /root migration, and the living docs checked against the code
  • d37a8f3 feat(tui): offer the /root migration when the dashboard opens and before run, start and rebuild, so dashboard users get the same choice as the cli
  • 6ce79cc feat(run): ask before run, start and rebuild whether to update a config that mounts into /root, so the switch to host identity doesn't break sandboxes silently
  • 7d6cee8 feat(tui): flag sandboxes that use /root in the header and Detail, so a config the identity change broke is visible before anything fails
  • f6749d4 feat(serve): serve /root findings, their migration and acks over the API, so the CLI, the dashboard and machines check and fix a config the same way
  • 384d751 feat(config): rewrite /root findings in place with toml_edit, keeping comments and layout, guarded by a file hash and a transient backup
  • cca9216 feat(config): find the config entries that point into /root, each tied to the table that defines it, so a migration can rewrite them at their origin
  • 0374df0 feat(config): resolve ${containerEnv:NAME} from the image at create, so configs can name the adopted home instead of /root
  • f971a8c feat(devsbd): start browsers through a wrapper at a non-root uid on root plans, so Chromium keeps its sandbox where execs run as root
  • 4f84442 feat(run): check the browser sandbox in each new container and give execs the env that matches, so tools turn their sandbox off only where it can't work
  • 5b8cd40 feat(devsbd): add userns check so the host can tell from inside a container whether a browser sandbox can start, and which step blocks it
  • 34f6c51 feat(run): create docker sandboxes with a seccomp profile that allows user namespaces, so a browser's own sandbox can start
  • 300a457 docs(identity): split the tool environment and /root migration into steps 7-17 with landmarks, so implementers can run them
  • 4317d51 docs(status): mark fleet as active
  • 283dc54 docs(identity): mark the identity core shipped, leaving the tool environment and /root migration planned with known limitations listed
  • d4442a2 feat(run): create and exec sandboxes by the identity plan so workspace files come out host-owned on every runtime mode
  • 50c237c feat(runtime): probe each runtime context's user-namespace mode, cached per context, so the identity plan matches the host it runs on
  • 31f22f7 feat(devsbd): add identity apply so the helper can move the adopted account to the host ids without usermod in the image
  • d99932b docs(machines): plan a fleet of workers lending capacity to an always-on hub without exposing ssh
  • 3ff5371 feat(config): add the identity field and read updateRemoteUserUID as its hint so a sandbox can opt out of host identity
  • 0d33dde feat(runtime): add the identity classifier and strategy table so each runtime mode gets one tested user plan
  • 80fb208 docs(identity): split the core into commit-sized steps with landmarks so implementers can run it, decisions recorded
  • 0066a12 docs(identity): plan migrating /root configs so existing sandboxes survive the switch to host identity
  • f5857af docs(identity): plan one user model across runtimes so devcontainer configs stop breaking between rootful, rootless docker and podman
  • d03e16d fix(run): create missing feature bind sources under shared volumes
  • 9e9b4fd fix(config): mount caches outside /root so a non-root remoteUser can reach them
  • 1e52c67 docs(exec): mark resumable exec steps 1-3 shipped, leaving session cleanup planned
  • b219a6a feat(machines): reattach a machine exec's session after ssh drops, so a network blip doesn't end the program's terminal
  • f8bb5ef feat(exec): run tty execs in helper sessions with --attach/--sessions, so a dropped client can get its process back
  • e94c930 feat(devsbd): add pty sessions a client can reattach to, so an interactive exec can outlive its connection
  • 2818015 docs(exec): plan resumable interactive sessions so a dropped connection no longer leaks the process