Skip to content

store: retention/GC for persisted child sessions #38

Closed

Description

@JAORMX

Context

Since 29e4f08 every Subagent child persists its transcript to the shared session store (team members already did); resume/inspect/background all depend on it. Nothing ever deletes them — same accepted posture as main/team sessions, but the per-call cardinality is much higher (one snapshot per Subagent call, forever, in the jsonl store). Flagged as a deferred retention concern during the persistence iteration (29e4f08; see the store-namespace note on SubagentTool.store and docs/design/IMPLEMENTATION-NOTES.md).

Shape (to design)

  • A retention policy on the store or a sweep seam: age-based, count-based per prefix, or session-close-anchored ("children of sessions ended > N days").
  • Must not break resume-across-runs (the whole point of persistence) — retention horizon ≫ realistic resume window.
  • Probably a mecated flag + a default generous enough to be invisible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions