Skip to content

pulse-memory: KDI rank and weekly prune proposals (dry run) - #76

Merged
p10ns11y merged 2 commits into
mainfrom
ksp-266-pulse-rank
Nov 9, 2026
Merged

p10ns11y merged 2 commits into
mainfrom
ksp-266-pulse-rank

Conversation

@p10ns11y

@p10ns11y p10ns11y commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Key Decision Indicators for pulse-memory: the four-phase loop, observe, rank, tighten, improve sparsely.

%%{init: {"theme":"base","themeVariables":{"primaryColor":"#e0f2fe","primaryBorderColor":"#0284c7","lineColor":"#7c3aed"}}}%%
flowchart LR
  O[observe: retrieve hit log]:::o --> R[rank: KDI score]:::r --> T[tighten: prune proposals]:::t --> I[improve sparsely: a person prunes]:::i
  I -.-> O
  classDef o fill:#e0f2fe,stroke:#0284c7,color:#0c4a6e
  classDef r fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
  classDef t fill:#fef3c7,stroke:#d97706,color:#78350f
  classDef i fill:#dcfce7,stroke:#16a34a,color:#14532d
Loading
KDI(k) = 3·hit + (seen_count − 1) + 4·locked + 2·supersedes + 1·tool-verified
tiers  = stale | repair | earned | young | unproven | idle
prune  = (stale ++ idle)[:8], nothing deleted
  • Retrieve logs each hit to archive_events (source pulse/retrieve), keys and mode only. PULSE_RETRIEVE_LOG=0 turns it off. Best effort, never blocks a read.
  • scripts/pulse_rank.py: JSON by default, --weekly markdown, dry run. --record appends the proposal to archive_events; it never deletes or edits a trace.
  • Idle is held as unproven until the hit log covers the whole window, so a young log cannot prune.
  • /pulse-rank command for Grok and Cursor. store.md spec.

Tests: 9 new (test_rank.py), run from test-thin.sh.

@p10ns11y
p10ns11y merged commit 87b3cb1 into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants