GeezerVison is showing github.com — atlas: align the production ONNX Runtime version — nix closure ships 1.27.1, corpus pipeline + Gate A fixtures are 1.31.1 · Issue #6765 · developing-today/code
atlas: align the production ONNX Runtime version — nix closure ships 1.27.1, corpus pipeline + Gate A fixtures are 1.31.1 #6765DescriptionDecision needed: one ONNX Runtime version for atlas, deliberately chosen
Filed from the #6663 investigation (lane code-m, 2026-11-07). Gate A itself is now guarded against cross-version runs (PR #6764), but the underlying version split is real and still open:
Measured effect of the split (controlled re-run, amd-6, #6663): same embedder code + fixtures pass bit-identically under 1.31.1 and differ by ~1e-7 max|d| (~740–757 of 768 components) under 1.27.1. Retrieval impact of 1e-7 is negligible; the costs of the split are (a) Gate A cannot certify the production runtime as shipped, and #5604's release rule requires a Gate A run before any search-domain tag; (b) query embeddings (1.27.1) and corpus embeddings (1.31.1) come from different runtimes indefinitely, so any future drift investigation starts from a known-mismatched baseline.
Options
- Bump the nix runtime to 1.31.1 (nixpkgs update or an override in
pkgs/atlas-search/default.nix). Corpus, fixtures, gate, and service all align on the recorded version. Cheapest in artifact terms — no re-embed, no fixture ceremony. Cost: packaging work; nixpkgs' onnxruntime may lag or need an override pin.
- Re-embed the corpus under 1.27.1 and re-record the Gate A fixtures through the
gen_fixtures.py ceremony (provenance becomes 1.27.1; the PR test(atlas-embed): Gate A refuses mismatched ONNX Runtime versions (#6663) #6764 guard follows automatically). Aligns everything on the hermetic nix version — arguably the better long-term anchor since the service is nix-deployed. Cost: a full corpus embedding pass on the laptop + fixture regeneration + re-verification of Gate A against the new fixtures.
- Accept the split and downgrade Gate A to a version-matched-only gate permanently (the guard already makes this explicit). Not recommended: leaves query/corpus runtimes permanently split and the fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604 release rule effectively ceremonial.
Recommendation
Option 1 if nixpkgs (or a tractable override) can supply 1.31.1; otherwise Option 2 as a scheduled laptop-side ceremony. Either way the end state is one version everywhere, with the gate certifying the exact runtime production ships.
Acceptance: whichever option lands, fleet serve search's baked ORT version equals the Gate A fixture provenance version, and a Gate A run against the service's own ATLAS_SEARCH_ORT_LIB_DEFAULT library passes bit-identically.
Activitydeveloping-today commented on Nov 7, 2026 ContributorAuthor More actions
Picked up by repo-worker-code-c — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-c posts progress markers; after 30 minutes of silence any other worker may pick this up.) developing-today commented on Nov 7, 2026 ContributorAuthor More actions
Progress from repo-worker-code-c: triaged: split verified on current main (closure onnxruntime = 1.27.1 via pinned nixpkgs; fixtures/corpus 1.31.1); PR #6764 guard merged, #6663 closed; posting verdict developing-today commented on Nov 7, 2026 ContributorAuthor More actions 🤖 Agent note · triaged
Split verified live (2026-11-07):
Triage verdict / routing: This is an engineering decision with a recorded recommendation, not a Drew decision — it does not need . Recommended path for the implementation claim: try Option 1 via a package-level override (pin onnxruntime 1.31.1 inside ) rather than a whole-nixpkgs bump — the ambient nixpkgs cannot supply 1.31.1, so Option 1 stands or falls on that override being tractable; timebox it, and if the override fights back, fall to Option 2 (re-embed corpus + re-record fixtures under 1.27.1 through the ceremony) as a scheduled laptop-side task. Option 3 stays rejected for the reasons in the issue body. Acceptance is unchanged: baked ORT version == fixture provenance version, and Gate A passes bit-identically against the service's own .
Labels: status/triaged (was status/needs-triage). Releasing the fallback claim as free — the decision is triaged and routed; the packaging/ceremony work is the implementation claim that follows.
developing-today commented on Nov 7, 2026 ContributorAuthor More actions
Released by repo-worker-code-c (outcome: free). Triaged (fallback): ORT split verified on current main - pkgs/atlas-search/default.nix uses closure onnxruntime, pinned nixpkgs evals 1.27.1, corpus/fixtures are 1.31.1; PR #6764 guard merged and #6663 closed since filing. Routed: Option 1 via package-level 1.31.1 override (timeboxed; ambient nixpkgs cannot supply it), fallback Option 2 re-embed ceremony; not a Drew decision. status/triaged. dezren39 commented on Nov 8, 2026 🤖 Agent note · done (triage — already triaged and escalated; awaiting Drew)
Verdict: triaged — confirmed, already escalated, no new fix packet. This issue was triaged twice on 2026-11-07 in fallback mode (lane code-c, comments 6702228708/6702224628; lane code-n, comment 6702343714), and the second triage superseded the first with a decisive fresh fact. Re-verified today by task 11431:
- Split still live on current main (8169bbd): pkgs/atlas-search/default.nix still takes onnxruntime from the nix closure (ATLAS_SEARCH_ORT_LIB_DEFAULT, lines 24/35) with no version override; pkgs/atlas-search/fixtures/embed-probes.json provenance still records onnxruntime_version 1.31.1. nixpkgs ships 1.27.1 at the pinned rev and at nixos-unstable head, so Option 1 as filed (bump via nixpkgs) does not exist.
- Issue unchanged since 2026-11-07T04:38:42Z: still OPEN, status/triaged, user/escalated, and no ruling from Drew in the thread yet.
What is needed (genuinely Drew's, per the code-n escalation, substance in comment 6702343714): a direction/cost ruling — Option 2 (recommended: one laptop re-embed corpus + Gate A fixture re-record ceremony under 1.27.1, no permanent packaging burden) vs Option 1-prime (build and forever maintain a from-source ONNX Runtime 1.31.1 override in pkgs/atlas-search). Option 3 (accept the split) stays not recommended. On the ruling, the chosen option becomes a build task; converting this triage to a fix packet before the ruling would pre-empt the decision, so none is enqueued.
Labels: queue/queued removed (this triage task is the queue coverage the reconciliation import asked for, and it is now complete); status/triaged and user/escalated stand.
dezren39 commented on Nov 8, 2026 Resolved — the fleet runs the latest ONNX Runtime (1.31.1); the corpus was NOT re-embedded. Drew's ruling (2026-11-08, rejecting the rerun): "what no don't rerun everything because you made a shifty live search. what version is in nix? Just use the latest version."
Checked facts (fresh, 2026-11-08 — not the earlier costing)
- Live service before this change:
atlas-search.service (user unit, fleet serve search) ran a fleet build whose closure contains exactly one ONNX Runtime: onnxruntime-1.27.1. The service was serving the 1.31.1-embedded corpus through a 1.27.1 runtime.
- nixpkgs:
1.27.1 at the atlas-search sub-flake pin (0bb2eedc20e4739f29e8045034f2828ad7054f8f, 2026-11-01) AND 1.27.1 at today's nixos-unstable head (rev f9a75f41be3a74eab55d3a7679d34ad6cc0da977, fetched and evaluated 2026-11-08). No channel carries newer — a channel bump alone could never satisfy the ruling.
- Upstream latest: v1.31.1 (microsoft/onnxruntime, published 2026-10-26) — exactly the version the corpus was embedded under and the Gate A fixtures record. Aligning the service up invalidates zero artifacts.
The flawed live search behind the rerun proposal
The live search service's packaging compiled in ATLAS_SEARCH_ORT_LIB_DEFAULT from whatever the ambient nixpkgs onnxruntime attribute happened to be when the fleet package was built — no pin, and no assertion anywhere in the build against the corpus's recorded embedding version (1.31.1, in the corpus store and in fixtures/embed-probes.json provenance). So the service silently baked 1.27.1 and served the mismatched corpus without any surface reporting the split; it only surfaced when #6663's Gate A investigation compared fixture provenance against the running closure. Option 2 (re-embed everything under 1.27.1) proposed moving the corpus and every fixture to absolve the service build's omission. The defect was in the service packaging, so the fix lands there: the runtime is now pinned in the package, and the corpus — the artifact that was right all along — is untouched.
What changed (PR #7575, merged d16730db2839)
pkgs/atlas-search/onnxruntime/ — the nixpkgs expression vendored in-tree and bumped to 1.31.1 (upstream cmake/deps.txt pins followed: onnx v1.22.0, cpuinfo supplied from its pin via FETCHCONTENT_SOURCE_DIR_PYTORCH_CPUINFO because 1.31 links the cpuinfo::cpuinfo target only cpuinfo's own build defines; python bindings off — the fleet dlopens the library only; ORT's own test suite off — Gate A is the certification path).
pkgs/atlas-search/default.nix and pkgs/fleet/default.nix now take onnxruntime only from that vendored pin, never the ambient nixpkgs attribute — a future nixpkgs drift cannot silently re-split the service from the corpus again.
Verification
- Package build green, including its install check (fixture byte-compare + the closure's baked-default library loading and answering an embedding probe with no
ATLAS_ORT_LIB set).
- Gate A passes bit-identically against the new library: all 11 probes, single + batch, max|Δ| = 0.000e0 (0 bitdiff), token ids ok — measured against the fixtures recorded under the Python pipeline's 1.31.1. Hash-verified: the ORT source, the onnx v1.22.0 pin, and the cpuinfo pin all match upstream's published checksums / fetched hashes.
- The fleet package built for the system configuration closes over the same store path (
onnxruntime-1.31.1), and the fleet binary's baked default resolves to its libonnxruntime.so.
- Live-corpus parity run: a hybrid search against the production corpus using the 1.31.1 library returns fused FTS+vector results (top hit carries both rank sources) — the 1.31.1 stack serves the corpus correctly end to end.
Deploy state — one unrelated blocker, already filed
The daemon itself still runs the previous build (generation 548) tonight: nixos-rebuild switch fails in pkgs/id's check phase — two world-schedule tests fail deterministically at current main (journal event at sequence 1 uses participant 1 before it was issued), which blocks id → system-units → the whole toplevel. Reproduction and impact are filed as #7618 (the deploy-blocking gap, its own issue per fleet rule). The moment #7618 clears, the next ordinary switch activates this change; the service-side verification above was run against the exact store build that switch will activate. If the deploy lands without a further comment here, the generation note will be added when it does. dezren39 commented on Nov 14, 2026 Resolved and verified live — closing (2026-11-14, Drew's proceed order for Atlas)
- Agent: main-chat Track C worker (Drew order 2026-11-14 10:43 CST: "Fix whatever the problem is and proceed for Atlas")
- Decision status: Drew ruled 2026-11-08 ("Just use the latest version" — no corpus re-embed). That ruling was implemented by PR atlas: pin ONNX Runtime to latest upstream 1.31.1, vendored in-tree (#6765) #7575 (merged 2026-11-08T08:14Z, merge commit in the resolution note above): ONNX Runtime vendored in-tree at 1.31.1 in
pkgs/atlas-search/onnxruntime/, and pkgs/atlas-search/default.nix + pkgs/fleet/default.nix take onnxruntime only from that pin. Gate A passed bit-identically against the new library (all 11 probes, max|Δ| = 0) per that note.
- The one deploy blocker named in that note is gone: issue id: two world-schedule tests fail deterministically (restore rejects journal: participant used before issued) — blocks every NixOS switch #7618 (the
pkgs/id check-phase failure blocking every NixOS switch) is CLOSED (2026-11-11).
- Live verification today (2026-11-14, fresh, on the laptop):
atlas-search.service (fleet serve search, restarted 2026-11-14 09:36 CST) runs a fleet build whose closure contains exactly one ONNX Runtime — onnxruntime-1.31.1 — and the binary's baked default resolves to /nix/store/0iky5qhwyikjn5n2psr2j2dd0sijr79j-onnxruntime-1.31.1/lib/libonnxruntime.so. That equals the Gate A fixture provenance version (fixtures/embed-probes.json: onnxruntime_version: 1.31.1) and the corpus embedding version.
- Acceptance (issue body) is therefore met end-to-end: baked ORT version == fixture provenance version, Gate A passes bit-identically against the service's own library, and the aligned build is the one actually serving.
Labels: user/escalated and status/triaged removed (the escalation was answered and implemented), status:done added to match the sibling Atlas slices. Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|