AnalyzeConceptCorruption
⚠️ **MUST USE BEFORE RepairConcepts.** Read-only diagnostic revealing `[[WikiLink]]` families and variants like [[tool]] vs [[tools]] for safe consolidation planning.
⚠️ MUST USE BEFORE RepairConcepts. Read-only diagnostic revealing [[WikiLink]] families and variants like [[tool]] vs [[tools]] for safe consolidation planning.
Parameters
conceptFamily(string, required): Base concept to analyze. Example:"tool","agent","test"maxResults(int, optional): Maximum variants to show. Default: 50
Returns
Examples
Basic Analysis
Large-Scale Audit
Output Interpretation
✅ Safe to Merge
- Singular/Plural:
[[tool]]vs[[tools]]- Standardize on singular - Case Variations:
[[MCP]]vs[[mcp]]- Standardize casing - Whitespace:
[[AI agent]]vs[[AI-agent]]- Consolidate if semantically identical
🚨 DANGEROUS to Merge
- File Paths:
[[GraphTools.cs]]- FILE REFERENCES, not concepts - Class Names:
[[VectorTools]]- CODE ENTITIES, merging with[[tool]]destroys meaning - Compound Forms:
[[coding-agent]]- SPECIFIC TYPES, not generic[[agent]] - With Suffix:
[[tool-framework]]- DISTINCT CONCEPTS with specialized meaning
Pattern Categories
| Category | Description | Risk Level | Example |
|---|---|---|---|
| Singular/Plural | Standard pluralization | Low | [[tool]] vs [[tools]] |
| Case Variations | Different casing | Low | [[MCP]] vs [[mcp]] |
| Compound (with -) | Hyphenated forms | High | [[coding-agent]] vs [[agent]] |
| File Paths | File/class references | Critical | [[GraphTools.cs]] vs [[tool]] |
| With Suffix | Extended concepts | Medium-High | [[agent-framework]] vs [[agent]] |
Critical Warnings
DO NOT blindly run suggested repairs. Tool suggests repairs based on PATTERNS, not SEMANTIC MEANING.
Safe Consolidation:
[[MCP Tools]]→[[MCP]](case/plural standardization)[[agents]]→[[agent]](plural consolidation)
UNSAFE Consolidation:
[[VectorTools]]→[[tool]](destroys class reference)[[coding-agent]]→[[agent]](destroys type specificity)
Workflow
- Run AnalyzeConceptCorruption on target
conceptFamily - Review output categorization
- Identify safe consolidations (plurals, casing) vs dangerous (compounds, file paths)
- Validate semantic equivalence with SearchMemories/BuildContext
- Execute RepairConcepts with
dryRun: truefirst - Apply repairs if safe, run Sync to rebuild graph
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| "Found 0 variants" | No matching concepts | Use base words ("tool") not compounds ("tool-system") |
| Too many results | Common concept | Increase maxResults or use specific conceptFamily |
| Missing variants | Different naming | Run SearchMemories to find actual usage |
Integration
- RepairConcepts: ⚠️ ONLY after analysis - makes actual file changes
- Sync: Run after repairs to rebuild graph
- BuildContext: Explore concept relationships before consolidation
- SearchMemories: Find concept usage context
- Visualize: See concept relationships graphically