Editor
Headless template-editor primitives — load_schema parses the v1 frontmatter contract; parse_frontmatter and validate_frontmatter split and check templates; lint_template returns 1-indexed Diagnostics; autocomplete_tags/aliases prefix-match against the corpus; find_references locates alias/tag/path occurrences; plan_rename builds a RenamePlan with per-file FileEdit hunks; apply_rename runs the plan atomically with rollback. Pure functions over CorpusProtocol — used live by the attune-gui editor and attune-author edit CLI.