0009. Design for zero training data
- Status: Accepted
- Date: 2026-10-29
- Plan: M1.9, M2.5, M2.6, M7.1–M7.6
- Review: The biggest risk: models have never seen Tenon
Context
Harness is optimized for models to write, but no model has trained on it. Until a corpus exists, every program will be written few-shot from documentation.
Decision
- Surface syntax follows the middle of Rust, Go, Swift and TypeScript; no new keyword where a familiar one fits.
- The language reference stays under a token budget (6,000
tokens for the kernel plus core plugins), enforced by
make check, so it fits in every authoring prompt. - Every diagnostic has a stable code, the span and a corrected snippet, as JSON under about 150 tokens.
- One idiom per common task, documented with five-line examples.
- Syntax choices are measured before the kernel syntax freezes: T0 at M2.6 and T1 at M7.5, tracking first-compile rate and tokens per accepted task across model families.
Alternatives considered
- Token-minimal syntax — fewer tokens per program but more errors and repair turns; tokens per accepted task is the metric that matters.
- Novel syntax designed for clarity — clearer to people who learn it, unfamiliar to every model.
Consequences
Some syntax decisions stay provisional until T0 and T1 report. Spec growth competes for a fixed budget, which keeps the language small.