Repository navigation
feat(atlas-search): wire source registry into serving paths (#3125 slice 7) - #14204
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
#3125 slice 7 — the serving-side wiring named as the next slice when slice 6 (#14036) landed: thread the catalog/source-registry path from CLI/service config into
ShardedBackend::with_source_registry, so served get-chunk responses carry occurrence attribution (root_id).source_registry::open_source_registry(path): opens the registry database at a path (creating the file and tables when absent) and returns the connection the builder consumes. Additive only, like registration itself. Re-exported from the crate root.source_registry(path). It is validated inload_service_settings— empty is an error, and setting it withoutshardsis an error (attribution rides the shard fan-out; a registry nothing consumes must not be silently dropped).cmd_serveopens it and attaches it to the sharded backend.--source-registry <path>flag (envATLAS_SOURCE_REGISTRY), mirroring--shards/ATLAS_SHARDS. Without--shardsit fails up front with exit 2; with--shardsit attaches to the fan-out backend.root_idkey stays absent (slice 6's contract, re-pinned by the existing occurrences tests).Out of scope, unchanged: standalone
get-chunkhas no shard path today (it runs on the monolith backend), so there is nothing to attach there; the phase-2/3 laptop data backfills remain laptop-state work, per the notes on #3125.Evidence
Ran on the laptop at
a9c577f299c(base4d9952d0faa), builds throughfleet-build-lock:cargo test -p atlas-core --test source_registry— 8/8, including the new oracleopen_source_registry_creates_then_reopens_with_rows_intact: a fresh path resolves nothing; rows registered through one open still resolve after close + reopen by path (oracle: slice 5's exact-match resolution contract).cargo test -p atlas-core --test occurrences— 6/6 (slice 6 attribution contract unchanged).cargo test -p atlas-search service_config— 3/3, including the newservice_config_source_registry_round_trips: config withshards+source_registrylands the path onServeSettings; withoutshardsit errors; empty errors.cargo test -p atlas-core -p atlas-search— 459 passed, 0 failed.cargo fmt --all -- --check— clean.Merge Danger
Low. All new behavior is opt-in behind a config key / CLI flag that default to absent; with them absent, construction paths are the pre-slice ones. The one behavior change for existing configs: a service config that (invalidly) carried an unknown
source_registrykey before would now be read — no shipped config sets it. Registry opening can create the registry tables in the named catalog file (the registry's documented additiveensure); it never alters existing rows.{ "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-24T08:22:50Z", "session_id": null, "lane": null, "host": "amd", "worktree": "/home/user/git/worktrees/item-work-1-3125", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/worktrees/item-work-1-3125", "repo": "developing-today/code", "branch": "item-work-1/3125-slice7-serving-wiring", "sha": "a9c577f299ca5761b2de5c46ab7cf2a4fade2bd8" }, "auth_subject": "oc-code-06", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.