Architectural Decision Numbers (K-numbers)

Sequential identifiers (starting at K01) assigned to architectural decisions and operational rules (ADRs) across the Site Factory and all sites. They establish an unambiguous index for humans and AI agents to reference and amend operating constraints.

General Meaning

During the continuous evolution of long-running software systems, the context and rationale behind critical technical decisions are prone to institutional memory loss. Without structured records, engineering teams frequently dispute why an unusual constraint was adopted or inadvertently re-introduce previously failed configurations. Architecture Decision Records (ADRs) mitigate this by capturing context, alternatives, and trade-offs.

Indexing ADRs with unique sequential identifiers transforms descriptive documents into referenceable engineering standards. In daily code reviews, pull requests, automated linters, and team dialogues, engineers and autonomous agents can cite an exact identifier rather than re-explaining complex architectural agreements, ensuring that all contributors maintain an aligned mental model of the system's operational boundaries.

Why It Matters

  • Eliminating conversational ambiguity: Team members and autonomous agents refer to concise identifiers like K82 or K104 rather than vague descriptions like 'that free-tier rule' or 'the model ordering guideline.'
  • Preventing rule drift and divergence: Anchoring verbatim excerpts from primary documents into a machine-readable JSON ledger allows automated test suites to catch unintended wording drift.
  • Clarifying decision lineage and ownership: Explicitly tracking who established the rule, the decision date, amendment permissions, and operational status (active, relaxed, or retired) prevents arbitrary modifications.

How the Site Factory Uses It

The Site Factory governs all operational rules and autonomous agent behaviors through indexed decision records numbered from K01 upward, managed in the machine-readable ledger ops/rules_index.json. Each entry defines structured attributes including id, group, rule, why, by, source, quote, and status. The primary source of truth resides in decisions.md (operator decisions) and rules.md (system-wide operating rules), with automated watchdog tests enforcing exact quote parity across documents.

Key rules include K82 (Free tiers and automated execution), K96 (Private repository unification), K100 (Empirical benchmark-based model selection), and K104 (AI execution cascade: local models first, then lightweight models, escalating only with clear justification), as summarized in dashboard/site/index.html (Section 6-1). When operators request adjustments—such as 'relax rule K18'—agents locate the exact record and apply modifications across the ledger's five status states (active, relaxed, review candidate, paused, or completed).

Caveats & Operational Rules

  • Never reuse or duplicate identifiers: K-numbers are immutable permanent identifiers; once a rule is retired or superseded, its identifier must never be reassigned to an unrelated rule.
  • Keeping the ledger synchronized with primary sources: The definitive truth resides within rules.md and decisions.md, while the JSON ledger serves as an index; automated CI watchdog tests must continuously verify quote parity to prevent documentation drift.

Related Terms

References

  • Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 19 (Documenting Architecture Decisions)

Verified: 2026-11-08