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): restore a cold version into a hot store (§6 steps 5–7) by dezren39 · Pull Request #15660 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 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 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):

  • Run https://github.com/developing-today/fleet/actions/runs/45861875549 at ddca150: cold tests 26 passed / 0 failed; fmt flagged two spots in the new tests (fixed in 24b5d41).
  • Run https://github.com/developing-today/fleet/actions/runs/45863214570 at 24b5d41: full atlas-core lib suite 276 passed / 0 failed. cargo fmt --check for the package still reports one diff in filters.rs:617 — pre-existing on main, untouched by this branch; cold.rs is fmt-clean.

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.

All reactions
dezren39 added 2 commits November 26, 2026 16:46
@dezren39
feat(atlas-core): restore a cold version into a hot store (S6 steps 5-7)
ddca150
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).
@dezren39
style(atlas-core): rustfmt the slice-4 restore tests
24b5d41
@coderabbitai

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39 dezren39 mentioned this pull request Nov 26, 2026
Atlas cold tier: restore importer — #6042 follow-on 2 #8228
Closed
@dezren39
dezren39 merged commit 77d7c89 into main Nov 26, 2026
2 checks passed

Uh oh!

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

@dezren39
dezren39 deleted the queue/20102-8228-slice4-hotwrite branch November 26, 2026 18:05
@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.