Skip to content

Add version-consistent domain projection and indexed graph reads #7

Closed

Description

@CompleteDotTech

Goal

Expose authoritative domain assignments to graph readers through a version-consistent, rebuildable index without creating a second truth store.

Implementation

  • Extend GraphReadView and the in-memory/SQLite adapters to return the classification projection that belongs to the selected graph version, plus its taxonomy/assignment revision.
  • Keep present-time source READ/active/tombstone checks on historical graph reads. Include classification revision/hash in read identity and cache invalidation.
  • Build an indexed source-to-domain read projection from committed assignments; verify it against the journal and make it safely rebuildable. Keep source, entity, assertion, and evidence IDs stable across domains.
  • Define adapter requirements for consistent snapshots, ACL and domain pushdown, source epochs, unavailable history, timeouts, and cancellation. Do not claim a remote/federated adapter exists until implemented and tested.

Acceptance

  • Reference and in-memory adapters agree for current, historical, reclassified, unclassified, and revoked sources.
  • Stale/tampered derived indexes fail closed or rebuild from authority; no query can invent membership.
  • A classification change invalidates affected retrieval cache entries without modifying older graph versions.

Relevant code: trace_gc/retrieval/store.py, trace_gc/backend.py, trace_gc/retrieval/fixtures.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:storageenhancementinitiative:domain-graph

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions