Medallion is a three-layer warehouse: keep the raw drop, keep only valid rows, publish only aggregates (KPIs). The medal names are labels for trust, not metal. Lesson: PATTERNS.md.
Term
Meaning
Medallion
Pattern: raw → valid → trusted aggregates. Databricks name; we add quarantine.
Bronze
The original file, kept forever (bronze_raw). Hashed so the same drop is not loaded twice.
Silver
Rows that passed the schema (silver_comments or silver_orders).
Gold
Counts and rates leadership may cite (gold_comment_kpis). Insights may use only these numbers.
Quarantine
Invalid rows kept with an error reason — not deleted. Demo: 2 of 12 comments.
A checklist of steps in order (ingest → PII → … → critic → persist), implemented as a graph library.
Critic
A rule, not another model: every digit in the insight must already exist in gold. Hallucinated 999 fails. PATTERNS
Insight
Short narrative persisted to the insights table after the critic passes. Default is a gold-KPI template; optional LLM wording is LLM.md. Cards and when-to-use: MODELS.md.
HITL
A human still decides. Graph status needs_human is not success. PATTERNS
needs_human
Terminal graph status: do not treat as success; an officer must review.
MCP
Model Context Protocol. Agents call typed tools, not ad-hoc SQL. MCP