session-memory Phase 1: Detect pipeline (T04-T07)
- detect/signals.py: pure extractors over digests (retry storm, repeated errors, budget overrun vs corpus p90, abandoned, clean pass, recovery) - detect/cluster.py: deterministic clustering into candidate Patterns with evidence (sessions/repos/flavors/cost impact) + cross-flavor flagging - detect/__main__.py: python -m session_memory.detect, ranked report (cross-flavor first) + --json; persists candidates to Tier 2 patterns table - core/store.py: list_digests + save_patterns - tests for signals, cluster, detect entrypoint Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
06767ef924
commit
436a96dcd8
9 changed files with 436 additions and 4 deletions
1
session_memory/detect/__init__.py
Normal file
1
session_memory/detect/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
"""Detect: extract signals from sessions, cluster into candidate patterns."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue