0089. Editions are explicit embedded dependency sources
- Status: Accepted (default; pending owner confirmation)
- Date: 2026-11-01
- Plan: M9.8 Step 8.0
- Review: Making Tenon plugin-first
Context
Packages, manifests and explicit fetching are established by ADR-0070 and ADR-0072. M9.8 adds curated editions as a convenient, reproducible set of core plugins and measures their effect on authoring prompts. These design defaults are adopted pending owner confirmation.
Decision
Edition data is embedded in the compiler. A dependency may
explicitly name an edition with { edition = "2026" };
harness fetch materializes its packages offline. The
lockfile records source = "edition:2026" and a tree
hash, making the resolved content reproducible without a registry
lookup.
Edition 2026 originally shipped codec, show and args, generator
plugins with capabilities = []. It now also ships the
html and http libraries and the pure encoding library
(ADR-0272).
Measure plugin prompt overhead with Tier A free replay on a
10-task subset of T1. A composed context file passed through the
existing --idioms PATH option compares a control set
b0 (nothing appended) with p0,
p3 and p10 (0, 3 and 10 imported
plugins), so run_t1.py does not change. Fixtures
prefixed fx_* never count as real plugins. Paid Tier
B remains OFF unless the owner approves it.
The 6,000-token budget applies to LANGUAGE.md
only; the edition index has a separate cap of 150 tokens. This
amends design-review.md,
line 106 and its statement that the edition's core plugins
share the prompt budget.
Alternatives
- Implicit edition imports with no dependency line would
silently change what
import codec.jsonmeans and compete with local modules (E0934). - In-memory loading like
std.reflectwould skip the fetch step but needs a special case in every loader path, and the source could not be read on disk. - Counting fixtures as real plugins would inflate the plugin-count comparison without measuring actual plugin overhead.
- Keeping the edition index inside the 6,000-token budget would
require shrinking
LANGUAGE.mdby about 100 tokens.
Consequences
Edition dependencies are explicit and lockable, and fetching their embedded content works offline. Prompt-overhead results use a bounded free replay and exclude fixtures from real-plugin counts. Implementation proceeds on these defaults; an owner change gets a superseding ADR.