Skip to content

TLDR/Goal stores never evict; at 10,000 identities every new agent's tldr_update and goal_set fails #1277

Description

@Juliusolsson05

TldrStore.ts: MAX_RECORDS = 10_000 and throw new Error('TLDR storage is full.') for a new identity; no record is ever deleted. Current rate ~27 new identities/day (347 TLDR / 307 Goal records since ~2026-09-12), so ~1 year to the wall, after which every new agent's TLDR and Goal writes fail for good (a fail-all, C5-shaped). Fix: evict least-recently-updated records past the cap (their history files are already capped separately). Severity P2 (latent, certain).

Found by the Stage 3 C6 hunt; lines are origin/main 9c6e48f. Findings file: temp/quality-loop/hunt-c6.md.

🤖 Generated with Claude Code

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

    bugSomething isn't workingclass:C6-unboundedUnbounded growthprovider:claudeAffects Claude Code integrationprovider:codexAffects Codex integrationprovider:opencodeAffects OpenCode integrationprovider:piAffects Pi integrationsev:P2Real bug with a workaroundtype:bugSomething works wrong

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions