GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 25, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@dezren39
feat(atlas-core): verify cold-shard content hash, resolve shards, res…
430e139
…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.
@coderabbitai

coderabbitai Bot commented Nov 25, 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 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 25, 2026
Atlas cold tier: restore importer — #6042 follow-on 2 #8228
Closed
fleet: ready PRs are left unmerged (20 open; the merge sweep has filed nothing since 2026-11-17) #12280
Open
Atlas program — full investigation, next-steps design & build-out (program tracking) #13241
Open
@developing-today-fleet
developing-today-fleet Bot merged commit b95c65c into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the queue/20102-8228-slice3-catalog branch November 26, 2026 15:37
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
feat(atlas-core): restore a cold version into a hot store (§6 steps 5–7) #15660
Merged
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
Atlas cold tier: cold catalog + fan-out addressing — #6042 follow-on 3 #8229
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.