Skip to content

Publish reviewed classifications atomically and migrate existing graph state #6

Closed

Description

@CompleteDotTech

Goal

Publish approved source-domain assignments through the existing graph authority, with deterministic history and an upgrade path for existing databases.

Implementation

  • Add a trusted, reviewed classification operation with exact assignment/source/taxonomy hashes, expected graph version and source epoch, idempotency key, and explicit signing capability. A model or query cannot publish or grant access.
  • Update the current assignment projection in the same atomic state/status/record/journal transaction used by the reference backend. Reclassification or retirement appends a new event; old source/evidence records, genesis, and journal hashes are never rewritten.
  • Evolve graph snapshot and plan/receipt schemas compatibly. Update plan validation, preflight/publish checks, audit/replay, and the pinned legacy bridge so sidecar state remains bound to the upstream authority rather than becoming a second graph store.
  • Provide an append-only migration/backfill path for old databases, with explicit unclassified state until an assignment is reviewed.

Acceptance

  • Commit/retry/rollback and fault-point tests prove atomicity, CAS, idempotency, signed authority, and audit integrity.
  • Old database reopen/audit and historical snapshots remain valid without changing existing source or evidence hashes.
  • The exact pinned legacy conformance gate is run when its reviewed source is available; otherwise report that external gate as pending, not passed.

Relevant code: trace_gc/backend.py, trace_gc/legacy.py, trace_gc/plans.py, trace_gc/trust.py, trace_gc/conformance.py, runtime schemas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:graph-authorityenhancementinitiative:domain-graph

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions