repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Record every shipped target, Android among them (#97)

2071f8678608e9c6ea90e72001e94d7c5443069e

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this

§3.2 already mandated the `aarch64-linux-android` link flag, but §14's
release matrix never listed the platform — the spec required the build
to support a target it then declined to ship. That drift surfaced when
#96 added the flag to `.cargo/config.toml` (implementing §3.2 exactly)
and it looked like an unrequested extra, because §14 gave no reason for
it to exist.

## The call

Android ARM64 is a **required** release target — a terminal-first coding
agent is used on a phone, not merely built for one, so a break there
blocks a release like any other required artifact. riscv64 (both libcs)
and FreeBSD join OpenBSD as **best-effort**.

The matrix also now states what the two statuses *mean*: required blocks
a release; best-effort is reported in the notes and skipped, and its
absence never holds the other artifacts.

## What this deliberately doesn't do

Doesn't change §3.2 — the flag was already correct there. Doesn't add
install scripts, packaging, or signing (still out for v1). Doesn't touch
the artifact naming or checksum format.

## Evidence

Naming **Bionic as a third libc** alongside glibc and musl is what
explains the flag: Bionic does not carry the compiler-rt builtins Rust
expects to find, so the explicit link is normative for that target
rather than a local workaround — which is precisely why it belongs in
the spec and not in someone's shell profile.

## Surface touched

`docs/SPEC.md` §14 target matrix.

## If this ages badly

If the Android toolchain proves too costly to keep green in CI, demote
it to best-effort rather than dropping the row — the platform is real
either way, and a silent removal would recreate exactly the §3.2-vs-§14
drift this fixes.

https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB

---
_Generated by [Claude
Code](https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB)_

Co-authored-by: Claude <noreply@anthropic.com>

Changed files (1)

+17 / −0 text lines

Diff layout

docs/SPEC.md

Modified

+17 / −0 text lines

25842584| Linux ARM64 glibc | `aarch64-unknown-linux-gnu` | required |
25852585| Linux x86_64 musl | `x86_64-unknown-linux-musl` | required |
25862586| Linux ARM64 musl | `aarch64-unknown-linux-musl` | required |
2587| Android ARM64 | `aarch64-linux-android` | required |
2588| Linux riscv64 glibc | `riscv64gc-unknown-linux-gnu` | best-effort |
2589| Linux riscv64 musl | `riscv64gc-unknown-linux-musl` | best-effort |
2590| FreeBSD x86_64 | `x86_64-unknown-freebsd` | best-effort |
25872591| OpenBSD x86_64 | `x86_64-unknown-openbsd` | best-effort |
2593**Three libcs, not two.** glibc and musl cover the Linux rows; **Android is
2594Bionic**, which is why it is its own row rather than a Linux variant. Bionic does
2595not carry the compiler-rt builtins Rust expects to find, so the Android target
2596links against them explicitly — the flag lives in `.cargo/config.toml` (§3.2) and
2597is normative for this target, not a local workaround. A toolchain that cannot
2598supply them cannot produce this artifact.
2600**Required means release-blocking.** A required target that fails to build stops
2601the release; a best-effort target that fails is reported in the release notes and
2602skipped, and its absence is never a reason to hold the other artifacts. Android is
2603required because a terminal-first coding agent is used on a phone, not only built
2604for one — it is a shipping platform, not a development convenience.
25892606Artifacts:
25912608- `smith-{triple}-v{version}.{zip|tar.gz}`,