GeezerVison is showing github.com — Atlas cold tier: restore importer — #6042 follow-on 2 · Issue #8228 · developing-today/code
Atlas cold tier: restore importer — #6042 follow-on 2 #8228DescriptionFollow-on 2 of 5 from the #6042 cold-tier shard format design (doc/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format/, merged in PR #8225). Parent: #6026.
Implement the restore importer per §6 of the design doc: cold-catalog resolution, footer + section checksum verification (abort on any mismatch), span reconstruction from the manifest occurrence lists, content-hash verification before any hot write, provenance-additive re-import under the version's original (file_id, version_seq) identity, vector re-import as-is with model-mismatch flagging, and idempotent restore (already-hot same-hash = no-op success; differing hot copy = reported conflict, never overwritten).
Acceptance: restoring a version packed by the shard writer (follow-on 1) passes cold-roundtrip-verify (§7); a corrupted shard is reported and never partially imported.
Activitydeveloping-today commented on Nov 10, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task: 18609
lane: any-m
worker: repo-worker-code
Task 18609 (bulk-intake triage for issue #8228) — inline triage verdict, 2026-11-17:
- Issue Atlas cold tier: restore importer — #6042 follow-on 2 #8228 is OPEN, no hard-stop labels, never triaged before (only the filing note from task 13011 and a Kaneo link). Work kind: implementation (task/small-fix packet family), priority/normal, effort/l — the section 6 restore importer for the design(atlas): cold-tier shard format — self-describing rustfs shards and the restore path back to hot #6042 cold-tier design (landed, PR design(atlas): cold-tier shard format and restore path (#6042) #8225).
- Sequence, fresh-verified: this is follow-on 2 of 5. Its acceptance consumes follow-on 1's output — issue Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 (shard writer) is OPEN with no shard code on main yet — and the section 7 verify tool is follow-on 4 (issue Atlas cold tier: cold-roundtrip-verify tool — #6042 follow-on 4 #8230, OPEN). All five siblings (Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227-Atlas cold tier: shard compaction for partial retirement — #6042 follow-on 5 #8231) are OPEN; their triages are running concurrently today (tasks 18608, 18610, 18611, 18612), so the family is being routed in one pass.
- Routed: implementation packet enqueued as task 20102 (packet: hidden_files/18609-fix-packet-8228.json). The packet's first instruction is structural: if the Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 writer is not yet on main when claimed, dep-block task 20102 on issue Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 (section 5b) instead of inventing a format; if Atlas cold tier: cold-roundtrip-verify tool — #6042 follow-on 4 #8230's tool is not yet landed at verification time, verify per design section 7 directly and record the substitution here.
- Labels applied: task/small-fix, priority/normal, effort/l, queue/queued (for task 20102).
Outcome: task 18609 completes as triaged, with follow-on task 20102. dezren39 commented on Nov 17, 2026
Agent note — task 20102 dep-blocked on #8227 (lane any-n)
dezren39 commented on Nov 24, 2026 Progress — slice 2 of the restore importer (task 20102, lane agent-next-20-local)
PR: #14674
dezren39 commented on Nov 25, 2026 Agent note — task 20102, lane oc-code-06 (2026-11-25):
Slice 2 merged. PR #14674 (zstd span-section reads) was rebased onto latest main (no main-side atlas-core changes since its base), re-verified green (219 lib + integration), and merged as 5acf8c2.
Slice 3 opened: PR #14709 — §6 step 4 + resolution mechanics + idempotence decision, spec-first:
ColdShard::verify_content_hash: reconstruction vs the version's content_hash (SHA-256 hex, bare or sha256:-prefixed) before any hot write; mismatch aborts that version only and names it; returns verified bytes.
resolve_version: (file_id, version_seq) → holding shard; none → not-found, two → ambiguity error. Catalog-agnostic; the persistent catalog stays in Atlas cold tier: cold catalog + fan-out addressing — #6042 follow-on 3 #8229.
restore_decision: absent → Proceed, same-hash → NoopSuccess, differing → Conflict (never overwritten).
- 6 new tests; 22/22 cold tests green, full atlas-core suite green (225 lib + integration); fmt clean. Repo-wide clippy is env-broken (clippy-driver/rustc metadata skew, reproduces on untouched atlas-proto).
Remaining acceptance (still tracked here, not in this slice): hot write §6 steps 5–7 with the hot versioning store; writer-packed roundtrip once #8227 lands; cold-roundtrip-verify once #8230 lands. developing-today-fleet commented on Nov 25, 2026 Graph hygiene (#14863 slice 8): label corrections flagged for the holder (comment-only; issue is queue/claimed). status:in-review + status/needs-triage are carried together, and priority/high + priority/normal are carried together — one of each pair should win. Refs #14863 developing-today-fleet commented on Nov 26, 2026 Agent note — task 24033, lane XM (queue shepherd, 2026-11-26):
Slice 3 merged. PR #14709 merged as b95c65c (merge commit, 2026-11-26T15:37:20Z).
- Shepherd check: PR was OPEN/non-draft, MERGEABLE/CLEAN at first check, no labels, no reviews, no review findings (only a CodeRabbit rate-limit notice; its checks were skipping). Single file pkgs/atlas-search/crates/atlas-core/src/cold.rs, +255/-5.
- Not superseded: main's cold.rs blob before merge (7d3f9ffd) was exactly the PR's base blob and contained none of the new functions; after merge main's blob is 022729f9d, exactly the PR's new blob — change landed intact.
- Tests: author-verified at head 430e139 (22/22 cold tests, full atlas-core suite 225 green, fmt clean). Independent re-run via fleet Actions exec was attempted twice and blocked by a TLS UnknownIssuer error on workflow dispatch from the sandbox; fallback per execution routes is repo CI on main — 8 workflows queued for b95c65c at merge time (docs, fleet-smoke, atlas docs), no failures at report time.
- Disposition: this PR carries no closing keyword for Atlas cold tier: restore importer — #6042 follow-on 2 #8228 and the issue correctly remains OPEN. Remaining acceptance unchanged: hot write §6 steps 5-7 with the hot versioning store; writer-packed roundtrip via Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 + cold-roundtrip-verify via Atlas cold tier: cold-roundtrip-verify tool — #6042 follow-on 4 #8230; persistent catalog in Atlas cold tier: cold catalog + fan-out addressing — #6042 follow-on 3 #8229.
dezren39 commented on Nov 26, 2026 Agent note — task 20102, lane xaltha (2026-11-26):
Slice 3 merged; slice 4 opened. PR #14709 merged 2026-11-26T15:37:20Z (the park's ready condition), so this run took the next slice.
PR: #15660 — §6 steps 5–7, spec-first (no concrete hot versioning store exists on main yet, same pattern as slices 1–3):
ColdShard::restore_version: content-hash gate before any store call (mismatch = zero writes), idempotence decision vs the hot copy (same-hash no-op; differing = reported conflict, never overwritten), provenance-additive insert under the original (file_id, version_seq) with lineage re-attached, vectors as-is bit-identical with the model-mismatch flag, mark-hot only after a successful insert.
- Writes go through a new
HotVersionStore trait; tests use a call-recording in-memory store (oracle: design §6). 4 new tests.
Verification (remote only; fleet queue dispatch blocked by TLS #13185, fleet-command.yml fallback used): run 45861875549 — cold tests 26/26; run 45863214570 at head 24b5d41 — full atlas-core lib suite 276 passed / 0 failed. Package cargo fmt --check still reports one pre-existing diff in filters.rs:617 on main (untouched here); cold.rs is fmt-clean.
Remaining acceptance: writer-packed roundtrip once #8227 lands; cold-roundtrip-verify once #8230 lands. Task 20102 parks on PR #15660 merging.
dezren39 commented on Nov 26, 2026
Lane 10 (task 20102): slice 4 landed. PR #15660 merged as 77d7c89. Its head 24b5d41 had passed the full atlas-core lib suite (276/0, fleet run 45863214570), and main had no newer changes to cold.rs.
Still needed for full acceptance, as the PR noted: the writer-packed roundtrip once #8227 lands, and cold-roundtrip-verify once #8230 lands.
Generated by Claude Code developing-today-fleet commented on Nov 26, 2026 Agent note — task 20102, lane FF (queue lane, 2026-11-26)
Fresh verification this claim:
- Issue Atlas cold tier: restore importer — #6042 follow-on 2 #8228 OPEN, no held/user/do-not labels; no live competing claim in comments (last note is lane 10 slice-merged, comment 7200041123).
- Slice 3: PR feat(atlas-core): verify cold-shard content hash, resolve shards, restore decision #14709 MERGED 2026-11-26T15:37:20Z as b95c65c — the packet's stale blocker "PR feat(atlas-core): verify cold-shard content hash, resolve shards, restore decision #14709 remains open" is resolved.
- Slice 4: PR feat(atlas-core): restore a cold version into a hot store (§6 steps 5–7) #15660 MERGED 2026-11-26T18:05:21Z as 77d7c89; its head passed atlas-core lib 276/0 (fleet run 45863214570, per comment 7200041123).
- Remaining acceptance only: writer-packed roundtrip + cold-roundtrip-verify (§7).
- Action: no new implementation this run (spec-first slices 1-4 already cover §6 steps 2-7). Task 20102 dep-blocked on Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 with a non-person ready condition.
- Resume when: Atlas cold tier: shard writer (exporter) — #6042 follow-on 1 #8227 shard writer lands on main (issue closed / writer PR merged), then pack a version with that writer, restore it via the landed importer, and run §7 verification (via Atlas cold tier: cold-roundtrip-verify tool — #6042 follow-on 4 #8230 tool if landed, otherwise the §7 procedure directly, recording the substitution).
developing-today-fleet commented on Nov 27, 2026 Acceptance update — task 20102, lane oc-code-06 (2026-11-27):
Writer-packed roundtrip landed in PR #16164 (branch queue/20102-8228-cold-restore-roundtrip, atop origin/main@d2c33857 which contains the #8227 writer merge #12726).
- The importer (
cold.rs) now reads the landed writer's manifest spellings (occurrence object-or-array, lineage object-or-flat, retention class/corpus_class, all-empty lineage folds to none).
- New tests pack with the real
cold_shard::pack (codecs none + zstd) and verify the §7 procedure directly: byte-identical restores per version and per span, bit-identical vectors, identity/lineage/provenance/retention survival, same-hash no-op, differing-hash conflict without overwrite, corrupt-span abort with zero store writes.
- Verification:
cargo test -p atlas-core 317 lib tests pass; cargo fmt --check clean on cold.rs.
#8230 substitution (packet rule): the standalone cold-roundtrip-verify tool is still open, so §7 is verified directly via the procedure in the roundtrip test rather than via the tool. When #8230 lands, its tool should be run once against a writer-packed shard as a cross-check; no importer change is expected.
This PR carries Fixes #8228; merge closes the issue. developing-today-fleet commented on Nov 27, 2026
Done — task 20102, lane oc-code-02 (2026-11-27):
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|