37 Commits
Author SHA1 Message Date
w3cjandClaude Opus 5.5 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]>
2026-12-01 07:35:02 -07:00
w3cjandClaude Opus 5.5 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]>
2026-11-30 23:15:59 -07:00
w3cjandClaude Opus 5.5 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]>
2026-11-30 21:36:37 -07:00
w3cjandClaude Opus 5.5 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]>
2026-11-29 23:41:10 -07:00
w3cjandClaude Opus 5.5 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]>
2026-11-24 14:35:10 -07:00
w3cjandClaude Opus 5.5 ecd266c7d3 test(cli): one wait for the scripts; the docs release job installs only what it builds with
The scripts waited with copies of the same loop: desktop.txtar's and
nix_cache.txtar's waitfor files, and sh -c loops in link_life,
fixture_v010_links, fixture_v010_small, ports and ports_stopped, each
with its own interval and limit. They now use one testscript command,
wait_until SCRIPT, which runs sh -c SCRIPT every 100 ms until it
succeeds, for up to 90 s, and fails at once when every background
command has ended, as wait_file does, or when SCRIPT exits 100
(waitGiveUp, a status no tool the scripts run gives), as the links
check does when its session has ended. Contributing's tests page names
it beside wait_file, whose limit it now says is 60 s.

The docs workflow's release job installed every tool in the tag's
mise.toml. It now installs only Go, Hugo by the name the tag gives it
(hugo-extended before Hugo 0.170) and Node when the tag draws its
diagrams, with --locked as mise-action did, picking them with mise's
own reading of the tag's mise.toml (mise ls --current --json, the tag's
file alone), and fails when the tag names no Hugo. MISE_AUTO_INSTALL is
off for the job, so mise run docs:diagrams and the shims install
nothing more, and a tool the pick missed fails the build. This job runs
only at a release, so it hasn't run yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 23:07:04 -07:00
w3cjandClaude Opus 5.5 c9005ae4be build(deps): bump pins: mise 2026.11.10, Docker 29.10.0, Hugo 0.170.1 and e2e's pins
scripts/bump.sh's safe bumps (patches and minors; no majors or held pins):

images (assets/):
- mise 2026.11.8 -> 2026.11.10 (base's, and the host's resolving mise)
- docker 29.9.3 -> 29.10.0, compose 5.7.1 -> 5.8.0
e2e:
- claude 2.1.322 -> 2.1.326, codex 0.167.2 -> 0.169.1, opencode 2.2.7 -> 2.3.0
- pnpm 12.18.0 -> 12.21.0, uv 0.13.7 -> 0.13.9, rust 1.99.1 -> 1.100.0
- ubuntu:26.04 digest 065aa8626841 -> d66b366dac61
- Ubuntu's cloud image release-20261016 -> release-20261108
go: deadcode v0.52.0 -> v0.53.0
dev-tools: govulncheck 1.9.0 -> 1.10.0, vale 3.26.0 -> 3.27.0,
  hugo-extended 0.169.0 -> hugo 0.170.1
ci: jdx/mise-action v5.2.8 -> v5.2.10, the workflows' mise 2026.11.8 -> 2026.11.10

Hugo 0.170 has no extended edition (one binary, without LibSass, which
the site doesn't use): mise.toml's hugo-extended becomes hugo, the docs
workflow installs hugo, its release job installs the tag's own tools
(an older tag names hugo-extended), and docs/hugo.yaml drops the
deprecated hugoVersion.extended.

The e2e runner deletes its sandbox's Ubuntu pin when it names a release
other than e2eUbuntuRelease (not in a --newest-base run), as devvm keeps
a pin it has: without it, moving e2eUbuntuRelease left a cached sandbox
on the old release. pinned and ubuntuPin are e2e's one reader of the pin,
and TestHarnessRepin covers repin.

Image keys change: base and every image above it, the docker layer's
included, and the shared tools' images build again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 17:26:09 -07:00
w3cjandClaude Opus 5.5 1793353dd9 feat(proxy): Linux confines the proxy's child with Landlock and seccomp
Before it reads a byte of the VM's, devvm _proxy-child confines every
thread of itself through proxy.confineSelf on Linux: no_new_privs
(syscall.AllThreadsSyscall), Landlock from ABI 2 (TSYNC from ABI 8) to
its logs folder, the Nix cache and the resolver's files (never /, the
home folder or one that holds it), binding no TCP port (ABI 4), scoping
signals and abstract sockets (ABI 6, or ABI 6/7 with erratum 2),
refusing named unix sockets (ABI 9) and UDP but to port 53 (ABI 10);
then a hand-written classic BPF seccomp filter, installed with TSYNC,
that refuses with EPERM AF_UNIX socket/socketpair, listen, io_uring,
ptrace, process_vm_readv/writev, pidfd_getfd, a file's mode, owner,
xattrs and times by its path (chmod, fchmodat, fchmodat2, chown, lchown,
fchownat, the six xattr calls, utime, utimes, futimesat, utimensat with
a path), truncate, the keyrings (add_key, request_key, keyctl),
prlimit64 on any pid but 0, setpriority, ioprio_set,
sched_setaffinity, sched_setscheduler, sched_setparam, sched_setattr,
inotify_init, inotify_init1, inotify_add_watch, fanotify_init,
fanotify_mark, execve, execveat, fork, vfork, unshare, setns, bpf,
userfaultfd,
perf_event_open, clone for anything but a thread or with a namespace's
flag, and clone3 with ENOSYS; it kills a foreign architecture's call or
an x32 number. fchmod, fchown, ftruncate and utimensat on a descriptor
stay. It checks the confinement holds, then proxy.checkConfined, and
that it still reads the host's addresses, within 2 seconds, or fails
the start. A kernel without Landlock or seccomp leaves that part out;
the child runs and says so. The broker sets itself undumpable
(PR_SET_DUMPABLE 0). The Nix cache marks a file used through its
descriptor. The broker's start, and its life with the child, take a
reset of the socket (ECONNRESET, Linux's end of a socket closed with
frames unread) as the child's end, as EOF is (socketEnded,
TestHandshakeChildGone).

Built on the Seatbelt item's shared owner, proxy.Confinement:
- internal/landlock (new, stdlib only, Linux build tags): Self, Result,
  Floor, ABIPorts/ABISignals/ABIUnix, ErrUnsupported; landlock_linux.go
  (resolverFolders, refusedFolder, homeFolder), filter_linux.go (filter,
  asm, encode, archOf), seccomp_linux.go, self_linux.go (Self, check,
  refused).
- internal/proxy: confineSelf on Linux calls landlock.Self;
  landlockConfinement words it (By landlock, seccomp; Why
  no-landlock-or-seccomp, no-landlock, no-seccomp, landlock-below-abi4,
  landlock-signals; full from ABI 6 with seccomp and scoped signals);
  confineChild takes the child's needs and returns an error, bounded by
  confineWait (within, confineWith); checkConfined only where Landlock
  or Seatbelt confines files; confineStarted; IO.confine required, set
  by ChildMain alone; hostAddrs.check; touch_linux.go and
  touch_other.go (touchFile, undumpable); IO.dumpable for tests.
- devvm doctor: netpolicy.Unconfined's Linux warnings
  (proxy_unconfined_no_kernel, _no_landlock, _no_seccomp, _old_ports,
  _old_signals).
- Tests: TestFilter and TestFilterBytes (an interpreter of the program's
  bytes, amd64 and arm64, and the assembler's refusals), TestSelf (a
  real confined child: outside file, ssh-like unix socket, listen, bind,
  signal, chmod, chown, setxattr, utimes, truncate, a keyring, unshare,
  exec, clone3, and new threads, fchmod, ftruncate and futimens kept),
  TestKernel, TestCheck, TestRights (refusedFolder), TestArchNumbers,
  TestLandlockConfinement, TestConfineWithin, TestCheckConfined,
  TestConfineStarted, TestRunChildOn, TestUnconfined; network.txtar; e2e
  network's Landlock, NoNewPrivs and Seccomp check.
- CI: a nocgo job (CGO_ENABLED=0) for internal/landlock and
  internal/proxy.
- Structure test, depguard, goroutineSites; docs: the child's sandbox,
  processes (and its why-Go note on unsafe), design (the network row's loopback follow-up on Linux,
  other processes and /proc without Landlock), doctor's checks,
  troubleshooting, attack vectors, Contributing, the proxy's README,
  AGENTS.md, CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:04:32 -07:00
w3cjandClaude Opus 5.5 a7cc12521e test(fuzz): fuzz targets with properties, fuzzed nightly
Twenty-three new fuzz targets, built-in Go fuzzing, each checking a
property rather than only that nothing panics: parsers of what a VM or
the network sends fail closed and keep to their caps, a secret goes only
where it's bound, and no planted secret survives a redaction.

- internal/proxy: FuzzCursorFrames (passes only what came; no message
  over frameMax or holding a JWT's start, decompressed and unescaped),
  FuzzInject (a binding's value only to a host it names, judged apart
  from the matcher in NormHost's form, for its path and methods, in its
  own header, which held the exact placeholder once; other headers
  untouched), FuzzParseBindings, FuzzLinkList, FuzzParseUpstream (errors
  hold no more of the URL than its scheme), FuzzNoProxy, FuzzParseNarinfo
  (only cache.nixos.org-1's signed narinfo is taken).
- internal/agentlogin: FuzzParseTokenRequest, FuzzRedact (secrets planted
  eight ways in JSON and TOML settings), FuzzCapture (the VM's reply holds
  none of the endpoint's tokens).
- internal/redact: FuzzSplit (a password written in parts through Split,
  as the run log writes it, never survives).
- internal/jsonc: FuzzStrip, differential against encoding/json.
- internal/upgrade: FuzzParsePublicKey, FuzzVerify, FuzzEntryName,
  FuzzUnpack.
- internal/vmssh: FuzzParseHostKeys, FuzzParsePorts.
- internal/vm: FuzzParseCloneState, FuzzParseInit, FuzzParseKept,
  FuzzParseLFSPointer.
- internal/desktop: FuzzHandshakeVM.

What they found, each fixed with a regression test:
- NO_PROXY: an entry with port 0 (git.test:0) was read as the host on
  every port, and git.test:080 or :+80 as port 80, which Go's clients
  match against nothing; an entry whose port no request has, or that
  isn't plain decimal, now matches nothing (TestNoProxy,
  testdata/fuzz/FuzzNoProxy). FuzzHostSites' NO_PROXY site allows this
  difference from its frozen copy, and the design note lists it.
- A JSON token request with more after its object was judged by its
  first object; it's refused now (TestCaptureRefuses).

The Fuzz workflow runs nightly rather than two minutes weekly: five
minutes a target, eight at a time, each target's corpus restored from
and saved to a cache of its own (a failing input added to it, so it
fails nightly until fixed), new inputs minimized in at most 1,000 runs,
and one issue, "Fuzzing found failing inputs", opened, commented on when
the failing targets change and closed on a clean night, by a separate
job with issues: write that runs no repo code, on main alone. Target
names must be unique across packages. bump.sh moves an action in a
folder of its repo (actions/cache/restore, /save) with its repo's
releases.

Docs: Contributing's Fuzzing (running a target, the nightly run, every
target's property), Maintaining's Fuzzing failures and its actions bump,
the proxy README, the NO_PROXY and token request facts in How it works'
network page and the design note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:04:31 -07:00
w3cjandClaude Opus 5.5 89f26c5771 docs(site): draw the diagrams at build time with pele, no Mermaid JS
The docs site's 18 mermaid blocks are now drawn as SVGs before Hugo
builds the site, by docs/render-diagrams.mjs with pele 1.13.0, and
inlined by a render hook, so no page loads Mermaid's 5.5 MB script.

- docs/render-diagrams.mjs: finds each mermaid block in docs/content,
  draws it with pele in Departure Mono at 14px (a measurer from the
  font's metrics), and writes <key>.svg and <key>.json (its size) to
  the git-ignored docs/.build/diagrams. pele draws edge labels,
  messages and notes at round(14 * 0.875) = 12px with no option, so the
  measurer gives that text its 14px width and the script rewrites
  font-size="12" to 14 on each small-text group (pele-edge-labels,
  -notes, -boxes, -frames); a guard fails on any such group without
  font-size="12", or small text outside them, and a self-check, run
  whenever there's something to draw, renders an edge label, a message
  and a note and fails unless pele measured them at 12 and wrote their
  group with font-size="12". It also fails on a diagram without
  accTitle and accDescr, or on an indented block. A newline after each
  </text>, outside any text element, lets the search index see labels
  as separate words; screenshots of all 18 are byte-identical with and
  without it. (Newlines between a label's tspans would move centered
  lines, so a label's own lines stay joined in the index.)
- Caching: a block's key is sha256(salt + "\n" + text)[:16], the salt
  being sha256("pele <version>\n" + the script's text)[:16], written to
  diagrams/salt. The script keeps every drawing already there, draws
  only missing ones (written to .tmp and renamed), prunes files no key
  names, and touches the folder. docs:diagrams has sources (the pages,
  the script, package.json, the lock) and outputs (the folder), so mise
  skips an unchanged run, and runs npm ci only when the lock's SHA-256
  differs from docs/node_modules/.devvm-lock-sha256. An unchanged run:
  0.45-0.75 s before, 0.02 s now (0.09 s forced); one diagram changed:
  0.09 s. CI's check job caches ~/.npm keyed on the lock; the Docs
  workflow, which publishes, keeps no cache.
- docs/package.json and package-lock.json pin pele 1.13.0
  (sha512-Ie8UKY9x00MsuR3jO6AzUwzK2Z6MIV3Tf4EDdITiuk8Uaz8K7g0R082WqsqNaSU8DdgkrRvZThzhit83mi/uiw==).
- docs/layouts/_markup/render-codeblock-mermaid.html: in place of
  Hextra's hook, reads the salt, computes the key from it and .Inner,
  inlines the SVG from assets/diagrams (hugo.yaml mounts .build/diagrams
  there), sets the wrapper's contain-intrinsic-block-size to the
  diagram's height and --devvm-diagram-width to its width, and errorf's
  when a drawing or the salt is missing. layouts/_partials/scripts/
  mermaid.html and params.mermaid go.
- custom.css: .devvm-diagram with content-visibility: auto, and pele's
  --pele-* variables from the palette (subgraphs, lifelines and notes in
  the border color). A diagram wider than the text reaches into the
  article's right padding (1.5rem, 3rem from 768px) as far as it needs,
  then into the left padding for the rest, so it never covers the table
  of contents; wider than both, it scrolls. From about 1010px no diagram
  scrolls, the four wide ones included (proxy checks 751px, agent store,
  VM states, SSH agent); at 900px five scroll. With the table of
  contents shown, the proxy checks take 48px on the right and 31px on
  the left.
- mise.toml: docs:diagrams, which docs and lint:docs depend on.
  docs.yml: the next and release jobs install node and draw the
  diagrams; the release job only when the tag has the script, so older
  tags still build.
- scripts/bump.sh: bump_pele, named only, replaces bump_mermaid: npm
  install --save-exact --ignore-scripts in docs, then mise run
  docs:diagrams, whose self-check catches a pele that changed how it
  draws small text. TestBumpCoversPins finds docs/package.json's
  dependencies (npm:NAME); bump.txtar tests --check and the install.
  The header and hextra's note say the mermaid render hook replaces
  Hextra's mermaid hook, so check it still has that name.
- Every diagram gets an accTitle and accDescr, which pele makes the
  SVG's title and desc (aria-labelledby, aria-describedby). Staying
  safe's columns are written in reading order, as pele lays subgraphs
  out from left to right. The proxy checks' description names every
  branch, and a hand-placed <br> keeps "CA)" off a line of its own.
- AGENTS.md: the one Node script; no other build script is JavaScript,
  and no other npm package is installed outside mise's tools.
  Contributing's docs, tools and
  maintaining pages describe the drawing, the caching, the margin, the
  task and the bump.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 19:36:28 -07:00
w3cjandClaude Opus 5.5 1ecd1faa73 build(nilaway): mise run nilaway against a triaged baseline, an advisory CI job, and two crashes it found
nilaway is pinned in mise.toml at its newest commit's pseudo-version (it
has no releases); bump.sh's dev-tools moves it, and TestBumpCoversPins
covers it through mise.toml:tool:*. mise run nilaway runs
scripts/nilaway.sh: devvm's own packages, not the tests or their helpers
(stubtest, backendtest), compared with testdata/nilaway-baseline.txt, the
findings triaged as false positives, each with its group (checked,
bounds, mapkey, nilsafe), keyed by file and trace without line numbers,
one line for each finding, compared as multisets. It exits 3 on a new
finding, a key found more often than the baseline has it included, and
1 when nilaway can't run, when a finding in its output can't be read,
or when a baseline line is stale or malformed. TestNilawayBaseline
checks each case with a stand-in nilaway. CI's nilaway job is
continue-on-error: it warns on new findings and lists the new and stale
ones, then every finding, in the run's summary, failing when the script
exits 1.

The first run reported 83 findings, 69 without the test helpers. Two
were real:
- agentlogin.Restore sliced above[1:] for a settings file that is one
  JSON string holding a placeholder, where above is empty, and
  devvm agent save panicked.
- agentlogin's readJSON returned a nil map, with no error, for a file
  that is null, which the Codex and opencode captures then wrote to. It
  now refuses it as not a JSON object.
The other 67 are the baseline. Both fixes get a CHANGELOG Fixed entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 19:36:27 -07:00
w3cjandClaude Opus 5.5 0856205bd9 ci(vuln): govulncheck as its own CI job, and a weekly scan of main and the releases' binaries
mise run vuln scans the code as built for Linux and for macOS. CI's vuln job
runs it on each push and pull request, apart from lint and test, with only
Go and govulncheck installed. The Vulnerabilities workflow scans main's code
and the binaries of the latest release and the newest release, prerelease or
not (govulncheck -mode=binary, after checking that SHA256SUMS lists and
matches each archive), each Monday. A read-only scan job uploads the
findings, and an issue job, run only on main, opens, updates (with a comment
when the findings change) or closes one issue, as the Pins workflow does.
Contributing's Maintaining page says what fails, what a binary's scan can
over-report and how to respond.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 00:17:50 -07:00
w3cjandClaude Opus 5.5 940f1e2d88 chore(scripts): bump.sh moves every pin in the repo, and a guard for new ones
scripts/bump.sh now covers every pinned version, so release prep is one
command, grouped as --check prints them:

- shared-tools: cursor (only when named), Cursor's CLI pinned in
  assets/shared-tools/mise.toml, checksums computed from the downloads
- e2e: e2e-curl, tests/e2e/transparent_test.go's curlImage by digest
- go: go (newest patch: go.mod, docs/go.mod, mise.toml, mise lock),
  go-minor (only when named), go-mods (direct modules, go get and go mod
  tidy; a next major's path only reported), deadcode (mise.toml's task)
- dev-tools: mise.toml's tools but go, through mise lock
- ci: ci-mise (jdx/mise-action's version follows base's mise), actions
  (uses: by tag commit from gh api, then actionlint and zizmor)
- docs: hextra (go get and hugo mod tidy in docs/), mermaid (only when
  named)

--check prints each pin's group and whether a bump is a patch, minor or
major. With no tools named, bump.sh applies patches and minors only:
never a major, a held pin or a named-only tool; naming an images or e2e
tool still applies its major, and e2e-tools always does. Holds come from
.github/dependabot.yml's ignore list (pflag < 1.1.0) and bump.sh's own
(node on its major).

The header lists every pin as "# pin KEY TOOL", or "-" and a reason, and
says why the pins outside the scanned files are left (install.sh's Lima,
the Homebrew formula, testdata, vendored files). TestBumpCoversPins in
internal/structure scans assets/, mise.toml, both go.mod files, the
workflows, tests/e2e-mise.lock, tests/e2e's consts and docs/hugo.yaml
offline, and fails on an uncovered pin or a stale line.

The Pins workflow gets mise and a token for the new checks, and its issue
lists outdated pins under their groups. testdata/script/bump.txtar covers
the new groups with stubbed upstreams, and caught newest_of failing on
an empty list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 11:25:31 -07:00
w3cjandClaude Opus 5.5 872670d86e chore(deps): bump jdx/mise-action and CI's mise
- jdx/mise-action: v5.2.4 (6be3c7ed4c21d4f76b208d351d95aac273ebb76d)
  -> v5.2.8 (d5574b52816a478f9d4e6529a3f6ff17a8a36785), the tag's
  commit from gh api, in ci.yml, docs.yml (three), e2e.yml and fuzz.yml
- the mise those install: 2026.10.18 -> 2026.11.8, base's mise

Up to date: actions/cache v6.1.0, actions/checkout v7.0.1,
actions/deploy-pages v5.0.1, actions/upload-artifact v7.0.2,
actions/upload-pages-artifact v5.0.0,
amannn/action-semantic-pull-request v6.1.2, nick-fields/retry v4.0.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 08:15:32 -07:00
CJandClaude Opus 5.5 2b49967b4e chore: CI time zones, test isolation from the repo, a flaky test and the agents page (#45)
Upkeep: CI, flaky tests, dead code and the coding agents page.

- test: tests never run git on the repo they're run from. A git that
  runs the tests (a hook, git rebase --exec) sets GIT_DIR and friends,
  and the tests' plain git followed them into the real repo's config.
  Every test's git now runs through internal/stubtest (Git, GitEnv,
  NoGitRepo), the structure test enforces it, and the whole suite
  passes with GIT_DIR pointing at a decoy repo that stays untouched.
- ci: two test jobs instead of three: Linux in America/Los_Angeles
  (DST) and macOS in UTC, with lint on both, since golangci-lint checks
  only the runner's OS's files.
- test(e2e): accept Codex 0.167's wording for an API-key login.
- test: internal/safefile's swap-after-look branch is tested on purpose
  through a seam, so its coverage no longer depends on a race (97.7%
  every run).
- test(fetch): TestRetryUnanswered's "no answer" comes from a listener
  that keeps its port, so a parallel test's server can no longer take
  the freed port and answer in its place (Linux reuses ports at once).
- refactor(proxy): the test-only policy.decide and policy.byRequest
  move to the tests; the proxy already judges a host from one read of
  the rules (rulesFor).
- docs(agents): "Pasting images" moves down the coding agents page,
  before History, and its run of paragraphs becomes commands and
  lists, every fact and anchor kept.

Gate and coverage pass on each commit; e2e `network` and `project` pass
on Linux (251 passed, 4 macOS-only skips).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-12 07:20:42 -07:00
CJandClaude Opus 5.5 8d8da01037 feat(tools): dotnet, the .NET SDK, as a shared toolchain (#7)
Adds `dotnet`, the .NET SDK, as a fifth shared toolchain next to node,
python, rust and go. `--tools dotnet`, `devvm tools add dotnet` and the
picker offer it, and a folder with `*.sln`, `*.slnx`, `*.csproj`,
`*.fsproj` or `global.json` at its top level suggests it in the new VM's
summary, the way `package.json` suggests node.

Refs #2. Thanks to @jsskeen-utah for the detailed request.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-07 10:44:25 -07:00
CJandClaude Opus 5.5 da804f0568 ci: devvm.dev shows the latest release's docs, next.devvm.dev shows main's (#16)
Two docs sites, from one Docs workflow (`.github/workflows/docs.yml`):

- **devvm.dev** shows the latest release's docs. The `release` job
builds a tag's `docs/` and the `deploy` job deploys it to GitHub Pages
(`github-pages` environment), on a published release that isn't a
prerelease, and on a `workflow_dispatch` with `site=devvm.dev` and `ref`
(a release tag; empty means the latest release, from `gh release view`).
The tag is checked against `^v[0-9]+\.[0-9]+\.[0-9]+$` through `env:`
before it's used, and checked out as `refs/tags/<tag>`. Pushes to main
no longer deploy devvm.dev.
- **next.devvm.dev** shows main's docs. On pushes to main that touch the
docs (the same paths anchor), or a dispatch with `site=next.devvm.dev`,
`check` lints and builds, then `next` builds with `hugo -s docs --minify
--config hugo.yaml,next.yaml`, checks out devvmhq/docs-next with
`DOCS_NEXT_DEPLOY_KEY` (environment `docs-next`, only after the build),
replaces everything but README.md, and commits `Build from devvm <short
sha>` as github-actions[bot], skipping an unchanged build. Its
concurrency group keeps pushes from racing.
- `docs/next.yaml` sets `baseURL: https://next.devvm.dev/`, Hextra's
`params.banner` (a note that links devvm.dev), and `noindex` both as a
site param and through `cascade`, so Hextra's head writes `noindex,
nofollow` on every page. `docs/layouts/robots.txt` adds `Disallow: /`
when the site's `noindex` is set. The build stays in Hugo's production
environment, so Hextra's minified, fingerprinted assets are the same as
devvm.dev's.
- PRs get the same lint and build as before, and nothing runs with an
environment or a secret on `pull_request`. Permissions: `contents: read`
at the top; only `deploy` has `pages: write` and `id-token: write`. The
publishing jobs set `cache: false` on mise-action (zizmor's
cache-poisoning, now that the workflow publishes on `release`), and so
does `check`.
- Docs: Contributing's Maintaining has a new section, The docs sites
(what deploys each, the hand redeploy, the key and environments,
Cloudflare Pages serving devvmhq/docs-next); Contributing's two mentions
of the deploy point at it; Upgrading's Trying a prerelease links
next.devvm.dev.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-07 09:02:34 -07:00
CJandClaude Opus 5.5 062c89c913 ci: the docs deploy from main only when the docs change (#12)
## What this changes

The Docs workflow deploys from `main` only when a push changes the docs:
`docs/**`, Markdown files, the Vale and markdownlint config, or
`docs.yml` itself. Both triggers use one path list (a YAML anchor), so
they can't drift apart. `workflow_dispatch` still deploys by hand.

Why it's safe:
- The site is built from `docs/` alone; Hugo mounts nothing outside it.
- The generated CLI reference is in `docs/content/docs/cli/`, and
`TestReferenceIsCurrent` makes a help change commit it there, so those
pushes still deploy.
- The Hextra theme's version is in `docs/go.mod`, so its updates still
deploy.
- CI's `mise run lint` runs the docs checks (Vale, markdownlint,
`TestDocLinks`, `TestCommandLines`) on every code change, so skipping
this workflow loses no checking.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-06 18:50:29 -07:00
w3cjandClaude Opus 5.5 770cb99329 build(deps): go-i18n 2.7.0, and pflag stays on 1.0.x
pflag 1.1 prints every boolean flag as --flag[=true|false] in the help, with no way to turn
it off, so Dependabot ignores pflag 1.1 and later.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 12:53:26 -07:00
w3cjandClaude Opus 5.5 1276474123 ci: a weekly check of the pins scripts/bump.sh keeps, as an issue
Mondays, scripts/bump.sh --check runs and its outdated lines go into one
open issue, "Pinned versions to bump", created or updated with gh and
--body-file; with none left the issue is closed. bump.sh's output passes
through files only. maintaining.md says what to do with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 11:36:38 -07:00
w3cjandClaude Opus 5.5 c3a262bec9 ci: Dependabot's updates come monthly
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 11:31:30 -07:00
w3cjandClaude Opus 5.5 5fb0732580 ci: Dependabot's weekly updates for Go modules and pinned actions, a week after each release
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 11:25:51 -07:00
w3cjandClaude Opus 5.5 1a6d653431 chore(github): a pull request template, and every pull request asks the maintainer for a review
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 11:25:51 -07:00
w3cjandClaude Opus 5.5 57cf548b31 ci: pull request titles follow Conventional Commits, as squash merges take them as the subject
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 11:18:53 -07:00
w3cjandClaude Opus 5.5 b24da31e41 build: Lima 2.3 in CI, bump.sh e2e-lima, and Lima 2.2 as devvm's minimum
CI's e2e workflow installs Lima 2.3.0, its tarball's checksum taken from the release's SHA256SUMS, checked against the sha256 Lima's release notes publish. scripts/bump.sh e2e-lima moves that pin the same way. devvm's doctor, install.sh, the README and the Lima page ask for Lima 2.2 or newer, compared by major and minor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 09:57:01 -07:00
w3cjandClaude Opus 5.5 2545de19f3 test(e2e): the Go runner is the entry point, mise run e2e -- FLAGS, and tests/e2e.sh goes
TestE2E already set up the sandbox, slots, locks and flags itself, so the
898-line script only handed over. The run is now `mise run e2e -- FLAGS`
(go test -tags e2e from tests/e2e, CGO_ENABLED=0) with the same flags:
--only, --from, --clean, --every-feature, --slots, --slot, --newest-base,
--golden, plus --reuse.

- options: the flags named as the script's options; the hand-over flags
  (lock-holder, count, total, started, summary) and the ported/unported
  split are gone.
- e2eUbuntuRelease, a const in sandbox_test.go, holds the Ubuntu pin;
  scripts/bump.sh e2e-ubuntu moves it (get_const), and TestE2EUbuntuPins,
  bump.txtar and the E2E workflow read it there.
- From the script into Go: the OpenSSL-not-LibreSSL host check, and
  --newest-base's start line and its UPSTREAM DRIFT summary.
- The script's leftover bash helpers (perl vm_state, no_leak, ca_*,
  lima_listens, the retry list, its heartbeat) are gone with it.
- mise's e2e:go task merges into e2e; TestCommandLines drops its $D rule.
- Docs (contributing, testing, maintaining, internals) and AGENTS.md name
  mise run e2e; testing.md's "Porting a section" becomes "Adding a section".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 01:56:50 -07:00
w3cjandClaude Opus 5.5 1df893a586 chore(github): issue forms for toolchain and built-in layer requests
Toolchain request asks for the toolchain and its mise name, the files
that should pick it, why, versions, install source, package hosts for its
policy, what it writes into its folder, and its Linux builds. Built-in
layer request asks what it is, why built in, how it installs, run-time
needs, other layers and bases. Troubleshooting's Reporting a bug names both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 01:10:07 -07:00
w3cjandClaude Opus 5.5 63bf56e781 fix(github): the bug form's none tier isn't GitHub's reserved option None
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 00:20:23 -07:00
w3cjandClaude Opus 5.5 c90512fb68 chore(github): issue forms for bugs, features and docs
Bug report, feature request and docs forms with blank issues off and
contact links to private vulnerability reporting, Discussions and the
docs; troubleshooting's Reporting a bug points to them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 00:14:37 -07:00
w3cjandClaude Opus 5.5 0189742fe0 ci: a trial workflow running e2e's project section on a Linux runner with KVM
Started by hand only. QEMU and /dev/kvm as Lima's CI sets them up, Lima at a
pinned version and checksum, Ubuntu's cloud image and the built images cached,
up to three attempts, and the logs uploaded on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:38:59 -07:00
w3cjandClaude Opus 5.5 50e024c153 ci: weekly fuzzing of each fuzz target, crashing inputs uploaded
A scheduled workflow (Mondays, and by hand) lists every func Fuzz in the
tests, the proxy's first, and fuzzes each for two minutes in a matrix; a
failing input is uploaded as crash-<target>. The testing page says how it
becomes a seed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:56:49 -07:00
w3cjandClaude Opus 5.5 92ce736574 fix(test): tests pass in any time zone, and CI runs them in one with DST
TestExports counted 30 days from a fixed local date, so it failed in UTC
(CI) and passed in Pacific time, where the range crosses a DST change and
is an hour short. It now counts from export b's parsed date: at exactly
30d both exports are that old, a second short only a, and olderThan 0
returns both.

The audit of internal/ and cmd/ found nothing else that depends on the
zone or today's date: export names are written and parsed in local time
(now documented at the parse and on the coding agents page: an age is
elapsed time, so across DST it's an hour off wall-clock days); run-log
names are local but pruning goes by mtime; the network log, image
versions, logins and Lima's start marker are UTC; retention, tools'
daily check and the caches tests count from instants; testscript
fixtures are dated far in the past or the future.

CI runs mise run test a third time on Linux with TZ=America/Los_Angeles,
and contributing/testing.md says how to check other zones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 16:50:38 -07:00
w3cjandClaude Opus 5.5 8439cbdb8c ci: the tests pass on Linux runners; workflows linted with actionlint and zizmor
The tests assumed a macOS host with 4 or more CPUs:
- size: the stub VM has 2 CPUs, which any host running the tests has
- ls, images: smolvm's --state-dir on Linux
- docker: .git protection is off on Linux
- the limactl stub's delete forgets the VM's port forwards and ssh port,
  as Lima does, so from's second conversion VM is configured again
- TestStartForwarder confines Lima's start as the host does (no
  sandbox-exec on Linux)
- TestProcessArgs runs sh, which ignores the extra arguments GNU sleep
  exits on

lint:code runs actionlint and zizmor (offline) on the workflows; ci.yml's
paths are written out, without a YAML anchor, and the deploy job's
permissions say why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 08:01:37 -07:00
w3cjandClaude Opus 5.5 2226b32392 ci(docs): build with hugo.yaml's baseURL, without configure-pages
Reading the Pages site needs pages: read in a private repository; the
site's address is baseURL in docs/hugo.yaml, so the step isn't needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 07:24:03 -07:00
w3cjandClaude Opus 5.5 11eb2da70f docs(site): served at devvm.dev; docs-only changes run only the docs checks
The site's base URL, the doc links devvm prints, the README, CONTRIBUTING,
SECURITY and the home page recording point at https://devvm.dev; the local
server is at http://localhost:1313/.

lint runs lint:code (golangci-lint, shellcheck) and lint:docs (markdownlint,
Vale, lychee, TestDocLinks). CI skips changes only to docs/ and Markdown
files, except the generated CLI reference; the Docs workflow lints and
builds the site on pull requests touching the docs and deploys from main.
mise-action goes to v5.2.4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 07:20:19 -07:00
w3cjandClaude Opus 5.5 18658a9ba6 docs: docs site skeleton with Hugo and Hextra
Hugo site in docs/ with the Hextra theme as a pinned Hugo module, a
home page and the contributing page, which takes over building, tools,
tests and stubs from the README and adds writing docs. Vale styles for
the writing rules, markdownlint, Vale and lychee --offline in mise run
lint, and a Pages workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-24 01:23:25 -06:00
w3cjandClaude Opus 5.5 61ccef0beb build: mise tasks, golangci-lint and CI
Pin the dev tools in mise.toml and mise.lock. Add the fmt, lint, test,
vuln, docs and e2e tasks, the golangci-lint v2 config with the
dependency allowlist and print/exit bans, and a CI workflow running
lint and test on macOS and Linux. Tighten test file permissions for gosec.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-24 01:15:29 -06:00