From 5887505428d8d8ee50ee4e1f68a9ea4b5af0c23c Mon Sep 17 00:00:00 2001 From: Nick Sullivan Date: Sun, 24 May 2026 16:55:03 -0500 Subject: [PATCH] fix(cortex): align KNOWLEDGE_CATEGORIES with current schema.md The hardcoded category list still used the old taxonomy (entities, concepts, summaries, how-to), but the live schema documented in skills/cortex/schema.md uses people/ventures/topics/synthesis/ decisions/learning/research. Result: status, rebuild-index, and setup all ignored the real store contents, reporting tiny page counts (e.g. 21) for stores with hundreds of valid pages because they only counted directories that no longer match the schema. Changes: - KNOWLEDGE_CATEGORIES now matches schema.md - MEMORY.md routing template links to people/ instead of entities/ - EXTRA_DIRECTORIES drops duplicate 'learning' (now in main list) Verified against a live store: 366 pages now counted correctly across all 7 schema categories. Co-Authored-By: Bosun --- skills/cortex/cortex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skills/cortex/cortex b/skills/cortex/cortex index 01da414..eac0701 100755 --- a/skills/cortex/cortex +++ b/skills/cortex/cortex @@ -55,10 +55,11 @@ SENSITIVE_EXTENSIONS = {".pem", ".key", ".p12", ".pfx", ".jks", ".keystore", ".k SENSITIVE_PREFIXES = ("secret", "credentials", ".env", "id_rsa", "id_ed25519", "id_ecdsa") KNOWLEDGE_CATEGORIES = [ - "entities", "concepts", "summaries", "synthesis", "decisions", "how-to", + "people", "ventures", "topics", "synthesis", "decisions", + "learning", "research", ] -EXTRA_DIRECTORIES = ["learning", "learning/archive", "daily"] +EXTRA_DIRECTORIES = ["learning/archive", "daily"] CONFIG_DIR = Path.home() / ".config" / "cortex" CONFIG_FILE = CONFIG_DIR / "config" @@ -464,7 +465,7 @@ def _setup_symlink(store_path: Path) -> bool: "# Memory Index\n\n" "## Quick Links\n" "- [Knowledge Base Index](Knowledge Base/index.md)\n" - "- [All Entities](Knowledge Base/entities/index.md)\n" + "- [All People](Knowledge Base/people/index.md)\n" "- [Recent Decisions](Knowledge Base/decisions/index.md)\n" ) print("Created MEMORY.md routing table")