Repository navigation
Apply authorized research-domain scope across GraphRAG retrieval - #133
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
Independent review: APPROVE Exact reviewed head
|
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
b0e5884ddcdcd0340770f1516ff958b5b1dcbe7fpassed 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.016b852c23d5175a8ea2d1a851ca99ecf8142e99passed 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.97f428c8f6f427dd785ab8058daa643d86a1e7cdpassed 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.0b7d3cc96913db5a5e0ce0c762e4a874983cf1a6passed 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.07ff9b64cbd2629f064fecd1a7cf2d0f1dfda5f5passed 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.b2e998e5cf956cfb0423b2331c6518b3e155d695passed 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.d8a62a658a0f3866d05d977f762f99be2d12b865passed 226 local tests with the independently pinned legacy core and all 16 Linux, Windows admission-fence, and installed distribution jobs. Previous PR workflowgit diff --checkpassed.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