mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
main
92
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f0c7449d3b |
fix(assets): tldr's pages download gives up after a minute
cli-tools.sh's tldr --update has no timeout of its own: through a proxy that stalled its connection, it held base's build for 120 s (measured on the mini) before it failed, which the script already tolerates. It now runs under timeout 60. Base's key changes (features/cli-tools.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
1946707e19 |
fix(tools): mise's downloads try six times, on the host and in tool builds
Through a proxy that cut and stalled connections (measured on the mini, a two-minute stall), mise's three retries of bun's download each timed out after 30 s, as mise tried again on the connection that had stalled, and the tool build failed. shared-tools/build.sh and the host's mise (miseCmd) now set MISE_HTTP_RETRIES=6, which outlasts such a stall; each try still ends after 30 s without bytes (mise's http_timeout). Every tool image's key changes (shared-tools/build.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
9f2dda910d |
feat(assets): base's build fetches only the package lists apt installs from
apt.sh begin's update fetched 35.8 MB of lists on arm64, of which the translations (Translation-en, 7.9 MB), AppStream's components (4.8 MB) and command-not-found's metadata are nothing apt installs from, and the image keeps no lists. The build's apt settings now leave them out (Acquire::Languages "none", and DefaultEnabled "false" for the DEP-11 and CNF index targets): 22.8 MB, and apt.sh begin 3.7 s against 6.4 s on the mini (measured). The record still gives back every InRelease and Packages list it used. A layer's apt.sh lists runs after apt.sh end has removed these settings, so its apt is Ubuntu's as it is. Base's and every layer's key change (apt.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
32a3469ed2 |
fix(assets): image builds' downloads retry, resume and time out on a stall
What a build VM downloads failed on a network's first hiccup: curl's --retry 3 skips a connection cut mid-transfer (exit 18) and waits for ever on a stall, apt's retries were off, and oh-my-bash's clone had none. - devvm-fetch: each try has --connect-timeout 20 and a stall limit (--speed-limit 1024 --speed-time 30), and any failure is tried again, five tries in all, from where it stopped (-C -): curl's own --retry, --retry-all-errors included, starts again from nothing (measured on curl 8.7). A server that can't resume (33, 36) starts it again; a file that came whole and checks out ends the loop; a file that doesn't check out is fetched again from nothing once, as a resume may have joined two versions. A redirect goes only to https (--proto-redir =https), so no try or resume moves to plain http. TestDevvmFetchTries runs it against a server that cuts, ignores ranges, changes the file, fails and redirects to http. - apt.sh: package lists still fail fast (exit 75 when no source answers), and once they're in, the build's installs get Acquire::Retries "3", with apt's own backoff. - crane (oci/build.sh, the --from conversion, which has no devvm-fetch): --retry 5 --retry-all-errors --retry-delay 2 and the same timeouts. - oh-my-bash: the clone is tried five times in all, with git's low-speed limit. Docs: images.md's Building and Base's packages, customizing.md's devvm-fetch; the CHANGELOG's second highlight, which says which downloads resume, and What to do 1, which names the layers and --from bases that rebuild and pull again; the release page's A first run on a bad network. Image keys change: base's (base.sh, apt.sh, omb.sh), every layer's (apt.sh is in each), and a --from conversion's (oci/build.sh). Tool images' keys don't (shared-tools/build.sh is unchanged). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
3c7fbad7a3 |
feat(tools): mise downloaded as its .tar.gz, on the host and in base
mise's raw binary is 147 to 192 MB, its .tar.gz 51 to 63 MB. Both of a first run's mise downloads now take the archive: - the host's mise (internal/tools): the .tar.gz checked against its pinned SHA-256 by fetch.Download as before, into a folder of its own, then hashed again through the descriptor that mise/bin/mise is taken out of with archive/tar and compress/gzip, capped at miseCap. One devvm downloads it at a time (Dirs.MiseDownloadLock, cache/mise/download.lock, mise_waiting), and another takes what it kept. Under the lock, a .download-* folder a killed run left is taken away first (TestHostMise). A failure says its cause (mise_download_failed's Because) in the run log too. - base's mise (layers/base.sh): devvm-fetch's .tar.gz, unpacked with tar in a folder of mktemp's, which every base has (gzip is Essential on Debian and Ubuntu, BusyBox has it): .tar.xz would need xz, which --from images may lack. The pins are the archives' SHA-256s from the release's SHASUMS256.txt, and scripts/bump.sh reads the .tar.gz lines. TestMisePins still checks that base.sh's Linux pins are the host's. Docs: images.md's Versions and overview.md's locks; the release page's A faster first run; the CHANGELOG's Highlights, a first run that downloads less with the cloud image's two lines, now highlights too. Base's key changes (base.sh). Tool images' keys don't: they hash base's mise version, not its checksum. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b3e614743d |
fix(agents): opencode's service settings never reach the store or VMs
opencode 2 keeps its background service's settings in ~/.config/opencode/service.json, or service-<channel>.json on another channel (opencode v2.4.1's service-config.ts): the service's password, which the service makes when the file has none, and with remote access on, the secret route its address is served on and remoteAccepted. devvm agent import, and devvm agent save, copied every file of opencode's folder into the store, so every VM with opencode got a copy at each launch, with devvm-redacted in place of the password and the route as it was: each such VM's service took the known password devvm-redacted. The agents' registry gets FolderOwn, the names of a WholeFolder agent's entries that are each machine's own; MachineOwn covers them, so agentFiles, agentDirs, agentLinks and listedPath leave them out: the import never copies them, no VM gets them from a store that holds them, and the save's script never sends the VM's own (which would have made the save fail). cleanStore (cleanSeeds, which now also runs cleanFolderOwn through the shared cleanOwn) takes them out of the store at a start, warning once (agent_store_own_cleaned, agent_store_own_clean_failed). The setup gets machine-own (agents.MachineOwnFiles) and DEVVM_REDACTED (agentlogin.RedactMark, exported, and now the one source of the placeholder in agentlogin's copies), and sync.sh's clean_machine_own takes out each regular file of those names that holds the placeholder, failing the setup with the cause when it can't, so the VM's opencode makes its own password; opencode service get password shows it. Tests that failed first: TestSeeds' MachineOwn cases, TestOpencodeServiceNotImported, TestOpencodeServiceNotStaged, TestOpencodeServiceNotSaved, TestCleanStoreOpencodeService and TestSyncCleansMachineOwn. e2e's network section plants the store's service.json and checks the start takes it out, no VM gets its password or route, two VMs' passwords differ, and a launch takes out devvm's old copy. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
82f075c5bd |
build(deps): bump pins
scripts/bump.sh's safe bumps, patches and minors: - images: mise 2026.11.10 -> 2026.11.14 (base and the host's, with internal/tools/mise.go's checksums), nix 2.35.6 -> 2.36.0, Docker's buildx 0.39.0 -> 0.39.1 and model 1.2.9 -> 1.2.10 - e2e: the lock's pnpm 12.21.0 -> 12.23.0, bun 1.4.4 -> 1.4.5, codex 0.169.1 -> 0.171.0, opencode 2.3.2 -> 2.4.1, pi 1.5.2 -> 1.6.0; --from's node:24 by its new digest - dev-tools: nilaway to its newest commit's pseudo-version (0.0.0-20261124161746-91ad9bf5d8e6), goreleaser 2.20.3, vale 3.28.1, markdownlint-cli2 0.24.2, whose lock folder moves to .mise/locks/markdownlint-cli2/0.24.2/, zizmor 1.33.1, with mise.lock - ci: the workflows' mise 2026.11.14, jdx/mise-action v5.3.0, amannn/action-semantic-pull-request v6.1.4 The e2e lock keeps Claude Code at 2.1.327: 2.1.328 made its sign-in link much shorter, without the state parameter that the network section's login check reads to answer it, so with 2.1.330 that check and the refresh after it fail. devvm itself never reads the link. mise's and Nix's new checksums match upstream's SHASUMS256.txt and .sha256 files; buildx and model are apt packages from Docker's signed repository. Cursor's CLI stays on 2026.11.17-f532c45: 2026.11.22-e9042b2 is out, and it moves only when named. pflag stays held below 1.1.0 and Node on 24. The new nilaway no longer reports three of agentsave.go's bounds findings, so their lines leave testdata/nilaway-baseline.txt, which nilaway and nilaway:linux fail on while they're stale. The CHANGELOG's Unreleased has the pins line, and the 0.2.0 page a section for them. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
01e837a164 |
build(deps): bump Cursor's CLI to 2026.11.17-f532c45, rechecked
scripts/bump.sh cursor: 2026.11.11-b912975 -> 2026.11.17-f532c45, the one shared tool pinned for users, applied only when named because devvm's login and proxy code was read against its pinned release. Then scripts/bump.sh e2e-tools, which writes tests/e2e-mise.lock for the new mise.toml and moves e2e's claude (2.1.326 -> 2.1.327) and opencode (2.3.0 -> 2.3.2) patches with it. The recheck read both releases' Linux packages (checksums checked, read, never run) and Cursor's changelog (nothing after Nov 6): - Package layout and entry point: the same launcher and files. - Login: the same loginDeepControl page, GET api2's /auth/poll with uuid and verifier, 404 while pending, accessToken and refreshToken (or xAI's), selectedTeamId, NO_OPEN_BROWSER and /auth/exchange_user_api_key. waitForResult gained an optional wake argument that cursor-agent login doesn't pass. - No refresh-token call, as before; the JWT reader still takes exp (300 s early) and sub, so the 2099 placeholder still serves. - Connect: about 65 RPC definitions added, mostly DashboardService's, 2 removed (DashboardService's pull-request draft preference), and the methods the bundle calls are the same, so every route agentlogin's cursorRoutes and the proxy's cursorMinting and cursorPersists name is still there, and no new method carries the login. - Hosts, config and auth files (CURSOR_CONFIG_DIR, XDG_CONFIG_HOME, ~/.cursor, auth.json, cli-config.json), the updater and channel: the same. New environment variables don't touch updates or telemetry. So nothing in devvm's code, tests or allowlist changes; the comments, the policy's note and internals/network.md name the new release. - CHANGELOG: Changed, the pin. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
c9005ae4be |
build(deps): bump pins: mise 2026.11.10, Docker 29.10.0, Hugo 0.170.1 and e2e's pins
scripts/bump.sh's safe bumps (patches and minors; no majors or held pins): images (assets/): - mise 2026.11.8 -> 2026.11.10 (base's, and the host's resolving mise) - docker 29.9.3 -> 29.10.0, compose 5.7.1 -> 5.8.0 e2e: - claude 2.1.322 -> 2.1.326, codex 0.167.2 -> 0.169.1, opencode 2.2.7 -> 2.3.0 - pnpm 12.18.0 -> 12.21.0, uv 0.13.7 -> 0.13.9, rust 1.99.1 -> 1.100.0 - ubuntu:26.04 digest 065aa8626841 -> d66b366dac61 - Ubuntu's cloud image release-20261016 -> release-20261108 go: deadcode v0.52.0 -> v0.53.0 dev-tools: govulncheck 1.9.0 -> 1.10.0, vale 3.26.0 -> 3.27.0, hugo-extended 0.169.0 -> hugo 0.170.1 ci: jdx/mise-action v5.2.8 -> v5.2.10, the workflows' mise 2026.11.8 -> 2026.11.10 Hugo 0.170 has no extended edition (one binary, without LibSass, which the site doesn't use): mise.toml's hugo-extended becomes hugo, the docs workflow installs hugo, its release job installs the tag's own tools (an older tag names hugo-extended), and docs/hugo.yaml drops the deprecated hugoVersion.extended. The e2e runner deletes its sandbox's Ubuntu pin when it names a release other than e2eUbuntuRelease (not in a --newest-base run), as devvm keeps a pin it has: without it, moving e2eUbuntuRelease left a cached sandbox on the old release. pinned and ubuntuPin are e2e's one reader of the pin, and TestHarnessRepin covers repin. Image keys change: base and every image above it, the docker layer's included, and the shared tools' images build again. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
ea3037bc15 |
fix(vm): MCP servers' logins in a VM finish and survive launches (#62)
Each launch and each devvm agent login claude copied the store's VM copy of Claude Code's OAuth login (claudeAiOauth only) over the VM's ~/.claude/.credentials.json, where Claude Code also keeps its logins to MCP servers (mcpOAuth: their tokens and, mid-login, the PKCE verifier). So an MCP login failed when the VM was set up again before it finished, and a finished one was gone at the next launch. The setup now gets the copy as claude-credentials.json (claudeSyncName), and sync.sh's merge_claude_credentials merges it in the VM: the copy's claudeAiOauth replaces the VM's (or takes it out when the copy has none), every other key of the VM's file stays. It reads the VM's file with one jq call (--slurpfile, so two JSON values or a non-object are caught) and writes it whole, mode 600, through a mktemp file in ~/.cache, which no history export or remake carries, then mv; a failed cat or mv removes the temp file and fails the setup. A link, or a file that's empty, not JSON or not one object, is replaced by the copy and said (a link removed first, so mv never writes through it into a folder); a folder is left and said. With a Claude Code token (setup-token), devvm sends no copy, as before, so the VM's file stays as it is: Claude Code prefers the token in its environment, and a leftover login's placeholder gets the token at api.anthropic.com and nothing at the connectors' host. mcpOAuth stays in the VM: devvm agent save reads only settings and the .claude.json allowlist, history export excludes .credentials.json (HistoryExcludes) and import skips it, and a remake leaves login files out (homeSkips), all unchanged. Tests: TestStageClaudeOAuthMerged (the copy is staged to merge, never at home/.claude/.credentials.json); TestClaudeSyncNamesMerged (sync.sh merges each claudeSyncName name into its place); guest.txtar runs merge_claude_credentials (mcpOAuth and other keys kept, claudeAiOauth replaced or removed, a key with a \u escape, empty, not JSON, two values, an array, a link to a file or folder, a folder, a failed move, the warnings, mode 600, no temp left); agent_login.txtar reads the new name. Docs: Coding agents' MCP servers' logins (real tokens the VM's code can read, never leaving it) and its Copies, How it works' Claude Code's login and the network page's sentences, what a VM made again keeps, the sync.sh header, and the safety pages' claim that a VM never holds a refresh token, narrowed to the logins devvm keeps. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
e97db057fd |
fix(agents): Claude Code's plugins get a folder of each VM's own, the store's a read-only seed (#56)
A VM's ~/.claude/plugins was the agent store's plugins folder, mounted
read-only, so everything Claude Code writes there failed with EROFS: a
plugin's data (${CLAUDE_PLUGIN_DATA}), installs, marketplace refreshes,
mcpb/ and the rest. Making the store writable would let one VM change
what Claude Code runs in every other VM, so each VM's ~/.claude/plugins
is now its own folder on its disk (CLAUDE_CODE_PLUGIN_CACHE_DIR), and the
store's folder is linked at ~/.claude/plugins-seed and read as Claude
Code's own read-only seed (CLAUDE_CODE_PLUGIN_SEED_DIR). Checked on a
devvm VM first: a seed-cached plugin from a GitHub-style marketplace
loads with only enabledPlugins, its hook writes ${CLAUDE_PLUGIN_DATA} in
the VM's own folder, installs in the VM work, and seed marketplaces
refuse updates.
- agents: Def.Seeds (Rel, Link, Entries), Seeds, SeedOf, MachineOwn;
Env gains Home; Claude's Env sets both variables below $HOME.
- vm: the setup links a seed at its Link and stages own-dirs, which
sync.sh makes a folder in place of a link; agentEnv writes Home values
through homeValue (shared with toolchainEnv); a remake keeps the VM's
own folder and skips the seed's link.
- devvm agent import copies only a seed's entries (known_marketplaces.json,
marketplaces, cache), directly and through followed links, so the
host's plugins' data, mcpb, synced, .trash, store and
installed_plugins.json never reach the store.
- devvm agent save: the VM's script excludes a seed folder's other
entries by name, and readSent refuses any (listedPath); a seed folder
adds and changes, never removes or prunes; claudeRecords renames the
VM's plugins path to the store's and joins known_marketplaces.json by
key, leaving records Claude Code registered from the seed as the
store's, and the store's file as it is when nothing changed.
- History: an export leaves the VM's plugins folder out and an import
skips it and the seed's link: it's settings and plugin data (which can
hold a plugin's own logins), not history, and reaches other VMs only
through devvm agent save's reviewed diff.
- Review fixes (security-audit): historyImport refuses a name with a
., .. or empty part (GNU tar's anchored excludes missed
.claude/./plugins and .claude//plugins, which now reach a writable
folder) and deletes importSkips by path after the link sweep; the save
script never excludes a name with a wildcard's character (it's sent
and refused); only a marketplace record whose exact installLocation is
clean and in the store's marketplaces joins the store's.
- Tests: claude_test.go (TestClaudePluginsSeed, TestClaudePluginsHistory,
TestAgentImportClaudePlugins, TestAgentSaveScriptClaudePlugins,
TestReadSentClaudePlugins, TestAgentSaveClaudePlugins), TestSeeds,
TestListedPath cases, the agent, agent_save and sync CLI tests, goldens,
and e2e project checks of the seed, the VM's folder and a plugin's data.
- Docs: coding-agents (store table, Claude Code's plugins under Mounts,
the save's plugin example), internals/agents, a design note with its
threat check, extending.md, CHANGELOG Fixed and After you upgrade.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
63bb1ff9a8 |
fix(network): a confined VM's programs ask 127.0.0.1 directly, so names fail at once
With transparent mode off or stopped, a confined VM's only name server, 127.0.0.1 (Lima's DNS setting), has nothing listening. glibc asked it through systemd-resolved's stub, which could keep retrying it over UDP and TCP without answering, so a lookup such as getent's waited out its timeout instead of failing at once (seen on a Linux host: e2e network's checks of DNS with transparent mode stopped and off). Each launch's setup now replaces /etc/resolv.conf, the stub's link, with devvm's own file on a confined VM: nameserver 127.0.0.1 alone, the stub's search line, timeout:1 attempts:2. glibc gets a refusal at once with nothing listening, and dnsmasq's answer through transparent mode's nftables rule when it runs, as musl on Alpine does. An open VM gets the stub's link back. Only systemd guests that have the stub's file and whose /etc/resolv.conf is its link or devvm's own are touched. Root cause, as far as it could be pinned down: with resolved's stub in the path, a lookup depended on resolved's retry loop over a server that refuses everything (24 attempts, flipping UDP and TCP feature levels), and on the linux host that loop sometimes never answered the stub within getent's 3 s. It didn't reproduce on demand (a base run on the linux host passed both checks, and bursts of 200 parallel lookups and stops mid-lookup all failed in under 2 s), so the fix takes resolved out of glibc's path rather than tuning it. Going back to open restarts systemd-resolved: it reads a /etc/resolv.conf that isn't its own link as global servers and search domains, so it had taken 127.0.0.1 and "~." from devvm's file, and kept them once the link was back, which left an open VM unable to resolve names (caught by e2e network's open checks on the linux host and ubuntu). Review folded in: no change of a foreign or dangling link when the stub's file is missing; two attempts; Docker's user-defined networks in the docs. Second review: devvm's file alone is enough to go back on an open VM (a warning when the stub's file is missing); a failed write says so in one line and the launch goes on; troubleshooting's "An open VM resolves no names after a downgrade"; tests for resolved's own resolv.conf link, an open VM without the stub, a non-systemd guest with devvm's file and a failed write. workerd under wrangler dev, checked by hand on fedora with transparent mode off: its fetch fails at once (Temporary failure in name resolution), so the "about 40 seconds for each lookup" sentence is gone from lima.md, safety/network.md and troubleshooting.md, and testing.md's manual check covers it. testdata/coverage/darwin.txt: internal/sshagent's baseline rose with mise run coverage (unrelated to this change). - backend.Confinement.Resolver: the one owner of a confined guest's name server; Lima's start sets .dns from it, sync.go sends it to the setup as DEVVM_RESOLVER; sync.go's setupInputs as mise run fmt writes it. - assets/guest/sync.sh: resolver_conf; its unit test runs the function (internal/vm/resolver_test.go). sync.sh runs at each launch and goes in no image, so no image key changes. - CLI tests: DEVVM_RESOLVER on confined (transparent on and off) and open VMs. e2e network: the stopped-transparent check also checks the file. - Docs: network.md's The VM's resolver, lima.md, design.md, tests.md; CHANGELOG Fixed. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
aee6340ea9 |
chore(deps): bump assets' pinned downloads and devvm's host mise
scripts/bump.sh, every checksum from upstream's published sums: - mise (base, and devvm's host mise): 2026.11.3 -> 2026.11.8, from the release's SHASUMS256.txt - Docker's buildx: 0.38.1 -> 0.39.0 - Docker's compose: 5.7.0 -> 5.7.1 - nix: 2.35.5 -> 2.35.6, from releases.nixos.org's .sha256 files Up to date: docker 29.9.3, containerd 2.4.2, model 1.2.9, Docker's signing key, direnv 2.38.2, nix-direnv 3.2.0, git-lfs 3.8.1, rustup 1.29.3, crane 0.22.1, omb 94c2977eda06, eza 0.23.5, tealdeer 1.9.1. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
6c36850251 |
feat(cursor): devvm cursor opens this folder's VM in the Cursor editor
devvm cursor is devvm code's twin for Cursor, the editor. It gets the folder's VM ready as devvm host does, then runs `cursor --remote ssh-remote+HOST DIR` in devvm's place, with the SSH agent devvm started with. Without `cursor` on PATH it fails with no_cursor_command, naming the host to connect to. Cursor's Agent and your sign-in (from CJ's manual check with a real login): recent Cursor runs Agent in the editor's server in the VM, which holds your Cursor sign-in in memory only (no token on disk, in any environment or command line) and calls Cursor from the VM. Cursor's `cursorAgentHost.remoteInferenceRoute` is application-scoped, so it's read only from the user settings on this machine; with it set to "always", Agent's own requests go through the Cursor app here, while the VM's server still talks to Cursor. - vm: Code and Cursor share openRemote; vm.CursorCommand names the editor's command, apart from the CLI agent's agents.Cursor. After LookPath finds `cursor`, devvm reads Cursor's user settings on this machine (platform.AppSettingsDir: Application Support on macOS, $XDG_CONFIG_HOME or ~/.config on Linux) through safefile.Read, 1 MiB at most, read-only, as JSON with comments, and warns with cursor_agent_in_vm unless the route is "always". It never fails on the file. - sync.sh: Cursor's ~/.cursor-server/data/Machine/settings.json gets VS Code's remote.autoForwardPorts, git.terminalAuthentication and github.gitAuthentication off, in one loop over both editors' files. devvm doesn't write the route there, since Cursor ignores it. - structure: nameFree lets a literal that is an agent's name stand in one file, with its reason, and fails when it frees nothing. - cli: cursor.go (--ssh-config, --here, --parent), registered beside code; cursor_failed, no_cursor_command, cursor_agent_in_vm and their doc links; ssh_host_info names Cursor too; the cli skill's judgment note: an editor's command is a bare verb named after the editor's. - Tests: host_code.txtar (cursor, its full-name host, the missing command, the warning and no warning once the route is set), guest.txtar, TestCursorAgentWarning (always, absent, other values, no file, broken JSON, too long, a FIFO, the XDG path; never written), e2e network: devvm cursor passes the editor only the host and folder, a fake editor sign-in on this machine reaches neither the VM's home, its processes' environments nor the proxy's logs, and a Cursor login in the store reaches the CLI's methods while the agent store's are refused. - Docs: SSH and editors (commands first; "Cursor's Agent": it runs in the VM with your sign-in, the user-settings line, what it doesn't cover, open only VMs you trust; if Tab doesn't work on the allowlist tier, devvm network allow api3.cursor.sh), the agents page's Cursor notes, Commands, attack vectors, design, the home page, CHANGELOG, generated CLI pages. Reviewed adversarially before the push: the settings read (size, FIFOs, links), the warning's wording and when it fires. Researched with PR #44's design as reference only. Co-authored-by: JB <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
5d7f941678 |
feat(network): quiet hosts: documented telemetry stays blocked without a notice in the VM
A built-in policy's `quiet HOST[:PORT]` line, for one exact host name, marks a host devvm leaves out on purpose. A quiet host is blocked as any host no rule allows, and an allow of the user's still lifts it. A block is quiet only when its reason is "not on the allowlist" (notAllowed), it isn't refused, and no rule covers the host (an allow, a deny or one that narrows): then it's logged with "quiet": true but never counted in /blocked or /blocked/new, so neither the VM's prompt nor devvm-why shows it, its 403 page suggests no command, devvm network log --blocked shows it as a row of its own with "- (quiet)", and devvm network lock never offers it. - proxy: rule.quiet, parseQuiet (exact hosts only), PolicyLine.Quiet, policy.quiet, Allowlist.Quiet, Event.Quiet, server.blocked (proxy and transparent paths), notAllowed; loadPolicy skips and logs quiet lines in the user's files. - netpolicy: Judge.Quiet, Block.Quiet (its own row key), FormatEvent's ", quiet", RuleFile.Quiet, quietMark, policy_quiet_not_own in PolicyWarnings. - cli: quiet in network log --json, log --blocked --json and network --json; the agents' table leaves quiet lines out. - Quiet hosts, each with its source: api3.cursor.sh (the host Cursor documents for Tab requests; Cursor's CLI uses it for its metrics) and telemetry.go.dev (Go). Not marked: Claude Code's Datadog intakes (shared multi-tenant hosts projects may need), .NET's telemetry (no host in Microsoft's docs). - Tests: TestParseQuiet, TestQuietHosts, TestQuietOnlyWhenNoRuleAllows, learn/log/rules tests, network_rules.txtar, e2e network check for api3.cursor.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
dd1b87bacd |
fix(dotnet): DigiCert's OCSP responder on dotnet's allowlist
When NuGet can't fetch DigiCert's revocation list while it checks a package's signature, it asks DigiCert's OCSP responder, which the allowlist blocked (seen in e2e tools on fedora, where the list's lookup failed under load). ocsp.digicert.com on port 80 joins crl3.digicert.com, and the toolchains page and CHANGELOG say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
52bb0f467b |
feat(clone): a --clone VM gets the repo as it is here
A --clone VM's clone is now seeded with a snapshot, not git push, and gets everything a working copy has. devvm clone fetch brings it all back, and devvm rm and clone off check it before deleting. - Refs: every branch, tag and notes ref, and a detached HEAD. - Uncommitted changes: staged, unstaged and untracked files; files skip-worktree by hand get the index's version, named. - Operations in progress (merge, rebase, cherry-pick, revert, bisect) and the stash; a stash's untracked part goes as its own branch. - The repo's settings and hooks, sent as settings only where they live in the repo (husky); ORIG_HEAD never goes. - Partial clones, with their promisor remote, and messages per network tier when it can't be reached. - Initialised submodules, nested ones too, each with a clone of its own; a submodule's own folder is refused as a top-level --clone. vm.json gains an optional `submodules` field. - Git LFS both ways: objects hash-checked, written under os.Root with no link followed, a question past 2 GiB; the filter is set only in the clone's repos; git-lfs 3.8.1 in base, pinned by SHA-256. - rm and clone off keep the VM when anything the VM has didn't come back, and name it. - Every shell script embedded in Go is shellchecked. - clone.md is a guide that leads with commands; TestUserPageProse covers it and coding-agents.md. After you upgrade: base and every image on it build again once, for git-lfs. Fixes #40, reported by @Josuesp1620. Thanks to @dhruv1220 for #42, which found the cause (receive-pack refusing a shallow push); its receive.shallowUpdate setting stays in the VM's repos. Co-authored-by: Dhruv Arora <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
d349868c31 |
feat(agents): one definition per coding agent, and Cursor's CLI
Every list of the coding agents now derives from internal/agents' registry, one Def each, and Cursor's CLI (cursor-agent) is a fifth agent. The registry: - each agent's login command, login formats and capture on its Def; one message for every agent where each had its own - the agents' table, the README's list and the docs' history lists are generated from the registry (cli.DocBlocks, TestDocBlocks); scripts and Go tests take their lists from it too - each agent's own code lives in a file named for it; the structure test lets only an agent's own files choose by its name, following constants named after an agent - a VM remade by clone on/off keeps no agent's login files (agents.LoginFiles from every Def.Logins; Claude Code's .claude.json stays, as it is also history) Cursor's CLI: - `devvm --agents cursor`, `devvm agent login cursor`, history import and export of ~/.cursor/chats - the proxy captures its login at a GET endpoint, guards a shared host by path, and puts the login in only where the CLI sends it, bound to the CLI's 57 methods - account changes and the agent store are refused in a VM; Cursor's headers and trailers are scanned for tokens - e2e: Cursor's CLI in the network section, its poll behind the fake company proxy Docs: the agents' pages lead with commands, with a How it works page for the agents. Co-authored-by: JB <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2f0cc97392 |
feat(paste): devvm paste and devvm paste rm (#38)
feat(paste): devvm paste, an image, PDF or copied file from the clipboard into the VM (#38) devvm paste reads the host's clipboard and streams what's on it into the running VM's paste folder over the backend's Exec, with no SSH agent and no new channel, then copies the file's path in the VM to the host clipboard for the agent's prompt. devvm paste rm empties the folder after a question, and a launch that starts a stopped VM offers to. What it reads: - an image (PNG, JPEG, GIF, WebP; TIFF is converted to PNG), checked by its bytes; browsers hand over a PNG, so an animated GIF arrives as one frame - PDF data, sent as it is, and preferred over a file reference beside it (Preview's page copies) - one copied file, after a question that shows its path on this machine; --send-file answers it only for a file inside the project folder reached without links, and never for a --clone VM - never text; several files are refused Security: - macOS reads file URLs only through NSPasteboard (FileURLsOnly): AppleScript's «class furl» coercion turned any text, such as a path a web page or the VM's OSC 52 put there, into a file to send - copied files are opened with openat and O_NOFOLLOW|O_NOCTTY|O_NONBLOCK, following a root-owned link only in a folder only root can change, and read through internal/safefile (Checked), capped at 64 MiB - osascript and pbcopy by absolute path, Linux's tools only from system folders, never PATH - time limits on every clipboard tool and on paste.sh in the VM; bounded reads of everything the VM prints - the path copied back is built on the host, keeping only the file's extension: nothing the VM says reaches the clipboard Also: the paste-dir setting (default /tmp/devvm-paste, made at each launch), --json with sent, the agents' guide line, messages with doc links, stubs, CLI tests, an e2e check in the project section, and docs on coding-agents, settings, design, security and attack-vectors. Co-authored-by: dustypolk <[email protected]> Co-authored-by: w3cj <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
7b876d7285 |
build: bump nix to 2.35.5 and the e2e pins (#39)
scripts/bump.sh nix e2e-tools e2e-from; mise stays deferred. - assets/layers/nix.sh: nix 2.35.4 -> 2.35.5 (sha256 arm64 34b8d0c0658321e63143f892086bd2d9623a81bf96e4ffefc1551092d80caedb, amd64 c349f0559b7849a2cb3b20b8584e532b3fcf5025092cb6180eb0b99240d7b96c), which changes the nix layer's image key. - tests/e2e-mise.lock: codex 0.166.0 -> 0.167.0 (its entries now carry mise's checksum_source = "mise-versions", as others already did) and opencode 2.2.5 -> 2.2.6; node, pnpm, bun, python, uv, go, rust, dotnet, claude and pi were already the newest. - tests/e2e/from_test.go: fromAlpineDigest -> sha256:f59abe656b69…, alpine:3's digest now (3.24); node:24 and ubuntu:26.04 didn't move. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HTFcPrY8FzzQMopN5wgpLQ |
||
|
|
665f27dcb5 |
fix(network): log only IPv4 connections as transparent mode's refusals
In table inet devvm_transparent, the sentinel chain began with `ip daddr != 198.18.0.1 return`, and in an inet table an ip match holds for IPv4 alone, so every IPv6 TCP connection skipped the return and hit the refusal's log: devvm-why listed [::1]:8787 as refused while curl localhost:8787 worked over it. The sentinel now returns anything but IPv4 first. The stand-in address is IPv4, and a connection to it from an IPv6 socket (::ffff:198.18.0.1) leaves as IPv4, so this opens no IPv6 way to it. The other chains' ip daddr rules match positively, so IPv6 only skips them: early_in, early_out and input drop or accept IPv4 traffic to the stand-in address, and the DNS redirects in output and from_containers never took IPv6. - TestTransparentRuleset: the sentinel's first rule returns IPv6, then the address's return, and the refusal's log is the sentinel's alone. - e2e (transparentRuns): an IPv6 connection on loopback that works isn't listed under devvm-why's refused connections. - docs: with transparent mode off, a lookup in a confined VM fails at once on macOS but only after systemd-resolved's timeout on a Linux host, 35 to 40 seconds for each lookup (safety/network.md, troubleshooting, internals/lima.md). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
647ad4bf2a |
feat(network): transparent mode for tools that ignore the proxy settings
On every confined tier, a tool that ignores the proxy settings (workerd
under wrangler dev, a static Go binary, a container made through Docker's
API) reaches the VM's proxy by the names it looks up. In the VM, dnsmasq
answers every name with the stand-in address 198.18.0.1 and has no
upstream; nftables sends that address's ports 80, 443 and those the allow
rules name to socat listeners on it, which make each an authenticated
CONNECT transparent.devvm.proxy:PORT to the VM's proxy. The proxy reads the
host from the connection's first bytes (TLS SNI, or each HTTP request's
Host) and judges it as CONNECT host:PORT, with the same order of checks,
log, secrets and floor. A blocked HTTPS host gets the 403 over a
certificate from the VM's CA. Nothing new runs on the host, and the
backends don't change.
Proxy (internal/proxy):
- transparent.go: TransparentHost, ProxyDomain, SentinelAddr,
IsSentinelAddr, ViaDNS, transparent (serve, take, tls, handler,
refusePage, ports), sniHost, replay, reservedRefusal, withVia, viaOf.
- routeFor and route: the one order of checks for CONNECT and the
transparent path; carry, the one tunnel with its SNI check; block split
into the record and blockPage; links.refuse split (isLinkDomain);
caEndedRefusal's test moved to routeFor; handshake and serveOne shared
by intercept and the 403 page.
- devvm.proxy reserved whole, CONNECT devvm.proxy:P included; the stand-in
address refused with its own reason.
- Hosts and SNI in ASCII alone, never folded (the Kelvin sign), in
splitHostPort, sniMatches and sniHost.
- A ClientHello record past 16 KiB + 256 is never read; once it starts,
a ClientHello must arrive whole within 10 s, on every tunnel; a stream
whose first byte is 0x16 is TLS from then on, so a record header that
doesn't come whole, or isn't TLS's version, is refused, never passed on
unchecked; and only a ClientHello that parsed (sniOf) counts, so one
split across records is refused, an address's tunnel's included, which
may have no name (a gap older than this change).
- routeFor carries the method and path rules: a host they narrow is
refused where it can't be decrypted and intercepted where it can, on
the transparent path too.
- On the transparent HTTP path, devvm.proxy answers /blocked alone.
- policy.transparentPorts and /transparent/ports: 80, 443, then the ports
allow rules name for hosts by name, at most 32, never 22 or 53.
- Event.Via ("dns"), shown in devvm network log, /blocked and the prompt's
note as "without proxy settings".
Guest (assets/): base.sh installs dnsmasq(-base), socat and nftables;
guest/transparent.sh is devvm-transparent: setup and teardown from
sync.sh (the proxy URL on stdin), the supervisor service (systemd or
OpenRC), the ruleset (render: two filter chains at -150 keep every
interface but lo and Docker's bridges, and every protocol but TCP, UDP
and ICMP, off the stand-in address; both NAT chains at -110 map every port of
the stand-in address, so Docker's published ports never take one; DNS to
public servers and 127.0.0.1:53 go to dnsmasq, which listens on the
stand-in address alone; private, link-local, CGNAT and loopback servers
are left alone, but the VM's own name servers, which Lima's DHCP adds
beside 127.0.0.1 and Docker gives containers, go to dnsmasq too), slots,
the port list's check, and status for devvm-why. Names without a dot and
names under the search domains (this machine's network's, through Lima)
don't resolve.
Setting: config.toml's transparent-proxy, and devvm network transparent
[on|off], the VM's own value in net.transparent (Settings.Transparent,
SetTransparent; netpolicy.TransparentOf, TransparentAddr); the setup gets
DEVVM_TRANSPARENT_ADDR while the VM runs confined and its mode is on.
devvm network --json has transparent; devvm network lock lists apart the
hosts only tools without proxy settings reached (Learned.NoProxy, via in
--json). vmssh.dialAddr refuses the stand-in address.
Tests: the transparent path's unit tests and FuzzTransparent; the
setting, TransparentOf, FormatEvent's via and learned hosts; the ruleset,
slots and port list under bash 3.2; network_transparent.txtar and
sync.txtar; e2e: transparentRuns, the network section's checks, a docker
step, the from section's Debian 12 and Alpine on the allowlist tier, and
the guarantee checks run with transparent mode stopped and running.
Docs: safety/network.md (tools that ignore the proxy, what isn't
covered, the setting, logs, lock), internals/network.md (tools that skip
the proxy), internals/design.md (the design note and threat check),
using/settings.md, using/troubleshooting.md, using/limits.md,
using/images.md, safety/attack-vectors.md, internals/lima.md,
contributing/tests.md and testing.md, the proxy's README, the CLI
reference and the Commands page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
2865158e02 |
feat(network): learn the hosts a new VM needs, then lock it to them (#22)
--network learn runs a VM on the internet tier while it records the hosts it reaches beyond its allowlist, shown as internet (learning). devvm network lock picks which of them go into the VM's own rules, ticking only reviewed registries on 443 and listing risky hosts apart, then gives the VM the allowlist tier at once. learn is per VM only. The lock command names its docs page in its about. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
33ec9eb0dc |
refactor(tools): one definition per toolchain
Each toolchain is one image.ToolDef in image.SharedTools, which also holds its guest environment, its PATH folders and its version files. They leave base's devvm-tools.sh for /etc/devvm/toolchains.sh, which every launch writes, so base.sh changes and every image rebuilds once. The structure test's names rule fails on a toolchain's name as a literal outside internal/image, TestToolchainsComplete checks the toolchains page, and Contributing gains Adding a toolchain. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
9f51e79421 |
refactor(agents): one definition per coding agent (#29)
Each coding agent gets one definition, an agents.Def in a new stdlib-only leaf package, internal/agents, and everything else iterates over agents.Defs: agentlogin's format per login kind, secrets' login kinds, settings' [pass-keys], image.SharedTools, the vm package's store tables and scripts, and cli's help lists. The VM copies of every login file, their bindings, the store's layout, the scripts and the CLI reference stay the same byte for byte, as golden tests made before the refactor show. The agents' guest variables leave base.sh for /etc/devvm/agents.sh, written at every launch, so every image rebuilds once. Messages are merged per agent (login_kept, login_passed, login_withheld, login_oauth_withheld, agent_login_key_only). The structure test's new names rule fails on an agent's name or login kind as a literal outside internal/agents, and literals on one holding an agent's folder. Docs link the supported coding agents rather than listing them, and Contributing gains Adding a coding agent. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
84f1190b04 |
feat(agents): pi, as a fourth coding agent (#23)
Adds pi (earendil-works/pi) as a shared coding agent beside Claude Code, Codex and opencode: --agents pi, devvm tools add pi, the new-VM picker and devvm setup offer it. Its network policy allows pi.dev; base sets PI_SKIP_VERSION_CHECK=1 and PI_TELEMETRY=0 and installs fd-find, so base and every image on it build again once. The agent store mounts and copies pi's settings, with keys redacted as JSON. pi's auth.json is a new login kind: its API keys for Anthropic, OpenAI and OpenRouter become per-VM placeholders the proxy fills in (devvm agent login pi --api-key --provider PROVIDER), and everything else is withheld by default, unless config.toml's [pass-keys] lists the provider. pi's own account logins aren't supported, and pi has no musl build, so a musl VM refuses it (image.ToolDef.GlibcOnly). Its sessions go into devvm history export and import. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
8d8da01037 |
feat(tools): dotnet, the .NET SDK, as a shared toolchain (#7)
Adds `dotnet`, the .NET SDK, as a fifth shared toolchain next to node, python, rust and go. `--tools dotnet`, `devvm tools add dotnet` and the picker offer it, and a folder with `*.sln`, `*.slnx`, `*.csproj`, `*.fsproj` or `global.json` at its top level suggests it in the new VM's summary, the way `package.json` suggests node. Refs #2. Thanks to @jsskeen-utah for the detailed request. Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
3c4e90da0c |
fix(tools): opencode's backend is named, so mise's registry can't move it to npm (#10)
## What this changes
**The cause.** The pin bump in
|
||
|
|
588ba6f9a1 |
build: bump docker 29.9.3, mise 2026.11.3, rustup 1.29.3, oh-my-bash, tealdeer 1.9.1 and the --from digests
docker 29.9.3, containerd 2.4.2, buildx 0.38.1, compose 5.7.0, model 1.2.9; mise 2026.11.3 (VMs and the host mise); rustup 1.29.3; oh-my-bash 94c2977; tealdeer 1.9.1; e2e's node:24 and alpine:3 digests. Every checksum is from upstream's published sums. bump.sh's value check now knows a Go constant's camelCase *Digest name, which it refused before. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
c171e205ec |
docs: the layout as it is, and the agents' guide on the VM's host folders
The in-VM guide says the project folder is the only host folder the VM can write to, with the agent store's folders and the shared tools mounted read-only. design.md names internal/vmssh/links_test.go and internal/proxy/testdata/nix/, and its devcontainer forwardPorts entry says the file's ports are added, as its Ports entry does. Contributing drops the old shared CA folder's paragraph; space.md says secrets/ is for hosts without a Keychain. Coverage baselines raised (netpolicy, settings, vm). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
d209071ec3 |
feat(network): devvm-why and the agents' note point at a tool that skipped the proxy
With nothing blocked, the proxy's /blocked answer (devvm-why) adds that a DNS or connection error for an allowed host means the tool skipped the proxy, to turn on its own proxy setting or give it $HTTPS_PROXY, and links troubleshooting's A host on the allowlist doesn't resolve. The agents' note in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md says the same in one sentence. Tests: proxy_test's empty answer, network.txtar asks a running proxy's /blocked, and the e2e network section checks that curl --noproxy fails for github.com, devvm-why's hint and the note in CLAUDE.md. Docs: internals and safety network pages. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b6b60d5cf3 |
fix(agents): opencode 2 VMs get the store's changed logins and keys at each launch
opencode 2 keeps its logins in its database, so a VM whose database existed kept the logins it had: a key saved from another VM, or a ChatGPT login for another account, never reached it. Every launch's setup now sends the store's opencode logins as opencode auth import reads them (agentlogin.OpencodeImport: each API key the proxy puts in and OpenAI's Codex login, placeholders alone, IDs cred_devvm_<provider>; methodID chatgpt-browser and a whole-number expires, as opencode 2.2.5's credential schema needs). The new guest script assets/guest/opencode.sh reads them on its input, never argv, and, once opencode has a database, imports them when they differ from its record (~/.local/state/devvm/opencode-import.json) or when the database no longer holds one of devvm's IDs (deleted, or replaced by a history import; checked with opencode auth export, only the IDs kept). It logs out of devvm's earlier entries (opencode auth import skips an ID it has), imports each entry on its own and switches its provider to devvm's entry; the user's own credentials stay in the database. devvm agent login opencode --api-key runs the same script at once, in place of the old one-key import. The record lives in the VM because only the VM knows its database and what it holds. No partial success: a provider whose import opencode refuses is printed as devvm-opencode-failed PROVIDER, the script exits 1 and records nothing, so the next launch tries again, and devvm agent login names the providers in the new message opencode_import_failed. Three faults found on real opencode 2.2.5 VMs and fixed: bash -lc runs ~/.bash_logout (Debian's clear_console, failing without a terminal), which under set -e became the script's status after a good import, so the work runs in a subshell; opencode 2.2.5 made its database without importing auth.json while the script had recorded the entries anyway, so nothing is recorded until the database exists; and a missing expires becomes 0. Every VM also sets OPENCODE_DISABLE_AUTOUPDATE=1, beside Claude Code's DISABLE_AUTOUPDATER in base's /etc/profile.d/devvm-tools.sh: the agents are read-only shared tools whose versions mise pins. Tests: TestOpencodeImport; TestOpencodeScript (the script against a fake opencode: no database, an import, the same input again, a database made again, a refused entry); TestOpencodeRefused; TestToolsEnvironment; agent_login.txtar (the script at a key's save, opencode-import.json in the setup, a refused provider named through the guest stub's new opencode-refuses switch). e2e's network section: OPENCODE_DISABLE_AUTOUPDATE in an opencode VM's login shell; a second opencode VM with a database and a credential of its own gets a key saved from the first at its next launch, its own credential kept; and gets it again once its database is deleted and made again. Failures print opencode.sh's stderr, the run logs' opencode lines and the VM's credential IDs. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
3f2d3658ed | fix(network): allow the trust roots mise checks attestations against | ||
|
|
1556e9d690 |
docs: a tool in a VM that skips the proxy fails with a DNS error, by symptom in troubleshooting
Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b4b19759c5 |
feat(guest): a guide to devvm in every VM, for the agents in it, and devvm-help
Every launch sends assets/guest/guide.md with the guest setup, and sync.sh installs it as /usr/share/doc/devvm/README.md (root's, mode 644, again whenever it differs) with /usr/local/bin/devvm-help, which prints it. The guide covers what a devvm VM is, network tiers and secrets, tools and installs, and the host commands to ask the user for. TestGuideCommandLines checks that the guide is among TestCommandLines' files and that each devvm command and flag it names exists. Docs: using/coding-agents.md's The guide in every VM. e2e: the project section checks the file's owner and mode, devvm-help's output and that the VM's user can't write it. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
6391a8ba48 |
fix(agents): opencode 2's history exports leave its credentials out
opencode 2 keeps its sessions and its logins in one SQLite database, ~/.local/share/opencode/opencode.db (opencode-<channel>.db for other channels), in WAL mode, so the history export, which tarred ~/.local/share/opencode, carried its credential table (logins, API keys, MCP OAuth tokens), account and control_account (its console's access and refresh tokens) and session_share's secrets to this machine, and an import gave them to another VM. The -wal file carries them too: it holds full page images of what opencode wrote last, a just-saved credential row among them, until a checkpoint, and opencode makes it at once. The export now copies each database in the VM with sqlite3 (base installs it: sqlite3 on Debian and Ubuntu, sqlite on Alpine), keeping the sessions: VACUUM INTO (one snapshot, the WAL's rows included); every trigger dropped; the login tables emptied (credential, account, control_account, account_state, session_share, and any table whose name or a column's says it holds a secret, for tables a later opencode adds); the record of opencode's auth.json import migration taken out, so the next VM's opencode imports the logins devvm's setup wrote there; WAL off and secure_delete with VACUUM, so no free page keeps a deleted row; then the rows counted, and the database left out on any failure or without sqlite3. tar leaves the database and its -wal, -shm and -journal files out and adds the copy at its path (--transform, links' targets kept). The import does the same in the VM to an export it unpacks (one devvm didn't write may hold the logins): it deletes the -wal, -shm and -journal files and any database that isn't a regular file, and puts in the copy, or nothing. Every sqlite3 runs with trusted_schema off. opencode 1's mcp-auth.json joins the logins left out. Rejected: excluding the database (loses opencode's sessions); opencode session export (runs opencode and its server per session, and per project, which rm's export can't count on). Security review (security-audit skill, guidance mode, data isolation and lifecycle): export scope, the WAL, import of an export holding the logins, a trigger restoring rows and a hostile schema each have a holder and a test (design.md's threat check). Not covered, documented: a secret pasted into a session stays in it; a VM without sqlite3 exports no opencode database; a remake's home copy keeps the database's logins, as it's the same VM's data going to the same folder's VM. Tests: TestOpencodeClean (a running opencode's database, its credential only in the WAL of an open connection, an account's tokens, a share's secret, a later table's key and a trigger: none in any byte of the copy, the session kept; a file that isn't a database gives none), TestHistoryExportRuns and TestHistoryImportCleansOpencode (GNU tar, with and without sqlite3); the CLI tests' export calls; e2e's network section plants a key with the VM's sqlite3 and finds neither it nor the login's placeholders in devvm history export's file. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
50e517938c |
fix(tools): opencode 2's model catalog, models.opencode.ai, on opencode's allowlist
opencode 2 reads its model catalog from models.opencode.ai (core/src/models-dev.ts's defaultSource) and no longer from models.dev, which it reads only from a custom source that lacks the v2 catalog. opencode.ai stays for Zen, the console, MCP's OAuth client and its schemas. e2e's network section checks both hosts are reached. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
36f910839e |
fix(desktop): browsers reach the web through a local proxy that adds the VM's password
Chrome, Chromium and Firefox ignore the password in HTTP(S)_PROXY, so in devvm desktop they asked for the proxy's username and password on every site. The guest setup now writes devvm-local-proxy, which socat (now in the desktop layer) serves on 127.0.77.1:3128, the VM's loopback alone. For each connection it reads the request's head, drops the client's Proxy-Authorization and Proxy-Connection, adds the VM's password and sends it to devvm's proxy, then socat carries the rest both ways. It takes only CONNECT HOST:PORT and absolute http(s):// requests, the latter with Connection: close, so each connection's one request carries the password. devvm-desktop starts it and points the Xfce session's http_proxy, https_proxy, HTTP_PROXY and HTTPS_PROXY at it; on Xfce, Chrome and Chromium read those, and Firefox reads them first with its default system proxy setting. A blocked host still gets the proxy's 403. - proxy.LocalProxyAddr, LocalProxyPort, IsLocalProxyAddr: the one owner of the address, sent to the guest as DEVVM_LOCAL_PROXY (vm.localProxy). - vmssh: the port forwarder never forwards a server on 127.0.77.1. - Tests: netpolicy's TestLocalProxy runs sync.sh's script (bash 3.2 on macOS) against a fake proxy: the password replaced, Connection: close, a tunnel, the 403 passed on, origin-form and junk refused with 400 before any connection; TestListeners, TestIsLocalProxyAddr, TestLocalProxy (vm), sync.txtar. e2e desktop (tests/e2e.sh, still the bash section): the session's variables, the listener on 127.0.77.1 alone, curl without a password to github.com, example.com's 403 over CONNECT and plain HTTP, 400 for origin form, nothing on this machine's 3128. - Docs: using/desktop.md (Browsers), internals/desktop.md (The local proxy), design.md's desktop note, ports.md, network.md's setup. Security review (security-audit skill, guidance mode, local IPC and proxy request handling): - Fixed by design: devvm forwards every VM port by default, so a local proxy on 127.0.0.1 would have put a password-less route to the VM's proxy, and its secrets, on the host's localhost for every local user. The forwarder now skips the local proxy's address on every port. - The password goes only to the VM's proxy, whose address is fixed in the script, never to an address a request names, in the one header the local proxy adds; devvm's proxy strips Proxy-Authorization before forwarding. It's never in a process's arguments (bash builtins only). - Web pages: requests from a page to the loopback are origin form, refused with 400 before any connection; a page can't send CONNECT or an absolute-form line, and DNS rebinding changes only Host. - No new power in the VM: the same password is in /etc/environment; the script is mode 700, the VM user's. - Residual: a program in the VM can hold up to 256 connections slowly (30 s a line, 100 headers), only against the VM's own browsing; an ssh -L the user types to 127.0.77.1:3128 would expose it, as any forward they choose. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
db90ab1b5b |
fix(tools): opencode 2 in VMs, with its Codex logins and its database
devvm's pinned mise (2026.10.7) resolves aqua's "latest" to GitHub's latest release, which opencode keeps on its 1.x line (v1.19.5) while it publishes 2.x beside it, so ls-remote lists 2.2.5 but lock picks 1.19.5. The shared tools' mise.toml holds opencode at "2", which locks the newest 2.x on every platform (linux-arm64/x64 and their musl entries, the same assets as 1.x). opencode 2 keeps its logins in its SQLite database and imports auth.json once, as it makes its credential table. devvm agent login opencode runs its Codex logins (opencode auth login openai --method chatgpt-browser or chatgpt-headless), which still post to auth.openai.com/oauth/token with Codex's client ID, so the capture and the host's refresh are unchanged; its Sign in with ChatGPT (/api/accounts/oauth/token, a client of its own and an id_token checked against OpenAI's keys) stays refused by the proxy's guard. An API key saved into a VM whose opencode has made its database is imported with opencode auth import (OpencodeKeyImport). Tests: TestOpencodeKeyImport, the login argv, agent_login.txtar's import and its failure, the guard on opencode 2's token-sharing path; e2e's network VM gets opencode and a device-code login against the fake endpoint. tests/e2e-mise.lock bumped (opencode 2.2.5, claude 2.1.318, pnpm 12.18.0). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2df3c6840c |
feat(agents): devvm agent login, an agent's login in the VM for every VM
devvm agent login codex|opencode logs the agent in from inside this
folder's VM, so this machine never needs Codex or opencode, and devvm's
agent store keeps the login for every VM with the agent. It sits under
devvm agent beside import and save: it fills the store, as they do, and
a bare devvm login would read as a verb on the VM itself.
- Browser login (the default): the agent's own login runs in the VM on
this terminal (codex -c cli_auth_credentials_store="file" login;
opencode auth login --provider openai --method "ChatGPT Pro/Plus
(browser)"), and devvm forwards this machine's localhost:1455, and
1457 (Codex's fallback) when free, on 127.0.0.1 and ::1, to the same
ports on the VM's loopback, only while the login runs: closed when it
ends, fails or is interrupted (AddCleanup), and an interrupt also ends
the agent's login in the VM (its pid kept in ~/.cache/devvm-login.pid),
so its server doesn't linger for the VM's port forwarder. Port 1455
taken on this machine: refused, naming --device-code.
- --device-code: codex login --device-auth, or opencode's headless
ChatGPT login; nothing forwarded.
- --api-key [--provider anthropic|openai|openrouter] [--stdin]: the key
is asked for on this machine (msg.Question answered by --stdin) and
saved in the store, never in the VM: Codex's auth.json becomes
{auth_mode: apikey, OPENAI_API_KEY}, opencode's gets the provider's
{type: api, key} beside the others; the running VM gets its copy with
a placeholder and its proxy the binding at once.
- The proxy's capture (agentlogin's capturers) saves ChatGPT logins;
devvm then confirms what the store saved, with the account's email,
and fails when the login saved nothing new.
- opencode 1.19.5 has no Anthropic OAuth in its core (no Anthropic
plugin among its built-ins), so there's no pasted-code capturer:
Anthropic is an API key. opencode's OpenAI login listens on 1455 only;
Codex 0.166 on 1455, falling back to 1457.
- vmssh: SSH.ForwardLoopback (LoopbackForward: listeners in devvm's own
process, each connection its own ssh -W to the VM's 127.0.0.1, no
master; ErrPortTaken).
- agentlogin: KeyProviders, File.SetKey, File.ChatGPT.
- secrets: Store.SaveKey, LoginSum, ChatGPT (loginsDir shared with
Capture).
- vm: AgentLogin (agentlogin.go), LoginAgents.
- cli: agentlogin.go (--device-code, --api-key, --provider, --stdin,
--here/--parent); usage errors before anything runs.
- assets/guest/sync.sh: cli_auth_credentials_store = "file" first in
the VM's ~/.codex/config.toml on every launch.
- Messages: agent_login_* and agent_key_*; codex_no_key,
codex_no_chatgpt, codex_refresh_failed and opencode_refresh_failed
point at devvm agent login.
- Tests: agent_login.txtar (usage errors, no VM, no agent, device code
argv, browser forward and its end, the agent failing, a login saved
while it runs, port taken, interrupt, API keys, the VM's copy failing,
no terminal, an empty key), unit tests for the forward, SetKey,
ChatGPT, SaveKey, the confirmation and the argv; coverage baselines
raised.
- e2e (network): the real Codex's login in the VM against the run's
fake token endpoint, its callback opened through the forward, the
store's tokens and key, placeholders in the VM, the forward gone; an
interrupted login takes its forward away.
- Docs: Logging in with devvm agent login (using/coding-agents.md),
the Commands page, the questions table, Contributing's e2e, the cli
skill's tree, AGENTS.md; the CLI reference.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
3a2c290d3d |
refactor(msg): messages and comments say network tier and the VM's proxy, not network policy
Every VM runs a proxy and is on one of four tiers, so the proxy's messages name the VM's proxy, the unenforced ones its network tier, and the redaction ones say devvm keeps secrets on this machine on every tier. Message IDs are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
fcbab78670 |
refactor(secrets): one path for secrets, placeholders on every tier
Every VM gets its CA, its proxy setup and placeholders, whatever its tier, so even an open VM never holds a real secret: a request that goes around its proxy carries only the placeholder. - vm/sync.go: the open branches of stage go (the agents' logins copied as they are, the ClaudeCopy for unconfined VMs and its MCP warning, real values in ~/.config/devvm/env); stageNet is stageSecrets, run for every VM, and the salt is every VM's. - netpolicy: Prepare readies the CAs, salt and secret files on every tier, and the proxy config carries the CAs and bindings on every tier; dropCA and its caller are gone, so a VM keeps its CAs as its tier changes. - Removed without a caller left: the messages secret_unuse_copied, net_on_old_tokens and claude_mcp_secrets_copied; secrets.Store.ClaudeCopy and MCPSecrets; agentlogin.MCPSecrets, claudeSecrets and argsHoldSecrets; settings.CompanyProxy.ConfigOnly. - Tests: TestPrepareOpen (open has CAs, salt, secrets; CAs kept across tiers), TestInterceptOpen (an open proxy puts secrets in, 421 for another host), TestStageSecretsEveryTier (every tier's setup sends the VM's CAs, the guard against a tier's own path); sync, ca, network and secret scripts for open VMs. - e2e: network checks that an open VM holds no real secret (its proxy puts the token in over TLS the VM verifies, a direct request carries only the placeholder and gets a 401); project checks an open VM's placeholder, and its company-CA checks allow for the VM's own CAs in /etc/ssl/devvm.pem. - Docs: safety/network (tiers, secrets), internals/network, the design note's tiers threat check, attack vectors, coding agents, first VM, staying safe, contributing; devvm secret's help. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
c0f4b8fb5c |
feat(netpolicy): network tiers in state, confinement and the proxy
A VM's network is one of four tiers, open, internet, allowlist and none, in its state's net section (netpolicy.Tier), in place of on/off. Every VM has its proxy. Confined tiers start on NetProxy; open starts on the backend's own network with its proxy set in the guest (Confinement.GuestProxy): on Lima no Seatbelt profile and no QEMU wrapper, the proxy at 192.168.5.2 on both hosts, propagateProxyEnv off. The proxy: Config.Open (every host and address, no floor, no policies), Config.DenyPolicies (files whose denies alone apply), the rule port :* (any port), and ** matching address literals (the floor still holds). Policies per tier (netpolicy.PolicySet): internet is network/internet.policy (**:*) plus your denies; none is the agents' built-in policies, the secrets' hosts and your denies; open none. Links: a client links only to a target on its tier or a stricter one, and a group's VMs are all on one tier. The self-check per tier: open asks its proxy through the guest's settings and warns (net_proxy_unreachable). devvm ls and devvm network show the tier. A backend without egress-proxy offers open alone (net_tier_backend). devvm network on/off and --network-policy/--no-network-policy map to allowlist/open. Design note, threat check and docs; e2e in the network and link sections. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
317bd8f978 |
feat(agents): devvm's agent store, filled by devvm agent import
Every VM gets its agents' settings and logins from devvm's own store, never from the agents' files in the home folder: settings in ~/.config/devvm/agents/<agent>/, logins in ~/.local/share/devvm/logins/<agent>/ (folders 700, files 600, each agent's logins folder kept out of Time Machine), each laid out as in a home folder. The store's settings folders are mounted read-only and linked into the VM's home; its files and logins are copied in, with network policy as placeholders the proxy fills from the store. devvm agent import [AGENT...] [--force] copies the home folder's agent settings and logins into the store once: only agentDirs, agentFiles and secrets.LoginRel's paths, never history; .claude.json reduced to its settings, account state and MCP servers; read through each agent's folder as an os.Root, so no link out of it is followed (a link to a file inside becomes a copy, any other is left out with a warning, and so is a login file that's a link); Claude Code's plugin records renamed to the store's folders. It asks before replacing what the store has (refused without a terminal, naming --force), replaces in place, keeping the mounted folders, and prunes what the home folder no longer has. - paths: Dirs.AgentSettings, Dirs.AgentLogins - secrets: LoginRel, LoginFile(Dirs, kind), SaveLogin, HasLogin, Store.ExcludeFromBackup; Logins, VMLogin, ClaudeCopy, MCPSecrets and the proxy's Get read the store - vm: agentStore, agentMounts/homeSkips/Inventory.Mounts take Dirs, syncer.stageAgents, AgentImport; the guest's links file holds each folder's home path and its mount's (host_home is gone) - structure: callers takes methods (pkg.Type.Name); Dirs.AgentSettings only in vm/agents.go, Dirs.AgentLogins only in secrets/secrets.go - messages: agent_import_none, agent_import_nothing, agent_import_replace, nothing_imported, agent_settings_imported, agent_login_imported, agent_import_link_left_out, agent_login_read_failed, agent_import_failed; the login refresh messages point at devvm agent import - tests: agentimport_test.go, testdata/script/agent.txtar, sync and network scripts through the store, e2e project and network sections - docs: coding agents (devvm's agent store, importing from this machine), README, getting started, safety, internals, contributing Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
0b82dc189f |
feat(vm): a moved folder's Claude Code history follows it
A folder move records the path the agents' state is under in the VM's state (the moved section, set in recordMove under the VM's lock: the first move's old path, kept through more moves, cleared by a move back). The VM's next setup gets a moved file with both paths and their Claude Code slugs (claudeMoved, claudeSlug), and guest/claude.sh's claude_project_moved renames ~/.claude/projects/<old slug> to the new one, or merges into it without replacing anything, and moves ~/.claude.json's projects entry (claude_json_project_move, kept on its own for reuse). Once the setup succeeds, followed clears the section. The slug is Claude Code's own rule (2.1.318's sanitizePath): every UTF-16 unit but an ASCII letter or digit a dash; over 200, cut and ended with "-" and abs(h*31+u, int32) in base 36. Tests: TestClaudeSlug, TestClaudeMoved, TestClaudeProjectMoved, TestMovedTo, TestFollowed, TestMoveHere's record and its clearing, move.txtar, e2e project's moved checks. Docs: commands.md's moved folder (Claude Code, Codex, opencode), internals overview. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
f4388d79ae |
fix(tools): each shared tool image builds in a VM of its own
A tools build ran every tool of a batch in one VM with a shared work folder and output folder, and a tool image's key hashes only its own tool's inputs, so one tool's installer (as root, through sudo) could write into another tool's image: through the work folder, a process left running until the next tool's mkfs.erofs, or by replacing mise or mkfs.erofs. A fresh folder per tool and killing its processes wouldn't stop root, so Share.Build now builds each tool in a throwaway VM and an output folder of its own (buildOne, moveIn), one after another, and only that tool's image and its .glibc are read from that folder. shared-tools/build.sh takes exactly one TOOL VERSION FILE. Measured on Fedora 43 (bare-metal x86_64, Lima with QEMU and KVM), node, pnpm and bun: about 16 s in one VM, about 34 s in three (two runs each, the same), so about 9 s for each extra tool, once per tool version. Tests: TestBuildOneVMEach (node's build writes every tool's file in its folder; each image holds its own tool's), TestBuild's one call per tool, TestUpTools' calls, tools.txtar's VM per tool. Docs: internals/images.md (building tools), internals/design.md's shared tools (a VM for each tool, the cost). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
9cde4abf2e |
fix(build): refuse a recorded base package older than a newer pocket lists
The host checked that each package a first build of base recorded is the archive's, but root in the recording build VM chose which signed lists to hand back: it could return only the release pocket's and record an older version than -updates or -security have. Now: - a recording must hand back resolute-updates' and resolute-security's signed InRelease files with lists for the architectures whose lists have the recorded packages (another archive's InRelease, such as archive.ubuntu.com's on arm64, doesn't count), and every non-empty list each InRelease it hands back gives for those architectures, in every component (packages_lists_missing); - a recorded package that the release pocket, -updates or -security lists a newer version of, for its architecture, is refused, naming the package, both versions and the suite (packages_not_newest); -backports doesn't count, as apt installs from it only when asked; - a list's SHA-256 is checked against the verified InRelease files before it's read, so only signed lists are parsed; - apt.sh's recording takes phased updates (APT::Get::Always-Include-Phased-Updates), so apt installs the newest version the lists have. - internal/ubuntu: CompareVersions, dpkg --compare-versions in Go (epoch, upstream, revision, ~ and letters' order; ErrVersion for one that isn't a version); Release.Lists gives the matching lists with their paths, ListsFor, List.Arch, Backports, RequiredSuites. - internal/build: signedEntries returns a signed (entries, each package's architectures, the newest version by architecture and name and its suite); verified, complete, checkNewest, newer; readArchiveList returns an archiveList. - Messages: packages_lists_missing, packages_not_newest. - Tests: CompareVersions' table (Debian policy's ordering and dpkg's cases, invalid versions); ListsFor and Backports on Ubuntu's real InRelease; a recording refused for an older version than -updates has, for a missing -updates or -security InRelease, a missing list, another archive's -security, a missing backports list; kept for the newer version, a newer one in backports, an older one in -security; checkNewest's table. The gpg-made fixtures are signed again by a new test key, with Packages-newer, Packages-security and InRelease-newer, -security, -security-amd64 and -backports added. - Docs: images.md's Base's packages, design.md's trust note (the pocket choice closed; what root in the recording VM still chooses). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
9348a1e518 |
refactor(assets): one prelude for the build scripts' architecture, libc and pins
assets/prelude.sh gives each of devvm's scripts that a build runs with
bash $devvm_arch (arm64 or amd64), $devvm_libc (musl where apk is, else
gnu) and devvm_sha TOOL (the script's TOOL_sha256_<arch>_musl on musl
where it pins one, else TOOL_sha256_<arch>). It replaces the arch and sha
helpers in layers/base.sh, layers/nix.sh, features/cli-tools.sh,
shared-tools/build.sh and oci/build.sh, and the Alpine checks in
docker.sh, desktop.sh and fzf.sh. Each script that reads it checks it
came first (: "${devvm_arch:?}").
image.OwnScript reads devvm's own scripts with the prelude before them:
base.sh, apt.sh, built-in layers (LayerData) and features (featureStep),
shared-tools/build.sh (the tools build and ToolFile's key) and the
conversion's oci/build.sh (Lima's convertSteps, written into the
conversion's own temp folder). Users' layers and features get none.
keyHash.own goes, its one caller now hashing OwnScript's bytes.
Image keys change: every image and every shared tool image rebuilds.
Tests: testdata/script/prelude.txtar pins which pin devvm_sha picks from
each script on arm64 (aarch64 and arm64) and amd64, gnu and musl, and
refuses another architecture and a missing pin; oci.txtar sources the
prelude first and checks build.sh stops without it; TestOwnScript,
TestPreludeUsers (only scripts that get the prelude use it, each checks
its variables), key rows for the prelude in build and tool keys, and
recipe expectations with the prelude before devvm's scripts only.
e2e's nix copy as a user layer starts with the prelude.
Docs: internals/images.md (the scripts' prelude, keys), contributing
(owner, agreement test), maintaining, assets/oci/README.md, AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
97672c4267 |
refactor(backend): base's size as Go constants, base's disk in Lima's origin
Base's size was read from assets/base.yaml four ways: vm.BaseDisk's
line scanner (a new VM's smallest disk), SizeChoice.Fitted's same scanner
for CPUs and memory (devvm size -g and setup's question), Lima's
buildSize regexes (base's build size), and limactl create reading disk:
from the template on its input. Now backend.BaseCPUs, BaseMemoryGiB and
BaseDiskGiB are the one source:
- vm checks new VMs' disks against backend.BaseDiskGiB, and Fitted fits
BaseCPUs and BaseMemoryGiB; SizeChoice has no Assets any more.
- Lima's buildSize uses the constants; its Origin carries base's disk as
a step of its own ("disk", its GiB), which originOf requires and
createArgs passes as --disk=, so base's key still hashes it, and the
--from conversion's VM gets it too.
- base.yaml sets no cpus, memory or disk, and is hashed only into Lima's
key as Lima's settings.
Tests: TestBuildImageBaseSize (pinned on the old code: base created with
4 CPUs, 8 GiB and a 100 GiB disk, now all flags and none in base.yaml),
TestBaseSize, TestOriginOfRefuses' no disk and bad disk; the limactl stub
reads create's --disk=. Docs: internals/images.md, internals/lima.md,
contributing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
1f2e4a0edc |
feat(tools): refuse a shared tool that needs a newer glibc than its --from base
Each shared tool is its project's prebuilt release, built against a glibc it needs at least, so a --from gnu base older than that ran the tool into a loader error. Now devvm measures both sides and refuses the tool clearly. - A tool image's build measures the newest GLIBC_ version its ELF programs and libraries need (shared-tools/build.sh's glibc_needs: readelf's version needs, testdata folders left out), writes it to FILE.glibc, and devvm keeps it in the image's record (glibc), taken only as a plain file holding one version (tool_bad_output). - A --from conversion records the image's glibc version (getconf GNU_LIBC_VERSION in a chroot; oci/build.sh's glibc output, checked by checkConverted), in base's record and every image's on it (backend.Built.Glibc, state.Image.Glibc). Ubuntu's own base has none and isn't checked; musl needs none. - tools.Target carries the base's glibc (not hashed: a gnu tool image is the same on every base); a VM's state records it (tools.made.glibc); Launch.buildTools checks every tool with tools.Share.Runs after building, for new VMs and devvm tools add/update and devvm update: tool_needs_glibc names the tool, its version and both glibc versions. - image.ValidGlibc and image.GlibcOlder own the version's shape and order. build.Env.ToolTarget reads base's record once (BaseLibc gone). - Measured minimums, current releases (arm64 / amd64): node 2.28/2.28, pnpm 2.18/2.18, bun 2.17/2.17, python 2.17/2.17, uv 2.28/2.17, rust 2.17/2.17, go none (its 2.34 came from Go's own testdata), claude 2.17/2.17, opencode 2.17/2.17, codex 2.28/2.28 (its voice helper). - Tests: TestGlibc, TestBuildGlibc, TestBuildGlibcRefused, TestRuns, TestGlibcNeeds (build.sh's function against debug/elf, where readelf is), TestToolTargetGlibc, checkConverted's glibc cases; from.txtar: an old base refuses node at launch and at devvm tools add, keeps go, and records 2.24; e2e: the Debian base's record and VM state hold the VM's real glibc, no tool image needs a newer one, and Ubuntu's tool images record a glibc; the stubs write FILE.glibc and glibc. - Docs: using/from.md (Shared tools and glibc), using/toolchains.md (Which bases they run on), internals/images.md, assets/oci/README.md. Every tool image's key changes once (build.sh), so each is built again. Co-Authored-By: Claude Opus 5.5 <[email protected]> |