RUL-016 — Design the ontology before importing into any graph

Ruling

Before importing/ingesting nodes into a graph (Neo4j→Memgraph, source ingest, etc.), design/extend the canonical KG ontology FIRST — never dump raw nodes. "The user pushed back hard on a raw Neo4j→Memgraph mirror" (GIGO).

Evidence

Enforcement

Verification

scripts/kg_schema.py check reports drift between the live graph and the canonical schema (CI-required per ADR-023); scripts/sweep_test_pollution.py purges nodes that violate the canonical id-marker/merge-key contract before test runs seed new ones, keeping the operational KG's ontology from silently drifting.