Summary
Validate that files in typed directories (terms/, concepts/, topics/,
etc.) have correct type: frontmatter and follow the conventions for
their content type. A script checks and reports violations.
Motivation
Content types (term, concept, topic, discipline, school, text) are
defined in the directory-organization spec but not enforced. A file
in terms/ might lack type: term frontmatter, or a text might be
filed in concepts/. As the repository grows, structural drift
accumulates unless checked.
Steps
- Write
validate-content-types.pythat scans directories and checks frontmattertype:against directory conventions. - Report: files with wrong or missing type, files in wrong directories.
- Add as a pre-commit or CI check.
Done when
- Validator runs and reports violations
- Existing content passes or violations are documented
- Automated check exists
Dependencies
- Plan 0003 (policy encoding — uses the same constraint vocabulary)
Log
2026-03-07 — Created. Identified during session mining as a gap in the ASR spec enforcement.