Summary
Implement the Knowledge Wiki layer described as a design proposal in docs/docs/knowledge-wiki.md. Today that page is explicitly marked "design proposal, not yet shipped" — this issue tracks turning it into an implemented layer.
Motivation
The Ontology axis validates after generation (oma validate rejects a malformed entity), and the Harness enforces before a tool runs. Neither tells an agent, before it authors a typed artifact, what the domain already knows (existing enums, prior ADR rationale, naming conventions). This is the same root cause behind the canonical "deployment target" drift (one skill meant a cluster name, another meant the eks|ec2|lambda enum) — validation only caught the clash after both documents already diverged.
A semantic retrieval layer queried before generation grounds the agent in established intent, preventing drift at the source instead of catching it at handoff.
Layer positioning (complementary, not competing)
| Layer |
Question |
When it acts |
Status |
| Knowledge Wiki |
"what is already known?" |
before generation (grounding) |
🔭 this issue |
| Ontology (8 schemas) |
"is this true?" |
after generation (validation) |
✅ shipped |
| Harness (PreToolUse) |
(execution deny) |
before a tool runs (enforcement) |
✅ shipped |
Open design questions (resolve in an ADR before implementation)
- Source of truth — the wiki MUST derive from the schemas +
ADR/Spec docs, never the reverse, or it becomes a competing definition and reintroduces the drift it is meant to prevent.
- Staleness — a retrieval layer lagging the schemas is worse than none; ingestion must re-run on every ontology change (Inner-Loop hook).
- Retrieval surface — MCP tool vs. skill vs. build-time index; each has different harness implications.
Acceptance criteria (draft)
References
Detailed implementation to be carried out in a separate working session.
Summary
Implement the Knowledge Wiki layer described as a design proposal in
docs/docs/knowledge-wiki.md. Today that page is explicitly marked "design proposal, not yet shipped" — this issue tracks turning it into an implemented layer.Motivation
The Ontology axis validates after generation (
oma validaterejects a malformed entity), and the Harness enforces before a tool runs. Neither tells an agent, before it authors a typed artifact, what the domain already knows (existing enums, priorADRrationale, naming conventions). This is the same root cause behind the canonical"deployment target"drift (one skill meant a cluster name, another meant theeks|ec2|lambdaenum) — validation only caught the clash after both documents already diverged.A semantic retrieval layer queried before generation grounds the agent in established intent, preventing drift at the source instead of catching it at handoff.
Layer positioning (complementary, not competing)
Open design questions (resolve in an ADR before implementation)
ADR/Specdocs, never the reverse, or it becomes a competing definition and reintroduces the drift it is meant to prevent.Acceptance criteria (draft)
schemas/ontology/+ADR/Specdocuments (one-way)self-improving-loopconsumes accumulated domain knowledge as a second input alongside operational signaldocs/docs/knowledge-wiki.mdstatus banner updated from "design proposal" to shippedReferences
docs/docs/knowledge-wiki.md— the design proposaldocs/docs/ontology.md— 8-entity schema + evolution rulesdocs/docs/ontology-engineering.md— triple feedback loop the wiki feeds intoDetailed implementation to be carried out in a separate working session.