GeezerVison is showing github.com — atlas: record embedding_model in atlas_manifest and refuse mixed-model fan-out (#6060 M1/M2) · Issue #7646 · developing-today/code
atlas: record embedding_model in atlas_manifest and refuse mixed-model fan-out (#6060 M1/M2) #7646DescriptionParent decision: #6060 — decision record doc/2026-11-08T10-44-00Z_decision_atlas_cross_tier_vector_comparability/ (one embedding model for every Atlas tier). This issue implements contract points M1/M2 of that record.
Work
- Add an
embedding_model key to atlas_manifest (the shard self-description in pkgs/atlas-search/crates/atlas-core/src/shards/mod.rs), naming the model + pipeline version that produced the shard's vectors. Existing shards are backfilled with the current mandated model id (snowflake-arctic-embed-m-v2.0, via atlas-embed).
- Extend
Manifest parsing to carry the new key, and validate it at fan-out next to the existing metric check: every scanned shard's embedding_model must equal the query vector's model identity. A missing or mismatched key rejects the shard in strict mode; a fan-out whose scanned set mixes model identities fails loud and never merges partially (M1) — the same posture as the existing non-cosine metric refusal and fanout_scan's failing-shard behaviour.
merge_top_k itself is unchanged (M3).
Acceptance
- A shard with a missing or mismatched
embedding_model is refused at fan-out with an error naming the shard and both model ids.
- Tests cover: uniform-model fan-out succeeds; one divergent shard in the set fails the query; manifest round-trip carries the new key.
- Existing shard/fan-out tests pass unchanged.
Acceptance criteria
- atlas_manifest carries an embedding_model key naming the model + pipeline version that produced a shard's vectors; existing shards are backfilled with the mandated id (snowflake-arctic-embed-m-v2.0 via atlas-embed).
- At fan-out, a shard with a missing or mismatched embedding_model is refused in strict mode with an error naming the shard and both model identities; a mixed-identity scanned set fails loud and never merges partially.
- merge_top_k behaviour is unchanged (M3); tests cover missing, mismatched, and uniform cases.
Activitydeveloping-today commented on Nov 8, 2026 ContributorAuthor More actions Intake review
Related: Parent decision: issue #6060. Contract points M1/M2 - the foundational slice: issues #7647 (M5) and #7648 (M6) both read the key this issue adds. Intake search surfaces only the merged #6060 decision doc - still live.
Notes: Highest priority of the three atlas slices because the other two depend on its manifest key. Body's Acceptance list formalized in the appended criteria; labels normalized (kind/enhancement, priority/high, effort/m).
Risks: Backfill correctness for existing shards: a wrong assumed model id would make strict fan-out refuse healthy shards; the backfill must cite the producing pipeline.
Suggested approach: Extend Manifest parsing + the fan-out validation next to the existing metric check in atlas-core shards, mirroring the non-cosine refusal posture.
Labels normalized at intake: kind/enhancement, status/needs-triage, priority/high, effort/m, meta/enriched added (existing labels preserved). Acceptance criteria appended to the body (original text preserved verbatim above).
— fleet monitor, intake pass 2026-11-08 (06:12 CST run) developing-today commented on Nov 9, 2026 ContributorAuthor More actions 🤖 Agent note · handed off
developing-today commented on Nov 9, 2026 ContributorAuthor More actions agent-note:v1
task: 13749
lane: code-j
stage: mid_shift_fallback
MID-SHIFT FALLBACK: backend failed at checkpoint — task 13749 checkpoint returned "not claimed by repo-worker-code" (code#6853) after a successful claim and opencode lane assignment. Switching to GitHub fallback per runbook §0b. Revalidated: issue #7646 OPEN, labels status/needs-triage, queue/queued, priority/high — no hard-stop labels. Attempts 2/6. The broker handoff could not be recorded, so this lane did NOT work the task directly. Fallback claim taken and released --outcome free so the item returns to the pool.
next: re-claim task 13749 / issue #7646; opencode claimant to work it developing-today commented on Nov 9, 2026 ContributorAuthor More actions
Picked up by repo-worker-code-j — 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-j posts progress markers; after 30 minutes of silence any other worker may pick this up.) developing-today commented on Nov 9, 2026 ContributorAuthor More actions
Progress from repo-worker-code-j: mid-shift fallback: broker claim-gone at checkpoint; releasing free, work not performed by this lane dezren39 commented on Nov 10, 2026 🤖 Agent note · parked (CI wait) — lane code-u, task 13749 (triage → fix in-session per §1c, issue #7646). Implemented and opened PR #8283: #8283 — atlas_manifest embedding_model (M1/M2 of #6060), strict/lenient refusal at discovery, single-model check at fan-out, fixture backfill; merge_top_k unchanged. Local evidence: cargo test -p atlas-core --test shards 14/14, --lib 43/43, atlas-search cli_parity 11/11. Parked as a broker CI wait (wait_kind=ci, PR #8283). Resume: CI green (or pre-existing-only failures proven) + Codex threads dispositioned → merge, close #7646 via the PR, complete task 13749. dezren39 commented on Nov 10, 2026
Triage verdict: REAL AND CURRENT — fix path scoped (lane code-y, task 13749).
Verified at current origin/main this claim: embedding_model appears nowhere in pkgs/atlas-search — contract points M1/M2 of the #6060 decision record are unimplemented, and nothing else has picked them up. No hard-stop labels on this issue.
Fix path (scoped to exact sites):
Manifest — pkgs/atlas-search/crates/atlas-core/src/shards/mod.rs:390: add embedding_model carried through Manifest::from_pairs (line ~399) alongside metric. The mandated identity already has a home: types.rs:248 (DEFAULT_MODEL = "Snowflake/snowflake-arctic-embed-m-v2.0"); the manifest value should name model + pipeline version per the issue.
- Writers/backfill: wherever
atlas_manifest rows are written at shard creation, stamp embedding_model with the mandated id; existing shards are backfilled with the same id (they were all produced by atlas-embed per the issue).
- Fan-out validation: beside the existing cosine check at
shards/mod.rs:~590 (same posture — fatal error naming the shard) and in the scan module's fanout_scan (FanoutQuery must carry the query vector's model identity): a scanned shard whose embedding_model is missing or unequal is refused in strict mode with an error naming the shard and both model ids; a mixed-identity scanned set fails loud and never merges partially. merge_top_k unchanged (M3).
- Tests per the issue's acceptance: manifest round-trip carries the key; uniform-model fan-out succeeds; one divergent shard fails the query; existing shard/fan-out tests pass unchanged (
cargo test in the pkgs/atlas-search workspace, atlas-core).
Ordering/blockers: none — #6060's decision record is landed (doc/2026-11-08T10-44-00Z_decision_atlas_cross_tier_vector_comparability/), the shared helper surface exists, and the change is confined to atlas-core. A fix task is enqueued from this triage; this issue stays open for it. dezren39 commented on Nov 10, 2026 agent-note:v1
task_id: 13749
worker: repo-worker-code
lane: code-y
state: done
KIND: done (fixed_merged)
Done: PR #8326 MERGED 2026-11-10T22:38:37Z, merge a9a3748, branch queue/13749-7646-embedding-model.
What landed (M1/M2 of the #6060 record):
- atlas_manifest gains an embedding_model key: Manifest carries it (absent parses as None), EMBEDDING_MODEL_ID = snowflake-arctic-embed-m-v2.0.
- Discovery (probe, beside the cosine check, same fatal posture) refuses a shard with a missing key or a mismatched identity, error naming the shard and both identities; DiscoveryOptions.embedding_model carries the consumer's expectation (default the mandated id); lenient discovery records these as Rejections.
- ShardInfo carries the validated identity and fanout_scan refuses a scanned set that mixes identities before any scan/merge. merge_top_k unchanged (M3).
Tests (laptop): atlas-core 43+5+14+6 pass incl. new manifest_round_trip_carries_embedding_model and discovery_refuses_missing_and_mismatched_embedding_model; atlas-search 31+11 pass incl. both CLI fan-out parity tests (which failed on the unstamped fixture first — proving the refusal fires through the real CLI — then passed after stamping). The one Codex P2 (fixture stamp) was already fixed in 81946d8 before merge; replied on the thread with the evidence. The PR also repairs three stale FanoutQuery/BranchQuery initializers in tests/shards.rs that were broken on main by the parameter-contract commit (separate commit, labelled pre-existing).
Backfill note: existing production shards are stamped by the same key with the mandated id (all atlas-embed-produced); shard DBs live outside this repo, so that stamp is an ingest/ops action, with the reader refusing unstamped shards until it lands. dezren39 commented on Nov 11, 2026
🤖 Agent note · already done (task 14795, lane code-f)
This follow-on was claimed after the work landed: issue #7646 was implemented by task 13749 (lane code-y) — PR #8326 MERGED 2026-11-10T22:38:37Z (merge a9a3748), and the issue is CLOSED. Verified fresh by this lane: embedding_model is on current main in pkgs/atlas-search/crates/atlas-core/src/shards/mod.rs (Manifest field + from_pairs parsing + validated ShardInfo identity). Task 14795 completes as already_done; the stale queue/parked, status/parked and work/assigned labels left on this closed issue are removed in the same pass.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|