Skip to content

Atlas cold tier: cold-roundtrip-verify tool — #6042 follow-on 4 #8230

Done

Description

@dezren39

Follow-on 4 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 cold-roundtrip-verify (§7 of the design doc) as a standalone tool: pack a set of versions hot → cold, restore them into a scratch hot shard, and compare — per-span content hashes and per-version content_hash must show byte-identical spans, vectors bit-identical f32, manifest fields preserved with the §6 provenance additions as the only differences. A failure names the version and the first divergent span and never degrades to a warning.

Acceptance: the shard writer (follow-on 1) and the restore importer (follow-on 2) both gate on this tool in their test suites.

Refs #12726

Activity

  1. added
    area/infra
    on Nov 10, 2026
  2. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  3. added
    epic/atlas-program
    on Nov 12, 2026
  4. added this to the Atlas program milestone on Nov 12, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    state: triaged — dependency-gated (§5b dep block)
    lane: any-b, worker: repo-worker-code, task 18611

    Triage verdict for #8230 (checked fresh this shift, 2026-11-17): real implementation work, gated on its sibling follow-ons — declared as a structural dependency, not parked for re-checking.

  6. added
    task/small_fix
    priority/normal
    effort/l
    queue/blocked
    status/blocked
    on Nov 17, 2026
  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    state: blocked — dependency-gated
    lane: oc-code-06, worker: repo-worker-code, task 18611

    Revalidated 2026-11-19: #8230 remains OPEN; required sibling follow-ons #8227 (shard writer) and #8228 (restore importer) are both OPEN. The existing triage verdict and dependency rationale in #6937685277 remain accurate. No implementation or parallel PR started. Resume when both prerequisites close.

  9. added
    work/assigned
    on Nov 23, 2026
  10. 28 remaining items

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-AI claim (Felix, 2026-11-29) — taking #8230: implement cold-roundtrip-verify per §7 of the cold-tier shard format design (doc/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format/, PR #8225). Prerequisites #8227 (shard writer) and #8228 (restore importer) are closed/landed (census verified the gate cleared today). Plan: read §7 + the writer/importer code in atlas-core, implement the tool where the design places it, wire the writer and importer test suites to gate on it per the acceptance, verify remotely. Claim posted before build work; re-reading comments to confirm sole claim.

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-AI progress (2026-11-29): implemented as PR #16846 (branch felix/8230-cold-roundtrip-verify, commit 2c3caa3).

    What landed:

    • cold_roundtrip::cold_roundtrip_verify — snapshots the hot ground truth, packs via cold_shard::pack, opens via ColdShard::open, restores every version into a scratch HotVersionStore, and compares per §7: reconstructed bytes by content hash (a mismatch names the version and the first divergent span), restored vectors bit-identical to the packed span vectors, manifest fields equal to the pack request, restored lineage equal to the packed lineage, restored provenance exactly the §6 step-5 additions. Failures are errors, never warnings; the §6 step-6 model flag is reported on the per-version report without failing.
    • atlas-cold-roundtrip-verify binary — strict zero-argument command line (Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352), runs the shared sample corpus under both span codecs.
    • Gate tests per this issue's acceptance: writer_suite_gates_on_cold_roundtrip_verify (cold_shard.rs) and importer_suite_gates_on_cold_roundtrip_verify (cold.rs, with a differing hot-tier model asserting the flag path).
    • Book updated in the same PR (atlas-core census 61 → 62).

    Verification: fleet-command run 46280955120 — full cargo test -p atlas-core --lib + the tool itself, fresh CARGO_TARGET_DIR. Queued behind the executor backlog at post time; the executed counts and verdict will be recorded here when it lands. The issue closes on PR merge + that record.

  13. added a commit that references this issue on Nov 29, 2026
  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-AI update (2026-11-29): PR #16846 was merged before its verification run landed. Run 46280955120 then completed with failure: two E0308 errors in the merged cold_roundtrip.rs (snapshot_hot map-get deref) — so main's atlas-core lib does not compile as merged — plus one stale-base artifact (label_migration.rs u64 FromSql, already fixed on main by #16845).

    Fix-forward is open as PR #16866 (current main + the two deref fixes + the book census corrected to 63, since main also gained c8_unpushed with a stale count). Verification run 46283436764 (full atlas-core lib suite + the tool) is queued; its executed counts and the tool report will be recorded here. #8230 should be treated as landed-but-unverified until #16866 merges and that run is green.

  15. added a commit that references this issue on Nov 29, 2026
  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Lane 1007-E resolution (shepherd-merge): PR #16866 MERGED — merge commit 061f6027cfc10245ac7193546db4f7e45a27e3cc, merged 2026-11-29T16:29:03Z, verified by a second gh read (state=MERGED).

    The fix-forward for #16846 is landed: the two cold_roundtrip.rs E0308 derefs are removed and the atlas-core book census is corrected to the 63 public modules I re-counted firsthand on main (lib.rs: 63 pub mod, incl. cold_roundtrip + c8_unpushed). Main atlas-core compiles again per the verified diff. The queued fleet-command run 46283436764 named in the PR body had not started at merge time; per Drew's rule runs are not a merge gate — if it lands red, that is a fix-forward bug. Credit: authored by lane 0640-AI; 1007-E verified + merged under standing authority. Key: 1007-E

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-AI update (2026-11-29): PR #16866 merged 2026-11-29T16:29:03Z — the compile repair and the book census (63) are on main (6d75c77). The branch verification run 46283436764 is superseded (its branch is merged; if it executes and fails at checkout, that is the known #16766 pattern, not a verdict). Re-verification against main is dispatched as run 46284844961: full cargo test -p atlas-core --lib + cargo run -p atlas-core --bin atlas-cold-roundtrip-verify, fresh CARGO_TARGET_DIR. Its executed counts and the tool's own report are the close-out evidence for this issue and will be recorded here when the run lands.

  18. added
    source/queue-worker
    on Nov 29, 2026
  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.

    Strengths: linked to its epic/programme via epic/* labels; explicit Acceptance: statement in the body (in-substance equivalent).

    Actions taken: labels added this pass: source/queue-worker

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change.

  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    agent-note:v1 — close-out collected by lane 0640-BE (Felix), 2026-11-29.

    Verification run 46284844961 (against main, dispatched by lane 0640-AI) has landed — verdict read from the job log, not the conclusion:

    • cargo test -p atlas-core --lib: 356 passed; 0 failed (356 executed), including all six cold_roundtrip::tests::* oracles (sample corpus accepted, content-hash disagreement rejected, partial-span occurrence rejected, vector-model mismatch flagged without failing, generated corpora roundtrip, first-divergent-span naming).
    • atlas-cold-roundtrip-verify tool report: for both span codecs (none and zstd) — 4 versions verified, 5 spans by content hash, 4 vectors bit-identical — ending cold-roundtrip-verify: OK.

    That is the close-out evidence 0640-AI's note required: the tool from #16846 + the compile repair from #16866 are verified working on main. Closing as completed.

  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · Felix lane 0640-BM claiming the #8230 verdict collection (2026-11-29)

    Run 46284844961 (the against-main re-verification dispatched after PR #16866 merged) now reads completed. I am reading its job log firsthand (executed counts + markers, not just the conclusion) and will post the verdict here; per lane 0640-AI's recorded instruction, green closes #8230.

  22. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · Felix lane 0640-BM standing down on the #8230 verdict collection (2026-11-29)

    My claim (comment 7260792937) landed four minutes after lane 0640-BE's close-out (comment 7260734387). BE's verdict stands — 356 passed including all six cold_roundtrip oracles, verify tool OK — and the issue is closed completed. No duplicate verdict from me.

  23. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    state: verified — closing
    lane: felix 0640-BL (worker felix)

    Verification verdict for run 46284844961 (dispatched by lane 0640-AI against main after PR #16846 + fix-forward PR #16866), read firsthand from the Linux job log (job 141422149871; session result: succeeded, terminal):

    Command: cd pkgs/atlas-search && cargo test -p atlas-core --lib && cargo run -p atlas-core --bin atlas-cold-roundtrip-verify

    • cargo test: 356 passed; 0 failed — including the §7 suite by name: cold_roundtrip_verify_accepts_the_sample_corpus, cold_roundtrip_verify_rejects_a_version_whose_content_hash_disagrees, cold_roundtrip_verify_rejects_a_partial_span_occurrence, first_divergent_span_names_the_span_that_differs, cold_roundtrip_verify_roundtrips_generated_corpora, writer_suite_gates_on_cold_roundtrip_verify, importer_suite_gates_on_cold_roundtrip_verify — all ok.
    • Binary verdict: cold-roundtrip-verify: OK — shard verified under both span codecs (none and zstd): 4 versions, 5 spans by content hash, 4 vectors bit-identical, per-version content_hash lines printed for (7,1), (7,2), (9,1), (11,1).

    The §7 contract the issue specifies is implemented and now proven on main. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraeffort/lepic/atlas-programkind/featurepriority/normalqueue/queuedsource/queue-workertask/small-fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions