On this page

0245. Toolchain batteries and registry scope

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

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.