Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions skills/cortex/cortex
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setup dirs vs deployed schema

Medium Severity

Fresh cortex setup now creates people/, ventures/, and related directories from KNOWLEDGE_CATEGORIES, but _deploy_schema still copies schema-template.md, which instructs agents to use entities/, concepts/, summaries/, and how-to/. New stores get mismatched folders and operating rules.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5887505. Configure here.

]
Comment on lines 57 to 60

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Synchronize category list with deployed schema template

Updating KNOWLEDGE_CATEGORIES to people/ventures/topics/... without updating the schema that cortex setup deploys introduces a behavioral mismatch: _deploy_schema() still copies skills/cortex/schema-template.md, which instructs agents to use entities/concepts/summaries/how-to. On fresh setups this can send new pages into directories the CLI no longer scans in status/rebuild-index, causing missing counts and stale indexes again. Please update the deployed schema template (store layout + page type table) in the same change.

Useful? React with 👍 / 👎.


EXTRA_DIRECTORIES = ["learning", "learning/archive", "daily"]
EXTRA_DIRECTORIES = ["learning/archive", "daily"]

CONFIG_DIR = Path.home() / ".config" / "cortex"
CONFIG_FILE = CONFIG_DIR / "config"
Expand Down Expand Up @@ -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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learning ops files counted

Low Severity

Adding learning to KNOWLEDGE_CATEGORIES makes cortex status count every .md in learning/ except index.md. Setup always creates learning/corrections.md and learning/patterns.md, so those operational logs inflate “Knowledge Pages” and the reported total even though they are not compiled knowledge pages.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5887505. Configure here.

"- [Recent Decisions](Knowledge Base/decisions/index.md)\n"
)
print("Created MEMORY.md routing table")
Expand Down
Loading