Skip to content

Implement ACL-safe research-domain retrieval across all channels #8

Closed

Description

@CompleteDotTech

Goal

Support topical research-domain views in both upstream synthesis retrieval and downstream GraphRAG without treating a domain tag as permission or hiding needed cross-domain evidence.

Implementation

  • Add a clearly named research_domain_scope query field (or document an equivalent unambiguous name) in the versioned query constructor and generated JSON schemas. Existing ontology_scope, source_scope, and community_scope retain their current meanings.
  • Apply one shared authorized membership predicate to every candidate producer: graph edges/paths/communities, nodes/claims, source/evidence, lexical/vector, ontology/schema, and decisions. Filter before embedding or semantic expansion and recheck in canonical materialization.
  • Scope candidate anchors while retaining authorized evidence closure, endpoints, identity links, and conflicting/refuting facts across domain labels within existing budgets. Missing labels remain explicitly unclassified, not silently invisible to required closure.
  • Propagate scope through planner/downstream APIs, cache keys, graph contexts, lineage, and replay allowlists. Unscoped requests retain compatible behavior.

Acceptance

  • Tests cover multi-domain papers, cross-domain identity and contradictions, unclassified material, and every retrieval strategy.
  • ACL and current source status are enforced before domain filtering, embeddings, or generated summaries.
  • Canonical context and replay can verify the exact taxonomy/assignment revision used.

Relevant code: trace_gc/retrieval/contracts.py, items.py, strategies.py, service.py, planner.py, trace_gc/replay.py, tools/retrieval_schemas.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:retrievalenhancementinitiative:domain-graph

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions