GeezerVison is showing github.com — feat(atlas-core): restore a cold version into a hot store (§6 steps 5–7) by dezren39 · Pull Request #15660 · developing-today/code
Conversation
dezren39
commented
Nov 26, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Slice 4 of the #8228 restore importer (task 20102), spec-first per the 2026-11-24 decision on #8228. Slices 1–3 are merged (#14511 verify+reconstruct, #14674 zstd, #14709 content-hash + resolve + decision).
What this slice makes true — ColdShard::restore_version in atlas-core::cold, orchestrating design §6 steps 4–7 in order:
- Step 4 gate first:
verify_content_hash runs before any store call; a mismatch aborts that version with zero store writes (tested).
- Idempotence decision against the hot copy: same-hash →
NoopSuccess (nothing written, nothing marked); differing → Conflict reported, hot copy never overwritten (tested, hot copy asserted untouched).
- Step 5: on
Proceed, inserts a RestoredVersion under the original (file_id, version_seq) identity — verified bytes, content hash, lineage summary re-attached — plus additive RestoreProvenance (source shard_id, export run id from the manifest, restore run id, restore time); original ingestion provenance is never overwritten.
- Step 6: vectors re-import as-is, bit-identical, one per distinct chunk used by the version;
vector_model_mismatch flags a model difference for the hot tier's re-embedding policy instead of silently mixing models (tested).
- Step 7:
mark_hot only after a successful insert; the cold shard is not deleted.
The write goes through a new HotVersionStore trait (hot_content_hash / insert_restored / mark_hot): no concrete hot versioning store exists on main yet, so — same pattern as slices 1–3 — the orchestration and its guarantees land here and a concrete store plugs in behind the trait when it lands. Tests use an in-memory store recording every call (oracle: design §6). Also adds PartialEq/Eq derives to LineageSummary/VersionRef.
Verification (remote dispatch only; fleet queue dispatch itself is blocked by TLS #13185, so the fleet-command.yml workflow fallback was used):
Still outstanding for full #8228 acceptance: writer-packed roundtrip once #8227 lands, and cold-roundtrip-verify once #8230 lands. Refs #8228.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T17:04:16Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch/workspace/github-work/code-20102-slice4",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch/workspace/github-work/code-20102-slice4",
"repo": "developing-today/code",
"branch": "queue/20102-8228-slice4-hotwrite",
"sha": "24b5d41945d656d45bc5783ab94339c9f9a781e1"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ColdShard::restore_version orchestrates the rest of design S6: verify_content_hash gate before any store call, restore_decision against the hot copy, provenance-additive insert under the original (file_id, version_seq) via the new HotVersionStore trait, vectors re-imported as-is with the model-mismatch flag, mark-hot after a successful insert. Same-hash is a no-op success; a differing hot copy is a reported conflict, never overwritten. 4 new tests with an in-memory store. Refs #8228 (slice 4; writer roundtrip still needs #8227/#8230).
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 49 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:
658d2405-02a1-448d-b5fe-ea6a1db7aec9
Commits
-
Reviewing files that changed from the base of the PR and between b8053cf and 24b5d41.
Files selected for processing: 1
-
pkgs/atlas-search/crates/atlas-core/src/cold.rs
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|