Repository navigation
Tags
Tags
fix(check): treat libresolv as a glibc stub lib (gominimal#1561) The missing runtime_deps checker attributes __res_search to libresolv.so.2, but glibc exports it from libc.so.6. Extend the glibc stub-lib detection to include libresolv so its symbols are merged with libc.so.6's dynamic symbols, removing the false positive. Co-authored-by: gominimal-aw-bot[bot] <281738952+gominimal-aw-bot[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ci(verify): the agent runtime's gate runs clippy and the touched crat… …es (gominimal#1570) * ci(verify): the agent runtime's gate runs clippy and the touched crates Canary 1569 on this repository needed two extra coder jobs, and this gate could have caught both. Round 1 was `clippy` red and the fix was deleting a redundant `.into()` — 29 minutes of a second job for two words, because `[tasks.clippy]` sat beside this block and the gate did not run it. Round 2 was `unit` red: a box spec accepted ingress on HostNet, which the task's three `-p sessions` lines missed because the plan format requires each `test:` line to name a single test, and the crate's own suite is what found it. Clippy was left out for a reason that no longer holds: the runtime ran this task cold, and a cold `cargo clippy --all-targets` does not fit the 10-minute probe budget. Since gominimal/agent-runtime#122 the task is wrapped with the job's shared `CARGO_TARGET_DIR` and sccache, so it starts from the graph the `test:` lines just built. The crate suites are scoped, not the workspace's: `MINIMAL_CHANGED_PATHS` is what the runtime hands this task, and the crates are read off it, so the gate is the size of the work. No paths means no scope, and clippy still runs. Both lines mirror a CI job exactly. CI is the gate that decides, and a fast signal that disagrees with it costs a whole job. * ci(verify): the comment says what the task does The block above it argued for the change instead of describing it — which canary needed which round, and what a cold clippy used to cost. That belongs in the pull request, not in a config a reader opens to find out what the gate runs. * ci(verify): the runtime's gate is named for the runtime It reads MINIMAL_CHANGED_PATHS, which only the agent runtime sets, so it is not the generic "does this tree pass" that `verify` promises — a person running it at a terminal would get a quietly narrower gate with nothing saying why. gominimal/agent-runtime#123 prefers `agent-verify` over `verify`, so the scoped gate takes the specific name. `verify` stays for people: the same rustfmt and clippy over the whole workspace, with no crate scoping, because nothing sets that variable at a terminal and a gate that silently narrows itself is worse than one that says what it covers. * ci(verify): the gate's cargo commands run --locked, like CI's do CodeRabbit flagged that agent-verify and verify could pass on a stale Cargo.lock that CI's locked checks reject: ci.yml's clippy job runs `cargo clippy --workspace --all-targets --locked`, and core-tests/action.yml runs `cargo fetch --locked` before `cargo nextest run --workspace --locked`. Add --locked to both clippy calls and to the nextest call in agent-verify and verify so the gate stays predictive of CI. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XmUoenoaQ7DMwxPXRu58uu --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
docs(specs): close the macOS loopback and cgroup classifier questions… … in NET (gominimal#1563) * docs(specs): close the macOS loopback and cgroup classifier questions in NET Both open questions are settled by the two spike measurements and the architecture's rulings that folded them into the networking design. The macOS mechanism is a root-held boot re-apply of the reserved range installed by the resolver advisory's command; the classifier decides on a per-box cgroup leaf the box host confines, co-resident host-address boxes are in scope, and a native host takes one privileged install step with no per-box enforcement surfaced until then. NET-003 and NET-079 gain the answerer rule: a host-address box resolves through the box zone's answerer, never the host's resolver, and the deny-all carve-out is the answerer's address and port only. NET-079 also binds the box host's cgroup confinement obligation and the native-host advisory. NET-124 binds cacheable negatives, since an answerer whose negatives carry no authority record stalls every lookup on a macOS host. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): name the resolver Minimal owns and open the native forwarding question The NET-003 rule keeps ruling 2's shape, a resolver Minimal owns and never the host's, and says which one per host. The NET-079 carve-out points at that resolver. A MEDIUM open question carries what the ruling left open: who forwards a non-deny-all host-address box's upstream names on a native host, where the answerer forwards nothing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): scope the resolver rule per host and state the native interim NET-003 binds every host-address box to the node's DNS layer inside a VM-backed host and only the deny-all box to the answerer natively; a native box that is not deny-all belongs to the open question, which now states its interim. The cgroup confinement gets its own trigger for every host-address box. The native advisory names the cause and the install command only when the step is what is missing. Negative answers carry the SOA in the authority section. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): state what a deny-all host-address box does on an unenforcing host The one host with no per-box decision runs the box unenforced and never refuses it, which is the ruling's shape; a name rule admits nothing there because admission comes only from Minimal's resolver. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
refactor: split the god modules into focused submodules (gominimal#1557) * refactor(minimal): split lib.rs into cli and cmd modules lib.rs held the whole clap surface and every command handler. Move the argument types to cli.rs and the handlers to cmd/{mod,session,list, project,admin}.rs, re-exporting so every minimal:: path still resolves and the derived parser is unchanged. The source-scanning tests follow the moved functions to their new files. * refactor(minimald): move session.rs helpers into a submodule Extract the free-function helper cluster (composition loading, hook running, patch materialization, env inheritance) into session/helpers.rs as a pure move. * refactor(minimald): move the pty and fd plumbing into a submodule Extract Pty, WinSize, and the fd helpers into session_host/pty.rs as a pure move, re-exported from the parent so callers and tests are unchanged. * refactor(sessions): move the conflict-detection helpers into a submodule Extract the merge-time conflict checks into compose/conflict.rs as a pure move, re-exported from the parent.
docs(specs): add the local box egress proxy spec (BEP) (gominimal#1426) * docs(specs): add the local box egress proxy spec (BEP) docs/specs/24-spec-box-egress-proxy, prefix BEP, written from gominimal/inbox#625 with the spec-author workflow (interview, three checkpoints, EARS via spec-ears, tiers via spec-tiers). Binds the un-enrolled, no-Gatehouse Box Egress Proxy: host-side beside gvproxy, TLS terminated only for declared credentialed upstreams under a host-generated name-constrained CA, sealed GitHub members minted by a local device-flow sign-in, Keychain store references set with `min secret`, egress re-check, hash-chained loc 8000 al audit. 54 requirements; the redemption decision at T2 (Kani), expansion validation, name constraints and audit secrecy at T1. Lint clean apart from the expected P004 unresolved-test findings. Architecture of record: gominimal/arch at gominimal#67 (Gatehouse v1.19, networking design v0.7). Contradiction filed as gominimal/arch#69; command-tree notes on gominimal/arch#70. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): revise BEP after review, applying the arch#69 and arch#70 rulings Aligns the local Box Egress Proxy spec with gominimal/arch main at 3987a07 (Gatehouse v1.20.1, networking design v0.7.1, command tree after gominimal#72). - Sign-in and minting: both flows under the published GitHub App (BEP-001), the sign-in-required creation error (BEP-003), mode and breadth in the member and its context (BEP-005/006), un-enrolled validation (BEP-056, BEP-057 with the client-configuration acknowledgement), members without bounds refused (BEP-058), key and CA lifecycle (BEP-059 to BEP-061), the no-re-mint limit as a non-goal. - Command tree: `min box audit` grammar with `self` refused un-enrolled (BEP-042), `min box stop | rm` (BEP-043), F12 record shape with `kind` (BEP-039), mints and logouts recorded (BEP-067), `min secret --store` and the five-column list (BEP-050 to BEP-053), sections reordered. - Correctness: upstream TLS validation before substitution (BEP-055), hash chain narrowed to what a bare chain detects (BEP-049), BEP-029 on both request forms, BEP-040 record equivalence, store-handle contract (BEP-063, BEP-064), injection form and CR/LF refusal (BEP-065, BEP-066), fail-closed steering while the proxy is down (BEP-062), segment rotation (BEP-068), `proxy_env` boolean (BEP-012), proxy user named (BEP-047). - Design reasoning cites the architecture where it used to argue; crate, field ownership, proxy user, and the set-aside HMAC anchor recorded. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): close BEP's listener, upstream-validation and sign-in gaps BEP-026 refuses every connection that is not a box attachment at the listener, sealed value or not, per Gatehouse §6.10. BEP-055 validates the upstream chain on every flow the proxy terminated before forwarding anything on it, so the foreign-credential passthrough is validated no less than a direct connection. BEP-001 records the un-enrolled sign-in default: the bare verb and --device run the device flow, --browser selects the browser flow, with the divergence from the command tree's prose stated in Design reasoning. BEP-050 refuses an environment-variable flag as well as an argument. Bare issue references are links. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): pin BEP's store-path checks, host set, and the key-custody invariant The GitHub v1 host set is defined by citation to Gatehouse §6.10 in First slice and under BEP-006. BEP-032 names the checks a store reference passes (BEP-019, BEP-020, BEP-022 to BEP-024, BEP-064) so one decision function covers both member kinds. BEP-040's secrecy property is a construction property with a length bound. The sixth invariant states the access-control claim the requirements make: unattended access to the keys and store items is the proxy identity's alone. Design reasoning records why two invariants stay at T0. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): define BEP's audit-chain construction, control socket and authority pinning The audit chain is constructed over SHA-256 of the previous line's bytes with the proxy as the log's sole writer, so client mint and revocation records reach it over the control socket rather than a second writer. That control socket is the operator-owned UDS the client also uses to register its store-handle key, separate from the redemption listener. BEP-023 pins an absolute-form request target to the connection authority as well as Host. A box declaring steering off together with proxy_env is refused, since the environment would point at a proxy no injected CA validates. BEP-040's property excludes the chain field and drops the substring clause; BEP-049's property covers records with a successor. BEP-003's sub-bullet and BEP-027 are reworded as the findings asked. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): key BEP-001 to the command tree's sign-in shape The owner ruled the un-enrolled sign-in default the tree's way: the bare verb is the browser flow wherever one exists, --device pins the device flow, and no other flag is added. BEP-001 runs the device flow on --device, or on the bare verb while no browser flow is shipped; the browser sub-bullet takes the bare verb once that flow ships. Design reasoning shrinks to that sentence. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(specs): bind BEP's signing CA to the host-wide union and refuse plaintext credentialed legs BEP-013 follows the Gatehouse un-enrolled bullet: one keychain-held signing CA per host, name-constrained to the union of every box's declared credentialed upstream set, with a box's own reach bounded by its egress declaration and its sealed values' host sets. A request to a credentialed host that would ride a non-TLS upstream leg is refused, since port discipline does not see an absolute-form http request inside the proxy_env connection and no chain exists to validate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
docs(mip): document cache notices subcommand (gominimal#1415) Add the missing `cache notices <source_sha256>` section to the mip CLI reference and refresh the generation hash. Co-authored-by: gominimal-aw-bot[bot] <281738952+gominimal-aw-bot[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix: nightly smoke races — detached vcs worktrees, dead-host shutdown… … gating, e2e teardown (gominimal#1378) * fix(checkouts): create worktrees detached so a branch can't be held twice `Repo::new_worktree` checked a branch out with `worktree add -f --track -B <branch>`, putting the worktree *on* the branch. Git lets a branch be checked out by at most one worktree of a repository, so the next `new_worktree` for the same branch failed: fatal: cannot force update the branch 'main' used by worktree at '.../vcs/git/checkouts/.tmpdiEFU4' That next request is routine. Every `checkouts::Manager` over a shared cache dir holds its own snapshot of `state.json`, and `mctx` builds a fresh one per `Context`/`ProjectSetup`, so a manager whose snapshot predates another's checkout of `main` does not find it and asks for its own. The nightly shipped-binary smoke hit exactly this in the skip-lane scaffold proof (`op::InitProject` → `checkout_branch(main)`) against a restored `~/.cache/minimal`. Every worktree is now a detached checkout (`--detach`), a branch included, so worktrees of one branch are independent; a branch checkout was already refreshed via `git checkout origin/<branch>` by `worktree_checkout`, which detaches too. `worktree prune` runs before each add so a registration whose directory is gone cannot claim the path, and a refused add removes the directory it was handed instead of leaving an unrecorded one under the checkouts dir. Tests: two managers over one cache dir, the second holding a snapshot that predates the first's branch checkout, both get a usable checkout of `main` (this reproduced the nightly's git error verbatim before the change); a refused add leaks no directory. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB * fix(minimald): a session whose shell has exited no longer blocks `min stop` `Session`'s `IsBusy` answer — what gates an unforced daemon shutdown — was `host.is_some()`. The host slot outlives the host process (see `launch_host_for_hooks`): a session whose shell has exited still holds a handle to a host that runs nothing, and that dead handle made the daemon refuse `min stop` with "daemon has active sessions" although nothing was left to interrupt. The nightly KVM smoke hit this after its session-shell proof. The shell (`sh`) exited before the host could hand the teardown to the attached binding (`could not hand the teardown to the binding; no shell-exit prompt will render`, a documented best-effort drop), so no prompt rendered, the attach ended cleanly, and the session survived with a dead host — then the e2e's `min stop` was refused. Busy now means a *live* host (`is_alive()`), the same liveness check `ensure_host` and `launch_host_for_hooks` already apply when deciding whether to reuse a host. Shutdown still stops every actor, so a lingering dead host is torn down with the rest. Test: exit a session's shell, keep the session at the exit prompt, and an unforced Shutdown answers ShuttingDown (it stayed busy forever before this change). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB * test(e2e): destroy the session-shell proofs' sessions explicitly The two session-shell proofs (loadout SHELL, and its missing-shell fallback) relied on the pty driver's "Delete" at the shell-exit prompt for teardown, but never asserted it. That prompt is best-effort: the daemon hands a shell's exit to the attached binding with a non-blocking send, and a shell that exits within milliseconds of starting (`sh` running the two-line stream does) can lose it — then no prompt renders, the attach still ends cleanly, and the session survives. The nightly KVM smoke found one such survivor blocking the unforced `min stop` at the end of the run. Destroy both sessions explicitly after their assertions, the way every other non-asserting proof already does; a no-op when the prompt's Delete already did. Co-Authored-By: Claude Fable 5.1 <noreply@anthropi 8000 c.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB * fix(checkouts): remove the bare clone when a new remote's first checkout is refused On the new-remote path nothing is recorded until the worktree add succeeds, so a refused ref left `git/db/<id>` behind unregistered and the next request for the same remote cloned again under a suffixed id. Drop the repo and remove the directory on that error path, with a fresh-manager unknown-tag regression test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB * fix(checkouts): add branch worktrees at origin/<branch>, fetched at clone time `new_worktree` added a branch at its bare name, which resolves to the bare clone's own `refs/heads/<branch>`: nothing refreshes that after the clone, so a fresh branch checkout landed on the clone-time tip until an update happened to move it, and a branch created upstream after the clone did not resolve at all. Add branches at `origin/<branch>` like `worktree_checkout` already does, and have `Repo::new` fetch right after the bare clone so the remote-tracking refs exist from the start (a bare clone writes only `refs/heads/*`). A clone whose fetch fails is removed with the error. Regression test: move `main` upstream after the clone and add a `dev` branch; a fresh checkout of each lands on the new tip. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB * fix(checkouts): fall back to refs/heads/<branch> when a cache has no tracking ref A bare cache cloned before `Repo::new` fetched remote-tracking refs at clone time, and never updated since, carries only `refs/heads/<branch>`. Offline that is the only copy of the branch, so `new_worktree` uses it when `refs/remotes/origin/<branch>` is absent. Regression test strips the tracking ref after registration and checks the branch out offline. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RD1J7U8uZKsYFhQ4PFtTPB --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
docs(specs): refresh TEMPLATE.md; there is no status field (gominimal… …#1368) foundry#89 removed status: from the spec frontmatter. A spec on a branch is a draft, a spec on main is binding, and a spec is shipped when the lint resolves every verify: and proof: line. The copy is refreshed from the squash commit 84fa718 and restamped with it. Claude-Session: https://claude.ai/code/session_018QUk4o4Qarm5SgL7pJxKYW Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
feat(packaging): CI-owned AUR, Homebrew, and deb/rpm/apk distribution (… …gominimal#1313) * chore(release): sync package.version with the v0.5.3 tag crates/version/build.rs falls back to package.version when no v* git tag is reachable (source tarballs), and it was stale at 0.5.0-rc1. The release workflow now asserts tag equality going forward. * feat(release): single dist-build entrypoint for shippable builds Extract the release workflow's per-binary cargo invocations (fat-LTO serializes links), FEATURES plumbing for the guest minimald, fail-loud static libkrun for minvmd, and completions generation into scripts/dist-build.sh. Packaging entrypoints call this instead of hand-rolling cargo; the Linux release jobs call it too so CI builds match downstream builds. * feat(packaging): publish aur, homebrew, and deb/rpm/apk packages from ci Monorepo as source of truth; satellite repos are generated output. Templates live under packaging/ and scripts/publish-*.sh do clone-render-push on release: - packaging/arch/PKGBUILD-bin.tmpl: semver pkgver (epoch=1 over the old short-sha scheme), AppArmor install hook, template shas - packaging/homebrew/minimal.rb.tmpl: binary tap formula for the macOS assets with the slp/krun/libkrun dependency - packaging/nfpm.yaml + vendor/nfpm lock: one config for deb/rpm/apk from the staged static binaries - release.yml: assert-version job, semver-keyed staging rows, versions/<v>/pkg/ upload, publish-brew job on tag push (these and the promote.yml job are the one batched CODEOWNER-gated workflows change) - promote.yml: publish-aur job on stable promotion, skipping untagged staged shas * fix(packaging): remove stray line failing publish-aur after push A leftover `o "publish-aur: ..."` line after the success echo made the script exit 127 (command not found) under `set -euo pipefail` after the push had already succeeded, failing the AUR publish job on every first run. * feat(packaging): default the maintainer identity to security@minimal.dev Replaces the noreply placeholder in publish-aur.sh and package-nfpm.sh with the project's official contact; MAINTAINER still overrides. * fix(packaging): refuse half-stamped renders render-packaging.sh accepted a set-but-empty variable (printenv exits 0 for it) and, under bash >= 5.2's patsub_replacement, expanded a literal & in a replacement value back to the match — an & in MAINTAINER re-injected the token it had just replaced. An empty checksum or version token ships as the empty string, invisible to the leftover scan. Also closes a third hole the new harness caught: the leftover scan (@@[^@]*@@) could not span a token with an embedded @, so @@one@TWO@@ passed through unrendered. Any surviving @@ now fails the run. Harness: scripts/render-packaging_test.sh (just test-shell). * fix(packaging): install the Homebrew formula correctly and bundle libkrun Three defects in the formula/publisher, all now exercised by a fixture harness: - (bin/"min").install created a bin/min/ directory with the binary inside it, so no min executable was ever installed; the hash form bin.install ... => "min" renames on install. - resource stage blocks ran inside the staging dir: there is no Mktemp#staging to reach for; bin.install with the relative basename is the working form. - minvmd resolves libkrun via @rpath/libkrun.1.dylib through an @loader_path/../lib rpath — this prefix's lib/, which depends_on never populates (the slp/krun dependency installs into its own Cellar, which @loader_path cannot reach, and dyld resolves against the installed binary's realpath). The formula now installs the release's trimmed dylib as lib/libkrun.1.dylib, reproducing the installer's bin/lib layout. publish-brew.sh: PKGVER must be a released semver — a prerelease is refused outright (Homebrew has no channels; an RC would overwrite the only formula with no opt-out). MINIMAL_RELEASE_URL overridable so the harness drives a dry run from fixtures with no network, no credentials. Dry-run diffs force git's built-in diff (--no-ext-diff) so the output shape does not depend on the runner's git config. * fix(packaging): ship minvmd in the AUR package; root-safe .SRCINFO - minvmd joins the AUR source arrays and package(): VM-backed Linux sessions need it on PATH, and every staged versions/<semver>/ row carries the static-musl build (static libkrun, no dlopen), so the package stays self-contained. The AUR package and the deb/rpm/apk packages now agree on the file list; nfpm.yaml's stale references (aur/PKGBUILD, the packaging plan's Phase 3 list) are corrected. - makepkg --printsrcinfo refuses root outright (FS#67158, before the printsrcinfo early-return), which is every container job — and the > .SRCINFO redirect had already truncated the cloned file. When root, the generation runs as nobody (runuser, then su) over a world-readable copy; the output is written to a temp file and renamed, so a failure leaves the previous .SRCINFO intact. - PKGVER must be a released semver: pacman's pkgver forbids hyphens, so an RC could never publish — rejected here with that reason instead of makepkg's lint blaming the template. - _bucket is stamped from @@BUCKET_URL@@: a MINIMAL_BUCKET_URL override now changes the source URLs along with the checksums fetched from them. - BASH_COMPLETION_USER_DIR is set for the generation run, mirroring scripts/dist-build.sh: without it a clean chroot's min silently skips bash and the next install -Dm644 aborts package(). - --dry-run no longer demands the bot key: it never pushes, so without credentials it reads the public https mirror. Harness: scripts/publish-aur_test.sh drives the publisher end to end against a file:// bucket and a fixture AUR remote (no network, no key, stubbed makepkg) and asserts the rendered diff carries no unrendered tokens, real digests, and that nothing is pushed. * fix(packaging): verify staged artifacts before packaging package-nfpm.sh downloaded versions/<semver>/ artifacts and executed the min binary without checking anything: a corrupted or wrongly-staged object entered the .deb/.rpm/.apk users install. Every download is now verified against the staged components manifest — the SHA-256s stage-release.sh wrote and the installer itself trusts — before anything chmods, executes, or packages it. dist-build.sh's completions gate compares the host OS as well as the arch: an arm64 macOS host matches an aarch64-linux target on arch alone, and running that musl ELF is an exec-format failure after the whole fat-LTO build. * feat(release): move the release gate's logic into tested scripts The promote flow's packaging publishes could never fire and the default promote target could be hijacked, both from inline YAML that nothing tests. Logic moves into scripts/ per the repo's convention (logic in scripts/, the lane calls it), each with a harness run by just test-shell and the workspace suite: - resolve-release-version.sh: promoted sha -> released semver. The old git describe --exact-match only matched when the promoted sha IS the tagged commit — and the nightly that gets promoted sits after the tag commit, so the AUR publish was a silent permanent skip (or, with git missing from the archlinux container, a swallowed exit 127). Resolution is now the tag on the sha itself, else the newest released v* tag reachable from it; prerelease tags never resolve and never fall through to an older release (that would publish a downgrade). 8C65 Exit 3 = nothing applies (skip with a notice), exit 1 = hard failure (a missing tool or unresolvable sha fails the job; it never masquerades as nothing to publish). - latest-staged-version.sh: the default promote target. Tag pushes stage versions/<semver>/ rows now, and staging them after the sha row made the semver row the newest object — promoting "0.5.4" as if it were a sha failed verify-nightly-provenance only after the human approval gate, or with override_provenance pointed stable at a non-commit. The lookup filters to commit rows before picking. - assert-release-version.sh: the tag-vs-package.version gate, out of release.yml's inline sed. - stage-release.sh --pkg-dir/--pkg-only: the versions/<semver>/pkg/ upload goes through the one definition of staging (same immutable cache headers) instead of an inline gcloud call. - backfill-version-row.sh: releases shipped before the semver-row convention (0.5.3 and earlier) have no versions/<semver>/ row, so the documented just pkg-nfpm 0.5.3 failed with nothing to fix it. The backfill restages from the sha row via stage-release.sh. promote.yml: publish-aur is gated on target == stable && !dry_run (a rehearsal promotion pushed a real commit to the AUR), declares minimal permissions, installs git/openssh BEFORE checkout (base-devel has neither; without git the checkout fell back to a tarball with no .git and the resolution had nothing to resolve), and resolves the semver through the script. publish-brew moves here from release.yml with the same gate: Homebrew has no channels, so shipping on tag push bypassed the promotion gate and an RC tag would have overwritten the tap's only formula. * chore(release): bump the package.version fallback to 0.5.4 0.5.3 is already shipped: a no-.git build of any post-0.5.3 commit reported 0.5.3, the exact wrong-version-tarball failure release.yml's assert-version gate exists to catch. The fallback stays on the NEXT unreleased version until that tag lands (comment says so). Cargo.lock's workspace entries follow. * feat(ci): run the shell test harnesses from the workspace suite crates/common/tests/shell_harnesses.rs discovers scripts/*_test.sh by convention and runs each — the reviewed extension point for coverage the frozen workflows cannot schedule (the same shape as shell_lint.rs driving lint-shell.sh). A new harness under scripts/ is picked up automatically and a failing one fails the always-on Linux lanes; no YAML changes. justfile: test-shell runs the same set locally (plus shellcheck); dist-build and pkg-nfpm are [linux]-scoped — from macOS one skips minvmd's mandatory codesign and the other execs a musl ELF — and their arguments are quote()d so shell syntax in a target or pkgver cannot run ahead of the scripts' own validation. pkg-nfpm's doc no longer suggests a command that fails for every release staged before the semver-row convention: it names backfill-version-row instead. * fix(ci): keep the shell gate green on bare runners Two assumptions that hold on a dev box but not on a CI runner: - resolve-release-version_test.sh configured identity only on the fixture's work clone, but the tagless-repo case commits in a second repository — on a runner with no global git identity that died with "Author identity unknown" (exit 128). Identity now travels through the GIT_AUTHOR_*/GIT_COMMITTER_* exports so every repository the harness touches can commit. - publish-brew_test.sh's run_dry defaulted its version argument and was only ever called with none, which shellcheck reports as SC2120/SC2119 and the lint gate fails on any finding. The version is a required argument now, passed explicitly at every call. * fix(release): land the second review round's findings - resolve-release-version.sh: a sha carrying two released tags printed both (multiline output breaks downstream PKGVER validation); only the newest is resolved now, and the harness's dual-tag fixture really tags two releases on one commit so the case is exercised - publish-aur.sh: runuser resets PATH (and HOME) toward the target account, so the nobody stand-in could not find makepkg — or a harness stub shadowing it; the payload re-exports the caller's PATH and the scratch HOME, and the aur harness makes its root traversable for that stand-in (mktemp dirs are 0700) - publish-brew_test.sh: digests now come from the publisher's portable sha256_file (extracted, one definition) instead of sha256sum, which is absent on some hosts - shell_harnesses.rs: unreadable directory entries fail the gate loudly instead of silently shrinking the suite, and each harness runs under its declared shebang interpreter — install_test.sh is POSIX-sh and proved under dash by the shell-installer lane, so bash no longer masks that contract - assert-release-version.sh: usage text now says a non-tag flow asserts nothing and exits 0 (it was never fatal) * feat(packaging): smoke the built packages in distrobox boxes The review feedback on gominimal#1313 asked for a process to build and smoke packages before publishing. This is the local half: after just pkg-nfpm, just pkg-smoke installs the dist/ artifacts into throwaway distrobox boxes named min-test-{deb,rpm,apk} and asserts the shipped contract — package-manager acceptance with the exact version, every path from packaging/nfpm.yaml, executable binaries on the box's libc (glibc for deb/rpm, musl for apk), and an uninstall round-trip. Boxes are removed even on failure. Distrobox drives everything: no apx (it has no non-interactive exec) and no raw podman, so the boxes stay in one namespace. The package-manager steps run under the box's passwordless sudo. --apparmor installs apparmor in the deb box to exercise the postinstall's parser-present branch and requires the packaged profile to parse; the kernel load is never asserted — an unprivileged box cannot load policy, and kernels without AppArmor must still take a clean install. The CI-native counterpart (a container-matrix smoke lane plus the real AppArmor load on an ubuntu-24.04 runner, which distrobox cannot do) is a deliberate follow-up. The harness stubs distrobox (and fail-loud podman/apx shims) so it runs hermetically via the convention-discovered shell suite. * test(packaging): remove podman/apx shims from smoke test * fix(packaging): make the deb version probe and --help exact Both review bots flagged the deb probe: dpkg-query's --showformat treats a backslash before $ as a literal dollar, so whether the probe worked depended on distrobox argument forwarding stripping the escape — the pre-fix live run passed, but only by accident. Replace the format string entirely: dpkg-query -W's default output is TAB-delimited, so cut -f2 yields the version with no $ or nested quoting to survive the box hop. usage() hard-coded the header line count, so --help also printed the die/note definitions after it; use the same set -euo sentinel form as package-nfpm.sh, which tracks the header however long it grows. * chore(release): bump the package.version fallback to 0.5.5 v0.5.4 was tagged 2026-09-02, so the fallback the previous commit left at 0.5.4 names an already-shipped release: a no-.git build (source tarball) would report 0.5.4, which release.yml's assert-version job exists to catch. Same one-line stopgap as before, until gominimal#633 makes the field load-bearing.
build(deps): bump taiki-e/install-action in the github-actions group (g… …ominimal#1361) Bumps the github-actions group with 1 update: [taiki-e/install-action](https://github.com/taiki-e/install-action). Updates `taiki-e/install-action` from 2.87.0 to 2.87.5 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](taiki-e/install-action@37f7c57...5bf6ce0) --- updated-dependencies: - dependency-name: taiki-e/install-action dependency-version: 2.87.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Norrie Taylor <91171431+norrietaylor@users.noreply.github.com>
PreviousNext