mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
main
687
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bc185ec80e |
fix(release): every file release.sh writes is 0755 or 0644, whatever the umask
minisign writes its signatures with the process umask, so on a host whose umask is 0002, as Ubuntu's is, dist/SHA256SUMS.minisig came out 0664, and --ci-sign's SHA256SUMS.ci.minisig, --sign-legacy's signature, --formula-from's formulas and --ci's folder for the co-signer were group-writable too. release.sh now sets umask 022 once at its top, for the host and the container alike, in place of the two copies in build and modules. release_head.txtar's modes check builds under umask 0002, checks the signature is 0644, and labels the catch-all lines so a stray mode can't pass as an expected one; release_ci.txtar's --ci-sign runs under umask 0002 and checks its signature is 0644. Both failed before the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2cc9d8c862 |
fix(bump): e2e-tools waits for a release that isn't published everywhere yet
When a shared tool's newest version, newer than tests/e2e-mise.lock's, has no download for a platform yet (mise lock stopping on a 404, as for Node 24.23.0's linux-arm64-musl build, a lock entry without a checksummed download, or a dotnet SDK without its archive), e2e-tools names the tool, version and platform. --check reports it as waiting for upstream and goes on, so the weekly Pins workflow passes; applying prints mise's output, stops, to try again later, and writes no lock. After a 404 wait, --check holds that tool back in its copy of mise.toml (at the e2e lock's version, or left out when the lock has none) and runs mise lock again, so the other tools are still reported and their failures still stop the run. A tool is held back once at most: its 404 again fails the run, so the loop ends. The Pins workflow's issue lists the waiting lines in their own Waiting for upstream section and stays open while any is there, and maintaining.md says to look at a wait that lasts two weeks, and to bump the other pins by name meanwhile, since a plain run stops at e2e-tools. Real failures still stop the run: a 404 or missing download for a version the lock already has, a checksum mismatch, any other mise lock error, an unfetchable releases.json, and a dotnet entry its downloads can't go into. A 404 counts as unpublished only when it's mise's only ERROR line, apart from its Version: and Run with --verbose trailer, and never a WARN, so a checksum mismatch beside a 404 fails. dotnet's downloads go only after the specifiers line of dotnet's own entry, which ends at the next [ header, and only dotnet_downloads' own wait (dotnet_waited) skips dotnet's checksum check. It waits rather than stepping back as devvm does for users: a step back in bash would copy internal/tools' stepBack, and the next run retries. New in scripts/bump.sh: newer, not_yet, unpublished, hold_back, the waiting and dotnet_waited flags. bump.txtar covers the musl 404 with the rest still reported (the tool left out, and held at the lock's version), a held tool's 404 again, the lock-version 404, a checksum mismatch alone, beside a 404 ERROR and beside a WARN-level .sig 404, a WARN-level 404 alone, a 404 whose URL holds two tools' versions, mise's output on the apply path, dotnet waiting (reported once, for its own platform) and its control, an unfetchable releases.json against the older lock, a tool missing checksums reported once with the rest still reported, a dotnet entry missing a checksum while another tool waits, and a dotnet entry without specifiers before another tool's. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b5c58d82b8 |
fix(tools): a platform's missing download (a 404) steps the tool back, not failing the resolve
mise 2026.11 (devvm's host mise since 0.2.0-rc.1) downloads some files as it locks them and fails the whole `mise lock`, writing nothing, when one is a 404. So while Node 24.23.0 had no musl builds on unofficial-builds, Versions.Resolve returned tools_resolve_failed: a first run stopped, and the daily check and devvm tools update kept their versions. The step back only handled a lock that succeeded with an entry lacking a download. - lockAll: after a full lock whose own log shows a 404, lock each tool on its own, and a tool that still fails one platform at a time, so its entry lacks only the missing platform and stepBack steps it back. Any other failure in the fallback is resolveFailed's. - lockTool: one lock, its log started again, missing only on its own 404. - olderWithDownload/lockVersions: when the step back's lock of its older versions 404s, lock them one at a time. - logSays: shared by resolveFailed. - Stub mise: MISE_STUB_FAIL=404 and MISE_STUB_OFFLINE_TOOL; per-tool, per-platform merging checked against real mise 2026.11.14. - Tests: TestRefreshStepsBackPastA404, TestMise404. Checked against real mise 2026.11.14: node steps back to 24.22.3, the other 12 tools at their newest. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
0c6ee50ff5 |
fix(bump): GitHub's API calls send the workflow's token
The Pins workflow's run on 30 November failed right after nix with "curl: (22) The requested URL returned error: 403". The next call was direnv's gh_latest, an unauthenticated curl to api.github.com: GitHub allows 60 of those an hour from one address, which a hosted runner shares with other jobs, and answers 403 once they're spent. The workflow already set GH_TOKEN and GITHUB_TOKEN for gh, but curl never sent them. gh_api now makes every GitHub API call (gh_latest, gh_head and Lima's release), with GH_TOKEN or else GITHUB_TOKEN when one is set, written to a header file in the run's temp folder (mode 600) and passed as -H @FILE, so it's on no command line and goes to api.github.com alone. A failed fetch now names its URL, which the failed run's log didn't. bump.txtar's curl stub records the header files it reads, and the test checks that GitHub's API gets GITHUB_TOKEN, and GH_TOKEN when both are set, that for each no other URL and no argument gets it, that no call has a header without one, and that a failed fetch names its URL. It fails on the old script. Contributing's Updating pinned versions and the Pins workflow's comment say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
a56552dd4f |
docs(release): the release process through CI and the co-signer, and the bridge's end
- maintaining.md's Releasing: the maintainer's part is git tag -s and scripts/publish.sh, then approving the Release workflow's run and, while the bridge lasts, publish.sh --sign-legacy, with what the default mode and --sign-legacy check and ask; Publishing from this machine, --local, which stays until GitHub is set up and the first release through CI is out, and goes when the bridge ends at the latest; The release script, its own heading, with --check-tag; the prerelease and tap rules as the co-signer and --local follow them; the scripts' tests. - The bridge from the old release key, a heading of its own: each release through CI carries the old key's signature, which the co-signer waits for; it ends with a release after at least two releases through CI and a few weeks of 0.1 and 0.2's daily check, which takes out legacy.go's fallback, check_legacy and minisign_key, still carries SHA256SUMS.minisig itself, and has a What to do step for 0.1 and 0.2 users (devvm upgrade --to it, or the install script); then legacy_key, --sign-legacy, --local and release.sh's old-key signing go. - cosigner.md: releases go through it once GitHub is set up, and the bridge's signature comes from publish.sh --sign-legacy; only a run a tag's push started counts, init's latest older than a release it published is an alert, and a release older than one it published isn't made GitHub's latest. - Approve only a run for the tag you just pushed, as approving gives CI's key to that tag's code (maintaining.md's Releasing). - structure.md's scripts row. - The 0.2.0 release page: Releases through CI and the co-signer, and the co-signer's section's build failures and latest check; the changelog's internal line. Users act on nothing until the bridge ends, so no What to do line. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
7874354a15 |
docs(release): the GitHub setup that releases through CI and the co-signer need
contributing/github-setup.md, the maintainer's checklist, in order, each step with its clicks and, where GitHub's API does the same, the gh api command to read, check against GitHub's docs and run, never run for them: 1. the three release keys, each where its holder keeps it, and the CI key deleted once it's the environment's secret; 2. the GitHub App: Contents read and write, Actions read, no webhook, installed on devvm and homebrew-tap alone, its key on the co-signer, and the commands that list what it can reach; 3. the co-signer's machine, by cosigner.md, init once the rest is done; 4. the release environment: you as the required reviewer, admins' bypass off, v* tags alone, RELEASE_CI_KEY and RELEASE_TAG_SIGNERS; 5. the v* tag ruleset: creations, updates and deletions restricted, the repository admin role the one bypass, as rulesets take no single user, with the command that lists who's an admin; 6. immutable releases; 7. the tap's ruleset, with the app the one bypass; 8. the notify command, an ntfy script over HTTPS, and what GitHub emails; 9. the first release through CI, a release candidate, after which --local isn't needed. maintaining.md's CI section and cosigner.md's GitHub App link it. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
5b2786c758 |
ci(release): CI's release workflow, which builds, signs and hands each tag over
.github/workflows/release.yml, CI's half of each release, for a pushed v* tag, in the release environment, which waits for the maintainer's approval and holds what the workflow trusts: RELEASE_TAG_SIGNERS, the SSH keys that sign release tags, and RELEASE_CI_KEY, CI's release key. The job's token has contents: read, and id-token and attestations write for the attestation alone, so it can't make or publish a release; the co-signer does. - scripts/release.sh --ci TAG DIR: the tag checked against DEVVM_RELEASE_SIGNERS, an allowed signers file, never the tagged commit's packaging/release-signer, as CI runs the tag's workflow and release.sh: annotated, a release's version, its tag object naming itself, signed by one of those keys, its commit on main (DEVVM_RELEASE_MAIN, refs/remotes/origin/main by default) and holding the three release keys. Then --tag's build, with the same signers as git's, and DIR with SHA256SUMS and exactly the files it lists, each checked against its SHA-256, and not the formulas, which the co-signer renders. - scripts/release.sh --ci-sign TAG DIR: SHA256SUMS signed with CI's key, read on standard input into the script's memory and handed to minisign through a pipe, never a file or an argument, with the trusted comment devvm-release <version>, checked with the tag's packaging/keys/release-ci.pub, which can't be marked PLACEHOLDER: a key on standard input that isn't CI's is refused, and its signature removed. The placeholders' check is placeholder(), one owner for --tag's check and this one. --ci and --ci-sign refuse a tag without the release keys, pointing at github-setup.md's step 1. - The workflow: a first step that stops a tag without the release keys before anything is installed, with the same pointer, then the tag fetched as GitHub has it, minisign alone through mise with no cache, the build under the runner's podman, the signature, an artifact attestation of every file SHA256SUMS lists (subject-checksums), and the artifact release, kept 90 days. Every action pinned by its commit; actionlint and zizmor (and zizmor's auditor persona) find nothing. - The base's workflow, base.yml, comes with the published base; the workflow's header says where it goes. - maintaining.md: CI's release workflow, its steps and its trust. Tests: testdata/script/release_ci.txtar (signers only from DEVVM_RELEASE_SIGNERS, an empty one, a tag signed by a key git trusts but the list doesn't hold, not a release's tag, a lightweight tag, a tag object of another tag, a commit off main, a folder that's there or relative, the folder's exact files and their checksums, no key on stdin, another role's key, the right key's signature and its trusted comment, a second signature, a release-ci.pub marked PLACEHOLDER, a commit with no release keys for --ci and --ci-sign), failing before the code. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
e85e85d075 |
build(cosign): the units, install.sh and the co-signer's docs
- [email protected], a template: devvm-cosign@run for the timer, and @check and @init for setting up. The keys are root's, mode 0600, and reach the service only as systemd's credentials (LoadCredential=), in a folder of its own while it runs; the base's key comes from a drop-in, devvm-cosign-base.conf, which install.sh installs once there is one, as a credential that isn't there fails the service. Its processes are in a PID namespace of their own (PrivatePIDs=), and any failure starts devvm-cosign-failed.service (OnFailure=). - devvm-cosign-podman.service, where a process that escapes a build's container lands: a PID namespace of its own, so no other process's /proc/<pid>/root; the config, the keys, every service's credentials and the whole state folder inaccessible; its HOME, with podman's config and storage, and its only writable folder, the build folder, /var/lib/devvm-cosign-build; StopWhenUnneeded=, so it runs only while a run needs it; each start deletes the whole build folder, podman's config first, then its images and containers (podman system reset), then the rest, so nothing a build left, a link or a config pointing podman at another runtime, reaches the next; and OnFailure=, as a run whose podman fails to start doesn't fail itself. - devvm-cosign-failed.service runs devvm-cosign failed, which tells the maintainer through the config's notify command, reading no key. - devvm-cosign.timer starts devvm-cosign@run hourly. - install.sh: 65536 subordinate IDs from the first multiple of 65536 above every range another user has in /etc/subuid or /etc/subgid, so no two users' containers share an ID; the state folder and the build folder, with the folders the units need; the config readable by the co-signer's group, for retry and ack; the old devvm-cosign.service removed. - Docs: contributing/cosigner.md for the new flow: what CI hands over, what a run does (the old step 8 split into the draft, the publish and the check after), refusals and alerts, retry, ack and notify through OnFailure (HTTPS, not a local sendmail, under NoNewPrivileges), the base's snapshot bound and why, its files, the config's new keys and the credentials' names and modes, the setup with the Go the tag's mise.lock pins (mise exec), the units, what a build's container can reach and what's still shared (the user and the machine: an escape can slow or change the build it's in, which then doesn't match, and use the network while that run lasts; a kernel escape gets past it all), the GitHub App's Actions: read and the tap ruleset's bypass, that the units name the folders, and moving machines by copying /var/lib/devvm-cosign but stage/, src/ and cache/. maintaining.md's Release keys say who publishes, as it is; structure.md's package row; the 0.2.0 page and the changelog line. Validated on Fedora 43 (SELinux enforcing, podman 5.6, systemd 258), in a throwaway Lima VM: install.sh, then check, init and a run under these units with rootless podman, against the fake GitHub over TLS with a throwaway v9.9.9 and throwaway keys. CI's build was release.sh --tag under rootless podman, handed over as an artifact; the co-signer cloned its root-owned checkout, rebuilt, matched, signed, made the release, published it and wrote both formulas, the same bytes as CI's build's. Both signatures verified with minisign, every file with SHA256SUMS, the podman unit stopped after the run, and a second run did nothing. During the build, from the podman service's namespaces as the co-signer's user: only the build's own processes were there, so release.sh's and the run's /proc/<pid>/root weren't; the state folder, the clone release.sh ran from and CI's staged files were refused; and only the build folder was writable; only SHA256SUMS and CI's signature were staged; and the build's finished files and the download cache were in the state folder. A second start of the podman service reset the last build's images and containers and left an empty build folder. A run failed with GitHub gone started devvm-cosign-failed, whose notify got the recorded failure, and a podman start that failed started it too. The first runs found three things the fake can't, fixed in the earlier commits: podman needs ~/.config, which install.sh now makes; system credentials are mode 0440 with an ACL; and the clone needs the checkout's .git named safe. The podman service's first ExecStartPre deletes the co-signer's user's /dev/shm/libpod* files, podman's locks, which outlive the service and no folder it empties holds (TestPodmanUnitStartsClean). cosigner.md also covers a build that keeps failing and GitHub's latest release. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
1bd598c791 |
feat(cosign): ReleaseBuild, the co-signer's own build of a tag
ReleaseBuild rebuilds a release with the co-signer's own devvm: a new clone of its checkout at its pinned commit (checked clean), the tag and main fetched into it, the tag's SSH signature checked against the pinned signers (VerifyTag), the tag naming itself and its commit on main, then the clone's release.sh --tag with those signers as git's allowedSignersFile, so release.sh checks the tag again. Nothing of the tag's runs on the host. - The clone, its git config and allowed signers and release.sh's log go in Src, the state folder's src/, which no build's container can reach, as release.sh and git run from it on the host; only release.sh's TMPDIR, where its containers work, goes in Work, the build folder. A container that could write the clone could otherwise edit release.sh as bash reads it, or set gpg.ssh.program or a filter in its .git/config for git to run on the host. release.sh's download cache, which only it reads, on the host, goes in the state folder too, so nothing that escaped a container can plant a link for its next download. - Build returns Built: the checked tag, its tag object's ID, and the tag commit's Homebrew formula template (packaging/homebrew/devvm.rb) and CHANGELOG.md, read with git before release.sh runs, so no build's container can change them. The co-signer renders the tap's formulas and the release's notes from them and the signed SHA256SUMS. - The checkout is root's, so git reads it as the co-signer's user only with it named safe on its own command line: its worktree for git status, and its .git for a clone, whose upload-pack checks that path. A full run on Fedora under the units found the clone refused with the worktree alone; TestCheckoutNamedSafe holds both. - git runs with no system or global config, no hooks or fsmonitor, no replace objects, files and HTTPS alone, an environment of its own and its output capped. - The structure test's commandsFree is now keyed by the command, then the file, so build.go may run git and no other guarded command; its execSites and statusFree entries, and the owners table, say why. Tests: TestReleaseBuild (the template and changelog read, then a stub release.sh that deletes the clone's .git, as a build could, and says where it ran: its script in Src and its TMPDIR in Work, which fails with the clone in Work, reverted once to see it; the tag object), the existing refusals (an unpinned signer, off main, a dirty or moved checkout, a lightweight tag, a tag naming another, release.sh failing), TestCheckoutNamedSafe, and TestRulesFail's "another command in a file commandsFree lists for git", which fails with commandsFree keyed by file alone (reverted once to see it). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
5ad326e13c |
feat(cosign): the co-signer's parsers of outside input, and their fuzz targets
The first of devvm-cosign's code, the parts that read what CI and GitHub
send, so they can be reviewed apart:
- sshsig.go: git's SSH tag signatures (OpenSSH's SSHSIG over the tag
object's payload, namespace git, Ed25519 alone), checked against the
tag signers the co-signer's own config pins (VerifyTag, ParseSigner,
AllowedSigners); the payload split at the last armor header, as git's
parse_signed_buffer does, and a tag naming itself and a commit.
- manifest.go: SHA256SUMS (ParseSums), base-index.json (ParseIndex),
each with its files and the trusted comment's subject, and release
versions as release.sh orders them.
- A base's index is refused when its Ubuntu snapshot is more than
maxAge old (the config's max_snapshot_days, 60 by default) or ahead
of now, whether or not it's rebuilt: the co-signer re-signs an
unchanged base with a new serial and expiry, so the expiry alone
can't keep users off an old base, and a stolen CI base key could
otherwise keep them on one snapshot for as long as it signs.
- The expiry is the last day the index is taken, in UTC, as the
field's comment says: refused from the start of the next day.
- Neither manifest may list a manifest's or a signature's name
(SHA256SUMS, base-index.json, *.minisig), so a listed file can never
stand in for the co-signer's signature.
- indexSubject reads an index's subject whatever its times, so a base
the co-signer signed counts in checkBehind however long ago it
expired.
- Fuzz targets: FuzzVerifyTag, FuzzParseSums, FuzzParseIndex.
- Guards: depguard's cosign rule (the standard library, BurntSushi/toml
and internal/minisign alone); the layers "only cmd/devvm-cosign runs
the co-signer" and "the co-signer imports only internal/minisign";
signatureFree's internal/cosign/sshsig.go, another project's format,
and the owners table regenerated.
Tests: TestParseIndex (a 60-day snapshot taken, 61 days, ahead, bad or
none refused; expiring today taken, yesterday refused), TestIndexSubject,
and the existing parsers' tables. Each fix was reverted once to see its
test fail: the snapshot bound (TestParseIndex, TestBaseIndexChecked) and
the expiry's day (TestParseIndex).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
f3052e5a8e |
feat(upgrade): releases checked by two of three release keys, bridged from the old key
devvm upgrade and install.sh accept a release's SHA256SUMS when any two
of three release keys signed it (CI's, the co-signer's and an offline
recovery key's), each in SHA256SUMS.<role>.minisig, checked only against
its own role's key, with the trusted comment devvm-release <version>
compared exactly; one signer counts once. While releases bridge from it,
the old release key's single SHA256SUMS.minisig (devvm <version>) still
passes alone, so 0.1 and 0.2 keep upgrading and --to/--version can
install them; install.sh now checks that key's trusted comment too.
The keys themselves aren't made yet, so packaging/keys holds none and
install.sh's three key lines are empty: a devvm built so checks each
release with the old release key alone, and a release that only the
release keys signed is refused. Releases go out as before, signed with
the old key, until the keys are made and added, all three at once.
- internal/minisign: the one owner of signature checks (moved from
internal/upgrade): ParsePublicKey, PublicKey.Check (comment always
compared), Role (CI, Cosign, Recovery), Kind (Release, Base),
Kind.Comment, SigName, KeyFile, Keys/NewKeys/Keys.Check (two of three,
distinct keys and key IDs). minisigntest/ signs for tests. Stdlib and
blake2b only (depguard), a leaf; FuzzCheck, FuzzKeysCheck,
FuzzParsePublicKey.
- The structure test's signatures rule: outside internal/minisign no
code calls ed25519/rsa/ecdsa's Verify functions or imports blake2b,
but signatureFree's files (ubuntu/pgp.go, proxy/nixcache.go).
- internal/upgrade: Source.Keys, checkSums (signatures.go); the bridge
in legacy.go (checkLegacy, legacyKey, Source.Key); FuzzSumOf.
- packaging/keys/release-{ci,cosign,recovery}.pub, none yet;
packaging.Key ("" without one). TestReleaseKeys (checkReleaseKeys:
none, or three distinct minisign keys, none the old key),
TestCheckReleaseKeys (fixture keys from minisigntest),
TestInstallScriptKeys (checkInstallScriptKeys: one line per role,
empty without keys), TestReleaseRefusesPlaceholders (no key in keys/
marked PLACEHOLDER).
- scripts/release.sh (a tag, --check, --tag; never a snapshot) needs
none or all three of packaging/keys' release keys. With none,
install.sh's release_<role>_key lines are empty or missing; with all
three, each is a minisign key, distinct, not the old release key, not
marked PLACEHOLDER (placeholder), and equal to its install.sh line.
- install.sh checks with minisign -VHQm: prehashed signatures only.
- The structure guard also flags dot imports of the verifier packages
and calls of x509's CheckSignature* method names.
- install.sh: release_<role>_key lines, download_signatures (a role's
signature only when the script has its key), check_signature,
signed_by_two, check_legacy; plainer warning without minisign, with
the commands to check by hand.
- Tests: signatures_test.go (TestFetchWithoutReleaseKeys among them),
upgrade.txtar (-legacy, -keys, and the keys built in, none),
install.txtar (stub minisign with -Q; NO_KEYS), install_minisign.txtar
(real minisign), release.txtar (none, nolines, nokeyline, old, marked
and the rest); DEVVM_RELEASE_KEYS override.
- Docs: internals/install.md, using/upgrading.md, maintaining.md's
Release keys, structure, tests, testing, SECURITY.md, CHANGELOG,
releases/0.2.0.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
d001f7be0f |
build(release): every release builds to the same bytes on any machine
The signing design's first phase. The same tag, built by two builders, now gives byte-identical archives, source tarball, install.sh, SHA256SUMS and formulas. - scripts/release.sh builds every file but the signature in one container, release_image (Debian's buildpack-deps:trixie-scm, pinned by its index's digest), under podman or Docker (DEVVM_RELEASE_RUNTIME), on this machine's processor. The image and the code that runs in the build's container (_build) are the built commit's copies, so a tag builds the same from any checkout; a commit whose release.sh pins no release_image is refused. Everything outside the build's container is the checkout's: the tag's checks, the downloads, the modules' container, the checks on what the build wrote, and the signature. - The build has no network (--network none). The Go modules come first, in a container of their own, the only one with the network, which runs only the checkout's code: its release_image, its release.sh _modules and the Go its mise.lock pins, given only the commit's go.mod and go.sum, read-only, and downloading from proxy.golang.org alone (GOVCS=*:off, GOWORK=off). The checkout's Go rather than the commit's, so a commit can't pick an old Go with a known flaw for the step with the network, and rather than refusing a commit whose Go is older than the checkout's, which would refuse every old tag once mise.lock moves on, though rebuilding old tags is what --tag is for; go.sum pins the module files, so the bytes don't depend on which Go downloaded them. A commit whose go.mod needs a newer Go than the checkout's is refused before anything runs. Every module path the commit's go.mod names is looked up on Google's proxy and checksum database, which the docs say. The build reads the modules read-only as a GOPROXY's files (file:///mod). - Every container runs with --cap-drop ALL, --security-opt no-new-privileges, --pids-limit 8192, --memory 8g and --entrypoint bash, so a setuid file in the commit's image gives no privileges under a rootful runtime, root in it can't chown, a fork bomb or a runaway allocation stops at the container's limits, and the image's entrypoint never runs; Go and GoReleaser are unpacked with tar --no-same-owner. Both runtimes take both limits; rootless podman applies them on cgroups v2 with the pids and memory controllers delegated, as systemd does, and CI's runner needs the same. A full build peaked at 330 processes and 1.8 GiB under Docker Desktop on 10 CPUs. Neither runtime can bound a bind mount's disk use, so the docs say that a running build can fill the temp folder's disk until the time limit. - Each container is named for its run (devvm-release-<the temp folder's suffix>-<n>), so no other run's container, even one left over, has the name, and it's removed (rm -f, then its client ended, then rm -f again): after two hours (DEVVM_RELEASE_TIMEOUT seconds) by a watchdog, and as soon as release.sh stops early. The client runs in the background, so Ctrl+C (INT), a closed terminal (HUP) and kill (TERM) run release.sh's traps at once, which exit through the EXIT trap that removes the container; in the foreground, bash would wait for the client, and the client for the container's PID 1, bash, which ignores them. After kill -9, the watchdog, which outlives release.sh and ignores INT and HUP, removes the container and the temp folder. - Go and GoReleaser are the built commit's mise.lock downloads for linux-arm64 or linux-x64, kept in ~/.cache/devvm-release by SHA-256 and checked before each use, as is the modules' Go from the checkout's mise.lock. A URL has to start with https://dl.google.com/go/ or GoReleaser's releases/download/, can't hold .. or %, which curl decodes (so %2e%2e can't be ..), and goes to curl as --url's value (a lock URL of -K<file> was curl options, run on the host); file:// only from the folder that DEVVM_RELEASE_TEST_FILE_URLS names, which only the tests set, and only when it exists and isn't /. curl: HTTPS redirects only, 30 s to connect, 15 minutes, 1 GiB. A lock with two entries for a tool, or two downloads for the platform, is refused. - The build's repository is new (git init --template=), holding only the commit and, for a tag, the tag, fetched into a pack: no other branches, tags or objects of the maintainer's, no hardlinked files the container could write, and origin set to devvm's GitHub URL, which GoReleaser needs and nothing fetches. Go stamps the binary from the tags it finds, so it finds only the release's. - The container runs as root under a rootless runtime and as you under a rootful one, from the runtime's info (podman's Host.Security.Rootless, Docker's security options), never its name; a runtime that doesn't answer stops the build. Inside: umask 022, TZ=UTC, LC_ALL=C.UTF-8, GOTOOLCHAIN=local, -mod=readonly, no git config but safe.directory, and Go's caches in a container-local folder (Docker Desktop's share lost files that parallel module downloads renamed). - The build writes its files to /out, a mount of its own that it can't swap for a link. Before anything is copied, signed or kept, the folder has to be the one release.sh made, not a link, and everything in it a file or a folder, never a link, yours, and neither setuid, setgid, sticky nor world-writable, and 2 GiB at most, counted as read (sparse files whole) and read no further. The files are then copied to dist/, never moved, as yours with mode 0755 or 0644. minisign signs outside, after the containers are gone. - release.sh --commit COMMIT builds any commit as --head does, with its VERSION; release.sh --tag TAG builds a tag as its release, with its checks, unsigned, to compare with a published SHA256SUMS. An unsigned build never replaces a dist/ that holds SHA256SUMS.minisig, and a build signed with a test key never replaces one whose SHA256SUMS verifies with the checkout's packaging/minisign.pub, the release key. - .goreleaser.yaml: builds_info and every file's info set owner and group root, mode 0755/0644 and the commit's time. - scripts/repro-check.sh [COMMIT | TAG] builds twice with the checkout's release.sh, so no commit's code runs on the host directly. Build 2 fetches from a repository with a stray tag, v0.0.0-stray, at the commit, and runs under Docker where build 1 runs under podman when both are installed (root against your user); every platform archive's files have to be root's with mode 0755 or 0644 (tar -tv). A build that leaves no release fails, whatever its exit status. CI's repro job runs it under the runner's podman and Docker, with a 45-minute limit. The docs say that building a commit runs its code, in a container only as isolated as the runtime keeps it, so an outside commit is built only with the maintainer's go-ahead, and that rebuilding an old tag needs proxy.golang.org to still serve its modules. - scripts/bump.sh release-image moves the container's digest, the SHA-256 of the index it fetched, after checking the index lists linux/amd64 and linux/arm64; TestBumpCoversPins finds the pin. - Tests: release_head.txtar, publish.txtar and the new repro_check.txtar run the scripts through podman and docker stubs and a mise.lock of file:// tarballs. New cases: -K, http://, another host, .. and a percent-encoded .. in a lock URL refused before curl runs, file:// refused without the switch, with it set to 1, to a folder that doesn't exist, to / and from another folder, curl's bounds, two go entries, the build's repository's tags, refs, objects, hardlinks and origin, a stray tag kept out, the image and build code taken from the commit, a commit with no release_image, each runtime's user (rootless and rootful podman and Docker, podman behind docker, no answer), both containers' run lines (security options, limits, entrypoint, --network none, mounts), each container's name its run's (the stub checks it against the run's temp folder), the modules' container getting only go.mod, go.sum, Go and the checkout's release.sh, in the checkout's image, with the checkout's Go, a go.mod newer than the checkout's Go refused before any container, and the build reading its modules; refused output: a link in it, the output folder swapped for a link, a mode 4755, 2755 or 0666 file, a mode 1755 or 0777 folder, a sparse file a byte over 2 GiB (a file of another user's needs root to test, which the test says); a mode 0600 file copied as 0644; a build past DEVVM_RELEASE_TIMEOUT removed by name; release.sh sent INT, HUP and TERM mid-build, ending within 10 s through its trap, and kill -9, each leaving no container, process or temp folder; an unsigned --head and --tag refused over a signed dist/, and a test-key build over a release-key one; --commit never running the commit's host code, --tag's unsigned build matching the signed SHA256SUMS, and repro-check catching a build that records its user, archives that aren't root's, and a release.sh that builds nothing; bump.txtar covers the platform check. Each fails with its fix taken out, which was checked for every fix of the third review: the name, the limits, the test-key refusal, %, the folder's existence and /, the size cap, setgid, sticky, the signal traps, the EXIT trap's removal, the watchdog's removal after kill -9, the client in the background (in the foreground, INT took 60 s), the checkout's Go and the Go version check. Proof, with a throwaway commit whose _build probes its container and leaves a mode 4755 copy of bash and a mode 0666 file in /out, built by this release.sh under Docker Desktop on an arm64 Mac, and under rootful Docker and rootless podman on x86_64 Fedora: every build ran with CapEff and CapBnd 0, NoNewPrivs 1 and no network, couldn't write /mod or rename /out, and was refused before anything was kept; rootful Docker refused its chown to root. The same image under the old run line, on Fedora's rootful Docker: CapBnd a80425fb, NoNewPrivs 0, and proxy.golang.org reachable. Real builds of this commit, stopped 20 s into the build's container: under Docker Desktop, INT, TERM and HUP ended release.sh within 3 s (exit 130, 143, 129) with no container left at once, and kill -9 left the container running for the watchdog, which had removed it and the temp folder 5 s later. The same on Fedora under rootless podman (INT, kill -9, TERM, HUP) and rootful Docker (INT, kill -9). Afterwards no devvm-release container or temp folder was left on either machine. repro-check on this commit, a prerelease (no devvm.rb), agreed on all eight files on the Mac (Docker Desktop, both builds) and on Fedora (rootless podman as root, then rootful Docker as cj), and the two machines' printouts were the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
592076cfda |
fix(lima): taking base's packages out says why it failed, in the run log
The tar that streams the packages base downloaded out of its build VM had its standard error dropped, and neither its failure nor the host's reading of the stream reached the run log, so packages_take_failed left nothing to go on. Its error output now goes to the run log, with a line naming either side's failure. The CHANGELOG's Fixed and the release page's Base's packages that don't come out say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
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]> |
||
|
|
20f97b10eb |
feat(vm): a new VM's tools resolve while its image builds
A first run resolved the tools' versions, downloading devvm's own mise first, only after base had built: 10 s on the mini, 5 s on fedora, in series. Neither needs the other, so create now starts Versions.Lock in the background as an image starts to build (resolveWhile's start, which build.Env.Building calls once an image is found unbuilt and its features are chosen) and waits for it after, cancelling it when the build fails. When every image is built already, nothing starts in the background, and Files resolves in the foreground with its status lines as before. While the build runs, the resolve says nothing, as the build has the terminal: a held Reporter keeps its messages, shows no status line and refuses every question as without a terminal, and its commands' lines in the run log are tagged resolve. Once the build ends, done releases it: what it held is said, what it does from then on shows, and devvm waits under resolving_tools when it's still running. done returns its error, so a failure is said once and the launch doesn't resolve again. A VM whose lock is already there reads it at once. TestHeld, TestResolveShowsAfterBuild and TestBuildingCalled fail when held shows a status line, when the wait shows none, and when Building isn't called. Docs: images.md's Versions. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
dd46dd7a0f |
feat(tools): tool images build side by side
A first run built its tool images one after another, each paying a build VM's boot (5.7 s on vz, 9.3 s on QEMU) before a download of a few seconds to a minute. Share.Build now hands the images out to up to four slots (buildAll), each slot's builds one after another in a build VM of its own: - slots: as many as the host's memory, less what the backend's running VMs have, and its CPUs give a build VM of 2 GiB and 2 CPUs each after keeping 6 GiB and 2 CPUs, at most backend.MaxToolSlots (4) and the number of images; one alone keeps base's size. A backend that can't list its VMs builds one at a time. A running VM's memory counts whole (7.5 GiB, not 7): TestBuildSlotsFit's running VMs fail when it isn't counted or is truncated. - plan lowers the slots until the backend's disks have room: Floors.ForTools counts Tools once for each build VM at once, as on a disk without copy on write each is a whole copy of base. - backend.ToolsSpec gets Slot, Slots, Size and Hold; Lima's slot VMs are the constants ToolsVM to ToolsVM4, sized with --cpus/--memory, and the first slot's build deletes what a killed run left in the slots this run doesn't use. Builds hold the share's lock, so one devvm uses the slots. - A failed build's VM goes in the run's cleanup, which runs after the build let go of the share's lock: it deletes the VM only once it has the lock again (ToolsSpec.Hold, Env.holdShare's TryLockFile), and leaves it while another devvm holds it (a build, gc or the daily refresh) (TestBuildToolsCleanupHolds, TestBuildHoldsShareForCleanup). The next tools build deletes what it finds in the slots, and so does devvm gc, which holds the share's lock: backend.Images' DeleteToolsLeft, Lima's deleting the slots' build VMs that are there and no other VM, which gc asks of every backend first, without asking, a backend that can't being a run log line. It returns what it deleted, which gc names in one line (tools_build_vms_deleted), and gc then never says nothing_to_clean or nothing_deleted (gc_tools_build.txtar, TestDeleteToolsLeft in lima and vm, the fake's ToolsLeft). The cli skill's judgment.md names this exception to "gc --force deletes exactly what gc lists". The conformance suite's delete-tools-left checks that it deletes no other VM, not even the project VM of a folder named tools (devvm-tools-<hash>), and no image (TestConformanceFinds: deletesAllVMs, deletesImage, deletesByPrefix). The share's lock is the data folder's, so devvms with their own data folders and one Lima home don't exclude each other's builds: the docs say not to build tools or run gc in two at once (a lock per build VM in the Lima home would close it, but it would replace Hold and needs e2e). - Side by side, one status line covers the builds (building_tools_together), and their commands' lines in the run log are tagged with their tool (msg.WithLogTag): the UI's LoggedCmd prefixes them and shows no status line of its own. Every write starts with the tag, as does every line in it, one ended by "\r" included, so no build can pass a line off as another's (TestTaggedWrites), and a tool's lines are found after another's "\r" (taggedLines splits there, a progress bar's updates staying one line: TestTaggedLines). The first failure cancels the others and is what Build returns, tagged (backend.LoggedIn), so ErrorLogged shows that tool's lines' end. - A test build's DEVVM_TOOL_SLOTS caps the slots; the CLI tests set 1, so the stub's calls keep their order, and tools_side_by_side.txtar sets 3, with an interrupt that leaves no build VM. The stub keeps each build VM's folder by its name, and the fake backend's BuildTools runs its builds outside its lock, as a real backend's would, passing ToolsBuild its context. Docs: images.md's Building tools and Free space, ports-size.md, space.md, images.md (using) and gc's help (the build VMs gc deletes), settings.md (one Lima home for two data folders), extending.md, testing.md and tests.md; the cli skill's judgment.md; the CHANGELOG's first highlight and the release page's A faster first run. New messages: building_tools_together, tools_build_vms_deleted. 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]> |
||
|
|
a8f0517579 |
feat(lima): devvm downloads Ubuntu's cloud image itself
Lima's download of the cloud image neither retries nor times out: one cut in its 900 MB fails base's build, and a stall hangs it. devvm now downloads the pinned image itself through fetch.Resumable (ubuntu.Download), into images/ubuntu/<sha256>.img (Dirs.UbuntuImage), resuming across cuts, stalls and runs, and gives Lima that file. Lima 2.3 checks a local file against the digest before it copies it. - Before downloading, it takes the image from Lima's own download cache when that holds it with the pin's SHA-256: copied into a new file of devvm's own, mode 600, hashed as it's written, capped, stopped by the context, and kept only once it checks out. Lima's cache is never changed, and a base whose dated release Ubuntu may have removed still builds again. - One devvm downloads at a time (images/locks/ubuntu-image), another waiting under ubuntu_image_waiting and looking again under the lock (TestUbuntuImageAfterWait, which fails without that second look). - The download goes through the company proxy and trusts the user's CAs (Lima.Roots, from trust.Pool, which internal/cli passes through the registry), as do the Finder's lookups (TestNewTrustsRoots, and the registry's TestOverrides). An untrusted certificate is ubuntu_untrusted, naming the CAs' folder, one from a trusted CA that's for another host, out of date or not valid yet ubuntu_bad_certificate (check the clock and what answers for the host), and any other that fails to verify (a SHA-1 signature, a CA's name constraints, a key for clients alone) ubuntu_certificate_invalid, naming Go's reason, for the lookups (the listing, the checksums, their signature: TestLookupCertificates) and the download alike (TestLocalImageFailsFor), and a release Ubuntu removed (404, 410) ubuntu_release_gone, which names devvm rebuild base; none is retried. ubuntu_download_failed no longer starts with devvm. - fetch.Untrusted, fetch.BadCertificate (an x509.HostnameError, or a CertificateInvalidError that's Expired) and fetch.Unverified (any failure to verify, with its reason, so every error the other two name), beside fetch.Gone, are the one place that tells a certificate's failures apart: Transient asks Unverified, the lookups and the download ask all three, host mise asks Untrusted, and a forbidigo rule keeps x509's and tls's verification errors in internal/fetch (TestCertificateClasses, TestTransient, testdata/lint, the owners doc's row). - An https address, or a test build's file:// DEVVM_UBUNTU_URL, read from disk the same way; anything else is refused. The CLI tests' sandbox has a stand-in of this host's image in the store. - Base's record keeps the image's address, and the key is as it was: it hashes the pin (release, file, digest), not the location. - devvm gc --caches frees devvm's copies that no record names and that aren't pinned now, unchanged for an hour, a stopped .part and a killed import's .import included, and those of a kept image once its .img is there. A pin it can't read fails it. - Of Lima's cache, it frees only an entry that devvm's own state shows a build of devvm's left: a base record names its address, devvm has its own copy of the image, and the installed Lima's own templates (share/lima/templates beside limactl, Lima.Templates) don't name it. An entry no record names may be the user's own Lima's, so it stays, and none is freed when the templates can't be read, with a line in the run log naming the folder and why. A test build's DEVVM_LIMA_TEMPLATES stands in for the templates folder. - ubuntu.ParseImage reads a record's image as Image.String writes it, and ubuntu.IsSHA256 is the one check of a cloud image's SHA-256, in place of Lima's own regex. - devvm space shows the copies as a cloud images row, freed by gc --caches, kept as state, as a release Ubuntu removed can't be downloaded again. 0.1.0's frozen state runs the new commands (fixture_v010_cloud_image): devvm looks in Lima's cache under the SHA-256 of the address 0.1.0's base record keeps and never changes the entry, base builds from devvm's own copy, and gc --caches keeps that copy, frees Lima's entry the record names and devvm's own stale copies, and keeps an older entry no record names. Docs: images.md (the download, its failures, the import, gc's rules), space.md, backends/lima.md, settings.md (the lookups and the download trust your CAs), troubleshooting.md, overview.md, testing.md, tests.md, structure.md's internal/fetch row; the CHANGELOG's two Fixed lines, which later commits make highlights, What to do 5 and 6, and the release page's Ubuntu's cloud image in devvm's folder. New messages: downloading_ubuntu, importing_ubuntu, ubuntu_image_waiting, ubuntu_download_failed, ubuntu_release_gone, ubuntu_bad_certificate, ubuntu_certificate_invalid, ubuntu_image_checksum, ubuntu_untrusted. Lima.LocalImage is the seam, Lima.ImageClient the client. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
326660d748 |
feat(fetch): resumable downloads that survive cuts and stalls
fetch.Resumable downloads a large file into <path>.part and keeps it
across failures and runs: each retry asks only for the rest (Range, with
If-Range once the server named a strong ETag or Last-Modified, and
Accept-Encoding: identity, so no gzip changes what a range counts), a
try that reads nothing for Stall ends and is tried again, and Tries
tries in a row that bring nothing fail it, as do 100 tries in all, with
the wait doubling up to a minute. The file is kept at its path only once
its SHA-256 checks out; a part that doesn't is fetched again from
nothing, once. A server that ignores the range (200), has nothing past
it (416) or answers it from another byte starts the part again.
- A part that's already the whole file, as a run killed before its
rename or a try that failed after its last byte leaves it, is kept
without another request, where a range past its end would get a 416
and start it again.
- A failure that trying again in this run won't mend (a 403, a proxy
that refuses) keeps the part for the next run; only 404 and 410
(fetch.Gone) and a file over Limit take it with them.
- A part that can't be written, or a whole file that can't be renamed
into place, is ErrWrite, never tried again, and the part's hash and
length count only what the file took, so a short write can't put them
out of step.
- Content-Range is read strictly (parseContentRange, fuzzed), and a
length over Limit fails as ErrTooLarge.
- The structure test's status-lines rule counts a
fetch.Resumable{…}.Download as a request; structure.md says so, and
its internal/fetch row names Resumable.
Tested in a synctest bubble on memnet against a server that cuts,
stalls, hangs, answers 403, 404 or 410, ignores the range or answers it
from byte 0, cuts after the last byte, behind a proxy that refuses, with
a part that can't be written, a whole part left by a killed run and a
file that can't be renamed into place (TestResumableWholePart,
TestResumableRenameFails).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
de502f7840 |
fix(vm): rm's read of a --clone VM's clone gives up past 8 MiB or 2 minutes
readClone stopped keeping the VM's answer past cloneStateMax (8 MiB), but took the rest and waited for the command to end, with no time limit, so a VM that wrote without end, or never answered, kept devvm rm and devvm clone off waiting until Ctrl+C. The read of the agents' worktrees already had the bounds; workCheck.answer is now the one read for both, taken from agentTrees: at most cloneStateMax bytes, past which the bounded writer cancels the command, within answerWait (2 minutes, treesWait before), an interrupt returned as ctx's error. A failed, over-long or late answer is the check's failure, clone_check_failed or trees_check_failed, which keeps the VM and names the flag that skips the check, and a hostile one is parseCloneState's, as before. readClone fails before parsing on a bad answer, so its result is never a nil list (the nilaway baseline loses that line) and gosec sees its loop bounded by both lists. On Lima the time limit didn't hold for either read: a cancelled limactl shell leaves its ssh child holding the command's output pipes, so os/exec's Wait waited for the VM's command to end. Exec now goes through the lima package's bounded (WaitDelay, a second), as the remount's commands do, so it ends a second after its context does; output a child held past limactl's own success is exec.ErrWaitDelay, an error, so an answer cut short is never taken as a whole one. That bounds every Exec, devvm paste's time limit and the history export included. treeGlobs returns a list that's never nil: nilaway took its nil for one parseAgentTrees slices into, a false positive (agentTrees returns before it without patterns, and parseAgentTrees indexes pats only below nextRecord's len(pats)), which the CI job reported on main. Tests that fail without the fix: TestWorkCheckBounded (TestAgentTreesBounded, now a table over both reads: an endless answer cancelled, a silent VM given up on after 2 minutes in a synctest bubble, an interrupt kept as the interrupt), whose clone case isn't cancelled and then deadlocks its bubble; TestExecHeldOutput, a real limactl stand-in that leaves a child holding its output, killed and after a success, which waits 30 s each, the success read as one, without bounded. TestParseAgentTrees checks treeGlobs with no patterns. Docs: clone's --no-clone-check names a VM that doesn't answer within 2 minutes, How it works' deleting a VM gives the clone read's bounds, the Lima page's A command's output, the clone design note's cost and threat drop the wait that's gone, and internal/vm's map names answer. The changelog gets an If you use --clone block with the line, the release page its section under Fixes. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
e4b44b5994 |
fix(lima): limactl shell never starts a stopped VM past devvm's checks
In a terminal, limactl shell of a stopped VM asks whether to start it, yes by default (Lima 2.3.0, reproduced under a pty), and that start is Lima's own: no proxy or sandbox-exec profile (no QEMU wrapper on Linux), no pins, and no folderChanged, so the project folder's mount, by path on Linux's 9p, follows a link put at the path or makes a folder that's gone again. devvm opens a shell (Shell) and runs an agent's login (Exec) on the terminal after bringUp, so a guest that powered itself off between the two got that question. This is the start path the self-check's restart was suspected of: that restart goes through startOnce, but limactl shell didn't.
The limactl builder, which every limactl command of devvm's goes through, now gives limactl shell --start=false, which Lima has had since 2.0.0-rc.0 (devvm's oldest is 2.2): a stopped VM's shell or command fails at once ("instance is stopped"), without asking, and devvm's next launch starts it with every check. devvm limactl, which passes its arguments on as given, is unchanged.
TestShellNeverStarts checks Exec's, Shell's and the builder's limactl shell, and fails without the change; the lima package's and the CLI scripts' expected limactl shell calls name the flag, their negative patterns too, so none turns vacuous. Docs: How it works' Lima page's A stopped VM's shell; the changelog's Security hardening gets the line, its summary widened to cover both of its lines, and the release page its section.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
376f1c2ad7 |
fix(agents): opencode's save, plugin approvals and the history scripts' framing
devvm agent save refused a VM whose ~/.config/opencode held a bun.lock (which opencode's plugins' installs write), a package-lock.json, a .gitignore or a .DS_Store: the save's script sent every entry of that folder but node_modules and FolderOwn, while the host's listedPath refuses those files (fileSetting), so it saved nothing. notSettings is now their one list, as patterns path.Match and the shell's case read alike: fileSetting leaves them out and the script sends a file of those names no more, only a folder that isn't a link, which is a setting. TestAgentSaveScriptRuns plants them and a folder named old.lock, and failed with agent_save_unsafe before the fix. opencode's HistoryOwn names its native client's plugin approvals, in its state folder (cli-rs's plugin/src/loader/approval.rs and tui/src/plugins/host.rs, opencode v2.4.1): plugin-approvals.json, its .lock and the .plugin-approvals.json.<pid>.<n>.tmp it's written through, and plugin-staged, the approved trees' copies, which it reuses by their hash's name without hashing them again, so a hostile VM's export could approve a project plugin for the VM that imports it. That client doesn't ship in 2.4.1. TestHistoryExportRuns and TestHistoryImportRuns plant them, with plugin-notes.json as the control, and failed on fedora without the entries. The history scripts' framing (onInputCmd) now says why on its stderr, which goes to the VM's log, when its input was cut short: TestOnInputCutShort checks it for every cut, an empty input included, and none for a whole one, and failed before. TestHistoryScriptsOnInput holds each script under 128 KiB, Linux's limit on one argument, which bash -c "$s" passes it as. The CLI scripts match the framing's new start. Docs: the save's and the store's table say which files stay in the VM; the import's and How it works' lists name the plugin approvals; the release page gets opencode's lock files in a save and the approvals; the changelog's opencode block gets the save's fix, and the hardening line names approved plugins. The review's optional wording: the design note's `*` matches every resource, and the plain-password steps set this machine's password first. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b625469ac6 |
fix(vm): devvm rm asks before opencode's worktrees' uncommitted changes go
An export leaves out opencode's worktree folder, as a git repository's config can name a command that git runs, so the uncommitted changes in the worktrees opencode makes there (~/.local/share/opencode/worktree/<project>/<name>, opencode v2.4.1's worktree/strategies.ts) went with the VM's disk on devvm rm, and on a remake with --clean-home, with nothing to say so. The registry gets Worktrees (opencode's worktree/*/*, below its HistoryOwn, TestDefsComplete holding each to a plain pattern there). rm's unsaved-work check, cloneCheck, becomes workCheck: the clone (cloneLost, as before) and the agents' worktrees (agentTrees), one question for both. agentTreesState reads them in the running VM in one command, in its home folder, each * of a pattern sent as *, .[!.]* and ..?* (treeGlobs), so a name that starts with a dot is found: each folder with a .git, its git status and a detached HEAD's commit nothing else has; past 100 it says more. devvm reads at most 8 MiB of the answer, cancelling the command past it, and waits at most treesWait (2 minutes). parseAgentTrees takes the answer as untrusted: whole records of a glob asked for, each path clean, matched by its pattern and once, at most 100, each with one status. Dirty, detached, unreadable (wfail) and more are shown and asked about (delete_anyway or remake_anyway), which --force never answers; refused without a terminal (no_terminal_delete_trees, naming --no-worktree-check, or the clone's no_terminal_delete when it has work too). --no-worktree-check skips the check and warns (trees_check_skipped). A failed, late or hostile answer keeps the VM (trees_check_failed), and so does a VM that doesn't start for it (trees_check_not_started). Rm and rmGone run it, and rmGone refuses a stopped VM with opencode, which starting would make its folder again (rm_gone_stopped_trees, naming --no-export --no-worktree-check); stillGone takes the refusal to give. remaking.checkWork runs it before a remake with --clean-home (remakeTo, Update, SetClone, whose clone check it joins), its messages naming the command as typed (remakeInVM.typed), with --clean-home, which --no-worktree-check needs (needs), so devvm clone off --clean-home's clone check messages name it too. A remake's flag has its own help. The stub guest runs the read in vmhome-<vm>. Tests that fail without the check: TestRmAgentTrees, TestRmVMAgentTrees, TestRemakeAgentTrees, TestUpdateAgentTrees, TestSetCloneAgentTrees and the rm_agent_trees script; TestAgentTreesBounded (an endless answer cancelled, a silent VM given up on, in a synctest bubble); TestAgentTreesState runs the script under sh on real worktrees, a dot-named one included; TestParseAgentTrees holds the answer's checks, TestCloneGit the stub's. TestSetCloneOff names the command with --clean-home. e2e's network section makes a worktree in opencode's folder in the real VM, and devvm rm refuses, then --no-worktree-check deletes it. Docs: coding agents' opencode's worktrees, How it works' opencode's worktrees, deleting a VM, a VM whose folder is gone, images, clone, the overview's remake, Commands, extending and rm's help; the changelog's What to do step 4 names --no-worktree-check for scripts and devvm rm VM of a stopped VM, and opencode's block gets the check; the release page has its section. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
962c183117 |
fix(agents): imported opencode history brings no automations, approvals or resumed turns
An export of opencode's history held what opencode 2.4 acts on without asking, so a hostile VM's export could run commands in the VM that imports it (opencode v2.4.1's source): its automations (automation), each a trigger and a shell command that it approved once and never asks about again (core/src/automation/shell.ts); the requests you said always to allow (permission, which Permission.evaluate turns into allow rules); each session's own rules (session_v2.permission, a Permission.Ruleset); the subagents' jobs (job), the queued messages (session_inbox) and the suspended sessions (session_v2.time_suspended), which its service starts or resumes when it starts (core/src/session/execution/restart.ts), with the session's agent's own rules, explore's allowing shell; a project's commands (project.commands), whose start command it runs with bash -lc for each worktree (core/src/worktree.ts); and its git repositories in its data folder (snapshot, repos, worktree), whose config can name a clean filter or core.fsmonitor that its own git update-index runs (core/src/snapshot.ts, git.ts). opencodeClean now empties the tables opencodeUnattended picks (automation, permission, job, session_inbox, and any whose name starts so), sets the columns opencodeNulled picks to NULL (time_suspended, commands, in any case), keeps only the deny and ask rules with a text action of every permission column, each written again from what sqlite3 read, so a key written twice can't keep an allow effect for JSON.parse (opencodeAllowRules), drops every view, and fails its check on a generated column (opencodeHidden). Its check counts each and must print 0, so a sqlite3 without JSON leaves the database out. A view, an upper-case column, a generated column and a duplicate key bypassed the first version, as the security review showed. opencode's HistoryOwn now names its background service's registration on every channel and the files written beside it (service-*.json, service.json.*, service-*.json.*) and its git repositories (snapshot, repos, worktree): an export leaves them out and an import never writes them, while a VM made again keeps them. The import's clean-up loop expands each as a pattern; TestHistoryImportScript holds every skip to a path's plain characters. Tests that failed first (fedora's gate): TestOpencodeCleanSchema (automation and permission emptied, a session's allow rule gone), TestHistoryImportRuns and TestHistoryExportRuns (service-local.json, the handoff's and the registration's temporary files); TestOpencodeCleanSessionRules fails closed without the statements. The review's additions: TestOpencodeCleanSchema (job, session_inbox, a suspended session, a project's commands), TestOpencodeCleanSessionRules (a key written twice, a non-text action, an upper-case column), TestOpencodeCleanHidden (a view, a generated column), and the git folders in the export and import tests. The review's docs fixes across the stack land here too: the changelog's What to do steps, the release page, the coding agents page, How it works and the design note. A kept rule whose resource is missing or isn't text gets "*", as opencode's Permission.Rule needs one, and the check also counts a rule that isn't in the rebuilt form, so a copy whose rules weren't rebuilt fails closed. A stack-wide review's last docs fixes land here: devvm rm deletes opencode's worktrees with the VM, so the changelog has a What to do step to commit their work first. The export's and the import's scripts, which the stack doubled, now go on the VM's input (onInput): a line with the script's length, the script, then the import's export. In the command's arguments, quoted for ssh's shared connection, macOS's ssh failed to start the session (mm_send_fd: sendmsg: Message too long), which the mini's e2e hit, the export first and then the import. The VM reads exactly that many bytes (dd bs=1) and runs the script only when it read them all, so an input cut short runs nothing (TestOnInputCutShort), and the script gets the rest as its input. TestHistoryScriptsOnInput holds every argument under 4 KiB; TestHistoryExportRuns and the import's runs use onInput too. The stub guest takes such a script off its input (inputScript), matches its switches and files() against it and keeps an export's and an import's in history-export.sh and history-import.sh, which history, history_import, rm_vm, existing_agents and layer_add read. 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]> |
||
|
|
9acdd0c47c |
fix(agents): history exports leave out opencode's machine key
opencode 2.4 keeps the private Ed25519 key of its home, which every machine it pairs with `opencode machine add` trusts and which it never replaces, in ~/.local/state/opencode/machine/home-key. That folder is in opencode's History, so devvm history export, and the exports devvm rm and a remake write, copied the key onto this machine, and devvm history import wrote it into other VMs, with the background service's registration (service.json and its .pty-handoff, the service's password and a handoff ticket) and the terminals' daemons (pty, their sockets and access tokens). The agents' registry gets HistoryOwn: what of an agent's history is the VM's own as a machine. HistoryExcludes() returns it after each agent's HistoryExcludes, so the export leaves it out and the import never writes it, by its paths after it unpacks too. HistoryLogins() is each agent's HistoryExcludes alone, which a remake's home copy (homeSkips) leaves out, so a remade VM, the same machine, keeps its key. The copy of opencode's database empties its machine table (opencodeLogins), the paired machines' public keys, which are the VM's own pairings. opencode's schema fixture moves to 2.4.1 (testdata/opencode-2.4.1.sql, from its release's schema.gen.ts, which matched 2.2.5's VM-printed file line for line): automation replaces schedule and is kept; machine is emptied. Tests: TestHistoryExportRuns, TestHistoryImportRuns and TestHistoryImportV010 plant the key, service.json, its handoff and pty, and fail without the fix; TestHomeSkipsEveryLogin checks each HistoryExcludes is skipped and each HistoryOwn kept in a remake; TestLists covers HistoryLogins; e2e's network section plants the key in a VM and finds it in no export. 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]> |
||
|
|
8e04b1c86d |
fix(scripts): bump.sh moves a Go tool's pseudo-version from the module proxy
mise latest prints nothing for go:go.uber.org/nilaway/cmd/nilaway, which has no releases and is pinned to a pseudo-version, and exits 0, so bump.sh --check reported "nilaway: X -> (change)" and the run listed it in its summary without moving it. dev-tools now reads a go: tool pinned to a pseudo-version from the Go module proxy's @latest, for the longest prefix of its package's path that the proxy has as a module (go.uber.org/nilaway). Only the proxy's 404 or 410 moves on to a shorter prefix; any other failure is an error, so a failed request never takes another module's version. An empty newest version, from the proxy or from mise latest, stops the run with an error, never a change, before anything is edited. A pseudo-version has no "newest within" for a hold to fall back on. proxy_url is the proxy's escaped path, which mod_versions now shares. bump.txtar's mise stub prints nothing for nilaway, as mise does, and its curl stub answers the proxy's @latest with -w's status; it checks the bump, the errors for an empty @latest, for no module at any prefix, for a 503 at a longer prefix and for an empty mise latest, each with mise.toml unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
99a0ab45bb |
test(devcontainer): FuzzParse's check reads variables as devvm does
The nightly fuzz run found an input that failed FuzzParse's own check, not
devvm: {"remoteEnv":{"A":"${${localEnv:}"}}. devvm reads each ${ to the
first } after it, so ${${localEnv:} is one variable whose name starts with
${, which it leaves as single-quoted text for the VM's shell, as the design
note intends. The check's pattern matched ${localEnv:} inside it.
The check now takes the variables as devvm reads them, non-overlapping
${...} to the first }, and flags only one whose name starts with localEnv:
or env:, in the environment and in what's kept. TestParse has a nested
${${localEnv:HOME}} in a variable and in a command, kept as text, and the
input is in the corpus. FuzzParse's row in Contributing's testing page
says how it reads them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
2615a1322b |
docs: changelog entries by audience, with a test that keeps their shape
Releasing, in Contributing's maintaining.md, now gives the entry's groups in their order (Highlights, What to do, Fixed, If you use… blocks, Security hardening, Internal changes), what goes in each and the question behind them, who notices; each line as one outcome sentence of at most 35 words, then its links; the release page as the full story; the sort table and a fresh docs-voice review before the release commit; and how lines go into Unreleased as changes land. AGENTS.md gets a Changelog line, and the codebase-standards skill a checklist item and its guard in rules.md. The rules that named the old Breaking and After you upgrade sections (AGENTS.md, structure.md's Released state, standards.md, rules.md) now name What to do. TestChangelogShape (internal/cli/docgen/changelog_test.go) reads CHANGELOG.md and checks each entry from 0.2.0-rc.1 on, and Unreleased once it has a line: the groups and their order, three to five Highlights, balanced <details> with a <summary> and the blank lines GitHub needs, 35 words of prose a line outside What to do (links and a credit not counted), a details link to releases/ on every line, and full links for issues and pull requests. TestChangelogProblems breaks each rule once on a small entry. lint:docs runs both. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
7b56231dda |
docs(changelog): 0.2.0-rc.1's entry by audience
The entry's 76 bullets become 55 lines sorted by who notices each change: Highlights (3), What to do (8 steps), Fixed (9), seven collapsed If you use… blocks (13), a collapsed Security hardening (7) and a collapsed Internal changes (15). Each line is one outcome sentence and keeps every link its bullets had; the release page holds each change's full story. markdownlint's MD033 allows <details> and <summary> alone, everywhere, as markdownlint-cli2 can't set a rule for one file. The release page's intro names What to do in place of After you upgrade. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b66e5d63f8 |
docs(changelog): full links for issues and pull requests
Every #N in CHANGELOG.md, in every entry, a credit's included, is now a full link, /issues/N for an issue and /pull/N for a pull request, as gh api's .pull_request tells them apart: a bare #N links only in GitHub's view of a release's notes. 31 references, 30 numbers: issues 3 (twice), 4, 17, 35, 36, 37, 40, 52, 54, 55, 56, 57, 59, 60, 61 and 62; pull requests 19, 20, 23, 25, 26, 27, 28, 30, 31, 32, 38, 42, 44 and 58. Maintaining's Releasing says to write them so, and the release page already does, with the same kinds. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b7178b0dc8 |
docs: the design notes move to Contributing
The design notes are for contributors: they hold each emulation's design note, its threat check and its tests, with hundreds of Go identifiers, so the page moves from How it works to Contributing (weight 8, after Writing docs), keeping its title and anchors. An alias keeps /docs/internals/design/ working, as a redirect to the new page. Every reference follows: the internals, using, safety and contributing pages' links, the page's own links to the How it works pages, the section index pages, AGENTS.md's Backends rule, contributing/docs.md's What goes where, internal/proxy/README.md and two e2e comments. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
654ade131f |
docs: release notes as actionable changelog entries, with the full story on the docs site's release page
The changelog's 0.2.0-rc.1 entry keeps Breaking and After you upgrade complete, gives each Changed and Fixed item a sentence or two, and adds a Hardening section of one-liners. Every bullet links its section on the new Releases page, its issue as a bare #N, as earlier entries write it, and the commit that made the change. docs/content/docs/releases/ is a new section, after Using, with 0.2.0.md: a section for each change, with what was wrong, how it showed, how devvm works now and what to do, holding every fact the entry had. Writing docs, the docs-voice skill and AGENTS.md say releases/ is the one place docs describe history, and Releasing describes the entry's sections, its links and the release page. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
6dd965b475 |
docs: How it works names no Go identifiers; Contributing has them
The How it works pages (but the design notes) say each mechanism in plain words, and the identifiers, repo paths and test names they named move to Contributing: The packages' rows in structure.md, extending.md's How a backend plugs in, maintaining.md's pins table, and a new tests.md section, The tests behind How it works, which names the tests that the pages now describe in words. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
4499c1a926 |
docs(contributing): the changes since 0.1.1-rc.3 in the docs voice
A docs-voice pass over the passages of the Contributing pages and internal/proxy/README.md that changed since v0.1.1-rc.3: clauses chained with colons and semicolons split into sentences, "but" for "except" spelled out, long table cells (folder-ids, status-lines, internal/vmname, internal/redact, internal/vmlog, internal/proxy) and list items (the proxy's connection limits, the e2e-* pins) broken into sentences, passives given their actors, and two passages put in the present (a proxy config's bytes, the proxy tests' start wait). Every fact is kept: facts.sh finds no change on any page, and facts.sh --all only five more copies of names already there. The generated table in structure.md is untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
6e36a19058 |
docs(internals): the changes since 0.1.1-rc.3 in the docs voice
Rewrites the passages of the How it works pages that changed since v0.1.1-rc.3 into joined, plain sentences: clauses chained with colons and semicolons split or joined, trailing "too" turned into "also", "X alone" into "only X", inverted and passive sentences turned round, and design.md's broker note's "as the proxy does now" made present tense. Every fact is kept (facts.sh --all: only punctuation next to numbers and one more mention of NormHost, devvm _qemu pinned and the 17 ports). Pages: agents, backends, design, desktop, git-protection, install, lima, network, overview, ports, processes, security. _index and images needed no change. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
462699a491 |
docs: the user pages' changes since 0.1.1-rc.3 in the docs voice
Reworks the passages that changed since v0.1.1-rc.3 on troubleshooting, coding-agents, settings, ssh, vms, attack-vectors and network: chained clauses split, colons between clauses turned into sentences, back-to-back paragraphs turned into lists, and doctor's command for unreadable state moved ahead of its explanation. facts.sh reports no change on any page, nor across the docs tree. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
47593e21ab |
fix(proxy): NormHost keeps an address's trailing dot, its IPv6 zone's, and Public calls no zoned address the internet's
NormHost dropped one trailing dot from any host, so an IPv6 address whose zone is "." (::1%.) became ::1%, an empty zone, which netip reads as no address. The proxy refused both forms (HostOK), but a partial clone's promisor warning (privateHost) no longer saw ::1%. as private, as FuzzPromisorHostSite found. NormHost now leaves an address as it is, its dot included, so every judge reads such a host as the zoned address it is. Public now calls no address with a zone the internet's: netip's prefixes never contain a zoned address, so the ranges alone missed, for example, a zoned documentation address, which --from's registry check took as public. No VM could reach anything through such a host: every way in (CONNECT, absolute-form requests, a transparent connection's Host and its TLS server name) refused it with 400 before any lookup or connection, on every tier, the broker refuses a lookup of it and a connection to a zoned address, and no rule or NO_PROXY entry names one. Tests: TestZonedHostsRefused sends each zoned and empty-zone host through CONNECT, plain HTTP and the transparent path on the open, internet, allowlist, none and loopback-allowing tiers, checking each refusal is the proxy's own where net/http lets the request through, with a control on each path that [::1] itself reaches the dialer where allowed; it passed before the fix too, and fails when HostOK takes a zone. TestNormHost, TestBrokerLookup, TestBrokerDial, TestInternal and TestPublicAddr gain zoned cases; FuzzHostSites' splitSite and policySite list the new divergence (zoneDot), and FuzzPromisorHostSite lists a zoned address now counting as private; its crash input and the zoned-unspecified one ([::%[]:) are added. design.md's list of the host readers' differences names both. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
947decb301 |
fix(vm): VMs get the host terminal's COLORTERM (fixes #54)
limactl shell asks ssh to send COLORTERM (SendEnv), but its session rides Lima's shared ssh connection (ControlMaster), opened without it, and the master filters a session's environment by its own SendEnv, so the variable never reached the VM (lima-vm/lima#2208, #1481). Closing that connection would end every session and the VM's SSH agent relay, so devvm now sets COLORTERM in the command it runs in the VM instead: - backend.ShellOpts and ExecOpts get ColorTerm. Lima's Exec runs `cd D && export COLORTERM=<quoted> && exec argv`, and its Shell, with a ColorTerm, runs `sh -c 'export COLORTERM=<quoted> && exec "$SHELL" --login'`, as limactl shell does without a command; without one, the argv is as it was. colorTerm (lima) quotes the value with shell.Quote and links Lima #2208, so it can go once Lima sends it. - vm's colorTerm is the one allow-list: only truecolor and 24bit pass, anything else or none is "". target.shell (devvm's shell) and AgentLogin.loginOpts (an agent's login on a terminal) fill it from Env.Getenv; no other command in the VM gets it. - devvm's ssh config entries add `SendEnv COLORTERM`, so plain ssh by name (ControlMaster no) sends it: the e2e showed the base's sshd has AcceptEnv COLORTERM. It adds to a Host *'s SendEnv. Tests, each failing without the fix: TestExecAndShellColorTerm (lima), TestColorTerm (vm: the shell's and the login's value for allowed, near-miss and injection-shaped values), testdata/script/colorterm.txtar (the stub limactl's argv for the shell and an agent's login), ssh.txtar and sshconfig's pinned lines, and e2e: a fresh VM's first shell, a login shell on a terminal in the folder (24bit, and none for another value) and ssh devvm-web. The structure test's dynamicScripts lists both new built scripts. Docs: Managing VMs, ssh access by name, How it works' Lima (A shell's colors) and security (the ssh entries), and CHANGELOG Fixed. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
755f9bfd93 |
fix(vm): devvm link, link add and rm, group join and leave, network learn and lock, and a VM's stop show a status line for every slow step
TestCommandStatusLines runs more of the commands on a running and a stopped VM, answering their questions in a terminal through the msg.Fake (Confirm, Ask, Answer and the picker) and failing on one asked under a status line: devvm network lock's picker (learned hosts in the proxy's log), which it checks is asked, mount-cache and mount-cache none, whose restart it checks is asked and answers yes, and with a second VM, api, which runs, publishes 5432 and is in group web: link add, link, link rm, group join, then link publish and unpublish (api's links change in the group), group and group leave, then with api stopped link add and link, then rm of api, which web links to. devvm restart runs last but for devvm stop, on the VM restarted and again on it stopped, and rm, as it starts a stopped VM. A proxy or a link session started with no status line showing fails it. It found, each now under a status line: - linkRuns.apply, which gives a VM its changed links (its running checked, its setup sent again, its link session started, the wait for what came of each link), for link add and rm, link publish and unpublish, a group's changes and a target gone: links_applying. - Links.warnUnenforced's look at the target (Inspect, and whether its tier is in force): checking_vm. - Links.List's targets' status: reading_vms. - Net.applyTier's PrepareRunning between two confined tiers, which starts the proxy again for the new tier, for network learn and lock: proxy_applying_tier. - Net.Lock's read of the VM after the picker: finding_vm, only around the read, as applyTier shows its own. - target.stop, every stop of a folder's VM (a restart, devvm stop, a move, a remake): stopping, which Lima's own step shows too. Tests: testProxy runs a link session as a sleep that says each of its links is carried, at once and as they change (linkSession), its signal and the test's cleanup waiting until it says nothing more; sleeper is the one sleep standing in for a background process, for testProxy, testForwarders and linkRunsEnv; secondVM, beside existingVM, makes TestGroupJoinsAtOnce's second VM too. Docs: Contributing's status lines; CHANGELOG; the descriptions of checking_vm, reading_vms, stopping and links_applying. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
888078c9cd |
fix(vm): devvm agent save and import read names as the store's volume does, so a name that differs only in case never deletes a file
On a volume that ignores case, as a Mac's does by default, a store with Foo.md and a VM sending foo.md (or a home folder with foo.md, for devvm agent import) made the command rename the new file over Foo.md, which keeps its name, then move Foo.md aside as a file the folder no longer has, and delete it with the staging folder, reporting success. - pruneIn keeps what keep names as the volume reads it: every kept name's folder, or file with one name, by what it is (platform.DevIno), so the store's Foo.md that a foo.md just replaced in place stays, in save's pruneFolder and import's apply alike. A hard link is kept only by the name keep has. - storeFiles takes the VM's names and lists a store's file that the volume reads one of them as, under another name, under the VM's name, so compare shows the VM's foo.md as a change to Foo.md, never an add and a remove, and a kept name keeps its file. A hard link is never listed so, and the diff shows its names removed, more than the save takes out, never less. - storeStage.claim checks each path before the stage writes it in its staging folder, which is on the store's volume and holds only what it wrote: a part already there under no name it wrote is a name the volume reads as another of its own (nameClash), named with that one. The save stages its folders too, and checks the names it leaves out (agent_save_names_collide); the import checks its folders and files (agent_import_names_collide). Either fails before the store changes. - The save holds a VM's paths to the import's bounds, 128 folders deep and 4,096 bytes, measured from the agent's folder as the import's walk measures them (agent_save_too_much, which now lists every bound): each folder's claim, make and apply opens its path one name at a time, so a chain thousands deep cost the square of it under the store's lock. safefile's walkMaxDepth and walkMaxPath are MaxDepth and MaxPath, the one owner of both. Tests that fail without the fix: TestAgentSaveCaseOnly, TestAgentImportCaseOnly (the file was gone; a left-out PH.md shown removed), TestAgentSaveCaseOnlyHardLink (the diff showed a change and the save took out the other name), TestAgentSaveNamesCollide (two files, two folders, two empty folders, a file and a name left out), TestAgentImportNamesCollide (through the import's stage); they skip on a volume that tells case apart. TestStoreNamesByWhatTheyAre (a hard link stands in for the volume's other name, on any host) and TestReadSent's depth and path cases, each at its bound and past it. Docs: using/coding-agents.md (importing, saving), internals/agents.md; CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2de3e31a6c |
fix(vm): devvm ports shows a status line as it restarts a running VM's forwarder, and every lock's wait is tested for its label
Lock waits: - Tests record the label of each lock's wait that had none, the lock held as by another devvm and the wait ended by a cancel, a deadline failing one that shows nothing rather than hanging: git_lock_waiting (TestGitLockWaits; .git protection's Serial is gitSerial, so a test can reach it), packages_waiting and rebuilds_waiting (TestImageLocksWait), ubuntu_pin_waiting (TestPinOriginWaits), custom_secrets_waiting (TestYoursLockWaits) and forwarder_waiting (TestForwardsLockWaits). - A test build's locks panic on a nil platform.Waiting (platform.CheckWaiting, which the root's run calls in every test build beside state.CheckLockOrder), so the CLI tests and e2e catch a nil wait the structure test can't see, such as a zero agentlogin.File's; a msg.Waiting given a nil status shows nothing and stays review only. msg.Waiting with no status gives a wait that shows nothing, never nil; platform.NoWait is the Waiting of a lock that never waits (the build port's record, which passed nil), and the status-lines rule holds it to statusSites as it does nil (TestCheckWaiting, TestWaiting, the rule's NoWait case). - forbidigo refuses syscall.Flock and unix.Flock outside internal/platform, internal/proxy/rotate.go, the stubs and tests (testdata/lint, both). - TestLockFileWaiting runs in a synctest bubble and checks the wait shows while held, not before (its counters under a mutex, which the race detector needs, as only the file's lock orders them). Status lines: - TestCommandStatusLines runs the setters too: devvm ports LIST and ports add, size --cpus, network open, allowlist, transparent off and on, learn and allow, git-protect off and on, ssh-agent off. It found devvm ports on a running VM starting its forwarder again (ssh and a command in the VM) with no status line; that step now shows ports_restarting. The folder named twice: - vm_folder_unreadable's why was the open's error, the folder's path in it; folderUnreadable gives the system's reason alone when the error is about the folder itself (TestUnreadableFolder checks the whole message). - platform.OpenNoLinks and StatFolder return a link on the path as an fs.PathError about the folder too (ErrLinkOnPath still matches), so that case names it once as well (TestStatFolderUnique). Docs: Contributing's CLI page (status lines) and structure page, the codebase-standards guards; CHANGELOG (devvm ports' status line). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
f80fd2df60 |
fix(vm): devvm agent save applies all or nothing under the login lock; a lock's wait and a walk end with their context; a link to the home folder counts unless only root can change it
All or nothing: - devvm agent save goes through devvm agent import's undo journal: each plan's files are written into a staging folder of the agent's store (saver.stage, newStage, the import's .devvm-import- name, swept by the next import or save), then put in place (applyPlan: each file renamed in, the one it replaces kept aside as a hard link, folders made, what a folder no longer has moved aside, seeds and kept entries left), and the .claude.json subset saved last with secrets.SaveLogins, which holds the login's lock. A failure after the first change puts every agent's store and the login back; an undo that fails too says so (agent_save_undo_failed) and keeps the staging folder. - applyStages (and stageSet) is what both commands apply through; importStage is now storeStage, pruneIn takes an fs.FS, and pruneFolder moves a folder's leftovers aside. pruneStore and applySettings go. - A file in the VM where the store has a folder, or the other way round, fails the save before anything changes (agent_save_store_folder, agent_save_store_file; sameKind), where the stage would have replaced it without the diff showing; storeFiles reads such a path as empty. Contexts: - platform.LockDir flocks a folder, polling until ctx ends as LockFile does (waitLock is their shared loop); agentlogin's lockLogin is it, so the lock is the one an older devvm's proxy takes. LockLogin, LockFolder, File.CaptureRequest, Capture, SetKey, Remove and secrets.Store.CaptureRequest take a ctx. A capture whose reply the endpoint has given is saved with agentlogin.AfterReply's context, the exchange's without its end and bounded by two minutes of its own, so the exchange's deadline never loses a rotated login while a refresh or a save holds the lock, and a stalled holder never holds it for ever (File.Capture, secrets.Store.Capture, its loginsDir included). - safefile.Walk takes a ctx and stops before each folder and batch once it ends; readSettings, followLinks and follower.copy pass theirs. - LockFolder's comment said its lock was another than a login file's in the same folder; it's the same (.claude.json's), and says so. Links while a state can't be read: - homeHops exempted every link on the way to the home folder, on the claim that no project folder can hold one, which --unsafe-folder breaks. rootOnly exempts a link only when every folder above it, up to /, is root's, has no group or other write bit and the system says you can't write it (platform.Writable, access(2), which counts ACLs and FUSE), and devvm doesn't run as root. The structure test lets internal/agentlogin import internal/platform and counts platform.LockDir in its status-lines rule. Tests that fail without their fix: TestAgentSaveApplyFailsWhole (a rename and the login failing), TestAgentSaveUndoFails, TestAgentSaveLoginLock (waits under agent_login_waiting; Ctrl-C leaves the stores as they were), TestAgentSaveKindChanged, TestAgentImportHomeBelowALink, TestCaptureOutlivesItsDeadline, TestClaudeCaptureOutlivesItsDeadline, TestWalkCancelled, TestLockLogin (synctest: a deadline and a cancel). New: TestLockDir (synctest, and a plain flock's lock), TestRootOnly, TestWritable, the status-lines rule's LockDir case. TestStoreOpsRefuseLinks checks openStoreDir in pruneStore's place. Docs: internals/agents.md (saving, the staging folder, links to the home folder), using/coding-agents.md, Contributing's CLI and structure pages; CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
cb7177b32c |
feat(ui): waits for another devvm's lock show a status line; a project folder devvm can't read says so
Lock waits: - platform.LockFile and LockFileShared take a platform.Waiting, called once they find the lock held, never when it's free, whose end they call once the wait ends; LockFileWaiting, LockFileSharedWaiting and their delays (ShareNote, OCINote, WaitNote, groupsNote, makingNote) go. - msg.Waiting makes one from a Reporter's Status and a label; msg.WithStatus and msg.StatusOf carry the run's Status in its context for the two packages that take no Reporter, internal/state and internal/trust, which cli's execute sets; forbidigo keeps StatusOf to them, and AGENTS.md says so. - Every lock that waits shows its own label: vm_state_waiting (a VM's state, its deletion), claims_waiting, layout_waiting, git_lock_waiting, ca_waiting, packages_waiting, rebuilds_waiting, ubuntu_pin_waiting, custom_secrets_waiting, forwarder_waiting, agent_store_waiting, and the waits that printed a line after a delay, which now show theirs as a status line: share_waiting, oci_waiting, image_build_waiting, group_waiting, making_waiting. - An agent's login file's lock (agentlogin's lockLogin, a folder's flock that a VM's proxy holds while it refreshes the login) tries first without waiting and shows agentlogin.File's Waiting (agent_login_waiting) while it waits; secrets fills it from its Reporter, for SaveLogins, Claude Code's logins folder and every File. - The structure test's status-lines rule counts a LockFile or LockFileShared whose waiting is nil as slow work; the build port's record, a file just made that never waits, is listed in statusSites. - Without a terminal, or with -v, a status line draws nothing, so the waits that printed an info line after a delay no longer print it there; the CHANGELOG and the troubleshooting page say so. from.txtar's check that a free conversion lock printed no wait goes, as TestLockOCI checks it. The layout's migration runs under a status line (layout_migrating), only when there are migrations to run. Backend calls outside a launch: TestCommandStatusLines runs devvm ls, ports, size, network, tools, git-protect, history export, stop and rm on a running and a stopped VM and fails on a backend call with no status line showing, with a control that each makes one. A project folder devvm can't open and read (vm_folder_unreadable) was taken for another folder's VM (vm_other_folder, which offers rm and adopt, and adopt went on); the finder now keeps why (target.unread), and every command on the folder's VM, from the folder or a subfolder of it, names the folder and why; devvm rm VM run elsewhere goes by the VM's name as before. platform.UniqueFolderID had no caller but its test: FolderStat.Unique, from the open folder, replaced it; it goes, and its test checks StatFolder's Unique instead. Tests: TestLockFileWaiting (rewritten: called only when held, its end once got or given up, shared too), TestVMLockWaits, TestCheckLayoutWaits, TestCheckLayout (migrations under layout_migrating, nothing shown otherwise), TestLockGroups, TestLockShare, TestMaking, TestLockOCI and the build lock's test (status lines, not info lines), TestLockLogin, TestInitCACancelled (ca_waiting), the status-lines rule's lock cases, TestCommandStatusLines, TestUnreadableFolder (a subfolder of it too), TestStatFolderUnique. Docs: Contributing's CLI page (Status lines) and structure page, the cli and codebase-standards skills (the guards), AGENTS.md's Go conventions, internals/images.md and design.md (the waits), using/troubleshooting.md, using/vms.md (a folder devvm can't read); CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b04a1a9f12 |
fix(vm): agent import walks within its bounds, takes turns at the store, applies all or nothing, and refuses links while a state can't be read
The bounded walk: - fs.WalkDir read each folder whole before the import's entry bound applied, so a VM whose project folder is in an agent's folder could make the walk hold millions of entries. safefile.Walk walks as fs.WalkDir does (order, SkipDir, SkipAll, errors) but reads each folder 256 entries at a time, counting every entry it reads against a safefile.Bound, and stops with ErrTooMany before fn sees the folder; it also stops at a folder more than 128 deep or a path past 4,096 bytes, so a deep chain can't make the walk quadratic. - readSettings walks the agent's folder through the folder opened one folder at a time (h.safe), whose FS now opens folders to list them (rootFS.openDir: no follow, no blocking, the folder Lstat saw or ErrSwapped), so a link or a FIFO swapped in for a folder fails the walk. follower.copy walks each link's target the same way; the walks of all links read at most linkMaxWalked (80,000) entries in all, those left out for the bounds included. - The structure test's status-lines rule counts safefile.Walk as a walk. The store's lock: - paths.Dirs.AgentStoreLock (agents.lock in the data folder), held by lockStore, under a status line (agent_store_waiting) while it waits: devvm agent import from its staging to its logins, devvm agent save's writes, and a start's clean of a seed's folder (cleanSeeds, now with ctx), which takes it only once it finds something to take out and looks again under it. - devvm agent save plans again under the lock and saves nothing when the store changed since it showed the diff (agent_save_store_changed), rather than write over an import. All or nothing: - After staging, apply moves aside what it replaces or prunes into the staging folder's replaced folder (a file kept as a hard link, so it's still replaced in one rename), notes the folders it makes, and keeps each change's undo. The logins are saved all or none (secrets.SaveLogins, which reads each file it replaces first, puts them back on a failure, and holds each login's lock, agentlogin.LockLogin, as the proxy does while it refreshes one). - A failure after the first change undoes every agent's changes, going on past an undo that fails; each store it couldn't put back keeps its staging folder, named with it (agent_import_undo_failed). - An interrupted run's cleanup waits on the stage's mutex for an apply that started, and an apply after the cleanup took the staging folder out puts nothing in place. Links through states devvm can't read: - While any VM's state can't be read, the import leaves out every link out of an agent's folder and an agent's folder or login whose path leads through a link, but the links on the way to the home folder itself, naming the state (agent_import_link_unread_state), where before it followed them with only a warning (projectFolders.chosen, with throughVM's check). Tests that fail without their fix: TestWalkBound (fs.WalkDir as the control), TestWalkDepth, TestWalkAsWalkDir, TestWalkErrors, TestRootFSOpenSwapped (a FIFO), TestAgentStoreLock (import, save, a seed's clean), TestAgentSaveStoreChanged, TestAgentImportApplyFailsWhole (a rename and a login failing, files and folders swapping kinds), TestAgentImportUndoFails (two agents, the second's undo failing), TestAgentImportInterruptedApply, TestSaveLogins, TestAgentImportLinksUnreadState (a link out, a linked folder and its login, a login behind a link), TestAgentImportLinkWalked. TestRootFS and TestCleanSeeds* follow the new FS and ctx. paths.Dirs is allowed 63 methods (largeTypes), for agents.lock. Docs: using/coding-agents.md, internals/agents.md, using/space.md, internals/overview.md, Contributing's structure page and the owners doc, the codebase-standards guard for bounds; CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2b176c92b3 |
feat(ui): every slow step shows a status line, and messages and questions never land on it
Any work that can take noticeable time now runs under the UI's status line: a Reporter's Status with a label message, or a LoggedCmd step. The UI: - status lines are a stack: a Status or LoggedCmd inside another shows its own line, then the outer one is drawn again, where before it ended the outer one for good - a message (Info, Warn, Note, Say, data on Stdout/Stderr) clears the line, prints and draws it again below; an unended line holds it - a question (Ask, Confirm, Answer, Secret), the picker and ui.Terminal hold it until they're done - no status line starts once the run is interrupted, as nothing would clear it - the run log's path is read without the log's lock, as the status line reads it under outMu Covered, by site and label: - finder.target: finding_vm; Lima's limactl --version: checking_backend - bringUp's checks (seeds, instance, recordFolder, hostChecks, ssh, requirements) and a running VM's go-on (proxy, pins, mount check): checking_vm; startOnce after the agent: starting; the self-check's probes: checking_network; pinHostKeys: reading_host_keys - setUpVM (sync, ssh config, links, clone seed): setting_up_vm; each devcontainer command: running_script; makeMachine: creating; buildOnce: checking_image; paste's count and rm: reading_pasted - volumeOf's lookup (diskutil), for launch, adopt, move, ls and rm: looking_up_volume - vm.ListAll (devvm ls): reading_vms; devvm doctor's checks: doctor_checking - devvm agent import: agent_import_reading (walk, links, opencode), agent_store_saving (copy, marketplace git checks, tmutil); devvm agent save: agent_save_reading, agent_save_comparing, agent_store_saving - devvm stop (from its pins check on): checking_vm; a delete, an orphan's teardown and Lima's DeleteImage: deleting; devvm git-protect and clone on/off's .git work (leftBehind, mountFolder, unmountFolder): git_protecting; git-protect's re-read: finding_vm - devvm clone add: clone_reading, clone_adding; clone fetch: clone_fetching; planClone: clone_planning; the clone check before rm or a remake: clone_checking; history export and import: history_exporting, history_importing; a remake's home: saving_home, restoring_home - devvm upgrade's install: upgrade_installing; the shared tools' step back and .NET's downloads: resolving_tools; gc's caches: reading_space; the retention settings (daily and in gc): retaining Work that takes the terminal stays off: the shell, ssh-add's passphrase (checkAgent, Agent.Ensure, reloadAgent) and an agent's login. Tests and guard: - msg.Fake: OnStatus and Showing; its LoggedCmd shows its step - backendtest.Fake: OnCall - TestLaunchStatusLines: every backend call of a new, running and stopped VM's launch runs under a status line but the shell's and Running's (pid files) - TestSSHAddOffStatusLine: ssh-add, on the user's agent or devvm's, never runs under one; chflagsCalls fails a .git lock or unlock with none - the structure test's status-lines rule (statusSites, statusFree) - TestStatusLinesNest, TestMessagesClearTheStatusLine, TestQuestionsHoldTheStatusLine, TestSecretAndPickerHoldTheStatusLine, TestTerminalHoldsTheStatusLine, TestNoStatusLineOnceInterrupted, TestFakeStatus, TestAgentImportStatus, TestAgentSaveStatus, TestDoctorReport, TestProblems, TestList, TestListLooksUpVolumesOnce, TestVolumeOfCache, TestWithSDKDownloads, TestRetainStatus, TestSetCloneOn, TestTeardownLeavesNothing The rule is written in the cli skill (rule 14, checklist, review), the codebase-standards skill (Show what devvm waits for, its checklist line and rules.md's row), Contributing's CLI page (Status lines), its tests and structure pages, and the troubleshooting page. Co-Authored-By: Claude Opus 5.5 <[email protected]> |