Skip to content

feat: migrate history one segment at a time - #1668

Merged
duck8823 merged 4 commits into
mainfrom
feature/1651-segment-migration-recovery
Aug 5, 2026
Merged

feat: migrate history one segment at a time#1668
duck8823 merged 4 commits into
mainfrom
feature/1651-segment-migration-recovery

Conversation

@duck8823

@duck8823 duck8823 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • add migration 48 and a durable segment-scoped migration journal/state machine
  • copy reserved history through bounded durable candidate pages and sealed immutable segment verification
  • publish with pinned descriptor-relative no-replace operations and proof-specific Catalog transitions through verified shadow
  • preserve Hot authority and source rows, with idempotent crash recovery and rollback from every durable phase
  • bind aggregate-only evidence to source, config, commit, manifest, file, and Catalog heads
  • serialize candidate SQLite images through openat/O_NOFOLLOW + fsync + atomic rename, avoiding writable pathname TOCTOU

Validation

  • go test ./... -count=1
  • go vet ./...
  • go tool golangci-lint run
  • targeted go test -race
  • independent GPT-5.6 Sol structure review: APPROVE

Closes #1651

duck8823 and others added 4 commits August 5, 2026 22:22
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@github-actions github-actions Bot added the feature New feature label Aug 5, 2026
@duck8823
duck8823 marked this pull request as ready for review August 5, 2026 20:02
@duck8823
duck8823 merged commit df7bf92 into main Aug 5, 2026
6 checks passed
@duck8823
duck8823 deleted the feature/1651-segment-migration-recovery branch August 5, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.34.0-26: migrate and recover history one segment at a time

1 participant