One enforced, numbered rule index every agent boots with.

Docs hierarchy + governance index

Intent — Give every agent a single, numbered, cross-referenced rule index (loaded into its boot context) that points at the canonical deep doc for each rule, so the fleet shares one authoritative map instead of re-deriving invariants from scattered files.

SummaryOne enforced, numbered rule index every agent boots with.
TargetAgent · Context & dispatch substrate
Formvalidation
EnforcementSoft·Hard — the index content is advisory to the agent (soft, booted into every context); its cap + conformance lints are blocking (the hard counterpart)

Motivation — the failure it kills

In a large codebase, the knowledge an agent needs to not-break-things is spread across hundreds of docs. Left to discover that knowledge on its own, an agent re-derives an invariant (badly), or violates a cross-file rule it never found. The failure recurs every time the doc corpus grows: more documentation makes any single fact less findable, not more. Without a canonical index, "the docs say so" is unfalsifiable and unenforceable; there is no agreed place the rule lives.

Why it's not just "we have a docs folder"

A docs folder is a pile; this is an index with two enforced properties. First, it is loaded into every agent's boot context: it is the minimum shared world-model, not optional reference an agent might browse. Second, it is enforced: a bloat/cap lint keeps it scannable and a conformance lint keeps every rule cross-referencing exactly one canonical doc, so the index cannot rot into a second pile. What does a docs folder lack that this has? Canonicality and enforcement: one place each rule lives, one place each rule points, and a lint that fails the moment that stops being true. (The complementary dispatch-time move, pushing the subset of rules relevant to this change into the brief, is dynamic-context-injection; this mechanism supplies the map, that one delivers the relevant page.)

Mechanism

CLAUDE.md is a stable-numbered rule index: each rule is a short boot-context statement plus a cross-reference to the canonical doc that carries it in full ("CLAUDE.md carries the rule index; the sub-doc carries the principle"). The repository documentation index gives a one-line summary per doc. Rule numbers are stable, never renumbered; they are cited by number across the codebase, so the index doubles as a citable namespace. The index self-describes what belongs in it (a three-part earns-its-spot test) so it does not accrete local rules that should be doc-comments.

Prerequisites

Consequences & costs

Known uses

Related mechanisms