Skip to content

refactor(evidence): consolidate bundle inventory producers #94

Description

@doublewhy

Context

  • The generic offline verifier is introduced by feat(cli): verify offline evidence bundle integrity #93.
  • Existing evidence producers already emit the same four-field inventory entry shape.
  • This is internal plumbing: RAES remains the semantic authority and backend meaning remains backend-local.

Problem

  • Producers duplicate byte-level path, media-type, size, and SHA-256 inventory logic.
  • Backend verification can perform semantic checks without first proving generic bundle integrity.
  • Refactoring without parity coverage could silently change existing inventory bytes or compatibility entry points.

Fix

  • Add shared private inventory primitives and retain existing producer compatibility wrappers.
  • Preserve byte-for-byte inventory output for unchanged inputs.
  • Run generic offline integrity verification before existing backend-specific semantic verification.
  • Keep aggregate/tier recomputation, privacy scanning, and all semantic claims in their backend modules.

Acceptance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions