## What forced this
§8a assigned the release build to `cargo-zigbuild`, whose README states
plainly that **"currently only Linux and macOS targets are supported."**
Both required Windows targets fall outside it — and a GNU-ABI binary is
not a substitute, since it changes the C++ exception model and the C
runtime users link against. So the spec had assigned a job to a tool
that cannot finish it, and had done so by naming a tool at all.
## The call — split by altitude
**`docs/SPEC.md` says what a release must be true of**, and names no
tool:
- one host builds the matrix; CI installs toolchains and calls `xtask`,
holding no build logic (§1);
- **Windows artifacts are MSVC-ABI** — never a GNU substitute, however
much cheaper to produce;
- **glibc artifacts run on distributions older than the build host** —
reach is a property of the release, not of the machine that made it;
- **no target is silently dropped** — each is built or
skipped-with-reason, and a required failure stops the release;
- an unproven cross-build is established by a prototype (§18) before the
matrix claims it.
**`docs/PROJECT-INVARIANTS.md` records the encoding**, because
repository mechanics are its job: the target-family → cross-compiler
table in §8a, and `cargo-xwin`'s fetched MSVC CRT and Windows SDK as the
**third named exception** to the cargo-only rule in §1.
The test applied throughout: *does this sentence survive the tool being
replaced?* "Windows artifacts are MSVC-ABI" does. "`cargo-xwin` builds
Windows" does not — that is a fact about today's ecosystem, not about
smith.
## What this deliberately doesn't do
Doesn't change the target matrix, artifact format, or
required/best-effort statuses. Doesn't widen §1's shape — the exception
covers the *fetched toolchains*, not the cross-compilers, both of which
remain `cargo install`-able.
## The licence, stated not implied
`cargo-xwin` fetches Microsoft's CRT and Windows SDK; using it **accepts
Microsoft's licence**. That is now an owner-approved condition of
shipping Windows artifacts, recorded where it can be reviewed, rather
than an invisible consequence of a tool choice.
## Evidence
[cargo-zigbuild
README](https://github.com/rust-cross/cargo-zigbuild/blob/main/README.md),
checked 2026-07-25 — Linux and macOS only, with minimum-glibc targeting
via a target-triple suffix.
[`cargo-xwin`](https://github.com/rust-cross/cargo-xwin) exists
specifically to cross-compile Rust to Windows MSVC from Linux. Android's
Bionic and the BSDs are outside both tools' stated support and are
marked unproven.
## Surface touched
`docs/SPEC.md` §14 release guarantees; `docs/PROJECT-INVARIANTS.md` §1
exception list and §8a cross-compilation.
## If this ages badly
If the licence fetch becomes untenable, the fallback is a Windows runner
for those two targets alone — not a GNU-ABI artifact, which would
silently change what users run. The §14 guarantees hold either way; only
the §8a table changes.
---------
Co-authored-by: Claude <noreply@anthropic.com>
2626- Shell scripts in repo root or scripts/- Shell scripts in repo root or scripts/
27-- Any build step that requires tools not installable via `cargo install`, with two named exceptions: pinned nightly rustup components required by the `cargo-pup` architecture gate, and the `zig` toolchain required by `cargo-zigbuild` for release cross-builds (§8a)
27+- Any build step that requires tools not installable via `cargo install`, with three named exceptions, all confined to gates and release builds: pinned nightly rustup components required by the `cargo-pup` architecture gate; the **toolchains** the cross-compilers drive — the `zig` toolchain `cargo-zigbuild` needs, and the host **LLVM/clang** installation `cargo-xwin` needs (it fetches the Microsoft SDK, not the compiler that consumes it); and the **platform SDKs** themselves — the Microsoft C runtime and Windows SDK that `cargo-xwin` fetches, and a macOS SDK where a C dependency's darwin headers demand one (§4, *Cross-compilation*). The cross-compilers themselves are `cargo install`-able; the exception covers the external toolchains and SDKs they drive, nothing else
2929**Scope:** this invariant governs the **Rust workspace** — the app, its crates,**Scope:** this invariant governs the **Rust workspace** — the app, its crates,
3030and their build. The published **web site** is a separate artifact and is exempt,and their build. The published **web site** is a separate artifact and is exempt,
270+| Linux (glibc, musl) | `cargo-zigbuild` — supports a minimum-glibc suffix on the target triple | `prototypes/p34` |
271+| macOS | `cargo-zigbuild` — needs a macOS SDK only where a C dependency pulls darwin headers | p34, on a **native** runner |
272+| Windows (MSVC) | `cargo-xwin` — fetches Microsoft's CRT and Windows SDK; **using it accepts Microsoft's licence**, an owner-approved condition of shipping Windows artifacts | **unproven** — p34 proved zigbuild→windows-*gnu* and *native* MSVC, never `cargo-xwin`; SPEC §18 prototype required before the matrix relies on it |
273+| Android (Bionic) | **unproven** — outside both tools' stated support; SPEC §18 prototype decides before the matrix claims it | — |
274+| FreeBSD, OpenBSD, riscv64 (best-effort) | **unproven** — same; best-effort targets may be skipped, but the skip is reported | — |
258292xtask commands must be thin orchestrators. They delegate to cargo, nextest, clippy, etc. No heavy logic in xtask. No business logic. Just task coordination.xtask commands must be thin orchestrators. They delegate to cargo, nextest, clippy, etc. No heavy logic in xtask. No business logic. Just task coordination.
431471No CI-driven *release* automation yet: no automated distribution, no codeNo CI-driven *release* automation yet: no automated distribution, no code
432472signing — these are deferred. The test/lint/coverage CI gates themselvessigning — these are deferred. The test/lint/coverage CI gates themselves
577+| 2026-07-25 | §4 becomes the single cross-compiler mapping, with a proven-by column; §1 exception widened to the host LLVM `cargo-xwin` needs and repointed at §4; §8a release pipeline stops naming one tool for every target (user-approved) | smith-spec |
537578| 2026-07-19 | §7 switch rebase→squash merge: rebase-merge can't be signed, so squash is the only method that satisfies signed-commits + linear history; one-PR-one-decision keeps squash = one-commit-per-decision (user-directed) | smith-spec || 2026-07-19 | §7 switch rebase→squash merge: rebase-merge can't be signed, so squash is the only method that satisfies signed-commits + linear history; one-PR-one-decision keeps squash = one-commit-per-decision (user-directed) | smith-spec |
538579| 2026-07-18 | §1 scope note: Astro site exempt from the package.json ban, confined to `site/`; book stays mdBook (cargo-native) (user-directed) | smith-spec || 2026-07-18 | §1 scope note: Astro site exempt from the package.json ban, confined to `site/`; book stays mdBook (cargo-native) (user-directed) | smith-spec |
539580| 2026-07-18 | §7 require signed commits on `main`, enforced by the branch ruleset (unlocked by going public) (user-approved) | smith-spec || 2026-07-18 | §7 require signed commits on `main`, enforced by the branch ruleset (unlocked by going public) (user-approved) | smith-spec |
26042630No install scripts, package manifests, distribution metadata, or code signing in v1.No install scripts, package manifests, distribution metadata, or code signing in v1.
613613 target matrix still cross-builds (proven in `prototypes/p34-ci-pipeline`). target matrix still cross-builds (proven in `prototypes/p34-ci-pipeline`).
6146143. It opens a release-readiness issue; the **owner approves the version tag** —3. It opens a release-readiness issue; the **owner approves the version tag** —
615615 the one release touchpoint. the one release touchpoint.
616-4. On the `v*` tag, the release workflow builds every §14 triple (`cargo-zigbuild`
617- for linux/windows-gnu, native runners for msvc/darwin), emits
618- `smith-{triple}-v{version}` archives + `checksums-sha256.txt`, and publishes a
621626**Why Releases and not Packages:** GitHub Packages hosts registry artifacts**Why Releases and not Packages:** GitHub Packages hosts registry artifacts
622627(containers, crates, npm). Smith v1 ships standalone binaries + checksums for end(containers, crates, npm). Smith v1 ships standalone binaries + checksums for end