GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(atlas-search): resolve chunk occurrences by canonical hash (#3125 slice 3) by dezren39 · Pull Request #13450 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Read side of the chunk_occurrences provenance registry that slice 2 (#13216, aggregate.rs) writes: lookup_by_hash fans out over the scan shards the caller's TierCeiling admits, keyed by canonical SHA-256 content hash (not per-shard chunk id). get-chunk attaches the resolved rows as an occurrences array (absent when empty, same shape rule as notes). Monolith/local backends keep their shape via the trait default (empty).

Moves #3125 rule 3 one step: registry rows become readable through get-chunk.

Evidence

  • cargo test -p atlas-core --test occurrences: 4 passed (lookup fan-out + legacy-skip, get-chunk surfacing, ceiling gating, per-row sensitivity) — includes occurrence_rows_are_filtered_by_their_own_chunk_sensitivity_not_just_shard_tier
  • cargo test -p atlas-core --test disclosure: 19 passed — includes get_chunk_occurrence_lookup_uses_the_effective_ceiling
  • cargo test -p atlas-core --test aggregate --test occurrences --test disclosure --lib: 169 lib + 4 + 19 + 7 passed
  • cargo test -p atlas-search: 43 passed
  • Failing-first: both new tests fail on the pre-fix code (restored temporarily from a backup, then reverted), pass after
  • Oracle: SHA-256 of fixture text ecead345a7a4b99b26d42d2e839838ee261516fe54136d287847852a0ffe4f9f; fixtures assert lookup returns every admitted shard row for that hash
  • Tier policy: shard fan-out via set.select (same ladder as vector fan-out); each occurrence row further gated by its own chunk sensitivity against the caller ceiling (fail-closed to SecretBearing on unknown labels); pre-registry shards skipped, real shard errors fail

Review fixes (Codex P1s)

Both Codex P1 findings addressed in 2ec9a09d444:

  • Caller ceiling into occurrence resolution — run_get_chunk_with_context takes grant: Sensitivity; the explicit-id chunk gate keeps its documented form (context.permits under LocalOwner, Python parity), while derived payloads (occurrence provenance, neighbor expansion) use context.effective_ceiling(grant). Server passes the job ceiling, CLI passes context.ceiling().
  • Per-referenced-chunk sensitivity — lookup_by_hash joins chunk_occurrences to chunks and filters each row by c.sensitivity against the caller ceiling; both the tier ceiling and the full Sensitivity ceiling are threaded through the trait, Box<T> impl and ShardedBackend.

Merge Danger

Low. Additive: one new module (occurrences.rs), one trait method with a default (empty), one ShardedBackend override, one optional get-chunk field. No schema change, no migration. Risk: a slow/failing shard now fails the get-chunk occurrences lookup the same way it fails vector search — intended (partial provenance is as wrong as partial search).

Closes part of #3125

{
  "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-23T16:27:55Z",
    "session_id": "ses_e5df6d41c99ffecEDTR9A7JlCT",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-worktrees/3125-s3",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-worktrees/3125-s3",
      "repo": "developing-today/code",
      "branch": "code-f/3125-provenance-slice-3",
      "sha": "8001f3222d1c7359298ede6508bebce3af5f4c91"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
feat(atlas-search): resolve chunk occurrences by canonical hash (#3125 …
8001f32
…slice 3)

Read side of the chunk_occurrences provenance registry slice 2
(aggregate.rs) writes: lookup_by_hash fans out over the shards the
caller's TierCeiling admits, keyed by canonical SHA-256 (content
identity, not per-shard chunk id). Pre-registry shards are skipped;
real shard errors fail the lookup. get-chunk attaches the resolved
rows as an occurrences array (absent when empty, like notes);
monolith/local backends keep their shape via the trait default.

Closes part of #3125
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 26d2c85a-b792-43d6-9433-1253a4db8ea6
Commits

Reviewing files that changed from the base of the PR and between b25edb1 and 2ec9a09.

Files selected for processing: 9

  • pkgs/atlas-search/crates/atlas-core/src/backend.rs
  • pkgs/atlas-search/crates/atlas-core/src/lib.rs
  • pkgs/atlas-search/crates/atlas-core/src/occurrences.rs
  • pkgs/atlas-search/crates/atlas-core/src/search.rs
  • pkgs/atlas-search/crates/atlas-core/src/shards/scan.rs
  • pkgs/atlas-search/crates/atlas-core/tests/disclosure.rs
  • pkgs/atlas-search/crates/atlas-core/tests/occurrences.rs
  • pkgs/atlas-search/crates/atlas-search/src/main.rs
  • pkgs/atlas-search/crates/atlas-search/src/server.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125
Open
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T16:31:17.188816Z 8001f32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 23, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8001f3222d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/atlas-search/crates/atlas-core/src/search.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/atlas-search/crates/atlas-core/src/occurrences.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 23, 2026
task(atlas): first-pass corpus ingestion — all code repos, all findable docs, dezren39/cairn #6025
Open
feat(atlas-search): stable source-root + locator registration (#3125 slice 4) #13485
Merged
@dezren39
fix(atlas-search): bound chunk occurrences by caller ceiling and per-…
2ec9a09
…row sensitivity (#3125 slice 3)

Addresses both Codex P1 findings on #13450.

P1-1 (grant ignored on occurrence provenance): get-chunk stays an
explicit-id tool — the chunk gate remains context.permits(...) under
LocalOwner, preserving the documented Python parity — while the
caller's Sensitivity is now threaded through
run_get_chunk_with_context as `grant`. Every derived payload
(occurrence provenance, neighbor expansion) uses
context.effective_ceiling(grant), so a personal-capped caller no
longer receives secret-tier source locators, and a personal-only
service no longer requests a secret-tier fan-out.

P1-2 (occurrence rows only shard-tier filtered): lookup_by_hash now
joins chunk_occurrences to chunks and checks each row's own
sensitivity against the caller ceiling, fail-closed to
SecretBearing on an unrecognized label. personal and local-only both
map to Tier::Internal, so the per-row check is what actually
separates them inside one admitted shard.

Tests (failing before the fix, green after):
- occurrence_rows_are_filtered_by_their_own_chunk_sensitivity_not_just_shard_tier
- get_chunk_occurrence_lookup_uses_the_effective_ceiling
@dezren39
dezren39 merged commit 7e7af3f into main Nov 23, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the code-f/3125-provenance-slice-3 branch November 23, 2026 20:52
@dezren39 dezren39 added the audit:partial PR partially implemented; gap filed label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:partial PR partially implemented; gap filed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.