0245. Toolchain batteries and registry scope
- Status: Accepted (maintainer, 2026-11-15)
- Date: 2026-11-15
- Plan: M15.5; RG1.1 (reserved names); std/
std.aitrack (separate, unplanned here) - Review: Making Tenon plugin-first
Context
The v1 overview (REGISTRY-VC-HOSTING-OVERVIEW.md)
named codec, show, sqlite, zlib and http as the first registry
publications. the maintainer's goal 4: do not port existing
plugins; the language ships what AI apps need, and the registry is
for third-party code. Today
crates/harness/src/std/reflect.hn is the only std
module; edition 2026 embeds codec, show, args, html, http and
encoding (ADR-0089, ADR-0272);
crates/harness/src/plugin_kit.rs:697 reserves
std and harness as plugin names.
Provider APIs change faster than editions.
Decision
Boundary rule: anything an AI app needs on day one, or that must evolve with the language (codecs, derive generators, capability types), ships with the toolchain and is versioned by edition. Domain integrations (a specific vector DB, a SaaS API, a UI kit) belong in the registry.
Target toolchain set: HTTP client and server, JSON,
SSE/streaming, WebSocket, LLM provider clients, tool calling
derived from types, MCP, vector math, subprocess, SQLite, plus
regex, base64, random/UUID, wall-clock time and TLS. LLM-provider
and tool-calling modules live in an std.ai area (name
is a proposal) that may update in minor toolchain releases, as
Deno decoupled @std from the runtime; it stays
embedded and offline.
No existing plugin is ported to the registry as a first
publication set. Whether a plugin is promoted into std is a
std-track decision. Registry tools refuse std and
harness as package names and source-path final
segments.
Alternatives considered
- Publish existing plugins first (v1 overview) — makes core AI features depend on registry readiness and fetches; contradicts goal 4.
- Everything in the registry, small std — the npm/PyPI shape; agents then pick among competing third-party clients for basic needs.
aimodules locked to editions — provider churn would force edition bumps.
Consequences
Harness is useful for AI apps before the registry exists. The toolchain grows and owns provider-client maintenance. The HTTP/SSE runtime rework is a separate track and not specified by this ADR. The std track needs its own plan and ADRs.