brain-ingest-gate
A pre-write quality gate that checks new notes entering a personal knowledge base for duplicate pages and named-entity matches, linking to existing content instead of creating clones.
What it does
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named entities registry-first (a vector score is a floor for prose, never a gate for named things), then run the read-the-top-hit dedup decision tree (clear-dup / plausible-dup / clear). Owns dedup; delegates enrichment to the shipped ingestion skills. Routing convention, not an operation-boundary enforcement.
Quality judgment
The document provides a thorough, well-structured gate with clear two-stage checks (named-entity resolution then dedup), explicit anti-patterns, and proper delegation boundaries. It covers edge cases, verification, and contracts comprehensively. The only minor deduction is that some example outputs could be more detailed, but the structural guidance is strong.