Skip to content

Add a parity test asserting the vault public route and resolver render byte-identical public views #30

Description

@LKSNDRTMLKV

Background

There are currently two independent code paths that both claim to serve "the public view" of a passport: the resolver (renders from the signed publicJwsSignature payload) and the vault's public_read_handler (renders a redacted live row). See #27 for the divergence this causes. Nothing currently asserts these two outputs agree.

Proposal

Add a test (in the spirit of the existing port-inventory-style structural tests) that, for a given published passport fixture, asserts the vault's /public/dpp/{id} response and the resolver's /dpp/{id} response are byte-identical (modulo any fields explicitly expected to differ, if any). This closes the frozen-proof/live-row divergence mechanically and prevents it regressing silently in future — cheaper than remembering to check by hand every time either handler changes.

Found during a 2026-07-18 full-codebase review; filed as a follow-up to #27.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions