Skip to main content
Knowledge Engine · Layer 01

Knowledge Engine

The Knowledge Engine produces a reliability-scored Execution Context Object (ECO) for every task. It does not understand code — it retrieves structural facts, measures its own reliability, and communicates its limits.


Responsibilities​

  1. Parse every commit into a structured module index (symbols, dependencies, exports)
  2. Detect intent from the spec file — heuristic, 1–2 intents maximum
  3. Retrieve evidence biased by detected intent
  4. Score evidence across five ECO dimensions
  5. Gate — block the pipeline if evidence is insufficient

What It Is Not​

  • Not a code understanding engine
  • Not an LLM wrapper
  • Not a semantic search system (vector search is a Tier 3 fallback only)

Reasoning happens in the consuming LLM. The Knowledge Engine provides the evidence that makes that reasoning grounded.


Components​

ComponentRole
Parsing LayerTree-sitter + ctags, atomic post-commit
Storage LayerSQLite schema, WAL mode, FTS5
Retrieval SourcesFour-tier retrieval cascade
Query RouterIntent-biased tier selection
Confidence ScoringDeterministic 0–100 penalty matrix