Gap Detection
Find structural gaps: missing intermediate concepts, thin branches, disconnected clusters.
Tool
vault_graph_stats + vault_query_graph + vault_lint
Protocol
- Run vault_graph_stats — check orphan list and edge distribution
- For each orphan, query its neighborhood — is it truly isolated or just missing one edge?
- Check edge_type_distribution — are some types underrepresented?
- Identify thin branches (nodes with only 1 edge)
- Report gaps with suggested fixes
HARD-GATE
Yield
Returns: { orphans: number, thin_branches: number, suggested_fixes: string[] }