Current Status

This is the canonical public implementation-status page for seed. The current language specification is seed/docs/lang-spec.md; its grammar and semantic chapters live under seed/compiler/llvm. A roadmap item is not implemented merely because it is proposed; completed gates require their named closure evidence.

Compiler

seed/compiler/llvm is the operational repository compiler and launcher. Gates 0-24 are complete for their recorded scopes. The verified pipeline is:

source → lexer/parser → semantic graph → typed HIR/CFG
       → ownership/provenance/effects/loans → cleanup planning/verification
       → MIR → target layout/ABI → verified low MIR → LLVM

Source imports and .sdi emission execute the same mandatory safety chain. The normal and ASan/UBSan suites pass 1,496 compiler checks plus seven unit binaries at the current baseline. Gate-specific evidence is under seed/compiler/llvm/tests/GATE*_BASELINE.md.

Self-hosted compiler

Complete self-hosting is an active Linux x86-64 track governed by roadmap-self-hosted.md. The operational LLVM compiler remains the semantic and ABI oracle until the SH20 cutover.

SH0 has frozen the Linux x86-64 bootstrap contract, dependency boundary, and traceability. SH1 has closed the compiler-grade libraries and host substrate. SH2 is in progress with token, lexer, AST, parser, formatter, and minimal frontend-command slices implemented. Semantic analysis, compiler IRs, the LLVM bridge, native x86-64/ELF emission, native fixed-point bootstrap, runtime, linker, release provenance, and operational cutover remain later gates. Non-Linux ports are explicitly deferred until after the first cutover.

The Linux-native allocator uses precise 16-byte through 8-KiB slab classes, a bounded process-wide empty-slab cache, and unmaps excess empty slabs. box<t> is a single-pointer owner, while ?box<t> uses its audited null niche and therefore also occupies one pointer. Schema-11 .sdi preserves null-niche nominal representation across separate compilation. Gate 18 schema-12 interfaces add exclusive mutable receivers, generic templates, borrowed-return provenance, and fallible application-boundary contracts. Gate 19 schema-13 interfaces add exact target/profile/runtime identity and verified public inline bodies. Gate 20 schema-14 interfaces additionally preserve public immutable scalar, text, tuple, struct, and nested-array constants for source-elided consumers; the compiler emits typed read-only globals and checked projections. Gate 21 has an audited uninitialized-capacity primitive used internally by byte buffers and I/O; io.input_stream provides bounded incremental reads, geometric growth copies only initialized prefixes, and direct spare-capacity I/O is covered by its baseline.

Superseded compiler trees were removed after cutover. Their relevant behavior classifications survive in compiler/llvm/COMPATIBILITY.md and migrated regressions; they do not define current compiler semantics.

Gate status

Gates Status Result
0-9 complete language contract, compiler pipeline, safety, native/freestanding execution, hardening, operational cutover
10 complete coherent copy/move/borrow/clone/drop model
11 complete general place/ownership/provenance propagation across aggregates, generics, tasks, function values, and .sdi
12 complete modular compiler/runtime components and enforced 100k full-check scalability
13 complete safe release profiles and reproducible C/Rust comparison corpus
14 complete Windows closed under required Wine; macOS closed by required native Intel execution, with arm64 maintained as its separately verified host
15 complete reproducible package/lock/cache, actionable JSON diagnostics, LSP, doc/lint, exact incremental builds, publish checks, and typed task results
16 complete safe numeric/range/text/buffer/collection ergonomics, automatic core-library staging, predictable native lowering, and representative application performance
17 complete profile-consistent reusable dynamic artifacts and transactional user/system installation of binaries, libraries, and .sdi interfaces
18 complete language-first application ergonomics, basic process/parse/I/O/math/buffer/slice/collection libraries, and safe benchmark migrations
19 complete profile-coherent artifacts, cross-module inline bodies, checked disjoint mutable partitions, direct field stores, and proof-scoped alias metadata
20 complete recursive immutable aggregate constants, addressable static data, and schema-14 source-elided interfaces
21 complete capacity-aware owned buffers, initialized-prefix handoff, geometric growth, and streaming I/O
22 complete effect-qualified callbacks plus runtime-neutral structured-task ABI and explicit task allocation failure
23 complete left-to-right short-circuit &&/`
24 complete non-escaping closures, move/copy captures, boxed retained callbacks, schema-16 interfaces, and mobile bindings

Source encoding and text

The loader validates every source as canonical UTF-8 before lexing and rejects embedded NUL, overlong encodings, surrogates, truncation, and values beyond Unicode's maximum scalar. Decoded string literals are validated as well.

Phase-1 f-string interpolation is implemented for str, borrowed string, bool, and builtin integers. Construction produces ephemeral format_args without heap allocation; direct output uses file.write_*_format, while .to_string()? explicitly materializes an owned string. Phase 2 implements integer base conversion; bounded width/fill/alignment; exact fixed and deterministic scientific/general f32/f64 conversion without libc; and direct static custom formatting through allocation-free borrowed display.display() -> str and debug.debug() -> str implementations.

Implemented language surface

The clean grammar does not currently implement legacy enum, capitalized nominal names, return, # comments, built-in chan<t>/send/recv, detached spawn, recursive closures, generators, macros, exceptions, async/await, or lifetime syntax.

Ownership and safety

The common model is: copy scalars, move resources, borrow zero-copy views, and clone explicitly. Cleanup runs exactly once on structured exits. Panic, trap, and abort do not unwind or run lexical cleanup/destructors.

Ownership/place/provenance facts propagate through aliases, blocks, branches, loop fixed points, fields/nested fields, known array indexes, tuples, ADTs, option/result, generic aggregates, channels/tasks, function values/indirect calls, parameters/returns, and source-elided .sdi. Dynamic-index moves of resource elements remain rejected.

linear t has exactly-once semantics across those same implemented shapes. @borrow receiver/input-derived views retain provenance without lifetime syntax. Unsafe code assumes explicit raw obligations but does not disable safe ownership of surrounding values.

Plain closures are stack-backed and non-escaping. Captures copy or move in first lexical-use order, remain immutable, and clean exactly once. box |...| explicitly allocates an escaping callable and returns result<box fn(...) -> t, alloc_error>; boxed callables are move-only, non-cloneable, non-sendable, and region-confined when region allocated. Seed callbacks use one-pointer code/environment descriptors, while platform function pointers remain thin and accept named functions only.

Text, bytes, and regions

Concurrency

spawn is structured: task groups drain on every edge leaving their lexical owner before cleanup. Captures copy or move according to capability; sharing is explicit, and cross-task values require send/sync as appropriate.

compiler/llvm/libs/task is an ordinary generic library providing ownership- split channels, typed one-shot task joins, events, cancellation, waitgroups, semaphores, barriers, and locks. The direct spawned-body ABI still returns void, so postfix ? cannot cross the task boundary directly. Gate 15 adds the typed library surface task_result_new, task_result_complete_ok/error, and task_result_wait over the same linear, lexically joined endpoints. Function values and inferred closures may use @no_runtime_effects fn(...) to require a complete empty runtime-effect summary; unknown unqualified indirect calls remain rejected in restricted profiles. Boxed callbacks cannot cross spawn because they do not provide send.

Libraries and linkage

.sdi interfaces preserve public types, generic templates/common instances, effects, ownership, provenance, destructor, clone, target, build/runtime profile, dependency, and ABI identity. Schema 13 preserves verified inline bodies and body hashes; schema 14 adds verified public recursive immutable constant payloads; schema 15 adds callable effect contracts; schema 16 adds boxed callable signatures, inline closure bodies, and callable representation identity. A library wrapper does not publish an orphan method specialization whose generic method owner comes from an imported package; source-elided consumers rematerialize that instance from the dependency's template. Hosted seed libraries link dynamically by default; --static selects static seed dependencies. Artifact publication is atomic and corrupt, stale-schema, profile-, target-, or ABI-mismatched interfaces fail closed.

The launcher incremental build/run path stages safe packages for typed I/O, process views, integer parsing, portable math, byte buffers, slices, boxes, networking, serialization, tasks, generic collections, and systems wrappers. Gate 18 adds schema-12 @mut vectors and safe benchmark/application consumers; Gate 19 adds schema-13 inline math/system leaves and disjoint slice partitions. These remain ordinary imported packages, not hidden language built-ins.

Registry resolution, lockfiles/download cache, package add/update, cache pruning, documentation generation, LSP, and incremental object/interface cache are implemented by the Gate 15 tooling. Gate 17 stages bare core and ordinary manifest dependencies into profile/target-qualified dynamic stores by default, reuses installed generations without recompilation, and implements transactional user/system seed install plus reference-aware seed uninstall. Explicit --static and --static=all remain independent linkage choices.

Build profiles and performance

--release uses seed-safe-o2-v1; --release-small uses seed-safe-oz-v1. Bounds, discriminant, provenance, ownership, and cleanup guards remain unless LLVM proves them redundant. ThinLTO, PGO, and static linkage are explicit independent options. No operational unchecked profile exists.

Gate 13 compares equivalent numeric, parsing, collection, allocation/string, structured-task, networking, dynamic-call, startup, RSS, and artifact-size workloads against Clang C and Rust. On the closure host, seed remains within the 0-10% ordinary-runtime target for the enforced corpus. This is controlled workload evidence, not a universal claim that every seed program beats C/Rust.

Gate 12's closure-host 100k full-check median is 0.41 s at 177,504 KiB against budgets of 3.00 s and 196,608 KiB. See GATE12_BASELINE.md and GATE13_BASELINE.md for hardware/toolchain metadata and interpretation.

Target status

Object support is not the same as executable hosted support. The canonical matrix is compiler/llvm/tests/GATE14_TARGET_MATRIX.tsv.

Target Current declared level
Linux x86-64 closed hosted compile/link/run, static/dynamic libraries, libc-free native default
Linux AArch64 hosted compile/link/runtime with runner policy; static/dynamic behavior covered at its declared level
Linux RISC-V64 object-only hosted row; freestanding boot is separate
Windows x86-64 deterministic PE/DLL, runtime services including owned/shared bytes and file read/seek, Microsoft x64 aggregate-parameter FFI, structured tasks, networking, package ABI, loader hardening, and the relocatable SDL3 game package pass under required Wine
macOS x86-64 Gate 14 closed by required native Intel executable, dylib/static, runtime, pthread, networking, package ABI, and loader evidence
macOS arm64 SDK-driven native compile/link/run, runtime/ABI, scheduler, networking, and package evidence on Apple Silicon; maintained separately from the required Intel closure row
Android arm64 LLVM/object/static/shared/executable targets plus JNI runtime, Gradle packaging, API 21/29/37 ARM64 AVD execution, API-37 release scenarios, Garden allocator-instrumented lifecycle evidence, and a scoped API-35 physical-device slice; MP4 lifecycle/services pass on all three smoke AVDs
Android x86-64 LLVM/object/static/shared/executable compile/link compatibility; no emulator/device execution claim
iOS arm64 LLVM/object/archive/device-link and generated C/Swift/XCFramework consumer evidence, plus the complete Seed Garden model/assets/Apple-audio object and unsigned application-bundle cross-build; physical Garden execution, signing, and release evidence remain scoped device work
iOS simulator arm64 iOS 26.5 ARM64 simulator lifecycle/services, bytes/async, Adaptive UI phone/tablet, input, rotation, semantics, XCUITest accessibility, shared MP4 core execution, and Seed Garden context/persistence/continuous-frame/Apple-AudioQueue product coverage
wasm32-WASI object-level row with absent hosted services kept explicit in the Gate 14 matrix
freestanding x86-64/AArch64/RISC-V64 libc-free boot evidence under QEMU at Gate 7 declared levels

Gate 14's required Intel runner, SDK, ABI, FFI, dynamic-library, separate-compilation, corruption, loader, and regression requirements pass. macOS arm64 remains an independently labeled native host rather than a substitute for the Intel closure row.

CLI and tooling

The repository launcher provides new, check, format, incremental build, run, test, package resolution, install/uninstall, doc, lint, LSP, and publish --check, plus direct compiler flag forwarding and file.sd -o output. Remote registry publication/signing is not implemented; the existing publish command performs local validation only.

The direct compiler formats source, prints semantic/IR forms, emits/reads/hashes .sdi, emits LLVM/object/shared/static/binary artifacts, installs target/ABI- qualified libraries, and executes supported targets. Its executable help is the authoritative flag list:

seed/compiler/llvm/build/seed --help

Documentation source of truth

Topic Page
Current language specification seed/docs/lang-spec.md
Grammar seed/compiler/llvm/LANGUAGE_GRAMMAR.md
Semantics seed/compiler/llvm/SEMANTIC_RULES.md
User syntax/CLI Language Reference
Ownership Ownership
Core built-ins Core Built-ins
Runtime/backend System Primitives
Gates seed/compiler/llvm/ROADMAP.md

Historical documents may describe llvm-v1, the v2 prototype, or assembly stub directories that no longer exist. They must be explicitly labeled and must not be used as current clean-language guidance.