feat(cli): add bounded telemetry retention - #294
Open
robbiemu wants to merge 3 commits into
Open
Conversation
robbiemu
marked this pull request as ready for review
August 1, 2026 17:21
Contributor
|
Your Pullfrog Router balance is exhausted. You have a payment method on file but auto-reload is disabled, so runs paused once your balance went past the overdraft buffer. Top up balance → · Enable auto-reload →
|
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.

Summary
Add a bounded, crash-safe lifecycle for local telemetry archives without changing Maple's default retention policy:
maple archive retire-live <range-date> --applyretires one sealed UTC day only after all six active archive generations match the live data by count and fixed-memory content digest.maple archive expire <range-date> --applyremoves only a complete day already recorded in the durable retired-day authority.<data-dir>.retired-days.jsonsurvives reset and checkpoint restore; startup repairs resurrected retired rows before binding./local/querywrites are rejected before execution, preventing materialized-view side effects. Checkpoint backup uses a typed authenticated endpoint.maple start --minimum-raw-telemetry-retention-days Nis an optional deployment policy. Omission preserves upstream defaults; configured values are capped at 3650 days, monotonic, validated against the live database before persistence, and never shorten a higher table TTL.Safety and recovery
groupArray.Validation
git diff --checkpassed.logs_aggregates_hourly/service_usagepollution, mixed OTLP partial acceptance, re-archive refusal, and restore replay.local-archive-nativeCI matrix and shellcheck list.Based directly on upstream
mainat6578edf1.