# Demand-Driven Context: What 300 Incidents Reveal About Tribal Knowledge - Raj Navakoti

## Executive summary

This talk introduces Demand-Driven Context (DDC), a methodology for curating enterprise knowledge by leveraging AI agents. Instead of attempting to document all institutional knowledge upfront, DDC treats real production incidents as knowledge tests. By letting an AI agent fail repeatedly on historical incidents, the system identifies precise knowledge gaps (vocabulary, business processes, system requirements) that are essential for resolution. The process is iterative, culminating in a 'living context' that continuously updates knowledge via a 'Propose Knowledge' skill, which requires a human gate (PR review) to prevent knowledge decay.

## Key takeaways

- Incident Management is a Knowledge Test: Incidents are highly valuable artifacts for knowledge discovery, as they surface 'tribal knowledge'—information that is critical but undocumented. This makes them ideal for testing and building a knowledge base.
- DDC Methodology: Failure as a Signal: DDC is inspired by Test-Driven Development (TDD). The agent is given an incident and must identify exactly what knowledge is missing to resolve it, rather than just attempting to solve it with existing documentation.
- Knowledge Curation is Finite and Targeted: The goal is not to dump all organizational knowledge (which is infinite in scope), but to identify the finite, minimum context required for a specific agent (e.g., an Incident Resolution agent) to succeed.
- Maintaining Knowledge Requires a Human Gate: To prevent knowledge decay (knowledge rot), a 'Propose Knowledge' skill is implemented. When the agent learns something new or finds a conflict, it generates a Pull Request (PR) on the knowledge base, which must be reviewed and merged by a human.

## Technical details

- Demand-Driven Context (DDC): A methodology that uses AI agents to fail on real-world problems (incidents) to systematically identify and curate the minimum necessary knowledge context, mimicking the principle of TDD.
- AI Agent Capabilities and Limitations: Initial attempts using frontier models (GPT-5, Opus 4.5) with standard RAG pipelines failed because the incident scope was too broad (a whole domain, not just one team). The agent needs to be prompted to ask for specific missing information (e.g., 'What is a nightly batch retry policy?').
- Knowledge Gap Identification: The agent is prompted to identify knowledge gaps across specific entity types: vocabulary, business processes, system requirements, or API schemas. This moves the agent from merely summarizing to actively diagnosing knowledge deficits.
- Knowledge Base Maintenance Loop: The 'Propose Knowledge' skill allows the agent to act as a continuous learning mechanism. When it learns a new fact or detects a conflict, it generates a PR, ensuring that knowledge updates are subject to human review and merge.

## Practical implications

- Treat incident management as a continuous knowledge engineering problem, rather than just an operational task.
- Implement an agent layer that is designed to ask for missing context (Demand Context) rather than just providing answers.
- Integrate knowledge updates into the CI/CD pipeline by requiring all knowledge additions/changes to pass through a human review gate (PR process).
- Focus knowledge efforts on 'hot context'—information used frequently and immediately, such as incident resolution—rather than attempting to document all organizational knowledge.

## Topics

AI Agents, Context Engineering, Domain-Driven Design (DDD), Incident Management, Knowledge Graphs, LLMs, TDD, NDC Conferences, Raj Nakoti's Website/LinkedIn, GitHub Toolkit/Paper

Source: https://www.youtube.com/watch?v=n2dQVqr-0FU
