Hmm, the user wants to build a knowledge base that connects design decisions, service documentation, and model playbooks. This is a complex systems engineering challenge—needs more than just a wiki.
First, I need to understand the core problem: information silos between architecture, operations, and ML teams. The user likely struggles with traceability and accountability. They probably want to prevent "who approved this?" or "why does service X behave this way?" scenarios.
I should emphasize bidirectional linking as the backbone—not just hierarchical folders. Need concrete examples to make it tangible. Maybe visualize with a scenario: a latency issue tracing from alert → service doc → design ADR → model playbook. That makes the value obvious.
Tooling matters too—can't just say "use a wiki." Must recommend specific patterns like ADRs, service templates, and model cards. Should warn about common pitfalls (like orphaned docs) and stress maintenance culture.
Ah, and the user might not realize they need governance—who owns updates? Should suggest a "documentation champion" role. Keep it actionable but not prescriptive; they'll adapt it to their stack. Avoid over-engineering—start with critical-path links first.
Excellent initiative. Building a linked knowledge base is a force multiplier for engineering velocity, reliability, and institutional memory. Here is a comprehensive blueprint for developing this system, structured for immediate implementation.
Core Philosophy: Traceability Over Taxonomy
The goal is not to create another hierarchical file cabinet, but a directed graph of knowledge where any artifact can be traced to its origin, rationale, and dependencies.
1. Foundational Pillars & Artifact Types
| Artifact | Purpose | Owner | Key Link Points |
|---|
| Design Decision Record (DDR) | "Why" we built it this way. Captures context, alternatives, consequences. | Architect / Tech Lead | Links to: Service Docs, ADRs, Model Playbooks, RFCs, Jira Epic. |
| Service Documentation (SD) | "How" it works & operates. API specs, deployment, runbooks, SLOs. | Service Team | Links to: DDRs, Model Playbooks, On-call Playbooks, downstream dependencies. |
| Model Playbook (MP) | "How" the ML model is built, validated, monitored, and governed. | ML Team | Links to: Data Pipeline Docs, DDRs (model architecture), Service Docs (inference API), Drift Reports. |
2. The Linking Mechanism (The "Glue")
Use unique, permanent identifiers and enforce bidirectional links.
- Identifier Schema:
DDR-2024-001 (Design Decision)
SD-PAYMENTS-API (Service Doc)
MP-FRAUD-DETECTION-V3 (Model Playbook)
- Linking Syntax: Use standard markdown backlinks:
See [[DDR-2024-001]] for the rationale. Tooling (like Obsidian, Notion, or a custom wiki) should auto-render these.
- Mandatory Link Fields:
- Every DDR MUST link to:
- The primary Service Doc(s) it affects.
- Any relevant Model Playbook(s).
- The Jira/Issue Epic that commissioned the work.
- Every Service Doc MUST link to:
- The governing DDR(s).
- The Model Playbook(s) for any ML-driven features.
- Downstream/Upstream Service Docs.
- Every Model Playbook MUST link to:
- The DDR(s) for model architecture and feature store decisions.
- The Service Doc(s) for its inference endpoint.
- The Data Pipeline Documentation for training data.
3. Implementation Roadmap
Phase 1: Foundation & Backfill (Weeks 1-4)
- Tool Selection: Choose a platform that supports bidirectional linking and graph view.
- Top Tier: Obsidian (local, markdown-based, excellent graph), Logseq.
- Enterprise: Notion (linked databases), Confluence (with "Page Properties" and link plugins).
- Custom/Code-Centric: A static site generator (Docusaurus, MkDocs) with custom plugins and a
links.yaml index.
- Create Templates: Standardize the metadata block for each artifact type. Include:
# Example Template Header
title: "Service: Payment Authorization"
type: service-doc
status: stable
owner: "@team-payments"
linked_ddrs: ["DDR-2024-001", "DDR-2023-012"]
linked_models: ["MP-FRAUD-V3"]
dependencies: ["SD-USER-SERVICE", "SD-NOTIFICATION-SVC"]
- Pilot & Backfill: Pick one recent, well-understood project (e.g., "Recalculation of Fraud Score"). Manually create its DDR, Service Docs, and Model Playbook, linking them thoroughly. This defines the standard.
Phase 2: Process Integration (Weeks 5-8)
- Define "Definition of Done" (DoD): A feature/service/model is not done until its documentation artifacts are created and linked.
- "The Jira ticket cannot move to 'Done' without a linked DDR and updated Service Doc."
- Integrate into Development Workflow:
- RFC/PR Template: Add a section: "Linked Documentation (to be created):
[[DDR-xxxx]], [[SD-xxxx]]"
- CI/CD Gate: Add a simple check (e.g., a script that parses markdown files for required link fields) or a manual checklist in the deployment pipeline.
- Assign "Documentation Champions": 1-2 people per team are responsible for championing the linking standard and reviewing doc PRs.
Phase 3: Culture & Maintenance (Ongoing)
- Onboarding: New hire 30/60/90-day plan includes: "Trace the full lifecycle of Feature X using the knowledge graph."
- Blameless Post-Mortems: Mandatory step: "Update the relevant DDR and Service Runbook with the new learnings and link them."
- "Documentation Debt" Triage: Schedule a monthly 1-hour session to find and fix orphaned pages (pages with no inbound links) and broken links.
- Celebrate Traceability: In demos/engineering showcases, show the graph. "Here's the new recommendation service—note how its 3 DDRs, 2 Service Docs, and Model Playbook form a clean, traceable cluster."
4. A Practical Example: Tracing an Incident
Symptom: Alert: "Fraud Model V3 precision dropped 15% in EU region."
- Start at the Alert: It links to
MP-FRAUD-DETECTION-V3 (Model Playbook).
- In the MP: You find the "Monitoring & Alerting" section links to the inference
SD-FRAUD-SERVICE.
- In the SD: The runbook for
precision_drop says: "First, check if the user_profile_v2 feature distribution changed. This feature is from DP-USER-PROFILE pipeline. The model's use of this feature was a key point in DDR-2023-087."
- Open
DDR-2023-087: You see the "Decision": "We chose user_profile_v2 over v1 for its richer behavioral data, accepting the higher pipeline complexity." You also see the "Consequences" section explicitly mentions: "This increases our dependency on DP-USER-PROFILE; any upstream change must be validated against model drift."
- Result: You now know the root cause investigation path: Check
DP-USER-PROFILE pipeline logs for changes -> Correlate with MP-FRAUD-DETECTION-V3 drift reports -> The original trade-off (DDR-2023-087) provides context for the fix (e.g., "Do we need to roll back the pipeline feature, or can we adjust model thresholds?").
Without the linked KB: You'd be guessing which service/data pipeline to check, debating old decisions from memory, and likely restarting the investigation.
5. Tooling & Automation Stack
| Function | Tool Suggestions |
|---|
| Knowledge Base | Obsidian (local/graph), Notion (relational), Confluence (enterprise) |
| Link Validation | Custom script (grep -r "\[\[" . > links.txt), markdown-link-check |
| Diagramming | Mermaid.js (in-doc diagrams), Excalidraw (linked sketches) |
| Search | Everything (for Obsidian), Algolia/DocSearch, or built-in wiki search. |
| Alert Integration | Link PagerDuty/Opsgenie alerts to SD- pages via webhook. |
| CI/CD | Simple pre-commit hook to check for [[DDR- pattern in modified docs. |
6. Pitfalls to Avoid
- The "Single Source of Truth" Trap: Don't try to cram everything into one document. Linking is the SSOT. The truth is in the graph path.
- Orphaned Pages: A page with zero inbound links is dead weight. Monthly cleanup is non-negotiable.
- Over-Engineering: Start with critical-path projects only. You don't need to backfill 5 years of history. Focus on new work and recent major features.
- No Ownership: Each artifact type must have a clear owner team. The "knowledge base" itself needs a "gardener" role (rotating is fine).
Your First Week's Action Plan:
- Pick your tool (Obsidian is the fastest to start with).
- Create 3 templates (DDR, SD, MP) in the tool.
- Find your most recent cross-functional project (involving infra, service, and ML).
- Spend 2 hours with the project team to reconstruct its documentation using the templates and linking them. This is your pilot.
- Present the "before/after" graph at your next team meeting. Show the single cluster of connected knowledge vs. the previous 3 separate docs.
- Declare the new DoD: "From this sprint forward, every epic requires a linked DDR and updated SD."
This system pays for itself the moment an engineer can answer "Why is this like this?" in 2 minutes instead of 2 days. Start small, enforce the links, and let the graph reveal your system's true architecture.