Skip to content

refactor: remove strict segment migration machinery - #1670

Merged
duck8823 merged 1 commit into
mainfrom
maintenance/1669-remove-strict-segment-migration
Aug 5, 2026
Merged

refactor: remove strict segment migration machinery#1670
duck8823 merged 1 commit into
mainfrom
maintenance/1669-remove-strict-segment-migration

Conversation

@duck8823

@duck8823 duck8823 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove the strict resumable segment-migration protocol and the earlier ledger, sequence inventory, durable planner, reconciliation, and probabilistic summary machinery
  • retain and simplify the immutable compressed segment format
  • replace migrations 44-48 with one unreleased migration 44 containing a single lightweight archive_segments registry
  • verify and fsync an installed sealed segment before idempotent Catalog registration
  • reject abandoned development migration-44 identity during ordinary initialization
  • document the smaller at-least-once v0.34.0 design

Size reduction

  • 12,557 lines removed; 704 lines added
  • 75 changed files
  • no offline Hot candidate, database-wide atomic exchange, durable migration-run journal, placement ledger/epochs, exact crash resume, post-eviction rollback, archive-sequence inventory, durable target plan, Bloom summary, or reconciliation generation

Retained boundary

Validation

  • go build ./...
  • GOCACHE=/private/tmp/traceary-go-cache-1669-final2 go test ./...
  • GOCACHE=/private/tmp/traceary-go-cache-1669-final2 GOLANGCI_LINT_CACHE=/private/tmp/traceary-lint-cache-1669-final2 go tool golangci-lint run (0 issues)
  • git diff --check

Review evidence

  • Design and implementation: Claude Fable 5 (claude-fable-5, effort max)
  • Independent Structure-Behavior review: APPROVE
  • Initial MUST findings fixed: migration identity drift and unverified raw Catalog registration

Compatibility

  • v0.34.0 has not been released; development databases that applied the abandoned migrations 44-48 must be recreated
  • existing immutable segment and unrelated Hot behavior remain covered by the full repository suite

Closes #1669

@github-actions github-actions Bot added the maintenance Refactoring, dependency updates, CI/CD label Aug 5, 2026
Co-authored-by: Codex <noreply@openai.com>
@duck8823
duck8823 force-pushed the maintenance/1669-remove-strict-segment-migration branch from 5c6bcb3 to aa20e16 Compare August 5, 2026 22:28
@duck8823
duck8823 marked this pull request as ready for review August 5, 2026 22:58
@duck8823
duck8823 merged commit 6837880 into main Aug 5, 2026
6 checks passed
@duck8823
duck8823 deleted the maintenance/1669-remove-strict-segment-migration branch August 5, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Refactoring, dependency updates, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.34.0-30: remove strict segment migration machinery

1 participant