Tenon Build Plan Archive (M0–M29)
Archived 2026-11-29 from root PLAN.md (
IDE-12). Reconciled shipped checkboxes (M0.12,M14.12,M22.7–M22.9,M28.1–M28.6). Active milestones (M30+), the formal M31+ additive feature freeze, and Wave 2 consolidation live in PLAN.md.
Tenon build plan
The source of truth for what to build, in what order, and how
we know each piece works. AGENTS.md says how to work; docs/design-review.md and docs/decisions/ say why. Run
make status to see where the project stands and
make next for the next task.
How to read this plan
- Milestones (
M0toM16) run in order. Each states its goal and scope, lists tasks, and ends with one or more checkpoints. - Tasks have IDs like
M1.4. A task is one commit, or a short series of commits that each keepmake checkgreen. Tick its box in the commit that finishes it, with the trailerPlan: M1.4. - Checkpoints have IDs like
CP-1.2and become annotated git tags likecp/1.2-fib. A checkpoint is a working state you can return to or branch from. Create one withmake checkpoint ID=1.2 SLUG=fib MSG="..."once its criteria hold. - Gates are measurements a milestone must pass before it closes. A failed gate is a finding: record it, then fix the code or the plan.
- Experiments try an alternative from a
checkpoint on an
exp/branch:make experiment FROM=1.2 NAME=tcc-run HYP="...". Candidates are listed per milestone; outcomes go in EXPERIMENTS.md, and an adopted one gets an ADR. - (P) marks a task that can run in parallel with the one before it, for example by another agent in another worktree.
- [human] marks a task only a person can do,
such as pushing to a remote or choosing a license.
make nextskips these.
Legend: - [ ] open, - [x] done,
~~struck~~ dropped (with a one-line reason).
Principles
- Walking skeleton first. A program runs end to end in M1; every later milestone widens a path that already works.
- Always green, always tagged. Every commit
passes
make check; every working chunk becomes a checkpoint tag you can return to. - The kernel holds mechanisms; plugins hold policies (ADR-0004). Build features as if they were plugins even before the plugin machinery exists.
- Design for zero training data (ADR-0009). Familiar syntax, a spec that fits in a prompt, diagnostics that teach.
- Emit C first; the interpreter is the reference (ADR-0003).
- Immutable semantics, mutable implementation (ADR-0007). Scoped arenas, no garbage collector.
- Measure before optimizing. No optimization lands without a benchmark that shows the need.
- Agents are values, not processes (ADR-0010).
Milestone map
| Milestone | Goal | Checkpoints | Gate |
|---|---|---|---|
| M0 | Repository, gate and agent setup | CP-0.1 | make check green; scripts tested end to end |
| M1 | Walking skeleton: hello and fib
compile to C and run |
CP-1.1, CP-1.2, CP-1.3 | golden programs pass; fib(30) matches Python |
| M2 | Static types, diagnostics and formatter | CP-2.1, CP-2.2 | every program type-checks; formatter idempotent; T0 recorded |
| M3 | Typed IR, reference interpreter, differential testing | CP-3.1, CP-3.2 | interpreter and C backend agree on every program |
| M4 | Records, unions, match, generics, interfaces, results | CP-4.1, CP-4.2, CP-4.3 | exhaustiveness, ? and coherence tested |
| M5 | Memory model: arenas, strings, vectors, blocks | CP-5.1, CP-5.2, CP-5.3 | 107 MB CSV run peaks under 110 MB; carry appends are O(1) |
| M6 | cli platform v0 and the first real tools |
CP-6.1, CP-6.2 | tools byte-identical to Python, faster, peak memory reported |
| M7 | LLM authoring: spec, idioms, diagnostics, transfer benchmark | CP-7.1 | spec at or under 6,000 tokens; T1 baseline recorded |
| M8 | Performance pass with Go and Rust baselines | CP-8.1 | workload-class targets measured |
| M9 | Modules, packages and plugins v1 | CP-9.1 to CP-9.4 | three real plugins per extension point before it freezes |
| M10 | Platforms as plugins, capabilities, sandboxed processes | CP-10.1, CP-10.2 | cli rebuilt as a plugin with no regression;
sandbox escapes fail |
| M11 | Deterministic data parallelism | CP-11.1 | identical output for 1 to N threads; speedup measured |
| M12 | agent platform v0 |
CP-12.1 to CP-12.3 | fake-adapter scenarios and crash-point tests pass |
| M13 | Agent density | CP-13.1 | density targets met or explained |
| M14 | Harness² coding harness | CP-14.1 to CP-14.3 | $0 efficiency gate; capped live loop; gain reported |
| M15 | Distribution and interop | CP-15.1 to CP-15.3 | static binaries on three OSes; FFI and wasm-host tested |
| M16 | 1.0 hardening | CP-16.1 | kernel spec frozen; security review done |
The walking skeleton is deliberately crude: it compiles
straight from the AST to C with no type checker (ADR-0011).
M2 adds types and M3 replaces the AST-to-C path with the typed IR.
Tag cp/1.2-fib keeps the crude version reachable for
comparison.
Parallel tracks sit after Appendix C and are not part of the
ordered M0–M16 table: M17 local version control, M18 agent
tooling, and M19 the procman TUI process manager
(plan, ADR-0267);
M20 language spikes; M21 language for apps, M22 isolation and
runtime plugins, M23 the single-box web and server stack (ADRs
0275–0282, accepted 2026-11-22).
M0 — Repository, gate and agent setup
Goal: a repository where any agent can make a safe, verifiable change and record a checkpoint. Scope: git, instructions, scripts, Rust workspace stub, CI. No language features.
-
- Checkpoint CP-0.1 — tag
cp/0.1-bootstrap:make checkpasses;make nextprints M1.1; checkpoint and experiment scripts work.
- Checkpoint CP-0.1 — tag
M1 — Walking skeleton
Goal: tenon run hello.tn prints
hello, world. Then integers, functions and loops, so
fib runs. In scope: one source file;
fn, let, var, assignment,
if/else, while,
break, continue, return;
integers and booleans; print/println of
an integer or a string literal; arithmetic, comparison and logical
operators; // comments. Type annotations are parsed
but not yet checked. Out of scope: type checking
(M2), string values (M5), modules (M9), any optimization.
Pipeline: source → tokens → AST → C →
cc → executable. No IR yet (ADR-0011).
-
- Done when: the runner passes with zero programs and reports how many it ran.
-
- Done when: unit tests render one diagnostic both ways; the
JSON shape matches
docs/spec/diagnostics.md.
- Done when: unit tests render one diagnostic both ways; the
JSON shape matches
-
- Done when: unit tests cover every token kind, plus unterminated string (E0001), unknown character (E0002) and integer literal out of range (E0003).
-
- Done when: AST snapshot tests for at least 12 inputs and 5 error cases pass.
-
- Done when:
cargo run -- run tests/programs/hello/main.hnprintsHello, world!and thehellogolden passes. - Checkpoint CP-1.1 — tag
cp/1.1-hello.
- Done when:
-
- Done when: goldens
arith,logicandeval-order(side effects observed in order) pass.
- Done when: goldens
-
- Done when: goldens
fib,factorial,loop-sumandfizzbuzzpass, andfib(30)matches Python's output. - Checkpoint CP-1.2 — tag
cp/1.2-fib. Put thefib(32)wall time for Harness and Python in the tag message.
- Done when: goldens
-
- Done when: goldens with
expected.exit101 andexpected.errpass.
- Done when: goldens with
-
- Checkpoint CP-1.3 — tag
cp/1.3-diagnostics.
- Checkpoint CP-1.3 — tag
Experiments from CP-1.2: tcc-run
(TinyCC in-process for tenon run: does edit-to-run
latency drop enough to justify bundling it?); c-ast
(emit C through a small C AST instead of strings: simpler and
safer?). Risk: building a "proper" architecture
inside M1. Resist it; M3 replaces the backend path anyway.
M2 — Static types, diagnostics and formatter
Goal: every program is type-checked before
code generation, and one formatter defines canonical source.
In scope: name resolution; i64,
bool, str (literals and interpolation
only), unit and function types; type errors with fixes; formatter;
diagnostics registry; a first model smoke test. Out of
scope: user-defined types (M4), building strings
(M5).
-
- Done when: every golden program type-checks and 15 type-error goldens pass.
- Checkpoint CP-2.1 — tag
cp/2.1-typed.
-
- Done when: formatting twice equals formatting once for every
program in
tests/, andmake checkrunsfmt --checkon them.
- Done when: formatting twice equals formatting once for every
program in
-
- Checkpoint CP-2.2 — tag
cp/2.2-fmt.
- Checkpoint CP-2.2 — tag
Experiments from CP-2.1 (resolved by T0, ADR-0019):
keep let-mutvar;
keep interp-syntax{x}.
M3 — Typed IR, reference interpreter and differential testing
Goal: one typed IR that both backends consume, and an interpreter that defines what programs mean.
-
- Done when: every golden passes through the IR path.
- Checkpoint CP-3.1 — tag
cp/3.1-ir.
-
- Checkpoint CP-3.2 — tag
cp/3.2-differential.
- Checkpoint CP-3.2 — tag
Experiment from CP-3.1: ssa (is
an SSA control-flow graph worth its cost over the structured
IR?).
M4 — Records, unions, generics, interfaces and results
Goal: the data-modelling core real programs need.
-
- Verified on both backends: 58 differential programs, 29 parse snapshots, 15 IR snapshots and 78 diagnostic goldens; all 58 pre-existing digest lines unchanged. M4.1 measurements record interpreter time/RSS and stack-limit evidence. ADRs 0020, 0023 and 0028 accepted; language reference approximately 2,561 tokens.
-
- Verified on both backends: 65 differential programs (+7), 30 parse snapshots, 16 IR snapshots and 84 diagnostic goldens. ADR-0021 accepted; semicolon-free formatting is idempotent; all 58 M4 baseline digest lines unchanged.
-
- Verified on both backends: 88 differential programs (+23), 35
parse snapshots, 19 IR snapshots and 107 diagnostic goldens; 216
Rust unit/integration tests. ADR-0022 accepted; ADRs 0023/0028
amended; reference approximately 2,915 tokens. All 58 M4 baseline
digest lines and pre-existing goldens unchanged. Forcing a bare C
breakinside Switch madematch-break-in-loopprint88instead of1and fail differential comparison; restoring the sentinel returned the gate to green. Exhaustive returning matches compile with gcc C11-Wall -Wextra -O2 -Werror. - Benchmark stdout is byte-identical. Paired seven-run compiler checks against the immediate pre-M4.3 commit show median changes of +0.4% to +5.6%; interpreter repeat medians are 37.445 s for loops (+14.2% vs CP-3.2) and 0.593 s for printint (+4.8%). Cumulative compiler-time increases against the M4 baseline exceed the checkpoint allowance on several rows and remain for the orchestrator's CP-4.1 performance review. No checkpoint tag or checkpoint results file created here.
- CP-4.1 compiler regression follow-up: 31-pair
measurements recover every generated
check/emit-crow to within +5% of main 7d7d0fe (worst +4.4%). Compact owned types/AST payloads, borrowed scope keys and scalar fast paths are recorded in ADR-0029. All 101 branch digest lines, including the 58 pre-M4 lines, remain identical; three layout-budget tests catch the original inflation.
- Checkpoint CP-4.1 — tag
cp/4.1-records-unions.
- Verified on both backends: 88 differential programs (+23), 35
parse snapshots, 19 IR snapshots and 107 diagnostic goldens; 216
Rust unit/integration tests. ADR-0022 accepted; ADRs 0023/0028
amended; reference approximately 2,915 tokens. All 58 M4 baseline
digest lines and pre-existing goldens unchanged. Forcing a bare C
-
- Verified on both backends: 102 differential programs (+13), 39
parse snapshots, 22 IR snapshots, 149 diagnostic cases and 276
Rust tests; 17 Python benchmark/generator tests. Inference-only
definitions, deterministic instances, generic layouts, limit
diagnostics, formatter comments/idempotence and gcc C11
-Wall -Wextra -O2 -Werrorcovered. ADR-0024 accepted; reference approximately 3,271 tokens. All 58 M4 baseline digest lines unchanged. - Generics size measurements: fixed fixture 3,802 C bytes, eight instances, five layouts, 30.299 ms build median; 475.25 bytes per instance including scaffolding. N=100 retains eight instances/five layouts. 31-pair compiler comparison meets the agreed median/noise allowances; no checkpoint tag created.
- Verified on both backends: 102 differential programs (+13), 39
parse snapshots, 22 IR snapshots, 149 diagnostic cases and 276
Rust tests; 17 Python benchmark/generator tests. Inference-only
definitions, deterministic instances, generic layouts, limit
diagnostics, formatter comments/idempotence and gcc C11
-
- Verified on both backends: 118 differential programs (+16), 40
parse cases, 24 IR snapshots, 163 JSON/human diagnostic cases and
279 Rust tests. ADR-0025 accepted; reference approximately 3,505
tokens. All 58 M4 baseline digest lines and pre-existing goldens
unchanged; formatter handles postfix chains and remains
idempotent. Malformed builtin-union arities under
?report diagnostics rather than panicking. - CP-4.2
evidence records runtime, C size/build/RSS and paired compiler
measurements. No meaningful M4.5 regression against immediate M4.4
on the flagged workload; cumulative
calls-40000 emit-cremains +8.9% median/+9.8% minimum against the pre-M4 binary, pending orchestrator performance review. No checkpoint tag created.
- Checkpoint CP-4.2 — tag
cp/4.2-generics-results.
- Verified on both backends: 118 differential programs (+16), 40
parse cases, 24 IR snapshots, 163 JSON/human diagnostic cases and
279 Rust tests. ADR-0025 accepted; reference approximately 3,505
tokens. All 58 M4 baseline digest lines and pre-existing goldens
unchanged; formatter handles postfix chains and remains
idempotent. Malformed builtin-union arities under
-
-
- Implementation verified on both backends: 300 Rust tests, 147
differential programs (+17), 44 parse cases, 28 IR snapshots and
212 JSON/human diagnostics; gcc C11
-Wall -Wextra -O2 -Werror, formatter idempotence, all 58 baseline and 133 saved CP-4.2 digest rows unchanged. ADR-0027 accepted; reference approximately 3,697 tokens. CP-4.3 evidence includes C size/build/RSS and runtime tables. Completion remains blocked by the cumulative compiler gate: repeated longline-60000 check is +9.35% median / +9.57% minimum against the M4 baseline, despite +4.8% / +0.4% against immediate pre-M4.7. No performance exception assumed and no checkpoint tag created. - CP-4.3 completion after review: 304 Rust tests, 148 differential programs (+1 review repair golden), 219 diagnostic cases, 44 parse cases and 28 IR snapshots; gate green, reference ~3,692 tokens. All 58 baseline and 133 saved CP-4.2 digest rows unchanged. The orchestrator accepts compiler-time variation around 5%; final 15-pair table records large check +4.60%, calls check +1.41%, longline-30000/60000 check +6.43%/+5.79% and linear scaling. These supersede the earlier blocking status under that acceptance, without claiming a strict +5% pass. Cheap interface-free/metadata fast paths showed no reliable median gain and were reverted. No checkpoint tag created.
- Checkpoint CP-4.3 — tag
cp/4.3-interfaces.
- Implementation verified on both backends: 300 Rust tests, 147
differential programs (+17), 44 parse cases, 28 IR snapshots and
212 JSON/human diagnostics; gcc C11
Experiment from CP-4.1:
union-layout (a tagged C union or one struct per
variant?).
M5 — Memory model
Goal: dynamic data with no garbage collector, and memory use you can predict and measure.
-
- Evidence: 307 Rust tests; 13 C fixtures, 85 executions across sanitizer/poison/stats modes (including five OOM paths); gate green, 148 differential programs and all 164 M5 baseline digest rows unchanged. Runtime-only: no compiler or source-language changes.
-
- Evidence: 338 Rust tests, 195 differential programs, 47 heap
goldens under poison, ASan and UBSan; 100 MB loop peaks at 1,032
arena bytes (103 MB with resets off); all 164 baseline digest rows
unchanged and 176 non-heap programs emit identical C; see
bench/results/m5.2-scopes.md. - Checkpoint CP-5.1 — tag
cp/5.1-arenas.
- Evidence: 338 Rust tests, 195 differential programs, 47 heap
goldens under poison, ASan and UBSan; 100 MB loop peaks at 1,032
arena bytes (103 MB with resets off); all 164 baseline digest rows
unchanged and 176 non-heap programs emit identical C; see
-
- Evidence: 354 Rust tests; 231 differential programs (+34 from M5.2), 46 parse cases, 36 IR snapshots, 250 diagnostics; 20 C runtime fixtures/151 executions; all 83 heap goldens pass poison/ASan/UBSan. Two accumulators at 100k/1m iterations copy 1,120,885/9,767,157 bytes (8.71x for 10x work), with byte-identical interpreter results. Gate and source formatting green; all 164 baseline digest rows unchanged; reference ~4,260 tokens. ADR-0038 accepted, ADR-0039 updated; see M5.3 evidence.
-
- Done when: a loop of 1,000,000 appends scales linearly (a test compares 10^5 and 10^6).
-
- Evidence: 350 differential programs (+18), 55 parse cases
(+4), 46 IR snapshots (+2), 322 diagnostics (+29); E0700–E0705
each have one checked teaching row. Both backends share inline
loops, comparator ordering/traps and method-site fuel. Stable
merge sort alternates two private buffers; total/peak arena use is
131,088/2,097,200 bytes at 4,096/65,536 elements, including input
construction. The additive BufWrite intrinsic and its construction
proof are recorded in ADR-0042. Mapped vec returns pin zero
copies/promotions (ADR-0043 follow-up); gcc C11
-Wall -Wextra -O2 -Werror, poison/ASan/UBSan and formatter idempotence pass. All post-M5.6 baseline digest rows unchanged; reference approximately 4,750 tokens.
- Checkpoint CP-5.2 — tag
cp/5.2-strings-vec.
- Evidence: 350 differential programs (+18), 55 parse cases
(+4), 46 IR snapshots (+2), 322 diagnostics (+29); E0700–E0705
each have one checked teaching row. Both backends share inline
loops, comparator ordering/traps and method-site fuel. Stable
merge sort alternates two private buffers; total/peak arena use is
131,088/2,097,200 bytes at 4,096/65,536 elements, including input
construction. The additive BufWrite intrinsic and its construction
proof are recorded in ADR-0042. Mapped vec returns pin zero
copies/promotions (ADR-0043 follow-up); gcc C11
-
- Lane B evidence: 324 Rust tests, 177 differential programs
(+29), 45 parse cases, 30 IR snapshots and 231 diagnostics;
generated helper/conversion boundaries and backend parity pass gcc
-Werrorplus UBSan. All 164 M5 baseline digest rows unchanged; spec ~3,966 tokens. Integer validation records native arithmetic -0.24%, interpreter fib(30) +0.67%, compiler timing/RSS and linear scaling. ADR-0044; no arenas, strings/bytes, vectors or checkpoint tags added.
- Lane B evidence: 324 Rust tests, 177 differential programs
(+29), 45 parse cases, 30 IR snapshots and 231 diagnostics;
generated helper/conversion boundaries and backend parity pass gcc
-
- After M6.2: read with
cli.stdin.read_all(); do not introduce globalread_stdin. - Verified after ADR-0046: whole-input best-of-seven RSS
105,724 KiB passes the strict <107,421
KiB gate (was 236,668 KiB); streaming
23,092 KiB, no-reset control 474,248
KiB. Regular-file remaining-size hints and private
arena-top growth remove dead read buffers, including for pipes.
Output matches Python, both sources pin one
best_rowpromotion, 501 differential goldens and the full gcc gate pass; saved-baseline digest differences 0, existing-workload median regressions ≤0.45%. See CP-5.3 measurements. No checkpoint tag created. - Checkpoint CP-5.3 — tag
cp/5.3-memory-gate.
- After M6.2: read with
Experiments from CP-5.2:
perceus-rc (does reference counting with reuse beat
arenas alone for large persistent values?); arena-va
(reserved address space or chunk lists?).
M6 —
cli platform v0 and the first real tools
Goal: useful command-line tools written in Tenon that beat Python with byte-identical output.
-
- Stage A adds the platform beside print; Stage B migrates sources; Stage C removes globals. L2 paths use E0850–E0869, L3 maps E0870–E0899, L4 streams/processes E0900–E0929.
-
- Evidence: 497 differential programs, 56 IR and 360 diagnostic cases; full gcc gate green, mmap stream goldens and 238 heap goldens under mmap/poison/ASan/UBSan. Permanent volatile-promotion/token/pinning mutations, truncation tests, terminal File parity, fd cleanup and zero-read/mmap probes pass. Generated 1 GiB lines+split peaks at 13,840 KiB (<16 MiB), enforced in the Linux gate. Baseline digest differences 0; spec unchanged at ~5,671 tokens. Audit and remaining platform limits.
-
- Checkpoint CP-6.1 — tag
cp/6.1-io.
- Checkpoint CP-6.1 — tag
-
- Evidence: ADR-0052; 15 path differential programs, byte-preserving textual operations/slices, checked repair goldens and left-to-right erased identities. C/Rust lossy parity covers all 1/2-byte inputs, 32 fixed malformed/boundary cases and 32,768 seeded longer inputs; 13 Python posixpath-derived join/parent rows agree. Path goldens and runtime edges pass poison/ASan/UBSan; deep-nesting CLI regressions pass without larger stacks. Full gate: 392 programs/differential, 55 parse, 52 IR, 348 diagnostics, zero failures; baseline digest comparison zero; reference ~5,323 tokens.
- Cross-lane integration remaining:
path-open-fileand opening a non-UTF-8 filename throughraw_argsrequire M6.2 filesystem methods and M6.3 args, absent from this lane's Stage A base. Textual path functionality is complete; run those integration cases when the lanes meet.
-
- Evidence: ADR-0056; 13 process differential programs,
including 2 MiB on both pipes, binary/non-UTF-8 output, inherited
stream order/stdin, status/signals, errors, argv boundaries and
escaped Output values. C runtime tests cover both pipe-fill
orders, EINTR, cleanup/reaping and closed stdio; poison/ASan/UBSan
and gcc C11
-Wall -Wextra -O2 -Werrorpass. Exec-format errors never fall back to a shell on either backend. E0910/E0911 have flat JSON/human goldens and checked teaching/Unicode-repair regressions. Full gcc gate: 444 programs/differential, 55 parse, 54 IR, 359 diagnostics, zero failures; baseline digest differences 0; reference ~5,504 tokens (+23 over the 5,481 lane allowance base).
- Evidence: ADR-0056; 13 process differential programs,
including 2 MiB on both pipes, binary/non-UTF-8 output, inherited
stream order/stdin, status/signals, errors, argv boundaries and
escaped Output values. C runtime tests cover both pipe-fill
orders, EINTR, cleanup/reaping and closed stdio; poison/ASan/UBSan
and gcc C11
-
-
- Evidence: 75 cli-only fixtures (590 differential programs),
six pinned CSV divergences and full gcc gate green; all six match
Python on small/medium/large and
/dev/null, with worst Harness/Python time ratio 0.351 (large word-freq). In-place chunk scans reduce paired large grep/word-freq RSS from 106,988/108,296 to 2,624/3,884 KiB; fresh three-scale reports peak at 3,912 KiB for Harness. Existing stdout/exit goldens and spec unchanged (~5,168 tokens at CP-6.2); results, scope and review evidence.
- Evidence: 75 cli-only fixtures (590 differential programs),
six pinned CSV divergences and full gcc gate green; all six match
Python on small/medium/large and
-
- Evidence: seeded inputs/unchanged Python baselines, determinism and manual selftest pass; child-only RSS supervisor verified at 1,276–1,360 KiB for true with a 64 MiB-inflated runner, with RSS/output-path regressions in the gate. Fresh best-of-five small, medium and large reports include startup and clean peak RSS (large Harness 1,476–3,772 KiB; Python up to 114,536 KiB); scale-safe defaults preserve the large checkpoint alias.
- Checkpoint CP-6.2 — tag
cp/6.2-tools, with the results table in the tag message.
Experiment from CP-6.1:
mmap-threshold (where does mmap beat
read, by file size and file count?).
M7 — LLM authoring: spec, idioms, diagnostics and transfer
Goal: measure, then improve, how well models write Tenon from documentation alone.
-
- Evidence:
scripts/check-spec-examples.pychecks, formats, builds and runs 16 examples across LANGUAGE.md and IDIOMS.md with 0 skips, gated with a self-test of 28 rejected fixture cases; audit fills listed in the commit body; spec under 5,700 tokens.
- Evidence:
-
- Evidence: seven checked idioms, each run with arguments, stdin
or a real input-file fixture against expected output; nine
bad-input cases assert exit 1 and exact stderr for argument/field
errors.
scripts/spec-budget.pycaps the file at 2,000 tokens; IDIOMS.md ~908 tokens.
- Evidence: seven checked idioms, each run with arguments, stdin
or a real input-file fixture against expected output; nine
bad-input cases assert exit 1 and exact stderr for argument/field
errors.
-
- 106 active codes have compiler-verified wrong/corrected programs; CLI tests enforce the 540-byte JSON budget across all diagnostic fixtures and explanations. Ordinary diagnostic goldens remain unchanged (ADR-0048).
-
- 21 CLI tests cover stable outlines, hash guards, checked/formatted replacement, resolved references, capture/collision/ambiguity refusal and unchanged files on failure; atomic-write unit tests cover stale contents, symlinks and batch staging. Both-backend goldens and baseline digest unchanged (ADR-0049).
-
- Evidence: real runs at 13edcca on two families — Anthropic
claude:sonnetand OpenAIopencode:build-deep(gpt-6.1-sol) — both 50/50 first-compile and 50/50 pass with 0 repair turns; tokens per accepted task 14,496 (reported) and ~7,391 (estimated). T1 saturates, so M7.6 needs harder tasks to measure syntax changes; Sonnet, OpenCode. Runner reviewed (F1–F7 fixed: no hidden-output leakage, pinned resume identity). - Checkpoint CP-7.1 — tag
cp/7.1-transfer-baseline.
- Evidence: real runs at 13edcca on two families — Anthropic
-
Gate: spec within budget; T1 baseline recorded; kernel surface syntax frozen, or changed by ADR.
M8 — Performance pass
Goal: hit the workload-class targets and know where Tenon stands against Go and Rust.
-
- Evidence: stdlib Go and Rust ports for every
bench/*/main.hn, plus csv-split streaming, streams, mmap, reader-release, vec lines, regions-layout-dag, m8.2 classify/count/minmax, the cache-hostile map, runtime builtins, and streaming CLI tools whose word-freq port is a general hash map.bench/baselines/run.shbuilds withgo buildandrustc -O(overflow checks on; no new crate) and requires byte-identical stdout. Best-of-five, median, and peak RSS versus gcc-O2and Python.CC=gcc scripts/check.shendscheck: OK.
- Evidence: stdlib Go and Rust ports for every
-
- Evidence: ADR-0065; 525 differential goldens (+10), 20
all-width checked-update boundary comparisons, strict gcc C11
-Wall -Wextra -Werror -O2emitter tests, andCC=gcc scripts/check.shgreen. Byte provenance, all 256 values, ranges/alternations/defaults, nested byte loops, overlap, non-byte/effectful fallback, flat arm depth and divergent returns covered. Best-of-five measurements: classification 142.206→28.205 ms (5.04×), counting 138.687→36.268 ms (3.82×), min/max unchanged; C sizes 13,844→10,145 / 6,806→6,749 / 7,112→7,023 bytes. Shared baseline: 527/535 C digests identical; eight expected branchless-only changes listed here. No existing stdout/exit golden changes.
- Evidence: ADR-0065; 525 differential goldens (+10), 20
all-width checked-update boundary comparisons, strict gcc C11
-
- Evidence: ADR-0066; conservative placed-IR range facts, deterministic check reports and E0720 with checked teaching/JSON goldens. Post-merge/review gcc gate green: 638 differential programs (8 original proven patterns, 21 trapping near misses, 3 original checkfree cases, 2 review regressions), 56 parse, 56 IR and 374 diagnostic cases; 17 spec examples pass, reference ~5,870 tokens (≤6,000). Shared baseline C digests: 550 common, 233 changed, 317 identical, 34 new, 4 baseline-only rows already absent before these fixes; existing output/trap goldens unchanged. Review fixes preserve contradictory-length checks, expose proven-index assumptions to gcc and honour overflow proofs in branchless updates; both reproducers compile with -Werror -O2. Pre-fix digest: 78 changed (index helpers only), 504 identical, 2 new, 0 removed; exact audit. Original best-of-five gcc -O2 nested loops 471.364→351.344 ms (1.34×), maps/arithmetic within noise, peak RSS effectively unchanged; dynamic vector lengths remain conservative. Measurements and reproduction.
-
- Bounded libc scans and short-decimal fast paths (ADR-0062), with unchanged streaming and exact interpreter/C semantics. Profile, builtin/Python measurements, and large four-way results: csv-sum 134.989→118.634 ms at ~1,600 KiB RSS; word-freq effectively unchanged, ~81% sampled map work deferred to M8.6. Gate green; shared digest drift from concurrent PRs #42/#43 is itemized in commit bodies, with no M8.5 emitter changes.
-
- Evidence: ADR-0063; portable eight-byte SWAR groups, seven-bit
tags and cloned tails over the unchanged dense-entry/API layout.
Scalar lookup retained through 16,384 entry capacity after
small-map grouping regressed word-frequency. All 256 control
bytes, collision/wraparound, growth, snapshots/order and hint
failure/unavailability tests pass under GCC
ASan/UBSan/poison/stats variants; two new <40-line differential
programs.
CC=gcc scripts/check.sh:check: OK, 606 differential programs, 370 diagnostics, 16 spec examples; no new diagnostics or language semantics. - Interleaved
seven-run results: 4,194,304-key, >LLC live table median
3520.759→3047.768 ms (13.4% faster), best 3332.973→2952.574 ms
(11.4%); RSS 788084→804552 KiB (+2.1%). Word-frequency +2.1%
median / +0.6% best (noise), 2.65× / 2.76× faster than Python.
Existing vocabulary-specialized Go/Rust comparisons reported.
Default-on huge-page advice discarded after a 20.9% median
regression; guarded pure hints remain opt-in with
HRT_MAP_HUGEPAGE. Release C digest: all 550 shared rows identical; zero changed/removed, two new golden rows.
- Evidence: ADR-0063; portable eight-byte SWAR groups, seven-bit
tags and cloned tails over the unchanged dense-entry/API layout.
Scalar lookup retained through 16,384 entry capacity after
small-map grouping regressed word-frequency. All 256 control
bytes, collision/wraparound, growth, snapshots/order and hint
failure/unavailability tests pass under GCC
ASan/UBSan/poison/stats variants; two new <40-line differential
programs.
-
- Part A evidence: match scaling: release integer 2k/4k/8k/16k arms 84.958/340.241/1278.526/5201.486 → 7.942/16.899/34.769/74.154 ms; exponent 1.979 → 1.074. Verifier scope rollback replaces quadratic clones; exact IR/C and shared release digest unchanged.
- Part B evidence: ADR-0067; std-only FNV/full-key native cache, atomic publication, validated artifacts, 256 MiB FIFO cap, environment overrides and disable switch. CLI tests cover build/run hits, flags/version/source misses, corruption, warnings, concurrent publication and directory selection; release emission unchanged.
- Part C evidence (CI-independent): best-of-three dev-loop results, generated 10k/20k/40k lines: cold build 9066.777/17345.876/37485.371 ms, cached 42.655/80.203/167.434 ms; cached cost 42.655/40.102/41.859 ms per 10k lines, with peak RSS and check/emission/first-output timings. Strict gcc and exact baseline C/stdout checks precede timing.
- Scope disposition:
tcc-runwas never run; tcc is not installed, nothing installed, no in-process compiler adopted. Per-module dev builds moved to M9 after M9.1 modules; whole-program cache and tracking complete.
-
- Checkpoint CP-8.1 — tag
cp/8.1-perf, with the full results table.
- Checkpoint CP-8.1 — tag
Gate: text-heavy work 2–6× faster than Python, byte loops 20–60×, map-heavy work at least 2.5×, startup about 10×; Go and Rust ratios reported (within 2× of Go is the target, not yet a promise).
M9 — Modules, packages and plugins v1
Goal: the plugin architecture working on real plugins (ADR-0004, ADR-0006).
-
- Checkpoint CP-9.1 — tag
cp/9.1-modules.
- Checkpoint CP-9.1 — tag
-
-
-
- Checkpoint CP-9.2 — tag
cp/9.2-packages.
- Checkpoint CP-9.2 — tag
-
- Step 5.0: record signature, trigger, explicit
harness gen, staged edges and owner defaults in ADR-0078. Recheck M9.3 Steps 2–5 loader/canon integration andcp/9.2-packagesafter that parallel work lands; neither is present at 8a46e18. Reserve ADR-0079 for sandbox limits and ADR-0080 for companions; 0076 belongs to M9.3. - Step 5.1: parse contextual
derive X for T, preserve legal identifier uses, diagnose malformed/public derives (E0117), and support dump/fmt/outline/rename. Strip derives before canonical forms/merging; accepted derives report E0960 until resolution lands. Cover derive-basic, derive-identifier-still-legal, derive-missing-for, pub-derive, derive-generic-target, fmt idempotence and canonical-form exclusion. - Step 5.2: pure interpreter entry with returned values, runtime platform/print/exit guards, 50M fuel, 256 MiB fresh-buffer heap and 16 MiB output caps; test all allocation classes, views, traps and unchanged unrestricted interpretation (ADR-0079).
- Step 5.3: host-module companions, same-file target/newtype authority, bindings and staged runtime reachability; cover root/module/private/newtype/shared-import companions, E0960–E0963/E0968/E0972, foreign-access denial and generator-only code exclusion (ADR-0080). Split staged edges into their own commit if needed; preserve existing topo order.
- Step 5.4: embedded exact-path
std.reflect, deterministic flat post-order type closure and expression-literal builder; test all shapes, unsupported fields, determinism and reserved std collisions (ADR-0081).
- Step 5.0: record signature, trigger, explicit
-
- Step 6.1:
vec<u8>.to_byteson both backends and runtime, including empty/high-byte/snapshot cases and non-u8 rejection (ADR-0083); required because Harness cannot otherwise construct bytes >=0x80. Emit the helper only when used. - Step 6.2: path-dependent
plugins/codecpackage and runtime helpers; test all-width integer bounds, escaping, Unicode surrogate pairs, varints and truncated-input errors with overflow guards before arithmetic. - Step 6.3: JSON encoder generation for
structs/enums/nesting/containers/private newtypes/escapes/integer
extremes; unsupported fields and missing nested derives return
field-path errors within generator fuel.
- Step 6.4: fused JSON struct decoders with field-order freedom
and whitespace; reject duplicate keys (including escaped
equivalents), unknown/missing keys, trailing/invalid UTF-8,
floats/exponents/leading zeros/-0/out-of-width integers,
unterminated strings and raw controls.
- Step 6.5: JSON enums, nested vectors, required option keys
with null, str-key maps, newtypes, hex bytes and cross-module
imports; reject wrong enum arities/tags and duplicate/non-str map
keys.
- Step 6.6: compact binary codecs: declared-width zigzag/LEB128,
length/count prefixes, declaration-order fields/tags, option 0/1
and 8-byte signature fingerprints. Reject
overlong/out-of-width/truncated/bad-tag/bad-UTF-8/trailing data;
check lengths before allocation.
- Step 6.7: seeded JSON/binary roundtrip and every-offset mutation corpora, identical on C/interpreter and never trapping; verify absent generator code in binaries and report binary-vs-JSON sizes. Keep golden cases small for the gate.
- Checkpoint CP-9.3 — tag
cp/9.3-generators.
- Step 6.1:
-
- Design defaults (ADR-0088, pending owner
confirmation): a plugin is a package with optional
[plugin]metadata and fixedDOCS.md; docs have a 1,500-token budget, index lines a 40-token hard limit;harness plugins indexandharness plugins docsare read-only, with docs for plugins imported by root modules. Update the language-reference pointers throughdiagnostics.md#pluginswhile preserving its zero-headroom budget (net −13 characters).
- Design defaults (ADR-0088, pending owner
confirmation): a plugin is a package with optional
-
- Evidence: Tier A replay on the 10-task T1 subset (report):
10/10 first-compile and pass in every set; tokens per accepted
task ~8,531 (
b0), ~8,676 (p0, +1.7%), ~9,920 (p3, +16.3%), ~20,390 (p10, +139%, fixture-dominated). Acceptance not re-measured (Tier B off). - Design defaults (ADR-0089, pending owner
confirmation): edition data is embedded;
{ edition = "2026" }dependencies are materialized offline byharness fetchand locked assource = "edition:2026"with a tree hash. Edition 2026 is codec, show and args, all generator plugins withcapabilities = []. Tier A free replay measures prompt overhead on a 10-task T1 subset with 0/3/10 plugins;fx_*fixtures never count as real; paid Tier B is OFF absent owner approval. The 6,000-token budget coversLANGUAGE.mdonly; edition index cap is 150 tokens, amending design-review.md:106.
- Evidence: Tier A replay on the 10-task T1 subset (report):
10/10 first-compile and pass in every set; tokens per accepted
task ~8,531 (
-
- Design: ADR-0091 (default, pending owner confirmation).
-
- Design default (ADR-0092, pending owner confirmation): three real plugins make a point eligible; freezing requires its own ADR. Generators are eligible, not frozen, at CP-9.4.
- Checkpoint CP-9.4 — tag
cp/9.4-editions.
M10 — Platforms as plugins, capabilities and sandboxing
Goal: cli becomes an ordinary
plugin; authority can be narrowed, and it stops at the
sandbox.
-
- Design default (ADR-0093, pending owner
confirmation): D1: platform packages declare
capabilities, root, fields, methods, native names, seeded types,
headers and policy in
platform.toml, using keyed method tables and no grammar change. - D2: trusted native names resolve to toolchain-registered C headers and interpreter arms; out-of-tree platforms need toolchain support until FFI.
- D3: root
[package] platformdefaults tocli(including manifest-less files); dependencies cannot select another platform.
- Design default (ADR-0093, pending owner
confirmation): D1: platform packages declare
capabilities, root, fields, methods, native names, seeded types,
headers and policy in
-
- Design default (ADR-0094, pending owner
confirmation): D4:
plugins/cli/is the embedded source of truth; CLI native headers move there unchanged, kernel path/map headers remain inruntime/, and seededCliError/Outputretain their layouts. - Checkpoint CP-10.1 — tag
cp/10.1-platforms.
- Design default (ADR-0094, pending owner
confirmation): D4:
-
- Design default (ADR-0095, pending owner
confirmation): D5:
Fs,NetandProcessuse runtime handles with root authority at handle 0; other capabilities remain unit. - D6: Fs restrict/read-only uses resolve-and-prefix checks, documenting the TOCTOU window; the OS sandbox is the security boundary.
- D7:
Netgrants have restrict/none but no M10 connect API; the ceiling category isnet.
- Design default (ADR-0095, pending owner
confirmation): D5:
-
- Design default (ADR-0096/0097, pending owner
confirmation): D8: children keep networking only for root
Net; none/restricted grants deny all, and unenforceable host lists fail closed. - D9:
Process.sandbox(fs, net)grants fixed system roots, the fs root and/dev/null, clears environment except PATH, and preserves unsandboxedcli.processbehavior. - D10: Linux uses fork/error-pipe, Landlock, no-new-privileges and seccomp; unavailable Landlock denies rather than running unsandboxed.
- D11: interpreter sandboxed children use an embedded-C
harness-sandboxlauncher; missing C compiler denies. - D12: macOS uses an untested deny-default
sandbox-execSeatbelt profile and denies if unavailable. - D13: escape checks always report enforced or UNVERIFIED;
HARNESS_REQUIRE_SANDBOX=1rejects UNVERIFIED.
- Design default (ADR-0096/0097, pending owner
confirmation): D8: children keep networking only for root
-
- Design default (ADR-0098, pending owner
confirmation): D14: platform policy controls fuel, heap,
output and deadlines;
cliremains off, embedded generator limits retain ADR-0079 values, and native fuel uses ADR-0017 charge points.
- Design default (ADR-0098, pending owner
confirmation): D14: platform policy controls fuel, heap,
output and deadlines;
-
- Design default (ADR-0099, pending owner confirmation): D15: process plugins are package-local executable children, hash-pinned in the lock (including path sources), one-shot stdin/stdout codec framed, sandboxed, and PATH lookup is dev-only with a warning.
- Cross-cutting defaults (ADR-0093–0099, pending owner confirmation): D16: reserve E0988–E0992, E0810–E0819 and E0993–E0998 for M10 diagnostics, activating codes only when tests need them.
- D17: process-plugin stdin uses an internal capped,
deadline-aware run-input operation with kill/reap on failure; no
public
run_inputAPI. - D18: keep LANGUAGE.md within budget by moving the listed existing material into diagnostics.md; add only the sandbox idiom to IDIOMS.md, with process-plugin usage in plugin docs.
- Verification note: Darwin locked-plugin execution now uses the private verified snapshot path in ADR-0229; its focused Mac qualification is tracked separately from the general M10.4/M14.3 Seatbelt evidence. Unavailable enforcement still fails closed.
- Checkpoint CP-10.2 — tag
cp/10.2-sandbox.
M11 — Deterministic data parallelism
Goal: use every core in CLI tools without giving up deterministic output.
-
- Design default (ADR-0102, pending owner confirmation): D4/D5: adopt worker result arenas after join, with copy-back fallback if region checks require it; opt-in lazy pool, thread-local arenas and inline single-thread execution.
-
- Design default (ADR-0100, pending owner
confirmation): D1:
cli.parsuppliesmap,fold,limit,walkandline_chunkswith an empty capability ceiling;Fs.walkis the serial reference. - Design default (ADR-0101, pending owner confirmation): D2/D3/D7: fixed input-sized reduction chunks make results thread-count independent; associativity and identity are required for equivalence to a serial fold, not determinism. The interpreter runs serially; lowest-index trap wins, except memory-limit OOM is nondeterministic.
- Design default (ADR-0103, pending owner
confirmation): D6: lift parallel blocks; reject captured
varassignment and non-Fscapabilities, withFsread-only in workers and noFilein v0.
- Design default (ADR-0100, pending owner
confirmation): D1:
-
- Design default (ADR-0104, pending owner confirmation): D8: depth-first pre-order, byte-sorted entries, no symlink following, regular files only; skip and count unreadable subdirectories.
-
- D9: reserve E0721–E0725 and E0820–E0824 for M11; activate codes only when tests need them.
- D10: determinism and TSan checks are gate steps, not GitHub CI (there is no GitHub CI); TSan prints an UNVERIFIED marker when unavailable.
- D11: add one short LANGUAGE.md paragraph; put API details and
the par idiom in
plugins/cli/DOCS.md(≤1,500 tokens), with no IDIOMS.md addition. - Checkpoint CP-11.1 — tag
cp/11.1-parallel.
M12 — agent platform
v0
Goal: agents as
step(state, event) state machines on a platform
plugin, tested against deterministic fakes before any real
provider.
- Design default (ADR-0105, pending owner
confirmation): one embedded agent platform package
combines declaration and Tenon library, with only the specified
agent natives;
[policy]stays zero in v0.
-
- Design default (ADR-0106, pending owner
confirmation):
step(self, Event) -> Transition<Self>; children have the parent's agent type and cancellation is monotonic with late suppressed results dropped and journaled.
- Design default (ADR-0106, pending owner
confirmation):
-
- Design default (ADR-0107, pending owner
confirmation): a single-threaded blocking-port runner
orders events by
(tick, seq); each transition reclaims scratch; scenarios are line-based.scnand raw.ssefixtures with all 2-way and 3-way splits tested.
- Design default (ADR-0107, pending owner
confirmation): a single-threaded blocking-port runner
orders events by
-
- Checkpoint CP-12.1 — tag
cp/12.1-step.
- Checkpoint CP-12.1 — tag
-
- Design default (ADR-0108, pending owner confirmation): parse SSE across arbitrary chunks and line endings; hold incomplete UTF-8, reject invalid UTF-8, expose tool arguments only after complete validated block stop, and preserve distinct terminal outcomes.
-
- Design default (ADR-0109, pending owner
confirmation): dispatch performs validate, authenticate,
authorize and accept as separate stages; unforgeable attenuable
grants authorize tools, and
SecretRefvalues reach transport only, never journal/events/errors.
- Design default (ADR-0109, pending owner
confirmation): dispatch performs validate, authenticate,
authorize and accept as separate stages; unforgeable attenuable
grants authorize tools, and
-
- Design default (ADR-0110, pending owner confirmation): reserve before effects; missing usage settles at full reservation and increments unknown; child unused budget returns to parent; tokens/calls are hard and wall time best-effort.
-
- Design default (ADR-0111, pending owner
confirmation): use
len | crc32 | payloadframing, runner-assigned IDs and idempotency keys, record intent before effects and recover unknown outcomes; ship none/file journals with durability classes, defer SQLite. - Checkpoint CP-12.2 — tag
cp/12.2-durable.
- Design default (ADR-0111, pending owner
confirmation): use
-
- Design default (ADR-0112, pending owner confirmation): provider adapters are fixture-tested; live calls are manual, explicitly owner-confirmed, and no credentials are stored in the repository.
-
- Design default (ADR-0113, pending owner confirmation): SHA-256-addressed blobs hold pre-encoded fragments; canonical schemas and cache-aware segment ordering keep requests byte-stable.
- Reserved diagnostics: E0825–E0839 are reserved for M12.
- Checkpoint CP-12.3 — tag
cp/12.3-provider.
M13 — Agent density
Goal: thousands of agents per process, measured against explicit targets (ADR-0010).
M14 — The Harness² coding harness
Goal: the flagship app: recursive
agent-harness improvement (Harness²) as a Tenon
program on the agent platform.
Where: the app lives in its own repo
(~/Programming/coding-harness, package
coding_harness). An independent evaluator lives in
~/Programming/coding-harness-evals. Platform tasks
land here. Plan and rationale:
plans/harness2/PLAN.md, owner-approved 2026-11-03. It
covers the reference's schedule and scoring, the deliberate
deviations, and evaluation on this Mac with
deepseek/deepseek-v4.1-flash-1017 through OpenRouter
under a ~$1 cap.
Owner requirement, 2026-11-08 (Maintainer):
“the harness 2 should have the tenon MCP built in.” “The tenon
MCP” means tenon-lang/tenon-dev-mcp,
the maintainer's Tenon-language development MCP server, whose
public tools are search_tools and
action. It does not mean a commercial Tenon product.
Inspection baseline: server main 0ea8c77, TENON_PIN
71edc08f4208be7d8b7bede07877ea28a1129bc1.
The requirement is direct: coding-harness must have built-in
executor-client access to the maintainer's harness-dev-mcp,
preserving its search_tools and action
tools. The only remaining owner clarification is which
milestone/task carries the client integration and who owns its
deployment.
This conflicts only with the current Harness² v0 non-goal excluding MCP tools in the executor. Exposing coding-harness itself as an MCP server is a separate optional capability, not required or equivalent. Do not silently remove the executor exclusion or treat M13.3/M15.6 completion as proof of application integration. See the bounded follow-up proposal in plans/harness2/PLAN.md. M14.7 implements manifest compatibility only.
Finish line (CP-14.3):
- At $0 with scripted replies, our probes send a smaller fixed prefix and use less memory than an OpenCode probe on the same tasks, and idle-agent memory stays under ADR-0122's ceiling of 28,672 B per agent (spawn and fork times are reported, not gated).
- A K=1 step completes live on at least 6 scored tasks within the cap.
- Per-task gain and absolute scores are reported. Parity with the paper is recorded as UNVERIFIED unless enough tasks run.
Phase 0: platform, in this repo, after CP-13.1
-
ModelReply/Eventcarry complete, validated tool calls with provider call IDs, never partial ones (ADR-0108). Results pair with their call IDs.- Usage is reported by category: input, cached input, cache write, reasoning, output.
- The Anthropic ports deliver calls instead of failing closed.
- An ADR amends 0108/0112.
- Done when a fake-model
run()completes multi-turn loops with parallel tool calls on both backends,anth-replay-e2eruns throughrun, and DOCS.md stays within budget.
-
- On breach, the whole process group is killed and the direct
child is reaped (grandchildren are killed via the process group
and reaped by init). Language errors are
Io("output limit exceeded: <cmd>")andIo("timed out: <cmd>"); internal pumps still return EFBIG or ETIMEDOUT. - Both backends. ADR-0213.
- On breach, the whole process group is killed and the direct
child is reaped (grandchildren are killed via the process group
and reaped by init). Language errors are
-
- A profile that starts processes while denying writes outside the root and the network.
- Declared read-only toolchain roots in platform policy (the
xcode-select -pdirectory, optionally/opt/homebrew). - macOS escape proofs, after which the gate prints
sandbox: enforced seatbelt. - The general Seatbelt checks pass on macOS. The separately authorized ADR0229 snapshot implementation now passes18 focused process-plugin cases and the actual TUI highlighter on C/interpreter; Linux-only cases remain unrun.
- Verified
python3,ccandmakeruns in a workspace. - An ADR amends 0097.
- On macOS 26.6.2, the literal root read in ADR-0215 fixed dyld startup. Both backends passed the escape proofs and ran Python, cc and make inside a workspace. Maintainer verified the macOS sandbox on his Mac.
-
- Tools and parallel calls; tool-call fragments delivered only once validated.
- Finish reasons; usage with cached and reasoning tokens and
cost; reasoning deltas never sent back. - Configurable URL and Bearer header; OpenRouter provider
pinning;
seed. - Fixture-tested per ADR-0112. ADR. Needs M14.1.
-
- Pin the provider and choose the reasoning setting.
- Record replay fixtures, and confirm the usage,
cached_tokensandcostfields.
Phase A: app foundations, in coding-harness
-
harness.toml(platform = "agent", ceilingstdout stderr env fs process workspace, path dependencies).- AGENTS.md and CLAUDE.md that adopt this repo's conventions and PLAN.md IDs, and never read the evals repo.
- A gate (fmt, goldens on both backends, sandbox marker, Python tool tests), the commit-msg hook, and a repo-map line in this repo's AGENTS.md.
-
- Eight components in the reference's tree layout, with the always-on files capped at 24,000 characters combined.
sha256:identity (ADR-0075 form); import and export of reference trees.ManifestEditreplaces whole files. v0 accepts edits only to the always-on files andSKILL.mdtext.- App ADR.
- Accommodate the maintainer's harness-dev-mcp requirement in the app ADR: deployment/tool-server configuration remains separate from editable reference-tree content; no MCP implementation in this task.
-
baseline.tarbecomes one deterministic git commit, plus a public request, protected globs, a fixed visible test command and a domain.- Three or four dev fixtures with fake-model scenarios. No hidden checks.
-
- Stdlib Python, OpenAI-compatible, localhost only.
- It holds the OpenRouter key; clients present a session token.
- A model allowlist and provider pinning.
- Reserve before forwarding; settle on
usage.cost; unknown usage keeps the full reservation; refuse beyond the cap. - Replay, capture and meter modes; tests use a fake upstream.
Phase B: one agent on one task
-
- One
Wsper run. read, edit and write throughWs; list and search through a read-onlyFsthat skips symlinks. runuses/bin/sh -c 'cd <ws> && TMPDIR=… HOME=… exec …'undersandboxpluslimit, with no network.- Denial tests, and the key is absent from tool environments and journals.
- One
-
- The task's visible test command reruns on a clean copy: the baseline plus the candidate diff, with changes under protected globs dropped, new files included.
- Host-observed and in-loop only, never grades.
- Forgery tests. App ADR.
-
Exec: a tool loop with an append-only context, usage by category, a digest and a patch export.- Fake scenarios solve the dev fixtures; resume works at phase boundaries. Both backends.
- Checkpoint CP-14.1 — tag
cp/14.1-executor.
Phase C: the step
-
- One
OneShotagent with codec-validated JSON and one repair retry. - Prompt builders for the general and domain editor, the
composer, the selector and the reflector (at most one lesson, or
NO_ENTRY).
- One
-
- Host phases: base runs, editors, then probes.
- Budget slices via
reserve/return_budget; one workspace per run, released after it. - Phase checkpoints for resume. Byte-identical output with fakes on both backends.
- Checkpoint CP-14.2 — tag
cp/14.2-probes.
-
- K composer calls feed the typed merge, which records conflicts; then K final runs, which produce the scored output, and the blind selector for K>1.
- Sequential mode chains steps as the reference's
schedule.pydoes.
Phase D: evals and evaluation
-
- A scorer CLI written in Harness (
cliplatform): rebuild the candidate as the baseline plus its patch, run the hidden checks undersandboxpluslimit, and emit JSON verdicts. - A driver that scores the base and final runs of each step.
- Fixture controls (correct, alternative-correct, plausible-wrong, unchanged, deleted-tests, forged-output) produce their expected verdicts.
- A scorer CLI written in Harness (
-
- Our probes and OpenCode probes run the same tasks against the proxy's scripted replies.
- Measure prefix size and peak memory per probe, plus
late-guidanceon fakes. Results go tobench/rows.
-
- A K=1 step per frozen task, under the stop rule.
- Report tokens by category, cache ratio, gain, turns and spend per task.
- Checkpoint CP-14.3 — tag
cp/14.3-harness2, only if the finish line above holds; otherwise record the finding.
Experiment from CP-14.2:
late-guidance (does placing probe-varied guidance
after the cached prefix keep its effect while raising cache
hits?).
M15 — Distribution and interop
-
- macOS/Linux source installation:
installer task and validation. This slice does not close static distribution, bundled toolchains or Windows support. - Prebuilt macOS/Linux releases:
master plan and seven tasks. Covers downloadable binaries, safe installation, Mac signing and release qualification. - Checkpoint CP-15.1 — tag
cp/15.1-dist.
- macOS/Linux source installation:
-
- Checkpoint CP-15.2 — tag
cp/15.2-ffi-wasm.
- Checkpoint CP-15.2 — tag
-
- Hosted registry track (informally "RG3"):
PLAN-registry-hosted; decisions ADR-0254–ADR-0257, accepted 2026-11-16. Phase 4A (no hosting dependency): - Forge prerequisite P1 (plain HTTP for loopback/allowlisted
hosts; ADR-0260,
accepted 2026-11-17): http.wire/http.plain in
PLAN-httpM-HTTP.8–.9; registry http:// here (P1b). - Forge prerequisite P3 (HTML module; ADR-0261,
Proposed): plugins/html in
PLAN-httpM-HTTP.10–.11. - Forge prerequisite P4 (OS entropy; ADR-0262,
accepted 2026-11-17): plugins/entropy in
PLAN-httpM-HTTP.12. - Forge prerequisite P5 (wall-clock UTC; ADR-0263,
accepted 2026-11-17): plugins/wallclock in
PLAN-httpM-HTTP.13. - Forge F1 complete (local read-only forge; ADR-0264,
accepted 2026-11-17): plugins/hosting,
tenon host-storereads,tenon forge init|serveinPLAN-httpM-HTTP.14–.18. - Forge F2 (push/clone over loopback) on a Tenon VC rewrite:
authorized 2026-11-17 as M17.16–M17.69 (see M17).
Decisions: ADR-0204–ADR-0207
and ADR-0265,
accepted 2026-11-17. Plan:
PLAN-vc-remote; hosting follow-ons are inPLAN-hosting.- The rewrite uses FFI
plugins/sha256andplugins/vcfs, plus a Tenon lexer/parser/formatter port (plugins/hsyntax, HP1–HP11). The port must produce byte-identical formatter output against Rust on the whole corpus. Rust stays the canonical compiler under ADR-0176. - Hashes, the on-disk format and
FMT_VERSION1 stay unchanged. The budget is ≤1.05× time and ≤1.10× peak RSS against Rust. - Rust VC is the live parity oracle until a fixture freeze
(M17.66) and cutover (M17.67). Its deletion (M17.69) is
[human]: it needs the maintainer's explicit yes at that time.
- The rewrite uses FFI
- Hosted registry track (informally "RG3"):
-
- Checkpoint CP-15.3 — tag
cp/15.3-ecosystem.
- Checkpoint CP-15.3 — tag
M16 — 1.0 hardening
-
- Checkpoint CP-16.1 — tag
cp/16.1-v1-rc.
- Checkpoint CP-16.1 — tag
-
- Done when: compact
Tname:bodyparses; tests are typechecked oncheckand stripped from ordinary builds;tenon test <dir> [--filter SUB] [--json]runs them on both backends with span-aware failure text; dogfood inplugins/hsyntax/unit.tn;make checkgreen.
- Done when: compact
Cross-cutting tracks
These run through every milestone rather than being separate tasks.
- Tests: golden programs and diagnostics from M1; unit tests per phase; IR snapshots and differential tests from M3; fuzzing from M16, earlier if crashes appear.
- Spec: every user-visible change updates
docs/spec/LANGUAGE.mdin the same commit, within budget. - Decisions: every choice that closes off an alternative gets an ADR.
- Benchmarks: from M6, every checkpoint stores
bench/results/cp-<id>.md. - Agent metrics: from M7, record tokens per accepted task for agent-done plan tasks in the commit body when known.
Deferred until a measurement asks for them
Relative references and persistent arenas · variable-size packed unions · small-string optimization · an LLVM backend · a JIT · user-facing SIMD · reducer transition tables · A2A beyond the adapter · self-hosting (ADR-0176).
Parking lot
Ideas outside the current milestone go here, one line each with a date, instead of into code.
2026-11-21: Procman config reload via file watching (no
Fs.watch, inotify or kqueue yet); log persistence; daemon auto-start (plans/procman/PLAN.md§9).2026-11-17: wallclock ms resolution / PlatformOp move (ADR-0263).
2026-11-10: macOS sandbox-exec uses execvp: ENOEXEC may fall back to a shell and missing commands exit 71; replace with a direct-exec sandbox entry point (ADR-0215).
2026-11-10: Verify DNS in Seatbelt network mode; add only evidenced
com.apple.dnssd.servicemach lookup if needed (ADR-0215).2026-11-10: Free-path sandbox toolchain roots require an authority design; current closed names cannot name HOME (ADR-0215).
2026-11-05: Proposed
agent tooling plansfor application tests with deadlines, caller context, checked edits, trap stacks, pure eval and authority reports.2026-11-05: Authorized parallel track M17: built-in version control
tenon vc, seeplans/vc/PLAN-vc.mdand ADR-0160–0162.2026-11-05: Proposed (pending owner): loopback HTTP server plus curl-backed HTTPS client, see
plans/http/PLAN-http.mdand ADR-0163–0167.2026-11-04: M15.6 follow-up: A2A HTTP/streaming,
message/send; MCP server live stdio replies (example replies at EOF).2026-11-03: Later: revisit idle live-memory and spawn/fork density targets and proposed allocation trims with comparable measurements (ADR-0122).
2026-10-30: M9.1 modules make newtype constructors private so IDs are opaque across module boundaries (ADR-0026).
2026-10-31: After M6 v0: map.remove, record map keys, cli.env listing, process.run stdin,
for i, x in v, shorter cli.println, set through fields/helpers, Windows paths.2026-10-31: Per-module dev builds moved from M8.7 to M9 after M9.1 modules/imports; M8.7 supplies whole-program content caching and dev-loop tracking. The former quadratic-match profiling item is resolved by M8.7 Part A's verifier scope rollback (evidence).
2026-11-01: Per-module dev builds (from M8.7) are not in M9.7–M9.10; re-parked with target M11; pull earlier only if M8.7 dev-loop tracking shows whole-program rebuilds over budget.
2026-11-01: Generator file-input DSLs need an explicit input/capability design; v1 generators have no I/O (ADR-0078).
2026-11-01:
rename --regenmay update generated references after a checked regeneration design; v1 refuses those renames (ADR-0078).2026-11-01: Generic derive targets wait for a real use; v1 accepts only same-file non-generic named types (ADR-0078).
2026-11-01: Codec schema evolution, optional missing keys and wire compatibility policy are deferred; v1 option keys are required with null (ADR-0078).
2026-11-01: Closed at M10.5 by ADR-0098: fuel/heap/output/deadline limits are platform policy; generator values remain fixed with no manifest overrides.
2026-11-03: Concurrent
ModelPort/ToolPortdispatch, then in-runner fork probes. These need the child spawn input delivered (run.tn:1326,model.tn:113), owner-aware port routing (run.tn:1138) and sized budget carves (budget.tn:158).2026-11-03: Native
cwdand environment forProcess; M14 uses an explicit/bin/sh -c 'cd …'wrapper instead.2026-11-03: Claude Haiku 5.5 readiness for the Anthropic adapter: thinking blocks are rejected today (
anthropic.tn:455-472), and the smoke pins Haiku 4.5.2026-11-03: Editable subagents, scripts and plugins components in the Harness² app; v0 carries them inert.
2026-11-03: Multi-turn agentic proposer roles (the reference runs agentic sessions of up to 120 steps); v0 uses one structured call per role.
2026-11-03: A live comparison against the Python reference (needs Vertex or a patched reference) and WorkBuddy-Bench
code, when the budget allows.2026-11-12: Darwin pinned process-plugin launch now uses a private verified snapshot rather than
fexecve(ADR-0229). Focused Mac qualification remains tracked separately; snapshot relocation can affect package-relative Mach-O dylibs, so support stays scoped to standalone or system-linked images.
Early measured performance round (owner-requested 2026-10-30)
Maintainer requested round 1 before M2.6 and the normal M6/M8 sequence to establish reproducible correctness-gated benchmarks and measure the observed print overhead and quadratic compiler paths before investing in optimizations. The agreed PERF-PLAN.md schedules the benchmark harness under M6.8, runtime print work under M8.5, and compiler work under M8.7; these are partial contributions and their task boxes remain open. The first run adds only the benchmark harness and baseline, without compiler or runtime optimizations. Future optimization commits require before/after measurements and unchanged semantics, goldens and trap locations. Items 5–6 (cgen string churn and the expression span table) target temporary code M3 replaces; keep that work minimal. The benchmark harness and runtime print work survive M3. This owner-approved scheduling exception does not complete M2.6 or otherwise reorder the milestone plan.
Open decisions
| Decision | Default until decided | Decided by |
|---|---|---|
| Final language name and file extension | Tenon, .tn |
M0.9 |
| License | Decided: MIT (LICENSE) |
M0.10 |
var or let mut for reassignable
locals |
Decided: var (ADR-0019) |
M2.6 (T0) |
| Interpolation syntax | Decided: {x} (ADR-0019) |
M2.6 (T0) |
| Bootstrap compiler language | Decided: Rust through 1.0 (ADR-0176) | M16.5 |
| Pinned Rust version | Pinned: 1.92.0 (ADR-0155, pending confirmation) | M0.7 (macOS gate) |
Parameters are assignable although the spec says only
var locals are |
keep accepting assignment; regions home it at function level | M5.3 |
Stack exhaustion semantics: native code segfaults (exit 139)
and loses buffered stdout; tenon interp flushes and
exits 2 at its depth limits |
unspecified, no golden | M5 |
| M14 finish line | Decided: three-part gate ($0 efficiency,
capped live loop, gain reported) (plan); fork cost is
gated on ADR-0122's density ceiling, not the deferred M13.4
targets |
owner, 2026-11-03; fork cost 2026-11-04 |
| Harness² v0 editing scope | always-on files and SKILL.md text only; code
components after CP-14.3 |
M14.7 |
| Evals repo location | ~/Programming/coding-harness-evals |
M14.20 |
| DeepSeek reasoning setting | Decided: none (lowest setting
that passed the tool-call check; reasoning text never sent
back) |
M14.5 |
| Pinned OpenRouter provider | Decided: Morph morph/fp8 (tools,
reports cached tokens, $0.022/M input). Relace
relace/fp4 passed the tool-call check at
none but rate-limited the prefix (HTTP 429). |
M14.5 |
| Procman secrets policy | Decided: separate procman policy (explicit
env, .env files, log redaction mask); do not reuse
agent Host.secret |
Maintainer, 2026-11-21 12:37 PM MST |
| Procman app name and location | Decided:
examples/tools/procman |
Maintainer, 2026-11-21 12:37 PM MST |
| Procman CLI command shape | Decided: tenon procman serve /
attach / start / stop /
status / restart |
Maintainer, 2026-11-21 12:37 PM MST |
| Procman gate harness for pure Tenon | Decided: a small Rust module runs the pure
core in-process in make check |
Maintainer, 2026-11-21 12:37 PM MST |
Appendix A — Coverage of the design review
Every decision and gap in the design review maps to plan items below. If you change one side, update the other.
| Review item | Plan items |
|---|---|
| Structure and plugins | |
| Split decisions into kernel, core plugins, platforms and ecosystem | ADR-0004, M9, M10 |
| Kernel holds mechanisms only | ADR-0004, M3.6, M10.5 |
Platforms as an extension point (cli,
agent, wasm-host) |
ADR-0005, M6.1, M10.1–M10.2, M12, M15.3 |
| No grammar plugins; DSLs through generators | ADR-0006, M9.5 |
| Five extension points | M9.10 |
| Whole-program coherence and bridge plugins | M4.7, M9.4 |
| Per-item interface hashes and compatibility check | M9.3 |
| Process plugins through the lockfile | M10.6 |
| Discovery index and 1,500-token docs | M9.7 |
| Generated code as readable files | M9.5 |
| Requirements before agent plugins join an edition | M9.9, M15.5 |
Wasm inside wasm-host |
M15.3 |
Capabilities make imports safe; they stop at
exec |
M6.1, M10.3, M10.4 |
| Pluggable programs (static, process and Wasm plugins) | M9, M10.6, M15.3 |
| Zero training data | |
| Syntax by transfer | ADR-0009, M2.6, M7.6 |
| Token-budgeted spec | M0.5, M7.1 |
| Teaching diagnostics | M1.9, M2.5, M7.3 |
| One idiom per task | M7.2 |
| Text edits, replace-by-name, compiler rename | M7.4 |
| Transfer benchmark before syntax freezes | M2.6 (T0), M7.5 (T1) |
| Language semantics | |
| Small core of orthogonal concepts | M7.1 budget; scope notes per milestone |
| Immutable values over mutable storage | ADR-0007, M4.2, M5.2–M5.6 |
| First-order functions and non-escaping blocks | M1.7, M5.5 |
| Monomorphized generics | M4.4 |
| Nominal interfaces, no trait machinery | M4.7 |
| Generators with a fixed trigger syntax | M9.5 |
| Defer async/await; actions and events | M12.1–M12.2 |
| No shared mutable state; left-to-right evaluation | M1.6, M11.1 |
| Exhaustive matching | M4.3 |
Opaque IDs, interning, with updates |
M4.2, M4.6, M9.1 |
while and loop allowed |
M1.7 |
?, result, no exceptions or implicit
conversions |
M4.5, M5.7 |
| Fuel as platform policy | M3.6, M10.5 |
| Memory and representation | |
| Scoped arenas and lifetime classes | M5.1–M5.2 |
| Destination passing as a guarantee | M5.6 |
| Hidden builders sealed into values | M5.3–M5.4 |
| No GC; counting only for large persistent values | ADR-0007, perceus-rc experiment |
| O(1) appends to unique carry state | M5.4 |
| Escape analysis | M5.2 |
| No scalar-replacement or update-fusion passes | M8.4 |
| Compact values; small strings deferred | M4.1, Deferred list |
| Chunked streams, slices and views | M5.3, M6.2 |
| Streaming input; mmap with a SIGBUS policy | M6.2 |
| Reserved address ranges | M5.1, arena-va experiment |
| Relative refs, persistent arenas, packed unions | Deferred list |
| Tables and typed IDs for links; inductive recursion only through vec/map (ADR-0270) | M4.6, M20.1 |
| Insertion-ordered maps | M6.6, M8.6 |
| Compiler and backend | |
| Typed IR from the start | M3.1–M3.3 |
| C first, plus a fast dev path | ADR-0003, M1.5, M8.7, tcc-run experiment |
| The interpreter's production duties | M3.4, M9.5 |
| No VM bytecode tier | ADR-0003 |
| Differential tests against the C backend | M3.5 |
| Near-zero startup | M1.5, M6.8 |
| Whole-program for release, per-module for dev | M8.7 |
| No custom inlining, jump tables or loop shaping | M8.4 |
Bounds and overflow checks removed from facts, reports,
checkfree |
M8.3 |
| Byte-class tables and branchless lowering | M8.2 |
| Runtime library as the CLI performance surface, SIMD inside | M8.5 |
| Reducer tables only after profiling | Deferred list |
| Several C compilers in CI; no LLVM or JIT yet | M0.7, M8.4, Deferred list |
| Data, schemas and wire formats | |
| The type is the schema; projections are generators | M9.5–M9.6, M12.5 |
| Fused parsers with no DOM | M9.6 |
| JSON at boundaries, binary inside | M9.6, M12.7 |
| Duplicate keys, unknown fields, explicit wire integers | M9.6 |
| Provider projections and capability errors | M12.8 |
| Content-addressed caching | M9.3, M12.9 |
| Effects and the agent runtime | |
step(state, event) with actions |
M12.1 |
| The runner owns authority | M12.2 |
| Action and attempt IDs; unknown outcomes | M12.7 |
| Outbox, snapshots and durability classes | M12.7 |
| Streams, backpressure, UTF-8 and partial JSON | M12.4 |
| Budgets | M12.6 |
| Cancellation as several facts | M12.2 |
| Child tasks with budgets and narrowed capabilities | M12.2, M12.6, M13.2 |
| MCP, A2A and provider adapters | M12.8, M13.3, M15.6 |
| Fake adapters and crash-point tests | M12.3, M12.7 |
| Security and authority | |
| Capabilities passed and narrowed | M6.1, M10.3 |
| Model output as a proposal | M12.5 |
SecretRef and scoped network grants |
M12.5 |
| Validation, authorization and acceptance kept apart | M12.5, M14.13 |
| Sandboxed subprocesses | M6.5, M10.4 |
| Trusted tier with human review | M9.9, M15.2, M16.3 |
| Authoring, tooling and context | |
| Canonical formatting | M2.4 |
| Readable syntax decided by measurement | M2.6, M7.6 |
| Edit tools and revision preconditions | M7.4 |
| Type-check the whole edited candidate | M2.2, M7.4 |
| Context by relevance | M7.4, M12.9 |
| Cache-aware context ordering | M12.9 |
| Tokens per accepted task and first-compile rate | M2.6, M7.5, M9.8 |
| Measurement | |
| Python baselines, byte-identical output, peak memory | M6.8 |
| Go and Rust baselines | M8.1 |
| Bytes copied, lifetimes, replay cost, stream high-water | M5.2, M5.6, M12.4, M12.7 |
| Expectations by workload class | M8 gate |
| Agent-density benchmarks | M13.4 |
| Scope and sequencing | |
Kernel and cli first; agent
second |
milestone order M1–M8, then M12 |
| Only IR-shaping performance work early | M3, M5 |
| One provider first | M12.8 |
| Gaps | |
| Strings, bytes and paths | M5.3, M6.4 |
| Subprocesses and pipes | M6.5, M10.4 |
| Data parallelism | M11 |
| FFI | M15.2 |
| Build speed | M8.7 |
| Debugging and profiling | M1.10, M15.4 |
| Distribution | M15.1 |
| Testing | M1.1, M3.5, M16.2 |
| Package registry | M15.5 |
| Agents and Harness² | |
| Agents as values | ADR-0010, M13.1 |
| Shared context and prefix caching | M12.9 |
| Shared tools and copy-on-write workspaces | M13.2–M13.3 |
| Density targets | M13.4 |
| The Harness² loop | M14 |
Appendix B — Conventions
| Thing | Format | Example |
|---|---|---|
| Task ID | M<milestone>.<n> |
M1.4 |
| Checkpoint ID | CP-<milestone>.<n> |
CP-1.2 |
| Checkpoint tag | cp/<milestone>.<n>-<slug> |
cp/1.2-fib |
| Experiment branch | exp/<milestone>.<n>/<name> |
exp/1.2/tcc-run |
| Archived experiment | archive/exp/<milestone>.<n>/<name> |
archive/exp/1.2/tcc-run |
| Parallel task branch | task/<id>-<slug> |
task/M4.6-newtypes |
| Commit subject | type(scope): summary |
feat(parser): parse while loops |
| Commit trailers | Plan:, Checkpoint:,
Experiment: |
Plan: M1.7 |
| ADR file | docs/decisions/NNNN-slug.md |
0012-core-ir.md |
| Diagnostic code | E plus four digits, ranges per phase |
E0301 |
| Benchmark results | bench/results/cp-<id>.md |
bench/results/cp-6.2.md |
The full rules are in AGENTS.md.
Appendix C — Definition of done
A task is done when:
- Tests exist that fail without the change, and they pass.
make checkis green.- The spec and the diagnostics registry are updated if anything user-visible changed.
- The task's box is ticked, and the commit carries its
Plan:trailer. - The diff contains nothing unrelated.
- If the task completes a checkpoint,
make checkpointhas been run.
M17 — Local item version control (parallel track)
Implementation authority: user request of 2026-11-05. Design
task aliases M-VC.k map to M17.k; foundation M-VC.0 is included in
M17.1. Detailed scope, dependencies, task status and evidence are
maintained in plans/vc/MASTER_TASK_LIST.md,
design, task briefs, and format contract.
Tenon VC rewrite and remotes (authorized 2026-11-17; ADR-0265).
Steps are informal IDs from PLAN-vc-remote §4, which
holds each step's scope, sizes and acceptance. Commits use
Plan: M17.<n>.
M18 — Agent tooling (sequential feature delivery)
Implementation authorized November 5, 2026. Ledger:
agent tooling. Each repository task ends its session
with a gate, commit and handoff.
M19 — Procman TUI process manager (parallel track)
Planning approved by maintainer 2026-11-21. A daemon owns
services and a TUI attaches over a Unix socket; the supervisor is
the new FFI plugin plugins/proc (ADR-0267).
Scope, sizes, dependencies, acceptance and test placement for each
task are in plans/procman/PLAN.md §7; D1–D3 and Q1
were decided 2026-11-21 (see §6 and the open-decisions table).
Q2–Q6 remain open. No task edits frozen files; no task adds an
E-code unless a compiler diagnostic is required (then from E1100).
C first; M19 needs interpreter parity and Linux/macOS evidence to
finish.
-
- Checkpoint CP-19.1 — tag
cp/19.1-procman, when a C-only procman runs commands with restarts, logs and attach/detach on Linux.
- Checkpoint CP-19.1 — tag
M20 — Language spikes (parallel)
Spikes that unblock AI-app data shapes without waiting on M16
hardening. Each task keeps make check green and does
not edit M14-frozen paths.
M21 — Language for apps: modules, strings, closures, in-place state (parallel)
Accepted 2026-11-22: ADR-0279, ADR-0276, ADR-0275, ADR-0278. Frozen-file edits are approved only for the paths each ADR lists. FMT_VERSION stays 1.
M22 — Isolation and runtime plugins (parallel)
Accepted 2026-11-22: ADR-0277, ADR-0280. Frozen-file edits are approved only for the paths each ADR lists.
M23 — Single-box web and server stack (parallel)
Accepted 2026-11-22: ADR-0281,
ADR-0261
with the web toolkit plan, ADR-0282.
Batteries (ADR-0272/0273) are tracked separately.
M24 — TUI agent surface (parallel)
Ledger: plans/tui-agent-surface/PLAN.md. Waves 1–2
of plans/tui/IMPROVEMENTS.md.
M25 — Agent velocity & self-hosting (parallel)
Accepted 2026-11-25 (master plan, ADR-0284).
Tracks tenon-main deliverables alongside open
M21/M22/M24 tasks and companion repos tenon-dev-mcp
and coding-harness-2-compact-tui.
M26 — Terse UTF-8 surface, ergonomic frontend sugar & semantic auto-fix (parallel)
Accepted 2026-11-28: ADR-0314, ADR-0315.
M27 — Core IR Iterator Fusion, SWAR SwissTable & Profiler
M28 — Single-file scripts, implicit derives & stdlib batteries (parallel)
Accepted 2026-11-28: ADR-0318, ADR-0319.
M29 — Purity/authority badges & capability trace replay (parallel)
Accepted 2026-11-28: ADR-0320, ADR-0321.