Skip to content

Apply authorized research-domain scope across GraphRAG retrieval - #133

Merged
CompleteDotTech merged 12 commits into
mainfrom
issue8-research-domain-scope
Nov 18, 2026
Merged

CompleteDotTech merged 12 commits into
mainfrom
issue8-research-domain-scope

Conversation

@CompleteDotTech

@CompleteDotTech CompleteDotTech commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #8. Part of #4. Builds on the accepted classification projection and current source-status enforcement from #7.

  • Apply one authorized research-domain membership check across all 18 retrieval channels. Scope anchors and carry authorized source spans, endpoints, identity links, prerequisites, and refutations as atomic context.

  • Use topical assertions for path hops and community members. The combined labels of topical members can satisfy an ALL scope. Explicit conflicts retain both sides, with the anchor metadata identifying the topical side or sides.

  • Bind taxonomy scope and classification identity in cache keys, canonical contexts, lineage, downstream answers, and replay. Scoped upstream model packs carry both values with immutable field traces. Pre-scope context fingerprints and unscoped model wire shape retain compatibility.

  • Validate both replay contexts against their exact graph versions and snapshots. New receipts limit observation hashes to authorized, linked observations, verify their typed pack and wire bindings, and bind new observations to the replayed result.

  • Add scope and classification-read identity to public and packaged schemas. The 36 changed files include 16 generated schema files that account for 1,490 added lines.

  • Recheck current permissions on transitive model inputs, prior observation provenance and candidate-derived embedding text. Reconstruct replay selections and linked receipts under the replayed policy. Canonical scoped paths and communities bind their topology and scope.

Validation

  • Exact head b0e5884ddcdcd0340770f1516ff958b5b1dcbe7f passed all 240 isolated authored and regression tests with the pinned legacy core and no skips. Scope preserves explicit focus in five focus-driven strategies. Path ranking uses canonical search hops and full evidence closure still contributes to budgets. Both GitHub inline reviews are resolved. Exact PR workflow.
  • Earlier head 016b852c23d5175a8ea2d1a851ca99ecf8142e99 passed all 239 local tests from an isolated exact Git archive with the pinned legacy core and no skips. It computes authorized taxonomy branches once per derivation, charges hierarchy and closure adjacency, and requires a bound disclosure policy and current decision grants on replay receipts. Both generated 38-schema mirrors match. Earlier PR workflow.
  • Earlier head 97f428c8f6f427dd785ab8058daa643d86a1e7cd passed 238 local tests with the independently pinned legacy core and no skips. Scoped canonical reconstruction uses the request work meter. Live scoped reads require identity-aware conflict closure, and the original unscoped adapter protocol and archived literal verifier remain supported. All ranked sources and returned semantic observations are checked before use. Earlier PR workflow.
  • Earlier head 0b7d3cc96913db5a5e0ce0c762e4a874983cf1a6 passed 234 local tests with the independently pinned legacy core and no skips. It validates live status before selection, gates application token counting for every candidate, and applies current-candidate exclusion to scoped canonical decisions. Earlier PR workflow.
  • Earlier head 07ff9b64cbd2629f064fecd1a7cf2d0f1dfda5f5 passed 233 local tests with the independently pinned legacy core, without skips. The targeted authorization and replay batch passed 17 tests on the same head. Earlier PR workflow.
  • Earlier head b2e998e5cf956cfb0423b2331c6518b3e155d695 passed 228 local tests with the independently pinned legacy core and zero skips. Earlier PR workflow. Review adds two topical topology tests, extends path and community assertions, and expands the original receipt test with a synthetic replay callback.
  • Previous head d8a62a658a0f3866d05d977f762f99be2d12b865 passed 226 local tests with the independently pinned legacy core and all 16 Linux, Windows admission-fence, and installed distribution jobs. Previous PR workflow
  • The eight public and packaged schema pairs are byte-identical and load through the registry. git diff --check passed.

The test corpus is synthetic. Operational revocation, I/O deadlines, cancellation, and empirical retrieval quality remain separate gates. Historical standalone evidence and decision replay requires journaled record availability.

Research-domain retrieval contract

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

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-18T00:58:19.762863Z 35cc1ee 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.

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

Copy link
Copy Markdown

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: 35cc1ee483

ℹ️ 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".

Comment thread trace_gc/retrieval/strategies.py Resolved
Comment thread trace_gc/retrieval/items.py Resolved
@CompleteDotTech

Copy link
Copy Markdown
Collaborator Author

Independent review: APPROVE

Exact reviewed head b0e5884ddcdcd0340770f1516ff958b5b1dcbe7f against 3f032cad4721239c72213fdb30122e2b7be5c212.

  • Independent general review confirmed bounded once-per-selection taxonomy expansion, charged proof adjacency and schema/ontology scans using immutable node and relation maps, empty receipt scope validation, and consistent unscoped adapter behavior. Both replay schema copies match, and the mandatory disclosure-policy check is enforced by the runtime and the schema.
  • Independent security review confirmed current source, candidate and pack authority across application callbacks, checks at receipt publication, and per-observation decision grants enforced in the producer and validator. Modern receipts bind a same-principal disclosure policy and derive comparison output from authorized observations. The earlier archival reader preserves genuinely pre-feature receipts.
  • The isolated pinned scope run passed 240 tests without skips. It includes staged evidence, legacy compatibility, and all 18 positive and negative strategy channels. The focused package and replay checks passed. Merge requires all exact hosted checks to pass. PR workflow · push workflow
  • Both reviewers independently approved the final three-file revision. Restrictive explicit focus now stays restrictive across the five focus-driven graph channels. PATH distance uses traversal members and the full evidence closure still counts toward the budget. Four exact focused tests passed. Explicit focus resolution · Path utility resolution

@CompleteDotTech
CompleteDotTech merged commit 076832d into main Nov 18, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement ACL-safe research-domain retrieval across all channels

1 participant