Definition

Rules (or guardrails) are the hard constraints that govern how the LLM Wiki operates. They ensure the knowledge base stays healthy, bounded in cost, and free from noise. Rules are defined in the governance framework (AGENTS.md or CLAUDE.md) and enforced during every operation.

Key Points

  • The four production guardrails from GenAI Unplugged: link cap (5-8 per page), twice-referenced entity rule, forward-only linking, edit ceiling (max 5 pages per ingest)
  • The compounding invariant: “preserve and extend — never discard” — the most important rule
  • Source immutability: raw files are never modified by the LLM
  • Frontmatter is required on every page: title, type, created, updated, tags, sources
  • Rules are defined declaratively in the AGENTS.md file and read by the LLM at the start of each session
  • A lint operation checks that all rules are being followed
  • lint — Enforces that rules are being followed
  • ingest — Most constrained by rules (max pages, entity threshold, forward-only)
  • llm-wiki — The rules define how the LLM Wiki operates and stays healthy

Sources

^[AGENTS.md] ^[raw/articles/genai-unplugged-llm-wiki.md]