Skip to content

Fix shell capture retention and capacity exhaustion - #5325

Merged
Trecek merged 21 commits into
developfrom
impl-capture-retention-20261025-160042
Oct 26, 2026
Merged

Trecek merged 21 commits into
developfrom
impl-capture-retention-20261025-160042

Conversation

@Trecek

@Trecek Trecek commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Delivered inline shell captures were retained for an hour, filling the shared lifecycle byte budget and eventually preventing commands from starting. Retention now follows readability, and setup-stage capacity refusals allow bounded command execution.

  • Reclaim delivered captures without an outstanding reference immediately and prioritize the producer's capture within existing sweep budgets. Published references and active reader leases remain protected.
  • Count opaque frames, permit same-state bookkeeping above the soft byte limit, and validate byte and record limits against one measured envelope including tombstones and pre-assist debt.
  • Show projected compacted capacity in doctor and capture-store, warn at 80%, and include admission measurements in refusal details.
  • Reuse the owned process and drain path for bounded uncaptured execution on capacity setup refusals. Preserve the child exit status, emit one degraded marker, and retain head/tail output without a full-output artifact. Other setup failures remain fail closed.

Existing records retain their stored due times, and unsettled deliveries keep their forensic hold.

Validation:

  • Configured test-local-gate: 34,315 passed, 494 skipped, 12 xfailed.
  • pre-commit run --all-files passed.
  • Temporary reversion checks detected the original regressions; all 42 focused cases passed after restoration. All experimental source and Taskfile changes were restored before the final full gate.

Closes #5282.

Trecek added 21 commits October 25, 2026 16:23
@Trecek
Trecek added this pull request to the merge queue Oct 26, 2026
Merged via the queue into develop with commit 20ad2e3 Oct 26, 2026
11 checks passed
@Trecek
Trecek deleted the impl-capture-retention-20261025-160042 branch October 26, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant