generated from coulomb/repo-seed
session-memory Phase 0: ingest cursor + sweep entrypoint + config (T06)
- session_memory/core/cursor.py: size/mtime change detection sidecar - session_memory/config.toml: store paths, retention caps, per-source globs (claude on, codex/grok off for Phase 1), repo->domain map - session_memory/ingest.py: discover->normalize->store->digest->evict; --dry-run creates/writes nothing; python -m session_memory.ingest - tests/test_ingest.py; live dry-run parsed 84/85 real local sessions Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
39
session_memory/config.toml
Normal file
39
session_memory/config.toml
Normal file
@@ -0,0 +1,39 @@
|
||||
# Coding Session Memory — configuration (design §5.1, §8).
|
||||
# Paths support ~ expansion. Edit caps to taste; see docs/DESIGN-session-memory.md.
|
||||
|
||||
[store]
|
||||
# Local store lives under the repo by default (gitignored).
|
||||
db_path = "session_memory/.store/mem.db"
|
||||
blob_dir = "session_memory/.store/blobs"
|
||||
cursor = "session_memory/.store/cursors.json"
|
||||
|
||||
[retention]
|
||||
raw_soft_cap_bytes = 4294967296 # 4 GiB — begin evicting analyzed sessions above this
|
||||
raw_hard_cap_bytes = 6442450944 # 6 GiB — absolute Tier 1 ceiling
|
||||
raw_max_age_days = 45 # backstop: analyzed raw older than this is evictable
|
||||
distilled_cap_bytes = 1073741824 # 1 GiB — Tier 2 ceiling (alert, never auto-drop)
|
||||
cadence = "daily" # sweep trigger: daily | weekly | on-hook
|
||||
|
||||
[sources.claude]
|
||||
enabled = true
|
||||
root = "~/.claude/projects"
|
||||
# glob, relative to root; covers sessions and agent-* sidechains
|
||||
glob = "*/*.jsonl"
|
||||
|
||||
# Codex / Grok adapters land in Phase 1 (schemas confirmed in the design doc).
|
||||
[sources.codex]
|
||||
enabled = false
|
||||
root = "~/.codex/sessions"
|
||||
glob = "*/*/*/rollout-*.jsonl"
|
||||
|
||||
[sources.grok]
|
||||
enabled = false
|
||||
root = "~/.grok/sessions"
|
||||
glob = "*/*/chat_history.jsonl"
|
||||
|
||||
# cwd basename -> domain slug. Used to tag sessions with their Custodian domain.
|
||||
[repo_domain_map]
|
||||
agentic-resources = "helix_forge"
|
||||
the-custodian = "custodian"
|
||||
state-hub = "custodian"
|
||||
ops-bridge = "custodian"
|
||||
Reference in New Issue
Block a user