admiralagent - Spec-Driven ADaM Code Generation with LLM-Translated Layers
Translates P21-style ADaM specifications into executable
'admiral' code with validation comments. An LLM (optional, via
'ellmer') maps each spec variable's free-text derivation onto a
closed vocabulary of derivation layers (structured JSON IR); a
deterministic compiler renders the IR into
'admiral'/'metatools' code with 'CHECK' validation comments and
writes provenance sidecars. Ships with a zero-dependency
rule-based classifier as baseline and fallback; the LLM never
writes R code directly and all model output is validated
against the closed vocabulary before use.