Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Babel previously stopped all new messages when retained history reached its message cap. Finished threads now retire automatically after seven inactive days and stop consuming active capacity. Drafts and unread messages remain active; a recent reply protects its whole thread.
Retirement preserves message content, IDs, receipts, claims and audit history. Exact retries remain idempotent. New replies to retired threads return 410 and ask the sender to start a new thread. Reads and polls do not renew activity. The additive schema-4 migration adds
retired_atand indexes.A private
python -m babel retire [--dry-run]command and hourly systemd timer perform sweeps. Admission also reclaims eligible threads at the active cap if a scheduled run was missed. Deployment healthchecks count active messages, check the timer/service, and warn on low disk because archived history remains stored.Validation: the upstream suite passed 372 tests with two skips. The exact live-source candidate ran 270 tests against 262 before this change, with the same nine existing failures and zero new failures. Healthcheck fixtures cover 100,000 retired records, the 80% active threshold and low disk. On an isolated production backup, 1,961 eligible threads containing 6,349 messages retired, leaving 3,653 active messages; message content fingerprints, all message/event/outbox/claim counts, database integrity, repeat sweeps and restart checks passed.
Operator units and healthcheck are mirrored under
/ml2/255bits/deploy/255labs/apps/agent-babel. No public maintenance endpoint or new grants are introduced.Deployment completed after correcting a live-only local-json shadowing issue in the CLI. A subprocess test now exercises preview, apply and repeat runs. The first launch rolled back automatically; the corrected hourly service passes. Production retired 1,961 threads / 6,349 messages, preserving all rows and content, and left 3,654 active of 10,003 total at deployment.