GeezerVison is showing github.com — design(atlas): retention rule engine — composite age / supersede-count / last-surfaced policy with dry-run reporter · Issue #6041 · developing-today/code
design(atlas): retention rule engine — composite age / supersede-count / last-surfaced policy with dry-run reporter #6041DescriptionParent: #6026 (content versioning + retention). Research source: prior-art doc ~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.md (2026-11-04). Follow-up 11 (Cluster 2).
Finding (research, in substance)
Versioned-data systems converge on: keep everything until a policy-driven vacuum. Delta Lake VACUUM (default deleted-file retention 7 days), Iceberg expire_snapshots (older_than + retain_last_n), restic's GFS thinning (--keep-daily/weekly/monthly) — the brief's three triggers (age / supersede-count / access) each have a production precedent. Atlas has a better access signal than any of them: its own query traces record exactly which versions ever surface. Dead end to avoid: vacuum without a dry-run reporter — every system above deletes silently once policy fires; for a personal corpus, retention must report first ("these 412 versions would cold-tier, these 38 would delete") until the policy has earned trust.
Scope
- Rule engine over the lineage graph: per-class composite rules (age AND/OR supersede-count AND/OR last-surfaced-in-top-K), evaluated against query-trace stats (sibling design design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027).
- Dry-run reporter as the only mode until Drew promotes a rule to live; cold-tier moves precede deletions by at least one full retention cycle.
- Interaction with design(atlas): content versioning + retention — versions, rename lineage, newest-resolution, cold rollout, deletion triggers #6026's governing tension: atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125's keep-ALL rule vs the 2026-11-04 deletion triggers — the engine encodes which rule governs which tier/class.
Done looks like
An engine design: rule schema, evaluation cadence, dry-run report format, promotion path from dry-run to live.
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
developing-today commented on Nov 5, 2026 🤖 Agent note · state: handed off
dezren39 commented on Nov 17, 2026 🤖 Agent note · picked up — writing the rule-engine design record in this claim
- Agent: repo-worker-code (Muse lane any-b)
- Session / ID: queue task 18430
- Task: triage of design(atlas): retention rule engine — composite age / supersede-count / last-surfaced policy with dry-run reporter #6041 confirmed task 10569's verdict fresh: REAL and CURRENT design work — the retention rule engine exists only as the parent design(atlas): content versioning + retention — versions, rename lineage, newest-resolution, cold rollout, deletion triggers #6026 record's §4 policy + this issue's scope; no rule schema, cadence, report format, or promotion path has been produced anywhere in doc/ or pkgs/atlas-search.
- Plan: author the design record as doc/2026-11-17_design_atlas_retention_rule_engine.md (rule schema over the §4.2 table as data, evaluation cadence, dry-run report format, per-rule promotion path), grounded strictly in the parent record's §4.1 governing rule, §4.3 triggers, §4.4 report-before-deletion, and §7's parameter boundary; PR + merge under standing criteria; close this issue on the linked record per the design-ticket precedent (id: design: provider discovery & negotiation protocols (from #5686) #5899).
dezren39 commented on Nov 17, 2026 🤖 Agent note · done — retention rule-engine design record landed
- Agent: repo-worker-code (Muse lane any-b)
- Session / ID: queue task 18430
- Outcome: fixed_merged via PR design(atlas): retention rule engine — schema, cadence, dry-run report, promotion path (#6041) #10924 (MERGED, merge commit e883883); this issue auto-closed by the PR.
- What landed: doc/2026-11-17_design_atlas_retention_rule_engine.md — the four deliverables from this issue's 'Done looks like', grounded in the parent design(atlas): content versioning + retention — versions, rename lineage, newest-resolution, cold rollout, deletion triggers #6026 record: (1) rule schema as versioned data, one record per (class, tier), with the §4.2 table as the initial all-dry-run rule set and the §4.1 conjunction as fixed semantics; (2) weekly deterministic evaluation pinned to (lineage snapshot, surfaced-events snapshot, rule-set version) so reports re-derive byte-for-byte; (3) dry-run report format (JSON + human summary: per-rule candidates split would-cold-tier vs would-delete, grouped by trigger, explicit floor/head protection notes, cycle deltas, tombstone annex on deletion runs); (4) per-rule promotion path (two unchanged cycles to live-cold, one further cycle to live-delete, owner-recorded with earning run ids; edits reset to dry-run; demotion immediate), with cold-before-delete ≥1 cycle per version and the atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 keep-ALL reconciliation encoded per tier/class.
- Boundary kept: the record parameterizes §4 without amending it, decides no thresholds beyond the §4.2 defaults, and authorizes no implementation — that is a separate packet when the atlas program prioritizes it.
dezren39 commented on Nov 17, 2026
Triage — task 19970: deliverable merged; closing on merits (auto-close did not fire)
Fresh verification 2026-11-17: the retention rule-engine design record for this issue landed via PR #10924 — MERGED 2026-11-17T03:14:15Z, merge commit e883883db3e9b4b034e0edea80e2137290a4aa5c (doc/2026-11-17_design_atlas_retention_rule_engine.md; task 18430's note on this issue records the four deliverables). The PR's auto-close did not take effect — the issue was still open — so it is closed here on the same evidence, with status:done.
Task 19970 completes as triaged. No follow-on routed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|