DDD Knowledge Governance — Practical Ontology for AI Agents (with code samples) #59
xg-gh-25
started this conversation in
Show and tell
Replies: 5 comments
|
Follow-up — the ontology in this post now spans all three subsystems, not just DDD. This discussion introduced the 7-type MECE classification for DDD knowledge. Since then we generalized the same 🏷️ classification + 🕸️ relations model to unify Memory + DDD + Code Intelligence under one ontology (still no Neo4j):
If this post was your entry point into how we govern knowledge, #95 is the next step up — it shows the 7-type model here as one of three views over a single shared ontology. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DDD Knowledge Governance — Practical Ontology for AI Agents
Core Claim
Manage AI Agent domain knowledge using Darwinian principles. No Neo4j, no manual cleanup, no quarterly reviews needed.
7-Type MECE Schema (Three Layers)
Updated 2026-06-17: Extended from 5 to 7 types to cover meta-cognitive knowledge (design philosophy, behavioral corrections).
guidelinepitfallprocessdecisionmodelprinciplecorrectionWhy 7 not 5? Original 5 types covered "knowledge about code/systems." But an evolving agent also needs "knowledge about how to think" (principle) and "knowledge about its own failure patterns" (correction). These are the meta-cognitive layer — they govern decision-making quality, not task execution.
Priority chain: pitfall → decision → correction → principle → guideline → process → model
Why fixed types > free tags? Because you can write code saying: "BUILD stage injects all guideline + pitfall + correction." Free tags can't provide this — no query contract exists.
Lifecycle (Darwinian Decay)
Inline metadata format:
Where Knowledge Lives (4 DDD Files + MEMORY + KNOWLEDGE)
Same engine, multiple targets.
ddd_entry_lifecycle.pyruns on ALL of these with the same parse/bump/decay mechanics.Injection Strategy (Stage-Driven)
Each stage only sees what it needs. No wasted tokens, no noise.
Decay Engine (~100 lines)
Zero human maintenance. Mechanical. Daily.
Confident-Only Extraction
Only extract what the system is confident about:
Principle: Better to have gaps humans fill naturally than noise that drowns signal. Humans are the "last gate" — they supplement what the system missed, not filter what the system over-produced.
Real Data (3+ months production)
Design Principles (Takeaways)
Author: XG | SwarmAI — Human directs, AI delivers
Implementation:
backend/core/ddd_entry_lifecycle.py(665+ lines)Design:
Knowledge/Designs/2026-06-17-living-knowledge-os-design.mdAll reactions