On this page

0006. Plugins add vocabulary, never grammar or meaning

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

Consequences

Model priors stay valid in every codebase, and the spec stays small. Some DSLs will be less elegant than syntax plugins would allow.