Skip to content

feat(cli): verify offline evidence bundle integrity #92

Description

@doublewhy

Context

  • Multiple adapter backends emit evidence bundles whose byte integrity must be reviewable without installing a simulator.
  • Integrity is distinct from backend semantics, aggregate recomputation, privacy review, or scientific conclusions.

Problem

  • There is no generic installed CLI for checking regular-file containment, exact inventory membership, hashes, sizes, and nested inventory closure.
  • Backend-specific tools cannot provide a common offline tamper boundary.

Fix

  • Add raes-adapters verify-bundle --bundle PATH with deterministic JSON, terminal, and Markdown output.
  • Return 0 for verified, 2 for usage, 3 for invalid or tampered input, and 70 for internal failure.
  • Reject symlinks, special files, traversal, duplicates, malformed inventories, mutation during hashing, and extra files.
  • Enforce the fixed file, inventory, entry, byte, artifact, depth, and path limits from the delivery plan.
  • Perform no writes, network access, simulator imports, semantic claims, or aggregate recomputation.

Acceptance

  • Clean-wheel verification and tamper probes pass.
  • Tests cover containment, inventory closure, all fixed limits, malformed input, stable renderers, and leakage resistance.
  • Canonical verification passes; native simulator qualification remains an Ubuntu-authoritative lane.

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