Fixes the findings from #97 and #98's review, and the unresolved ones
from #96.
## The lint wall was one target-stanza away from switching itself off
A `[target.<triple>].rustflags` key **replaces** `[build].rustflags`
rather than merging with it. Android needs a link flag of its own —
vendored LuaJIT cannot resolve `__clear_cache` without compiler-rt
builtins, since Bionic does not carry them — so adding that stanza
silently disabled every `-D warning`, clippy deny and `missing_docs`
**for a target that now blocks releases**. Code failing the zero-warning
invariant everywhere else would have passed there.
My first fix repeated the whole wall in both stanzas. That works and
leaves two lists to drift apart, so it is not the fix.
**`[workspace.lints]` does not have the problem.** Lint tables are
per-crate, independent of target flags, and scoped to workspace crates
instead of leaking `-D warnings` into dependencies. The wall moves
there, every crate inherits it with `[lints] workspace = true`, and
`.cargo/config.toml` keeps only what cannot be expressed as a lint: the
Android link flag and the sparse registry protocol.
**Verified on the real workspace**, not argued: `cargo build`, `cargo
clippy --workspace --all-targets --all-features` and `cargo fmt --check`
are green; an injected `unwrap()` fails the build; and a scratch
workspace confirmed the denial still fires with a `[target.*]` stanza
present.
## The spec loses its verbatim TOML with it
Which lints are denied is policy and stays. How a config file spells
them is mechanism and does not belong in a specification (CLAUDE.md rule
3). §3.2 in both documents now states the rule, the denied set, and
*why* the wall cannot live in `rustflags` — no config listing to drift
from the tree.
## Android's status, settled in three places
`docs/SPEC.md` §14 said required, `PROJECT-INVARIANTS` §8a said "not a
release artifact target", and SPEC §17.10 said "not a release target".
Per the owner's decision Android **ships**: all three now agree, the
invariant matrix gains the riscv64 and FreeBSD rows §14 grew, and it
records that a target in one table and absent from the other is drift.
## Also here
The merged workspace shipped without the `[profile.release]` block both
documents define verbatim — release builds would have used Cargo
defaults: fat debug info, unwinding panics, no LTO. Added. `msrv =
"1.85"` leaves `.clippy.toml`, which `PROJECT-INVARIANTS` §3.2 forbids
in as many words ("No msrv key").
Codex's claim that §2.3 requires a `[workspace.dependencies]` registry
is a **false positive** — the spec defines no such block.
## Surface touched
`Cargo.toml` (workspace lints + release profile), seven crate manifests,
`.cargo/config.toml`, `.clippy.toml`, `docs/SPEC.md` §3.2/§14/§17.10,
`docs/PROJECT-INVARIANTS.md` §3.2/§8a.
## If this ages badly
If a lint proves unexpressible in `[workspace.lints]` and must return to
`rustflags`, it has to go into **every** target stanza, not just
`[build]` — that is the trap this removes, and the spec now says so.
https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB
---------
Co-authored-by: Claude <noreply@anthropic.com>
103103**Invariant:** All workspace crates compile with zero warnings. No exceptions for shipped code.**Invariant:** All workspace crates compile with zero warnings. No exceptions for shipped code.
404-**Development environment note:** Android/Termux on `aarch64-linux-android` is a supported development environment, not a release artifact target. Vendored LuaJIT requires compiler-rt builtins linked for `__clear_cache`; see `.cargo/config.toml`.
394+**Android is a shipping platform, not only a development one** (owner decision,
395+2026-07-25). Android/Termux on `aarch64-linux-android` is both the environment smith
396+is developed in *and* a required release artifact: a terminal-first coding agent is
397+used on a phone, not merely built for one. It is a third libc — **Bionic**, beside
398+glibc and musl — which is why it gets its own row rather than a Linux variant.
399+Bionic does not carry the compiler-rt builtins Rust expects, so vendored LuaJIT
400+fails to link `__clear_cache` unless they are linked explicitly; that flag lives in
401+`.cargo/config.toml` and is normative for this target, not a local workaround. This
402+table and `docs/SPEC.md` §14 must agree — a target listed in one and absent from the
28472840PROJECT-INVARIANTS §5 and `docs/plans/AGENTIC-DEVELOPMENT.md`. This sectionPROJECT-INVARIANTS §5 and `docs/plans/AGENTIC-DEVELOPMENT.md`. This section
28482841defines Smith's test artifacts, not who is allowed to run or merge them.defines Smith's test artifacts, not who is allowed to run or merge them.