Skip to content

Commit 5887505

Browse files
TechNickAIBosun
authored andcommitted
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 <bosun@carmenta.ai>
1 parent 745aea1 commit 5887505

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

skills/cortex/cortex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ SENSITIVE_EXTENSIONS = {".pem", ".key", ".p12", ".pfx", ".jks", ".keystore", ".k
5555
SENSITIVE_PREFIXES = ("secret", "credentials", ".env", "id_rsa", "id_ed25519", "id_ecdsa")
5656

5757
KNOWLEDGE_CATEGORIES = [
58-
"entities", "concepts", "summaries", "synthesis", "decisions", "how-to",
58+
"people", "ventures", "topics", "synthesis", "decisions",
59+
"learning", "research",
5960
]
6061

61-
EXTRA_DIRECTORIES = ["learning", "learning/archive", "daily"]
62+
EXTRA_DIRECTORIES = ["learning/archive", "daily"]
6263

6364
CONFIG_DIR = Path.home() / ".config" / "cortex"
6465
CONFIG_FILE = CONFIG_DIR / "config"
@@ -464,7 +465,7 @@ def _setup_symlink(store_path: Path) -> bool:
464465
"# Memory Index\n\n"
465466
"## Quick Links\n"
466467
"- [Knowledge Base Index](Knowledge Base/index.md)\n"
467-
"- [All Entities](Knowledge Base/entities/index.md)\n"
468+
"- [All People](Knowledge Base/people/index.md)\n"
468469
"- [Recent Decisions](Knowledge Base/decisions/index.md)\n"
469470
)
470471
print("Created MEMORY.md routing table")

0 commit comments

Comments
 (0)