ElevenID
ElevenID LLC
Login
All Posts
Technical
6 min read
OID4VCI
OID4VP
implementation

Conformance Testing: Proving Your MIP Implementation Works

MIP conformance is a layered claim. Schema fixtures test document behavior; normative, API, implementation-class, and protocol-target evidence establish the rest.

Daniel Ortega | Protocol Architect - Identity Protocol DesignMay 2, 2025 | Updated July 21, 2026 | 6 min read | Technical
OID4VCI Issuance
OID4VP Presentation
Protocol Architecture
Interoperability Design
Implementation Guides
4 of 4
Part of the Marty Identity Protocol
Series

Implementation Guides

Layer

Flow Orchestration

Topic

Implementation

Difficulty
Advanced

No single green command proves that an entire identity implementation works. Conformance evidence always has a scope. The useful first question is: which claim are you trying to substantiate - schema compatibility, a partial entity implementation, an issuer or verifier implementation class, or a protocol-specific runtime?

MIP makes several of those claims testable, but they are not interchangeable. JSON Schema fixtures can show that two implementations accept and reject the same document shapes. They cannot, by themselves, prove that an API enforces current policy, a verifier performs the full trust evaluation algorithm, or a wallet obtains consent before presenting a credential.

The goal is therefore not a ceremonial pass badge. It is a chain of evidence that is precise enough for another implementer to reproduce and narrow enough that it does not imply more than the tests establish.

Start by naming the conformance claim

MIP 0.3.1 defines full implementation conformance, partial conformance, four implementation classes, and five protocol conformance targets. Full implementation conformance covers the five core primitives, the required API surface, at least one credential format, normative validation rules, and the published fixtures. Partial conformance lets an implementation identify the entities it supports and pass the fixtures that apply to that scope.

The implementation classes add behavioral obligations for issuers, verifiers, wallets, and registries. The protocol targets add focused requirements for DTC, MRZ, Open Badges, OID4VC, and Presentation Exchange. A fixture result is evidence inside one of these claims; it is not a substitute for declaring the class, target, protocol version, supported formats, and exclusions.

What the repository fixture suite checks

The protocol repository contains valid fixtures that are expected to satisfy their inferred Draft 2020-12 JSON Schemas and invalid fixtures that are expected to fail. The Python tests resolve local schema and enum references, validate each fixture, and compare invalid results with the JSON Pointer recorded in an expected-result sidecar when one is present.

PolicySet fixtures receive an additional Cedar syntax and schema check when the optional Cedar validator is installed. Generated Python, Rust, and TypeScript bindings are checked separately for drift from the schemas. The shell runner offers an alternate fixture pass using AJV or check-jsonschema.

Those details matter when preserving evidence. Expected-result sidecars include diagnostic metadata, but not every runner asserts every sidecar field in the same way. A useful test report records the runner, commit, assertions, skips, warnings, and raw output instead of treating the presence of a sidecar as proof of stable runtime error semantics.

What a fixture pass does not prove

Schema validation proves document structure, including many conditional constraints. It does not prove that referenced objects exist, belong to the same organization, are active at decision time, or are authorized for a particular operation. A Deployment Profile can carry structurally valid policy identifiers while runtime reference resolution remains a separate responsibility.

The fixture suite also does not exercise a deployed issuer, verifier, wallet, or registry through its network surface. Endpoint metadata, nonce behavior, holder binding, consent, status checking, trust evaluation, audit events, and failure handling require contract or integration tests against a running implementation. MIP points protocol-target claims to integration suites for that reason.

This boundary is healthy. Small deterministic fixtures make schema disagreements easy to isolate. Runtime suites can then focus on state, sequencing, cryptography, and protocol behavior without pretending that one test layer covers the other.

Negative tests define the boundary

The current invalid fixtures cover concrete rules such as a disallowed Trust Profile algorithm, an invalid credential type, an empty Deployment Profile policy list, missing key identifiers, missing custom-flow extensions, missing physical-delivery destinations, and a conflicting Presentation Policy fallback. Each case is intentionally small so the rejected rule is visible.

That is the right contribution pattern for new ambiguity: add the smallest valid or invalid document that exposes the disagreement, record the expected diagnostic location, and clarify the normative text if two reasonable implementations could still disagree. Broad scenarios belong in integration tests; minimal protocol invariants belong in fixtures and contract tests.

Run the same checks as protocol CI

For the repository evidence layer, use the Python suite and generated-binding check that CI runs. Preserve the commit identifier and complete output with the result.

bashProtocol repository checks
uv sync
uv run pytest tests/ -v
uv run python scripts/codegen.py --check

The standalone shell runner is useful when AJV or check-jsonschema is part of your toolchain. It is a fixture validator, not an endpoint runner.

bashOptional standalone fixture run
./scripts/run-conformance.sh --verbose
Build a reviewable declaration

A defensible conformance declaration should identify the MIP version and source commit, the claimed entities or implementation class, supported credential formats, claimed protocol targets, test environment, runner versions, passing artifacts, warnings, skipped tests, and known exclusions. That record lets a reviewer understand exactly what was exercised and rerun it later.

Protocol-target evidence should come from a running system. For example, the Marty integration repository contains gateway-level OID4VCI and OID4VP tests that exercise metadata and request flows. Their OIDF-mirrored naming helps align scenarios, but a local suite should not be described as independent OIDF certification. Certification is a separate claim requiring its own authoritative evidence.

The same discipline applies to product language. Passing the protocol repository tests supports a statement about that repository and commit. It does not establish that every deployment is secure, compliant, interoperable with every ecosystem, or ready for every production environment.

Conformance sources

Use these artifacts together to distinguish fixture validation from broader implementation evidence.

MIP specification, Section 22

Normative requirements for full, partial, implementation-class, and protocol-target conformance.

Valid conformance fixtures

Protocol documents expected to satisfy their mapped schemas.

Invalid conformance fixtures and sidecars

Minimal rejected documents with expected diagnostic metadata.

Protocol CI workflow

The authoritative repository checks for tests, schema integrity, and generated bindings.

Marty runtime integration tests

Running-system tests that complement document-level fixture validation.

Make the next failure reusable

Conformance work becomes valuable when an integration disagreement turns into a durable artifact. Reduce the disagreement to a fixture or contract test, state the expected outcome, and link it to the normative rule. If the rule is unclear, fix the specification instead of allowing each implementation to preserve a private interpretation.

The practical next step is simple: name the claim you want to make, run the repository evidence layer, list what it does not cover, and add the runtime tests needed for the remaining scope. That is how "works" becomes a reviewable engineering statement rather than a broad assurance.

This article was produced by an AI research persona and reviewed by the ElevenID editorial team. All technical claims are validated against protocol specifications and reference implementations.
Daniel Ortega

Protocol Architect - Identity Protocol Design

Daniel studies the design of identity protocols and how systems exchange verifiable claims between issuers, holders, and verifiers. His work explains the underlying mechanics of decentralized identity protocols.

OID4VCI Issuance
OID4VP Presentation
Protocol Architecture
Interoperability Design
Protocol Flows
AI research persona representing curated protocol analysis.
Implementation Guides
4 of 4
Run a verifier locally

Flows orchestrate the full lifecycle - run a local verifier to see the complete flow.