Repository navigation
v0.10.0
A config can now belong to the whole fleet and keep running on an always-on server while the host it was written on is off. Links a sandbox opens land in your desktop browser, picked per profile. Sandboxes and services get NVIDIA GPUs from hostRequirements.gpu, and placement sends them to a machine that lends one. Members run the build the fleet's authority pins.
Added
-
A config every machine runs. On the fleet's authority (the host of its first
machine add), arun,rebuildorstartsigns the config's next version when it changed and sends it to every machine, which installs its own copy. Machines keep the latest signed version while the authority is offline and build only from an exact copy of it, so a copy edited in place is refused and restored. The verb's output names any machine that didn't get it, and running the verb again retries those. Arun box/<sandbox>from the authority also brings the sandbox's repos tobox, uncommitted work included.devsandbox machine add box --control-plane # on the authority, signs its configs for box devsandbox run web # on the authority, signs a changed config and sends it devsandbox run box/web # from the laptop, even with the authority off
-
A laptop can drive a server. A laptop joining with
devsandbox machine add boxgets its join proposed to the authority, which approves it withdevsandbox machine approve <id>. A host with no container runtime is a clean driver. The dashboard saysno runtime, nothing is placed on it, and a barerun <sandbox>goes to the machine that runs it. -
Links opened in a sandbox open on your desktop.
xdg-open,$BROWSER,webbrowser, Node'sopenand CLI logins openhttp(s)URLs in the host's browser. AlocalhostURL or OAuth callback gets a port forward first (marked(open)in the Ports tab, stopped after 10 minutes idle), so dev servers andgh auth loginwork. A link opens on the host that last attached to the instance with a terminal, so a server sandbox youexecinto from your laptop opens on the laptop. The dashboard's status line says what happened to each link, anddevsbd open <url>does the same from scripts. -
Profiles pick that browser. Declare them in the config, list the ones a sandbox allows, choose one at
runand switch it any time without a restart. Each host maps profiles to browsers in its ownprofiles.tomlnext tostate.toml.ps,inspectand the dashboard show an instance's profile and flag one its sandbox no longer allows.[profiles.work] [profiles.personal] [sandbox.web] folder = "../web" image = "node:22" profiles = ["work", "personal"]
# ~/.local/share/devsandbox/profiles.toml [work] open = ["google-chrome", "--profile-directory=Profile 2"]
devsandbox run web --profile personal devsandbox profile web work # or P / :profile in the dashboard -
GPUs.
hostRequirements.gpu = trueon a sandbox or a service gives its container every NVIDIA GPU (docker's--gpus allwith thenvidiaruntime, else the CDI spec on docker or podman). When none is usable,runstops before building, and"optional"warns and runs without.run --placeputs a sandbox that requires a GPU only on a machine that lends one, and prefers one for an optional GPU.[sandbox.ml] folder = "../ml" image = "pytorch/pytorch" hostRequirements.gpu = true
-
devsandbox machine allowsets what work placed on this host may use, instead of editing[allow]inmember.toml. Only the host itself can.machine addasks the machine what to lend over your ssh session, or takes--allow,--allow-bindand--allow-local-env.devsandbox machine allow --gpus on --bind-add ~/datasets devsandbox machine add box --allow gpus --allow-bind /srv/data -
Members run the build the authority pins. The authority signs its build into the membership log, and members download that release and check its sha256 before running it (a source build only with
dev-builds = trueinmember.tomlorfulltrust), so a compromised control plane can't push code.machine lsshows a machine behind the pin and why.devsandbox machine upgrade <m>copies this build over a machine's over ssh, for the control plane the authority no longer follows. -
Sessions in the dashboard. An instance's helper sessions show as rows under it.
aorenterattaches,Kends one, andaon the instance picks a detached one.devsandbox exec web --end <id>ends a session from the CLI. A terminal over a fleet link to an instance with a non-root user is now a session too, so a dropped link no longer ends it. -
A warning when a nested docker can't work from a shell. On rootless docker with runc before 1.4.1,
exec'd processes land outside the container's cgroup, so a docker-in-dockerdockerdstarted from a shell fails.run,startandinspectnow say so. Upgrade the host's runc.
Changed
- The fleet's hub is now its control plane, the Kubernetes name for the role. It is
control_plane = "self" | "<name>"inmember.toml,devsandbox machine control-plane <m>moves it,machine add --control-planepicks it for a new fleet, and the API andindex.d.tscall itcontrol_plane. machine addpicks no config roots (--configis gone). A machine's roots are the ones its daemon lists, kept live as it installs signed copies. A command on a machine with no root given uses its signed copy, else its~/.devsandboxes.- The docs site is much shorter. Machines moved to
/docs/machines, the basics are on the quick start, the two services examples are one/examples/servicespage, and the Features and VS Code examples are gone (their content lives in the quick start, the devcontainer port guide and the dashboard tour).
Fixed
- Ctrl-D in the dashboard no longer removes an instance. One-key actions ignored modifiers, so Ctrl-D (a shell habit, or the EOF a closing terminal sends) counted as
d, and Alt-Y answered a confirm. Letters and symbols now fire bare or with Shift only. Ctrl-C and Ctrl-] keep working, and a focused terminal still gets every Ctrl key. - A pipeline whose command starts the daemon no longer hangs. The daemon kept any fd the CLI had inherited, so
devsandbox … | catcould wait forever on a pipe the daemon held. It now starts with only its own stdio. devsandbox exec web zidanefrom a terminal gets a terminal. A command given toexecran without-i -tunless asked, so a TUI drew at 80x24, saw no input and left its terminal replies on screen. From a terminal it now gets-i -tand a resumable session, and piped stdio stays plain.- The dashboard shows a fleet config's sandboxes once, with every host's instances under one group, instead of again per machine. The instances detail panel grows to fit, so the drift line no longer falls off.
- Service networks no longer break DNS on rootless docker. A new service network covering a host route, gateway or nameserver is recreated on a free
/24of10.200.0.0/16, with a warning.devsandbox gcnow removes unused service networks on docker too. - Caches, shell history,
${sharedVolumes}mounts andworktree-linkno longer keep a sandbox home underrun --place. A placed instance starts them empty on the worker, and a "not placed" note lists each tie once. - Upgrading the authority first no longer locks it out of an older control plane or silently downgrades it.
- Attaching without an id takes an attached session too, and a session's creator sees the program's first output.
- A machine's root removed there leaves the dashboard without a daemon restart, and a root that errors no longer sticks as a permanent error.
Commits
- ec10147 docs(site): cover sessions, the driver laptop, ctrl chords and gpus, merge the services examples, drop the features and vscode ones and cut the docs by 40%
- 1d17cda docs(agents): list the profile, rename, vscode, status and fleet-link command files
- b3929a2 chore(comments): drop machine add's roots claim and history wording from machine.rs
- 2fc8199 docs(plans): move parked and proposed plans to explore and mark fleet planned, so active holds only agreed work
- 4026122 docs(cli): list profile, machine allow/control-plane/approve, exec sessions and controlPlane where the reference and cli skill still lacked them
- ac68b55 fix(serve): start the lazy daemon with every fd above stdio close-on-exec, so a pipeline whose command starts it no longer hangs on a pipe the daemon inherited
- 2ad5bcc fix(tui): fire one-key actions only bare or with shift, so ctrl-d out of shell habit or a closing pty's eof no longer removes the instance under the cursor
- 83a6ee8 docs(status): park terminal replies echoed after exec returns, since nothing flushes pending tty input
- cf69da4 docs(site): cover profiles, links, gpus, lending, control plane and pinned builds, move machines to /docs/machines, and trim docs, examples and architecture to what a reader skims
- 5f9ad03 docs(machines): a machine verb runs over an api stream on the link, not an ssh of its own
- 8a44299 docs(cli): exec's help says a command from a terminal gets -i -t, machine roots' help drops add picking roots, and the control-plane plan marks the rename shipped
- b717513 fix(fleet): list a sandbox's tie once even when repeated apart, and show ${instance} paths as , so not-placed notes don't repeat or name a literal instance dir
- aba5e49 docs(status): record the hand-run gpu check on docker cdi and what is still unverified
- 9ce5bcd docs(gpus): close the gpu plan: adrs for spec-compatible gpus and lent-gpu placement, follow-ups parked
- c308945 feat(machine): ask at machine add what the target lends, applied over its own ssh session
- 855d759 feat(machine): set worker allowances with machine allow so a gui can lend gpus without hand-editing member.toml
- 2c25b8b feat(fleet): let required-gpu sandboxes be placed now that placement filters for a lent gpu
- 58f8e67 feat(fleet): place gpu sandboxes only where a gpu is lent, preferring them for optional gpus
- 7663a16 feat(capacity): report a host's usable gpu and whether it lends it, for gpu-aware placement
- 91aebf5 feat(services): give services gpus from hostRequirements.gpu so a gpu-backed service (ollama) needs no runArgs
- 7002091 docs(site): list hostRequirements.gpu as implemented in the devcontainer port guide
- 6951613 feat(run): give sandboxes gpus from hostRequirements.gpu, refusing a required one that can't be had
- 06bf906 feat(runtime): detect nvidia gpu support per runtime so run can pick --gpus or cdi flags
- 92354f0 docs(agents): add a simplify-comments skill so future changes keep comments to why and contracts
- c121bc0 feat(config): type hostRequirements so gpu requests can be acted on per the devcontainer spec
- 67aa955 chore(comments): drop stylesheet title comments the header block repeats, restore the Drill open prop doc
- 8335517 chore(comments): drop the site stylesheets' section banners and the last as-ever phrases
- 815e9f4 docs(gpus): agree the gpu plan: spec-compatible hostRequirements.gpu, refusal when required, placement onto lending workers
- 8f42200 chore(comments): cut the last as-before history phrases
- b2eabfa chore(comments): cut stale parser history and doc restatements from long doc blocks
- 1e81723 chore(comments): restore fixture and field contracts round five flagged
- b8fc877 chore(comments): drop the last narration and history captions round four found
- 54e6bc5 chore(comments): restore fixture and contract comments and cut change-history wording
- 3dc93e7 chore(comments): restore the contracts round two flagged and drop the last restatements
- e2a0740 chore(comments): bring back the why and contract comments the first pass dropped, and drop the restatements it missed
- addf8c4 chore(comments): drop comments that restate the code, since they rot and bury the ones that explain why
- 457292d chore(toolchain): install clippy so agents can run it as a check
- e4d5939 docs(plans): close resumable-exec
- 9200a98 fix(exec): attach without an id takes an attached session too
- 8233ee1 fix(devsbd): a session's creator sees the program's first output
- 1b8efda feat(fleet): resumable link terminals for a non-root helper
- b7dcb02 feat(exec): end a session with --end
- 2daf452 feat(tui): show helper sessions as rows under an instance
- 781f895 docs(plans): break resumable-exec's remaining work into steps
- 1fe5add feat(tui): attach to a detached session with a
- b70711f docs(fleet): record the authority pinning the fleet's build as ADR 0053 and archive its plan, now that every step has landed
- 62dbd40 feat(machine): show a link behind the pinned build on both ends and why the authority skipped a pin, so a host that can't follow is visible instead of silently diverging
- c2bbb2a feat(fleet): members follow the authority's pinned build hop by hop and check its sha256 before running it, so a compromised control plane can no longer push arbitrary code and a host that can't follow stays linked
- da38bf6 feat(fleet): the authority pins its build in the membership log, so members get a signed, persisted reference to follow instead of trusting the control plane's hello
- 770e9be feat(machine): add machine upgrade, so the authority's new build can reach the control plane without a manual copy now that the authority no longer follows it
- 1f19141 fix(fleet): the authority follows no one, so upgrading it first no longer locks it out of an older control plane or silently downgrades it
- 53ba916 chore(ci): run the zidane extensions' bun tests, typechecking alone missed the cargo-timeouts redirection bug
- c886a06 fix(zidane): keep 2>&1-style redirections whole so the cargo-timeouts block suggests a runnable command
- 4599dfb chore(zidane): track the agent extensions and typecheck them in ci so they stop drifting from the zidane api
- 620b405 docs(fleet): agree the authority pins the fleet's build as a log entry by sha256, after review showed a standalone statement could be replayed and a published control plane silently downgrades the authority
- 9548e21 docs(tui): record grouping by signed config root as a decision and archive its plan, now that both steps landed
- 92a9895 fix(tui): group the instances tree by config root instead of machine, so a signed config shared by the fleet shows each sandbox once
- afabdb7 feat(snapshot): tag rows with the signed config root they come from, so hosts running one mesh config can tell its rows apart from a same-named local root
- 06512bb docs(fleet): explore letting the authority sign the fleet's build, so a newer authority isn't locked out by an older control plane
- fe9eb5a fix(exec): give a command run from a terminal -i -t (and so a session) when neither flag is given, so a tui like zidane gets its size, input and mouse instead of a pipe
- 33970ea docs(plans): explore splitting the devsandbox crate, since one crate's single-threaded front-end and codegen dominate build time
- 692291f fix(tui): grow the instances detail panel to fit its lines, so the drift line no longer falls off below the sessions and profile lines
- fa5f00d refactor(fleet): hub → control plane; kubernetes map and plans
- d86eba0 fix(machines): relist a machine's roots when its daemon says they moved, so a root whose last instance was removed there leaves the dashboard without a daemon restart
- 0688412 docs(machines): close the machine-roots plan, noting that a machine with several roots and no default can't be given one
- 5a90d15 feat(machines): pick a machine's signed copy, else its ~/.devsandboxes, as the root a command uses when none is given, now listed roots come in sorted order (plan machine-roots step 3)
- 24dc7f4 refactor(machines): take a machine's roots only from its listing, with its member.toml roots and saved across a hub restart, now nothing records them at add (plan machine-roots step 2)
- aa15d15 fix(fleet): re-send an unchanged config only to the machines its last push missed, and say a machine wasn't reached apart from one whose install failed, so the authority's everyday verbs no longer wait on every link or misreport down ones
- 6530ca3 fix(fleet): refuse a peer's build from a root that carries a signed config's name but isn't its copy, and say when a sandbox is in several roots of one machine, so a laptop can't build a stale local config on a member by picking the wrong root
- e721513 refactor(machines): stop picking and recording roots at machine add, a pre-fleet model: a machine's roots are what its daemon lists (plan machine-roots step 1)
- 46f46c5 fix(fleet): repair a signed config's copy from its stored bundle when it fails verification and clear what an install's bundled dirs don't list, so one edit or stray file from a sandbox can't block a config until the authority is back
- bb9d8f7 docs(fleet): close the fleet-driver plan now a laptop can join and drive a server end to end
- 4d91da7 feat(fleet): treat a host with no container runtime as a driver, so a laptop without docker shows no runtime errors, isn't placed on and doesn't offer copies it can't run (plan fleet-driver step 4)
- 937ab3f feat(fleet): bring a signed copy's folders from the authority's checkouts on its run, so a sandbox runs on a member without cloning its repos there by hand (plan fleet-driver step 3)
- e954f59 feat(fleet): let a member take a signed copy's folders from the authority only, and say what's missing when a copy's folder isn't there (plan fleet-driver step 3, member side)
- 8041e16 feat(machines): sign the authority's configs at machine add, so a new member has them from its first link-up without a verb on the authority first (plan fleet-driver step 2)
- 1b09465 fix(machines): have the signer propose a joining host's introduction, so a laptop joining the hub reaches the authority for approval instead of staying capped (plan fleet-driver step 1)
- f2b31f0 docs(changelog): notes for the next release
- 6c94e8a docs(site): finish the signed-config setup steps with a matching release everywhere, box as hub, serve install, files only commands reach, empty shared volumes and how to retry a machine that missed the config
- c135e02 fix(machines): skip a machine's listed roots that answer an error and write live roots into the snapshot store under the links lock, so a dead root no longer leaves a permanent error and a new copy's snapshots aren't dropped by a racing reload
- ecd268c fix(fleet): refuse building from the signed-config store outside a copy and migrating a copy in place, and say the entry check doesn't stop a writer racing the build, so admission claims only what it enforces
- e321422 fix(fleet): don't say configs aren't signed on a member driving a config the authority already signs, since that note is for a wrong setup order and read as a failure on the main flow
- 9f1236e fix(fleet): count a machine whose config install failed as missed, retry a due install on any sync, and re-send an unchanged config on the authority's verbs, so a clean signing note means the machine has it and re-running the verb is the retry
- 20a6449 docs(fleet): close the mesh config plan, recording in ADR 0049 that the authority's signature is a signed root's config authority, and parking the open calls so the rules live in the fleet docs and status instead of a finished plan
- 3a76583 feat(machines): keep each machine's roots live from its roots.list at link-up and after every sync with it, so a signed config a machine installs after it was added is listed, watched and runnable without adding it again
- acb000d fix(fleet): write stored config bundles atomically under unique names, replace a damaged one, and drop one that won't install to pull it again, so a bad bundle on disk can no longer block a config for good
- 3ef7fb9 fix(fleet): refuse a signed config's copy with a file or .git added inside a bundled build context or local feature, since a build would copy it in though nothing signed it
- b891969 fix(fleet): check a signed config's copy at the entry of every command that builds from it, so dispatcher children, autostart and the in-process fallback can't build a copy a container edited
- dd42577 feat(fleet): say in a verb's output what signing its config did, which machines the push missed, and when this host isn't the fleet's authority, so a wrong setup order or a machine left without the config shows up before the authority goes offline
- c0054f7 fix(fleet): install a pushed config before answering the sync and before sending the log on, so a push that reached a machine left the config there and a verb aimed at it right after signing isn't refused as not here yet
- a7897a6 docs(plans): park GPU, isolation-level and sandbawks ideas, so the overlap with sandbawks is on record before fleet steps 13-14 build placement and checkpoints
- 34e60f7 feat(fleet): run laptop-driven verbs on a member's signed config copy and refuse them while the copy isn't the log's head, so a request can only ever build what the authority signed, even after a container edited the copy
- a0aff4a feat(fleet): pull and install each newly signed config from the peer that brought the log, on sync and at every link-up, so a member keeps the latest signed config even when the authority went offline right after signing
- e5aa4e1 feat(fleet): install a signed config's bundle only when it hashes to the log's head, updating one copy per root in place, and serve stored bundles to peers, so any member can hand on the version it holds while the authority is offline
- 8d00d1b feat(fleet): sign the bound local config root when the authority aims a verb at another machine, since driving the box is the main way a config reaches the mesh
- 29c854a feat(fleet): bind a signed config name to the first root it came from, so two roots sharing a directory name can't take turns bumping each other's version
- 0aef234 feat(fleet): sign a config's structure and the files it references, and keep that bundle, so notes and logs in the root no longer bump versions or ship, a broken config is never signed, and the signed version can be served after the root changes
- a7545c1 refactor(fleet): log config signing instead of notifying the verb's client, since the note only announced a side effect and every client had to render it
- 5a100c9 docs(plans): plan mesh config, so a signed config runs on every member while its authority is offline
- 2e55b03 fix(fleet): accept shared-volumes binds and worktree-link on workers, guard host-side writes
- da7fb77 docs(agents): commit finished changes unasked, subagents only when briefed
- 6fe9c56 feat(fleet): sign a config root's version from the authority's verbs
- e8a8d28 fix(fleet): accept persist-shell-history on workers so it no longer ties a sandbox home
- 49a94a7 fix(fleet): accept caches on workers so they no longer tie a sandbox home
- fe06f7c docs(plans): archive open routing now that all six steps shipped, moving its open questions to parked and its limits (container-chosen host ports, unrecognized loopback spellings, in-memory attach records, remote open forwards outliving their instance) to status
- ea9c625 fix(open): never open a url whose own localhost port didn't forward, parse hosts as browsers do, refuse control characters, keep open forwards off configured forwards' ports, stop routing to a member whose attach expired, and record attaches for terminals only on connections that don't hold the daemon, so a sandbox's url can't reach the host's own services or leak a token and scripts don't take the user's opens
- 498e7f3 feat(open): push opens.done for every open, opened, refused or failed, and show it on the dashboard's status line, so a url that didn't open (or opened without its callback forward) says why where the user looks instead of only in serve.log
- 168e581 feat(forwards): make open forwards into another machine's instance for a delivered url, owned by the opening host and stopped when idle or when the machine goes, so a localhost link or oauth callback from a server sandbox works on the laptop that opens it
- 6b3aded feat(open): send a container's url to the member that last attached to its instance with open.deliver, which opens it only for an instance it attached to itself in the last 10 min and maps the profile name with its own profiles.toml, so a server sandbox attached from the laptop opens on the laptop and no member can drive another's desktop
- 8c9a47c feat(serve): record each instance's latest attach (local exec, vscode, a fleet pty stream's proven origin) and this host's own attaches to other machines' instances, so an open can go to the member whose user is at the instance and that member can check it asked for it
- 1c06061 test(machines): retry the repeated hub proposal in the_hub_role_moves_and_back like the first, since the link redialed after the role move may still cycle once and fail it under a loaded suite
- b70d004 feat(open): forward a url's localhost port and its oauth callback port before opening it, rewriting the url when the port moved, so a dev server link or a gh auth login style callback from a sandbox reaches the container instead of the host's own localhost
- d8dc58c feat(forwards): add open forwards, made for a url's loopback port, reusing any forward of that instance port, never saved and stopped after 10 min idle or when the instance stops, so the opener can make a container's localhost url and its oauth callback reach the container
- fcbf230 feat(devsbd): check whether exec'd processes land in the container's cgroup and warn on run, start and inspect when they don't, so a docker-in-docker dockerd that rootless runc before 1.4.1 left outside it fails with a reason instead of a bare cgroup.procs error
- 60cb250 fix(services): recreate a new service network whose subnet covers a host route, gateway or nameserver, and let gc remove unused networks on docker, so rootless docker can no longer hand out the lan's range and cut every container off from the host's dns
- fe83df6 feat(tui): switch an instance's profile from the dashboard with P or :profile, carrying each sandbox's allowed profiles on its row so the picker and the drift flag read one resolve
- b66d3e7 feat(profile): switch a running instance's profile with devsandbox profile or instances.setProfile, checked against its sandbox's allowed set, so moving an instance between work and personal needs no rebuild and stays the user's call
- 58ed3ac feat(open): open a url with the browser this host's profiles.toml maps the instance's profile to, so work sandboxes can open in a work browser and personal ones elsewhere; commands only ever come from the opening host's own file
- 33efedc feat(profiles): show an instance's profile in ps, inspect, the snapshots and the dashboard, and flag one its sandbox no longer allows, so a config change that drops a profile is visible instead of silently moving the instance
- 7896c4a feat(run): put every new instance in one of its sandbox's profiles (--profile, else the last one chosen, else the first), and dispatcher children in their parent's or nowhere, so the profile is always the user's choice and never the container's
- 819915f feat(config): declare profiles and which ones a sandbox's instances may be in, so instances can later be placed in one (work, personal) that picks their browser and, later, their credentials; membership is host routing, so it stays out of the config hash
- a89ba7b feat(devsbd): answer as xdg-open and the debian browser alternatives and point BROWSER at it, so programs in a sandbox that open a url hand it to the host instead of failing for want of a desktop; an image's own /usr/local/bin/xdg-open is left alone
- 3db5833 feat(open): take a container's open record in the bridge's sink and open http(s) urls with the host's opener, so a url a sandbox asks for can land on the desktop instead of the inbox; ttl, scheme and rate limit guard it, and the display comes from the user manager since a serve install'd unit starts before the session imports it
- 0a36137 docs(plans): freeze the inbox and order open routing, then an orchestrator interface, helper-rpc runs and the inbox's removal before fleet step 13, since step 13 as written would federate the inbox an external orchestrator replaces; split open routing step 1 into 1a-1c
- fb6e3fe test(devsbd): widen the stalled-stream keepalive test's timeout to 1 s over a 3 s watch, since 300 ms failed on a loaded ci runner while still catching pings blocked for good
- 7c8c780 ci(windows): build the windows binary on every push, since its cfg(unix) gates are otherwise first compiled by a release tag