Skip to content

feat: add archive-backed retention - #4

Merged
salihdev0 merged 2 commits into
mainfrom
feat/archive-backed-retention
Sep 12, 2026
Merged

salihdev0 merged 2 commits into
mainfrom
feat/archive-backed-retention

Conversation

@salihdev0

Copy link
Copy Markdown
Member

Summary

  • add explicit, bounded retention policies outside the Trail hot path
  • require verified gzip-NDJSON archives before deleting events or payloads
  • support PostgreSQL and ClickHouse retention/catalog/restore operations
  • add bounded idempotent restore through CLI and optional Explorer API routes
  • document safe operation, dry runs, precedence, and payload GC

Safety

There is no delete-without-archive mode. Archive write, checksum verification, or catalog commit failure leaves live events untouched. Payload candidates without archive identity are never deleted.

Verification

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • PostgreSQL archive → delete → restore smoke test
  • ClickHouse archive → delete → restore smoke test

@salihdev0
salihdev0 merged commit e06c6d8 into main Sep 12, 2026
8 checks passed
@salihdev0
salihdev0 deleted the feat/archive-backed-retention branch September 12, 2026 18:34
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