GeezerVison is showing github.com — feat(atlas-core): verify cold-shard content hash, resolve shards, restore decision by dezren39 · Pull Request #14709 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Slice 3 of the #8228 restore importer (task 20102), spec-first against the #6042 design doc.
What this slice makes true (design §6):
ColdShard::verify_content_hash (§6 step 4): reconstruction is hashed and compared to the version's content_hash (SHA-256 hex, bare or sha256:-prefixed) before anything hot may be written. Mismatch aborts that version and names it; siblings unaffected. Returns the verified bytes so the hot write can only receive gated bytes.
resolve_version (§6 step 1 mechanics, catalog-agnostic): maps (file_id, version_seq) to the holding shard across candidates. Zero holders → not-found; two holders → ambiguity error (never silently picks). The persistent catalog and fan-out stay in Atlas cold tier: cold catalog + fan-out addressing — #6042 follow-on 3 #8229.
restore_decision (§6 idempotence): absent hot copy → Proceed; same-hash → NoopSuccess; differing → Conflict (never overwritten). The hot write itself (§6 steps 5–7) lands with the hot versioning store.
Tests: 6 new (hash accept incl. prefixed spelling, per-version abort, cross-shard resolve, double-claim, decision matrix); 22/22 cold tests green, full atlas-core suite green (225 lib + integration). cargo fmt clean on cold.rs; repo-wide clippy is env-broken (clippy-driver/rustc metadata skew, fails identically on untouched atlas-proto).
Remaining #8228 acceptance (tracked in the issue): hot write steps 5–7 with the hot versioning store; writer-packed roundtrip via #8227 + cold-roundtrip-verify via #8230.
{
"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-25T01:17:29Z",
"session_id": "ses_e5defce06f5ffe8mX0NeX32Xe1",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
},
"auth_subject": "oc-code-04",
"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.
…tore decision
Slice 3 of the #8228 restore importer (task 20102): ColdShard::verify_content_hash gates the hot write on the version content_hash (bare or sha256:-prefixed SHA-256 hex), resolve_version maps (file_id, version_seq) to its shard, and restore_decision encodes the idempotent no-op/conflict rule. 6 new tests; 22/22 cold tests green, full atlas-core suite green.
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 4 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:
1d1291c9-c073-4630-8a12-4dc566910939
Commits
-
Reviewing files that changed from the base of the PR and between e1c07e6 and 430e139.
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.
This was referenced Nov 25, 2026
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.
|