Tenon build plan
The source of truth for active Tenon work, milestone policy,
and verification gates. AGENTS.md
says how to work; docs/design-review.md and docs/decisions/ say why. Completed
history for M0–M29 (including reconciled checkboxes for
M0.12, M14.12,
M22.7–M22.9, and
M28.1–M28.6, plus Appendices A–C) is
archived in docs/archive/PLAN-M1-M29.md.
Run make status to inspect milestone progress and
make next for the next open task.
Policy: M31+ Additive Feature Freeze
Effective 2026-11-29 (
IDE-12): All new additive language, runtime, and standard-library milestones (M31+ additive features) are frozen until Wave 1–2 consolidation debt is closed.Unfreeze criteria:
- Wave 1 compiler soundness, diagnostic caps, fast test runner, and workspace hygiene (
PRF-01/03,ADV-01,IDE-12,DRF-04/08/09) merged and green onmain.- Companion repositories (
coding-harness-2,copilot-term,todo-actions,tenon-dev-mcp) migrated onto canonical M26–M30 UTF-8,std_*batteries, andderive StateMachine(ADR-0325) where applicable.- Remaining security/hardening and differential parity gaps closed before opening new syntax or plugin categories.
How to read this plan
- Tasks use
- [ ] **M31.1** ...(tick[x]in the commit that finishes the task, with trailerPlan: M31.1).[human]marks owner-only decisions skipped bymake next. - Checkpoints become annotated tags
cp/<m>.<n>-<slug>viamake checkpoint. - Principles: walking skeleton first; always
green (
make check); kernel holds mechanisms, plugins hold policies (ADR-0004); emit C first with the interpreter as reference (ADR-0003); observational immutability with scoped arenas (ADR-0007); measure before optimizing.
Archived Milestones (M0–M29)
Full task ledgers, gates, checkpoints, and historical notes
live in docs/archive/PLAN-M1-M29.md.
Stub headings below preserve sequential milestone ordering for
scripts/next-task.tn -- --lint and incoming document
anchors.
M0 — Repository, gate and agent setup
Archived in PLAN-M1-M29.md.
Complete (M0.12 reconciled [x];
M0.8 [human] remote push remains in
Deferred Backlog).
M1 — Walking skeleton
Archived in PLAN-M1-M29.md. Complete.
M2 — Static types, diagnostics and formatter
Archived in PLAN-M1-M29.md. Complete.
M3 — Typed IR, reference interpreter and differential testing
Archived in PLAN-M1-M29.md. Complete.
M4 — Records, unions, generics, interfaces and results
Archived in PLAN-M1-M29.md. Complete.
M5 — Memory model
Archived in PLAN-M1-M29.md. Complete.
M6 —
cli platform v0 and the first real tools
Archived in PLAN-M1-M29.md. Complete.
M7 — LLM authoring: spec, idioms, diagnostics and transfer
Archived in PLAN-M1-M29.md.
Core complete (M7.6 live T1 iteration in Deferred
Backlog).
M8 — Performance pass
Archived in PLAN-M1-M29.md. Complete.
M9 — Modules, packages and plugins v1
Archived in PLAN-M1-M29.md. Complete.
M10 — Platforms as plugins, capabilities and sandboxing
Archived in PLAN-M1-M29.md. Complete.
M11 — Deterministic data parallelism
Archived in PLAN-M1-M29.md. Complete.
M12 — agent platform
v0
Archived in PLAN-M1-M29.md. Complete.
M13 — Agent density
Archived in PLAN-M1-M29.md. Complete.
M14 — The Harness² coding harness
Archived in PLAN-M1-M29.md. Core complete
(M14.12 reconciled [x];
M14.24 capped live eval in Deferred Backlog).
M15 — Distribution and interop
Archived in PLAN-M1-M29.md.
M15.1/M15.3/M15.5 in
Deferred Backlog.
M16 — 1.0 hardening
Archived in PLAN-M1-M29.md.
M16.1/M16.2 in Deferred Backlog
(post-consolidation).
M17 — Local item version control (parallel track)
Archived in PLAN-M1-M29.md.
Core complete (M17.14 [human] shadow
trial in Deferred Backlog).
M18 — Agent tooling (sequential feature delivery)
Archived in PLAN-M1-M29.md. Complete.
M19 — Procman TUI process manager (parallel track)
Archived in PLAN-M1-M29.md.
Core complete (M19.17–M19.18 in Deferred
Backlog).
M20 — Language spikes (parallel)
Archived in PLAN-M1-M29.md.
Core complete (M20.5 split C units in Deferred
Backlog).
M21 — Language for apps: modules, strings, closures, in-place state (parallel)
Archived in PLAN-M1-M29.md. Complete.
M22 — Isolation and runtime plugins (parallel)
Archived in PLAN-M1-M29.md.
M22.7–M22.9 (tenon-script,
ScriptPlugin, plugins/script_host)
reconciled [x]; M22.10 adoption in
Deferred Backlog.
M23 — Single-box web and server stack (parallel)
Archived in PLAN-M1-M29.md.
Core complete (M23.4–M23.5 in Deferred
Backlog).
M24 — TUI agent surface (parallel)
Archived in PLAN-M1-M29.md. Complete.
M25 — Agent velocity & self-hosting (parallel)
Archived in PLAN-M1-M29.md. Complete.
M26 — Terse UTF-8 surface, ergonomic frontend sugar & semantic auto-fix (parallel)
Archived in PLAN-M1-M29.md. Complete (ADR-0314, ADR-0315).
M27 — Core IR Iterator Fusion, SWAR SwissTable & Profiler
Archived in PLAN-M1-M29.md. Complete (ADR-0316, ADR-0317).
M28 — Single-file scripts, implicit derives & stdlib batteries (parallel)
Archived in PLAN-M1-M29.md.
All 6 tasks (M28.1–M28.6) shipped and
reconciled [x] (ADR-0318,
ADR-0319;
std_regex, std_glob,
std_validate, std_data,
std_formats).
M29 — Purity/authority badges & capability trace replay (parallel)
Archived in PLAN-M1-M29.md. Complete (ADR-0320, ADR-0321).
M30 — Oracle diagnostics, typed holes, executable contracts & sub-root grammars (parallel)
Accepted 2026-11-28: ADR-0322,
ADR-0323,
ADR-0324,
and explicit state machines ADR-0325
(plugins/fsm, plugins/fsm_gen,
plugins/fsm_test).
M31 — Wave 2 Consolidation & Stabilization (M31+ Additive Features Frozen)
Goal: Close compiler soundness, frontend/CLI reliability, documentation drift, and companion-repo dogfood debt accumulated across M26–M30 before unfreezing additive features.
Deferred Backlog (Tracked, Frozen Behind Wave 2)
Historical open items from M0–M23 preserved for visibility; none advance until Wave 2 consolidation closes or the owner explicitly schedules them:
| ID | Owner | Summary | Reference |
|---|---|---|---|
M0.8 |
[human] |
Push remote & confirm hosted CI green | PLAN-M1-M29 |
M7.6 |
Agent | T1-driven syntax/diagnostic experiments from
CP-7.1 |
PLAN-M1-M29 |
M14.24 |
Agent | Harness² live evaluation within budget cap | PLAN-M1-M29 |
M15.1 |
Agent | Static musl Linux & macOS cross-build distribution | ADR-0282 |
M15.3 |
Agent | wasm-host platform with WIT & narrowed
capabilities |
PLAN-M1-M29 |
M15.5 |
Agent | Decentralized package registry
(PLAN-registry-v2) |
PLAN-registry-v2 |
M16.1–M16.2 |
Agent | Freeze kernel spec / edition 1; full frontend & codec fuzzing | PLAN-M1-M29 |
M17.14 |
[human] |
tenon vc shadow trial & Git migration
decision |
PLAN-M1-M29 |
M19.17–M19.18 |
Agent | procman FFI interpreter parity & Linux/macOS
qualification |
PLAN-M1-M29 |
M20.5 |
Agent | Split generated C into units for optimized builds | ADR-0283 |
M22.10 |
Agent | Adopt script_host runtime plugins in
coding-harness-2 / tui_shell |
PLAN-M1-M29 |
M23.4–M23.5 |
Agent | Async
Net.wait/write_some/key
natives, Term self-pipe, v2 SSE bench |
PLAN-M1-M29 |
Appendix A — Coverage of the design review
The full item-by-item mapping from docs/design-review.md to M0–M16 tasks is archived in docs/archive/PLAN-M1-M29.md#appendix-a--coverage-of-the-design-review.