Skip to content

design(atlas): cold-tier shard format and restore path (#6042) - #8225

Merged
dezren39 merged 1 commit into
mainfrom
queue/13011-6042-cold-tier-shard-format
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/13011-6042-cold-tier-shard-format

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

What

The design doc for #6042 (task 13011): the cold-tier shard format and restore path, at doc/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format/.

It fixes what the #6026 versioning/retention design (§6) explicitly left to #6042:

  • Container layout — one immutable rustfs object: header, JSON manifest, span section (optionally zstd), uncompressed f32 vector section, checksum footer (SHA-256 per section + manifest). Byte-level layout specified; no libSQL-only assumptions.
  • Manifest schema — corpus/tier, source marks, per-version entries with lineage summaries (the design(atlas): content versioning + retention — versions, rename lineage, newest-resolution, cold rollout, deletion triggers #6026 §2.2 edge vocabulary) and occurrence lists, span table, vector model + dimensions (768 for the current corpus model), creation time, retention state at pack time, provenance.
  • Packing rules — one corpus + one class per shard, ~512 MiB target / 2 GiB ceiling, lineage grouping, whole versions only, idempotent re-pack.
  • Fan-out contract — cold shards are outside the default fan-out set; reached only by explicit version addressing (pin / as_of) or shard-addressed search, via a hot-side cold catalog.
  • Restore / re-import procedure — checksum-verified, provenance-additive, idempotent re-import under the version's original (file_id, version_seq) identity; model-mismatch flagging instead of silent mixing.
  • Acceptance shape — the named check cold-roundtrip-verify: hot → cold → hot with byte-identical spans and bit-identical vectors.
  • Boundaries — cold-before-delete and one-full-cycle-in-cold invariants against the design(atlas): retention rule engine — composite age / supersede-count / last-surfaced policy with dry-run reporter #6041 retention engine (whose policy this doc does not duplicate); the decision(atlas): layer separation — Turso PITR is DB disaster recovery, corpus retention lives in Atlas #6043 PITR layer boundary taken as given (PITR is database disaster recovery, not corpus retention). Cold-eligibility starting defaults per class in §9.

Implementation is split into follow-on issues in §10 of the doc (writer, restore importer, cold catalog + fan-out addressing, round-trip verifier, shard compaction); this PR lands the design only.

Verification

Readback checks from the task packet: the doc names every manifest field in #6042's scope (grep-verified); it states PITR is not a corpus-retention mechanism and defers the retention engine to #6041 (grep-verified); consistency read against the #6026 design and the #6043 decision record.

Refs #6042


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 20:11
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T20:11:22.561086Z
We couldn’t complete this review. Comment @codex review to try again.
609de8f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 85a6747a-3341-4840-becc-ddba0ac22bbf
Commits

Reviewing files that changed from the base of the PR and between 4f487ab and 609de8f.

Files selected for processing: 1

  • doc/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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