Skip to content

Entity hub hygiene config — prevent noisy hub regression #271

Closed

Description

@hurttlocker

Summary

Configurable entity hub hygiene settings so users can tune hub quality without editing source code.

Motivation

v2.0 of the Python script had 253 noisy concept hubs (session titles, sentence fragments, generic words). v2.1 cut to 30 via aggressive filtering. These rules should be configurable, not hardcoded.

Config Fields (cortex.yaml or --flag)

export:
  obsidian:
    hub_min_refs: 5              # Min references for non-concept hubs
    concept_min_refs: 10         # Higher bar for concepts
    concept_min_outbound: 2      # Concepts need ≥N outbound links to survive
    max_entity_name_len: 45      # Block entities with names > N chars
    stopwords: [...]             # Custom blocklist patterns (regex)
    allowlist: [Q, SB, Mister]   # Always create hubs for these
    hub_types:                   # Classification patterns
      person: '^(Q|SB|Mister)$'
      project: '^(Spear|Cortex)$'
      strategy: '^(ORB|Triple Crown)$'
      system: '^(Alpaca|Discord)$'

Acceptance Criteria

  • All thresholds configurable via config file
  • CLI flags override config values
  • Default values match v2.1 proven settings
  • cortex export obsidian --hub-stats shows entity distribution before writing
  • Blocklist supports regex patterns
  • Allowlist bypasses all thresholds (min 1 ref)

Part of epic #267 (x7 proposal)

Activity

  1. added
    enhancement
    on Feb 28, 2026
  2. hurttlocker commented on Feb 28, 2026

    @hurttlocker
    OwnerAuthor

    Shipped in v1.3.0-dev — merged to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions