Spans dir: rotation / TTL so ~/.local/share/repo-recall/spans/ doesn't grow without bound #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-09T02:09:56Z - https://github.com/coilysiren/repo-recall/issues/68
Cleanup debt from the LUCA tracer (luca#27).
Problem
The spans ingest dir (
~/.local/share/repo-recall/spans/orREPO_RECALL_SPANS_DIR) is append-only today. Every subagent run drops one file. There is no rotation, no TTL, no GC.repo-recall's cache wipes on every restart and re-ingests on every refresh, which means the cost of accumulated spans hits both directory walks and the wipe-rebuild cycle. With the SubagentStop hook live globally (coilysiren/coilyco-ai's promote-to-global issue), file count grows roughly N-subagents per session, which gets out of hand fast.
Candidate fixes
repo-recall spans gcverb (HTTP or CLI) that operators or cron can invoke.Default recommendation: TTL during refresh, with a config var
REPO_RECALL_SPANS_TTL_DAYSdefaulting to 30.Done when
~/.local/share/repo-recall/spans/does not grow indefinitely.