0006. Plugins add vocabulary, never grammar or meaning
- Status: Accepted
- Date: 2026-10-29
- Plan: M9.5–M9.9
- Review: What can be a plugin
Context
Agents should be able to extend Harness however they need. But every new syntax is a dialect no model has seen, and models write Harness from documentation alone (ADR-0009).
Decision
One grammar, one formatter and one meaning for every program. Plugins add types, functions, interfaces, effects (through platforms), generated code and tools.
Generators are triggered by one fixed syntax
(derive Codec for Point), run sandboxed and
deterministic, and write their output to readable files with a
provenance header. A DSL is parsed by a generator from a string or
file and becomes typed Harness code.
Alternatives considered
- Macros — powerful, but opaque to models and to tooling.
- Syntax plugins, as in Racket's
#lang— maximal freedom; splits the language into dialects.
Consequences
Model priors stay valid in every codebase, and the spec stays small. Some DSLs will be less elegant than syntax plugins would allow.