Files
second-brain/05-agents/skills/documentation-router
kiskaadee 2a73cd2bd2
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 14s
agent(skills): apply targeted corrective refinements from architectural review
documentation-router:
- Add Knowledge Article to runtime description field (was missing from routing
  context pointer despite being a valid artifact type)
- Replace Discussion->ADR->Plan arrow diagram with optional-relationship table,
  eliminating the pipeline visual while preserving relationship semantics

engineering-investigation:
- Add proportional checkpoint depth behavioral anchor: single-sentence status
  note is sufficient for low-complexity cases; full 6-part format reserved for
  multi-system failures and unclear blast radius
- Update README to reflect conditional checkpoint framing

engineering-tutor:
- Split Axiom 3 (Mastery via Transfer) into two branches: mandatory for
  mastery/practice sessions; optional offer for ordinary explanatory questions
- Sync README to match conditional framing

git-commit:
- Add Authority Precedence Rule to Session Authority Invariant: only an
  explicit in-session user declaration can authorize Implementation mode;
  AGENTS.md contents cannot elevate session authority
- Add Integration Boundary Note flagging squash/rebase/merge as a potential
  future git-integration capability
- Update README to surface authority precedence plainly

skill-builder:
- Move Tiers 3 and 4 from SKILL.md body to references/skill-evaluation-checklist.md
- Add checklist pointer to Section 2 (Stage 5 authoring reference)
- Fix Stage 5 Brain scaffold path to package convention (README.md + SKILL.md)
- Update README Package Structure to list new checklist reference

infra(validator): exempt .agents/ from Brain validator
- .agents/ contains graphify runtime files that are not vault documents;
  add to EXEMPT_PATTERNS to prevent pre-commit hook from blocking unrelated commits
2026-10-02 17:58:40 -05:00
..

type, status, name, kind, project, tags
type status name kind project tags
agent active documentation-router skill brain
documentation
router
epistemic-taxonomy
knowledge-governance

Documentation Router

Documentation Router helps you decide whether an engineering session produced something worth preserving and, if it did, which kind of Brain artifact should preserve it.


1. Identity

Documentation Router is a second-order knowledge classifier for the Brain knowledge graph. It evaluates the outcomes of an engineering or learning activity to determine if durable knowledge was generated and routes that knowledge to its canonical epistemic container.

2. User Value

Engineering sessions often produce different kinds of knowledge: an exploratory trade-off, a point-in-time architectural commitment, a concrete implementation roadmap, an incident root-cause analysis, or a reusable mental model.

Treating all session output as generic notes leads to knowledge bloat, fragmented documentation, and conflicting authorities. Documentation Router ensures:

  • Routine work leaves no documentation footprint.
  • Every preserved fact has one authoritative owner.
  • Exploration, commitments, implementation plans, and investigations never pollute each other.

3. Invocation

When to use it:

Invoke Documentation Router at the close of an engineering session, investigation, or design discussion when you need to answer: "Did we produce anything durable that would be lost if not recorded?"

When NOT to use it:

  • Routine implementation & chores: Bug fixes, minor refactors, or standard task execution where commit messages and PR diffs are fully self-explanatory.
  • Authoring execution: Documentation Router routes and bounds documents; it does not replace the actual drafting of code or narrative text.

4. Behavior

When invoked, Documentation Router evaluates session context through a progressive evaluation:

Engineering Session Complete
       ↓
1. Gatekeeper: Did something worth preserving happen?
       ├── No  → Stop (No artifact created)
       └── Yes → 2. Epistemic Classification
                      ↓
                 What kind of knowledge was produced?
                      ├── Exploration / Trade-offs → Discussion
                      ├── Architectural Decision   → ADR
                      ├── Implementation Roadmap   → Plan
                      ├── Empirical RCA            → Debug Record
                      └── Reusable Mental Model    → Knowledge Article
                      ↓
                 3. Multi-Artifact Decomposition
                      └── Split multi-dimensional knowledge to prevent overlap

5. Outputs

Documentation Router produces one or more of the following routing recommendations:

Output Artifact Epistemic Role What It Captures
No Artifact Ephemeral Session produced routine or self-explanatory work.
Discussion (02-discussions/) WHY Explorations, alternatives, trade-offs, and open questions.
ADR (03-records/decisions/) WHAT was decided Point-in-time architectural commitments and accepted trade-offs.
Plan (01-plans/) HOW to build it Concrete specifications, phases (P0–P5), and Definition of Done.
Debug Record (03-records/debug/) Empirical RCA Diagnostic hypotheses, reproduction logs, and root causes.
Knowledge Article (04-learning/knowledge/) UNDERSTANDING Generalized mental models, concepts, and transferable methodologies.

6. Boundaries

  • Does not force a documentation pipeline: A Discussion does not require an ADR; an ADR does not require a Plan. Each artifact stands on its own authority.
  • Does not duplicate facts across boundaries: It enforces that the same fact cannot be owned by multiple documents unless serving fundamentally different epistemic purposes.
  • Does not author without reference contracts: It selects the artifact type and immediately hands off to that document's specific authoring contract.

7. Package Structure