Repository navigation
feat(atlas-core): attribute occurrences to registered source roots (#3125 slice 6) - #14036
Merged
developing-today-fleet[bot] merged 1 commit intoNov 24, 2026
Conversation
…3125 slice 6) lookup_by_hash takes an optional source-registry connection; each ChunkOccurrence carries root_id when its locator is registered, staying unattributed otherwise. ShardedBackend gains with_source_registry; no-registry behavior and wire shape unchanged.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
any-n/3125-slice-6-occurrence-attribution
branch
November 24, 2026 07:39
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.
Related to #3125. Slice 6 of the provenance registry programme (slices 2-5 on main: occurrence writes, read side, source registry, resolve_source).
Summary
lookup_by_hashtakes an optional source-registry connection and eachChunkOccurrencegainsroot_id: Option<String>— resolved via slice 5's exact-matchresolve_source, carried asroot_idwhen the locator is registered,Noneotherwise (unattributed, never misattributed).ShardedBackendgains awith_source_registrybuilder;get-chunkemitsroot_idonly when attributed, so the no-registry wire shape is unchanged. A registry that answers with a genuine failure fails the lookup (fail-closed, same philosophy as a failing shard). The book's corpus-and-provenance chapter records the read-side slices.After this PR,
cargo test -p atlas-core --test occurrencesshows registered locators resolving to their root end to end through get-chunk, and unregistered lookups behaving exactly as before.Evidence
Ran on the laptop at 6509aaa via fleet-build-lock (no --features web; slice touches no web code):
cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test occurrences— 6 passed (4 existing updated for the new param/field + 2 new oracle tests)cargo test -p atlas-core --test source_registry --test disclosure --test parity --test shards --test aggregate— 7 + 19 + 6 + 16 + 7 passed, 0 failedcargo test -p atlas-core --lib— 184 passed, 0 failedcargo fmt --checkcleanOracle: slice 5's exact-match resolution contract — the registry answers which root holds a locator, and the lookup carries that answer onto the row. The positive assertions fail against a no-op implementation (no attribution without the new code path).
Merge Danger
Low. Additive only: one optional field, one optional parameter, one builder defaulting to absent. No behavior change without an attached registry. Revert-safe: dropping the commit restores the pre-slice API consumers (callers updated in-tree).
Next slice (named, for the following worker): serving-side wiring — thread the catalog registry path from the CLI/service config into
ShardedBackend::with_source_registryso served get-chunk responses carry attribution.{ "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-24T02:54:58Z", "session_id": "ses_e5df49352a7ffeAAMXW4DE7EW4", "lane": null, "host": "amd", "worktree": "/home/user/git/code-3125-slice6", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/code-3125-slice6", "repo": "developing-today/code", "branch": "any-n/3125-slice-6-occurrence-attribution", "sha": "6509aaa1e3d3eeb10b8403f93351b010c327fdb0" }, "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.