Yan 言 is a programming language with one core and many surfaces. Every surface lowers to the same core, Yan Core (.yir),
which is fast, concurrent, deterministic and capability-safe. The compiler is written in Rust (R215), as one Cargo
workspace (spec 22.2).
| Surface | Ext | Status |
|---|---|---|
| Yan Agent | .yag |
Built. Python-shaped, typed, written by LLMs; measured in total tokens per solved task. A lenient reader repairs common model mistakes, and R807 turns each missing Python builtin or method into a real std function or an N-code alias, never a bare E200. |
| Yan | .yn |
Built. The human syntax, called plain Yan where it needs telling apart. |
| Yan Meta | .ymt |
Research and canary surface, built after M1. |
| Yan Shell, Yan Binary Format, and the other named job surfaces | .ynsh, .ybf, ... |
Named niche surfaces, none built. See docs/surfaces.md. |
Status: generated per commit on the status page (tools/status.py, artifact status) and in the conformance-coverage CI artifact.
Design laws, pipeline and measured state: docs/architecture.md.
Accepted decisions and studies: docs/decisions-2026-11-04.md, docs/studies/, docs/research/README.md.
The developer owns the spec, tests and gates; agents write the code and never edit tests.
Authoritative documents: the Yan 0.1.0 spec (draft) in spec/ and the 0.1.0 Development Roadmap.
| Path | Owner | Notes |
|---|---|---|
spec/ |
Antonio | Agents open spec PRs for accepted rows; Antonio merges them. Rows are registered in spec/rows.toml. |
conformance/, tests/ |
Antonio | Agents propose changes in a separate PR and never edit these. CI rejects agent PRs that touch them. |
crates/ |
agents | Cargo workspace, yan-* crates per spec 22.2 (yan-yag, yan-yn, yan-core, yan-cli, ...). Agent self-tests live in #[cfg(test)] mod selftest (SQ28). |
bench/ |
agents | Benchmark set (R389): each program in Yan, typed Python and Rust, run by bench/run.py. |
tools/conform.py |
agents | Conformance runner (spec 24.1), independent of the implementation. Python, run with uv. |
tools/guard.py |
Antonio (CODEOWNERS) | Path guard used by CI. |
tools/rows.py |
agents | Change-row registry check (spec/rows.toml): duplicate rows, unregistered citations, stale Appendix A.1. next prints free row numbers. |
SPEC_QUESTIONS.md |
Antonio | Spec ambiguities; code cites them with SPEC-Q. |
Held-out evaluation tests live in a separate private repository that agents cannot read.
curl -fsSL https://github.com/zaofang/yan/releases/latest/download/install.sh | sh
brew install zaofang/yan/yanReleases cover macOS (arm64, x86_64) and Linux (x86_64, arm64). The installer checks SHA256SUMS, and its
Sigstore signature when cosign is on PATH. yan build links with the system cc.
Start a package from a template (cli, library or agent-tool):
yan new --template cli total && cd total
yan test
printf '1\n2\n39\n' | yan run src/main.yagPush a v* tag. release.yml builds the four archives (yan,
libyan_rt.a, LICENSE, packed by tools/release.py package), checks yan build --verify on each, and
publishes install.sh, yan.rb, yan.spdx.json, the yan grammar files (yan-agent.gbnf,
.xgrammar, .llguidance), SHA256SUMS with its keyless Sigstore bundle, and build provenance and SBOM
attestations. Clean runners then time install to first yan run through the installer and the formula
(limit 60 s). The tap repository zaofang/homebrew-yan is updated when the HOMEBREW_TAP_TOKEN secret is
set.
cargo fmt --all --check && cargo clippy --all-targets -- -D warnings && cargo test
cargo build -p yan-cli
uv sync && uv run pytest -q tools/selftest
uv run python tools/conform.py --executor interp=target/debug/yanAn executor is any command that implements CMD check --format json FILE (prints a JSON array of
spec 18.2 diagnostic records) and CMD run FILE. Exit status 2 from either is a tool failure.
| What | License |
|---|---|
| Code: compiler, toolchain, std, runtime support, conformance suite | Apache-2.0 WITH LLVM-exception |
| Spec text, docs, tour, book | CC-BY-4.0 |
| Grammars, normative tables, spec code samples | CC-BY-4.0, or Apache-2.0 WITH LLVM-exception |
Doc examples, yan new templates, published eval task statements |
0BSD |
Programs compiled with Yan belong to their authors. Std and runtime code embedded in them falls under the LLVM exception, so binaries need no Yan notice.
Copyright the Yan authors. Path-by-path scope: LICENSING.md. "Yan" and the 言 logo are trademarks claimed by the project lead; see TRADEMARK.md.
Contributions: see CONTRIBUTING.md (DCO sign-off, AI disclosure), CODE_OF_CONDUCT.md and SECURITY.md.
CI runs on GitHub-hosted runners only. Under Settings → Actions → General, require approval for all outside contributors' workflow runs.
Branch protection on main: require a pull request, require review from Code Owners, and require
the guard, canary, check, rust and formal status checks.
Enable private vulnerability reporting under Settings → Code security.