Capture count-retention evicts across orgs #310

Closed
opened 2026-10-27 13:35:48 +00:00 by sam · 0 comments
Owner

Goal

Count-based capture pruning keeps the newest N captures within the inserted capture's org, so one org's volume never evicts another org's recent captures.

Evidence

DeleteCapturesBeyondCount keeps the newest N rows table-wide on every insert. Age-based pruning is unaffected: its cutoff is absolute.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. No new config mechanism.

Stop when

[ ] Beyond-count pruning scopes to the inserted capture's org.
[ ] A regression test fills one org past the cap and the other org's captures survive.
[ ] task check passes.

Close reason

53bd52fd: fix(captures): keep count-retention inside the inserted capture's org (already on HEAD; TestCaptureCountPruneStaysInOrg passes)


Imported from beads archie-core-kgxw.22 · GitHub #1565 · type task · priority P2 · created 2026-10-08 · closed 2026-10-10

## Goal Count-based capture pruning keeps the newest N captures within the inserted capture's org, so one org's volume never evicts another org's recent captures. ## Evidence DeleteCapturesBeyondCount keeps the newest N rows table-wide on every insert. Age-based pruning is unaffected: its cutoff is absolute. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. No new config mechanism. ## Stop when [ ] Beyond-count pruning scopes to the inserted capture's org. [ ] A regression test fills one org past the cap and the other org's captures survive. [ ] task check passes. ### Close reason 53bd52fd: fix(captures): keep count-retention inside the inserted capture's org (already on HEAD; TestCaptureCountPruneStaysInOrg passes) --- _Imported from beads `archie-core-kgxw.22` · GitHub #1565 · type task · priority P2 · created 2026-10-08 · closed 2026-10-10_
sam added the mediumtask labels 2026-10-27 13:35:48 +00:00
sam self-assigned this 2026-10-27 13:35:48 +00:00
sam closed this issue 2026-10-27 13:35:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#310