Document system
Type: index · Status: current
How documents are classified, structured, and quality-checked. These notes define the type system, writing conventions, and testing framework that make knowledge artifacts machine-verifiable and human-readable.
Foundations
- note base type — the base structured type: global fields (description, status, traits, areas), status ladder, traits system, design principles
- text root type — the empty root type: no frontmatter, always valid
- human-llm-differences-are-load-bearing-for-knowledge-system-design — knowledge systems produce dual-audience documents (human + LLM), making cognitive differences a first-class design concern for type and convention design
- why-directories-despite-their-costs — directories buy one-two orders of magnitude of navigable scale but each new directory taxes routing, search config, and cross-directory linking
Writing Conventions
- title-as-claim-enables-traversal-as-reasoning — claim titles make link traversal read as reasoning chains; topical titles break this, and multi-claim documents get different title conventions
Testing
- automated-tests-for-text — text artifacts can be tested with the same pyramid as software: deterministic checks, LLM rubrics, corpus compatibility
- text-testing-framework — reference framework: contracts per document type, test pyramid (deterministic/LLM rubric/corpus), production workflow
- deterministic-validation-should-be-a-script — half of /validate's checks are hard-oracle (enums, link resolution, frontmatter structure) and could run as a Python script instead of burning LLM tokens
- unit-testing-llm-instructions-requires-mocking-the-tool-boundary — skills are programs whose I/O boundary is tool calls; mocking that boundary enables instruction-level testing that complements text artifact testing
Decisions
- 002-inline-global-types-in-writing-guide — inline note and structured-claim templates into WRITING.md, eliminating one hop for the two most common note types
Related Areas
- type-system — sub-area: why documents have types, their roles, and how structured writing improves quality
- kb-design — the document system is infrastructure for the KB; architecture decisions about files-not-database and context loading depend on document structure
- links — title-as-claim bridges both areas: it's a writing convention that enables link semantics
- learning-theory — the type ladder instantiates the stabilisation gradient for documents