Repository navigation
Keep legal-process tickets seven years - #2304
Merged
Merged
Conversation
Reserve legal-process in RESTRICTED_TAGS and seed its row (migration 0149) as a restricted pool with no assignee. Tested: ticket-assignment, mail-admin-routes.
Per-queue retention floor declared in QUEUE_RETENTION_DAYS (legal-process 2557 days), applied in the purge scan and the per-ticket claim. Tested: ticket-retention (46 pass), mail and ticket suites (762 pass).
Comment only.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2304Version: 🤖 Updated on each push. |
…retention # Conflicts: # .context/decisions/README.md
This branch was previously deployed
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.
Support tickets in the restricted
legal-processqueue (the record of official requests for compute records) are kept seven years instead of being purged two years after last activity.legal-processadded toRESTRICTED_TAGS, so it is owner-only whatever its row says and mail tolegal-process@never falls to*INSERT OR IGNOREkeeps an existing rowQUEUE_RETENTION_DAYSinservices/ticket-retention.tsdeclares per-queue retention once (legal-process: 2557 days), as a floor onMAIL_RETENTION_DAYS; applied in the purge scan and in the per-ticket claimqueue_tag, which nothing changes after creation; a test fails if a queue move is ever addedDeclared in code rather than as a
mail_queuescolumn because a row can be edited or deleted, and that must not shorten a legal record (same reasoning asRESTRICTED_TAGS).Not changed: raw messages in R2 still expire at two years by the bucket lifecycle rule (the raw key has no queue in it); between two and seven years the D1 copy is the record.
Tested: typecheck; biome on changed files (no new findings);
bun teston the 34 mail and ticket files, 762 pass (ticket-retention 46 pass, 10 new); adr-index 10 pass. Full suite not run.Runbook: nemarOrg/docs#105.