PCAF harness: design¶
Draft 0.8, 2026-11-22. It describes the tool that executes the Relying Party test cases in fcaf-overlay against any Relying Party, EUDIPLO first. What is implemented, how to run it and what the nightly job does are in the README.
0. Summary¶
The harness plays every party around the Relying Party (RP): the wallet, the issuers, the status provider and the trust infrastructure. It sends the RP valid material and material with exactly one deliberate fault, then reads the RP's verdict and compares it with the expected result of the FCAF test case.
Key choices:
- TypeScript monorepo, same stack as EUDIPLO, built on the OWF libraries (
@owf/*,@sd-jwt/*,@openid4vc/*). They already create JOSE, COSE, SD-JWT VC, mdoc (including MSO status and identifier lists), Token Status Lists, X.509 certificates and CRLs, LoTEs with JAdES seals, and access and registration certificates. - Valid first, then one fault: every artifact is built valid with the libraries, then a named mutation is applied in a separate fault-injection layer that assembles JOSE/COSE directly, so strict library validation never blocks a deliberately broken artifact.
- The harness proves its own faults: before a mutation is used against an RP, a reference validator confirms that the unmutated artifact passes every check and the mutated one fails exactly the targeted check.
- RP-agnostic through adapters: one small interface (start a presentation, read the verdict, optionally refresh trust). EUDIPLO gets the first adapter; a manual adapter covers RPs without an API.
- Executable test definitions are the single source of truth: the FCAF markdown is rendered from them, so the specification and the executed test cannot drift.
1. Goals and non-goals¶
Goals:
- Execute the FCAF Relying Party test cases unattended and produce FCAF verdicts (PASS, FAIL, INCONCLUSIVE, NOT APPLICABLE, REVIEW) with evidence.
- Work with any RP that offers the ICS items and a way to read its verification result.
- Run in CI: nightly against EUDIPLO's main image, and on demand against other RPs.
- Make every negative verdict explainable: which fault, which artifact, what the RP answered, what the status provider and trust infrastructure saw.
Non-goals for now:
- Testing wallets or issuers (the OIDF suites cover those).
- Proximity flows (ISO/IEC 18013-5 device engagement); the FCAF approach is to adopt ISO/IEC TS 18013-6 reader tests by reference.
- Testing the browser's Digital Credentials API implementation; the harness replaces it with a shim (§4.5).
- Load, penetration and availability testing.
2. What the baseline needs from a harness¶
Derived from the 121 baseline test cases (packages/definitions):
| Capability | Used by | Notes |
|---|---|---|
| Start a presentation at the RP for a default query and flow | all | Through the RP adapter |
Answer a signed OpenID4VP request via redirects (direct_post.jwt) |
all a variants, SessionEncryption_*a |
Same-device flow including the redirect back |
Answer via the W3C Digital Credentials API (dc_api.jwt) |
SessionEncryption_*b, every test case once per supported flow |
Browser shim |
| Issue PID SD-JWT VC and mdoc, with variants | Validity, Revocation, TrustMechanisms |
Claims, validity, status reference, issuer, signature |
| Issue QEAA, PuB-EAA and non-qualified EAA | TrustMechanisms_010–_015 |
QEAA needs a Trusted List in XML |
| Build KB-JWT and mdoc DeviceAuth bound to the request | all; SessionBinding, DeviceBinding |
Valid in the baseline; with faults from Phase 5: nonce, aud, iat, signature, key, typ, sd_hash, algorithm, SessionTranscript elements, device-signed elements, replay of an earlier transaction |
| Encrypt the response, with faults | SessionEncryption |
JWE alg, enc, epk, kid, target key, tampering, unencrypted, JWS |
| Serve Status List Tokens (JWT, CWT) and identifier lists, with faults | Revocation, RP_PP_SM_Revocation |
Signature, signer, claims, type, lst, bits, size |
| Log status list retrievals per credential | Validity_005, _006, Revocation_001, _010, RP_PP_* |
Evidence for NOFETCH and FETCHED |
| Publish LoTEs and Trusted Lists, and new versions during a test | all; TrustMechanisms_007, _008 |
Logs retrievals |
| Test PKI per the trust configuration | all | PP-A … CA-X, revocation anchors, expired anchor |
| Read the RP verdict and released attributes | all | Through the RP adapter |
Read the RP's ICS values (T_skew, T_kb, T_refresh, policies) |
time faults, NOSTAT, list refresh |
ICS file per RP |
| Capture and check the RP's requests (Phase 5) | RP_WS_MS_*, RP_WS_SM_RpIntegrity |
Request checks over one or several captured requests |
| Publish faulty trust list versions (Phase 5) | RP_Inf_SM_TrustMechanisms |
Seal, signer, type, NextUpdate, sequence number |
The distinct faults (§4.3) number about 70; most are reused across test cases and variants.
3. Architecture¶
flowchart LR
subgraph Harness
C[Test controller]
F[Artifact forge<br/>+ fault injection]
W[Conformance Wallet]
S[Test Status Provider]
T[Test Trust Infrastructure]
B[DC API shim<br/>Playwright]
end
A[RP adapter]
RP[(Relying Party<br/>under test)]
C --> F
C --> W
C --> S
C --> T
C --> A
A -- start presentation / read verdict --> RP
W -- fetch request, post response --> RP
B -- navigator.credentials.get --> W
RP -- fetch status lists --> S
RP -- fetch trust lists --> T
F --> W
F --> S
F --> T
| Component | Responsibility |
|---|---|
| Test controller | Loads the ICS and the test definitions, selects applicable test cases, runs positive controls first, executes steps, evaluates expected results, writes the report. CLI and HTTP API. |
| Artifact forge | Test PKI, credentials, presentations, responses, status lists, identifier lists, LoTEs, Trusted Lists. Builds valid artifacts, applies named faults. |
| Conformance Wallet | Wallet side of OpenID4VP: resolves request_uri, validates the request, builds and sends the response the step defines, follows or withholds the redirect. |
| DC API shim | Opens the RP's DC API page in Playwright and replaces navigator.credentials.get so the request goes to the Conformance Wallet and its response comes back to the page. |
| Test Status Provider | Serves status artifacts registered per credential under unique URLs, with programmable HTTP behaviour; logs every request. |
| Test Trust Infrastructure | Serves LoTEs and Trusted Lists per namespace, versioned; logs every retrieval. |
| RP adapter | The only RP-specific code: configure the RP, start a presentation, read the verdict, trigger a trust refresh. |
All harness services run in one process or as containers on one Docker network with fixed host names (wallet.rp-test, status.rp-test, trust.rp-test), served over TLS by a harness CA that the RP trusts (part of default_configuration_rp_1).
4. Components¶
4.1 Test controller¶
- Selection: evaluates
Profile applicabilityagainst the RP's ICS file; unmet conditions give NOT APPLICABLE. - Gating: runs each positive control (
RP_WS_IA_MainInteraction_001a,_001b, and the per-flow equivalents) first. A test case whose control did not pass ends INCONCLUSIVE. - Execution: steps run in order; each step produces evidence and a step verdict; the test case passes only if every step passes.
- Flows: the controller repeats every test case once per flow the RP supports, as the FCAF test cases instruct, and reports per flow. Implementation (Phase 3):
flowsOf(definition)is the flow the profile names (theSessionEncryptionvariants: RP.P.1 fora, RP.P.2 forb), otherwise both flows; a test case runs in each of those flows the run selects (--flows, default both), is NOT APPLICABLE in a flow the ICS does not declare, and is gated by its control's verdict in the same flow. A test checks that every definition without a flow in its profile carries the comment "Execute this test case once for each presentation flow". - Scheduling: test cases that only touch their own namespace run in parallel; test cases that change shared state (trust list versions) run serially unless the adapter supports namespaces (§6).
4.2 Executable test definitions¶
Each FCAF test case has one definition in packages/definitions. It holds every FCAF field and the executable steps, so the markdown is rendered from it and cannot disagree with what runs.
| FCAF section | Definition field | Rendering |
|---|---|---|
| Title | id |
# <id>; class, layer and area in the ID give the file location |
| Objective | objective |
Paragraph |
| References | references |
Bullet list |
| Profile applicability | profile (ICS conditions: item, exact ics-rp.md text, answer) |
Bullet list of the texts, or None; the controller evaluates the items against the ICS |
| EUDI-wallet relevancy | relevancy |
One of the five FCAF values |
| Technology | technology |
Bullet list; left out when empty |
| Preconditions | preconditions |
Numbered list, or None; the positive controls they name must equal control, which gates execution |
| Test Scenario | steps[].text |
Numbered list |
| Expected results | steps[].expect.text |
Numbered list; steps[].expect.codes (ACC, REJ, NOSTAT, ...) is what the controller evaluates |
| Comments | comments |
Paragraphs; left out when empty |
Shared wording lives in packages/core/src/wording.ts: the preconditions, the expected results (acc(), rej(), nostat(), fetched(), nofetch(), combined with all()), the scenario texts (scenario.credentialVariant(...), scenario.statusListToken(...), ...), the comments, and the format and flow texts. Step builders such as presentationStep.valid(...) return the scenario text together with the executable action, so a fault and its description are written in one place.
// packages/definitions/src/pid_provider/SecurityMechanisms/Revocation.ts (abridged): one function per format
defineTestCase({
id: 'RP_PP_SM_Revocation_004a_UF',
objective: 'Verify that the Relying Party does not use an expired Status List Token in JWT format.',
references: ['[Token Status List] section 5.1, 8.3' /* … */],
profile: [formats.sdJwtVc.profile, ics.checksPidRevocation],
relevancy: relevancy.genericRequired,
technology: [formats.sdJwtVc.technology, formats.sdJwtVc.statusListTechnology],
preconditions: [...preconditions.base, preconditions.control('RP_WS_IA_MainInteraction_001a'), preconditions.freshStatusList],
control: 'RP_WS_IA_MainInteraction_001a',
steps: [
// The fault names the scenario text ("…, except that its `exp` claim is set to …") and the executable action.
step({ ...presentationStep.statusListFault('status-list.exp-past'), expect: nostat() }),
],
comments: [comments.nostat, comments.flow],
});
The definitions are grouped by area (packages/definitions/src/<class>/<layer>/<Area>.ts); where the FCAF test cases of an objective differ only in the credential format or the flow, one function produces each variant, and the variant a later phase implements carries text only (steps without run). The controller executes only definitions whose steps all have an action.
packages/fcaf-render renders the whole overlay fcaf-overlay/docs/fcaf (pnpm fcaf:render): the test cases from the definitions, the overview, area and layer pages and baseline lists, the Relying Party ICS and defaults from packages/fcaf-render/pages, and the four modified FCAF pages from their unmodified originals in packages/fcaf-render/upstream (submitted at 0ed4ab1). pnpm test and CI fail when the committed overlay differs from the rendered one, and CI runs the patched FCAF lint (scripts/fcaf-lint.sh, fcaf-overlay/fcaf_lint-rp.patch) on the rendered output with every finding blocking. The Python generator this replaced was removed in Phase 1, after the port had reproduced its 121 test cases and 21 shared pages byte for byte.
4.3 Artifact forge and fault injection¶
Two layers:
- Builders create valid artifacts with the OWF libraries:
@sd-jwt/sd-jwt-vcand@sd-jwt/core,@owf/mdoc,@owf/token-status-list,@owf/x509,@owf/eudi-lotewith@owf/eudi-jades,@owf/eudi-access-certificate,@owf/eudi-registration-certificate,@owf/jose,@owf/cose. Trusted Lists (ETSI TS 119 612) are written as XML and signed withxadesjs, since@owf/eudi-tlonly parses and verifies them (section 4.7). - Faults are pure, named functions applied at one of six points. Where a library would refuse the faulty input, the fault works on the decoded structure and re-assembles JOSE or COSE directly (WebCrypto signing).
| Point | Faults in the baseline |
|---|---|
| Credential, before signing | exp/nbf shift; MSO validFrom/validUntil/expectedUpdate shift; issuer selection (any entity of the trust configuration); status reference removed, malformed (5 kinds) or out of range; identifier list reference |
| Credential, after signing | issuer signature bit flip |
| Response | JWE enc choice; alg key-wrap variants; enc CBC; target key foreign or of another transaction with copied kid; ciphertext or tag bit flip; epk off-curve or other curve; JWS or alg: none instead of JWE; unencrypted direct_post; unencrypted DC API data; extra payload member |
| Status List Token | signature bit flip; alg: none; bare list; exp shift; sub change; wrong typ/type; each required claim removed; signer from CA-X, without x5c, self-signed, under another entity's or list's anchor, the credential's own certificate, another certificate under the issuance CA, embedded root, expired or not yet valid; corrupt base64url or ZLIB; decompression bomb; bits = 3; status patterns for bits 1, 2, 4, 8; ES256K; HS256 / COSE_Mac0 keyed with the public key |
| Identifier list | contains or omits the identifier; signature bit flip; expired; signer from CA-X |
| Trust list | new version without an entity; new version with an added entity; from Phase 5 a new version of TL-PID with its seal bit flipped, sealed by CA-X, of the wrong LoTEType, with NextUpdate passed within or beyond the grace period G, or with a lower sequence number; TL-QEAA signed by CA-X |
| Credential (Phase 5, IssuerIntegrity) | SD-JWT VC: alg none or HS256, ES256K, no x5c, embedded root, self-signed signer, typ missing, JWT or vc+sd-jwt, foreign, modified or duplicate disclosure, duplicate digest, reserved or present claim name, wrong number of disclosure elements, _sd_alg MD5 or SHA-1, other vct, decoys, recursive disclosures; mdoc: changed elementValue, unknown digestID, MSO docType other than the document's, SHA-1 digests, other docType, embedded root, document signer without EKU, MSO signed after the document signer expired; both formats: signer expired or not yet valid, intermediate CA expired or missing, issuer without cA, P-192 or RSA-1024 key, unknown critical extension |
| Presentation (Phase 5) | KB-JWT nonce, aud (another Client Identifier, without prefix, the Client Identifier instead of the origin, another origin), iat past or future, signature bit flip, another key, missing, typ missing or JWT, sd_hash over other disclosures, alg: none, HS256 keyed with the public key, ES256K; SessionTranscript with another nonce, Client Identifier, response_uri, JWK thumbprint or origin; DeviceSignature bit flip, another key, missing deviceAuth, a device-signed element, ES256K; the presentation of an earlier transaction; credential without cnf or deviceKeyInfo, minimal cnf.jwk |
The request faults (Phase 5) are a seventh point used only by the self-validation: the harness checks the requests the Relying Party sends and never sends one itself, so a request fault changes a request of the reference Relying Party's form to prove that each request check fails alone.
Implementation (Phase 3). A response fault applies to both flows unless the catalogue names its flow: response.unencrypted posts form parameters to response_uri (redirects only), response.dc-api-unencrypted returns vp_token directly in the DC API data (DC API only, SessionEncryption_011). The other 12 response faults change the JWE (or replace it with a JWS or an unsecured JWT) in the same way in both flows; via the DC API the result is the response member of data. buildDcApiResponse builds the data object, buildAuthorizationResponse the form, and both refuse a fault of the other flow. The catalogue holds 93 faults.
Implementation (Phase 1). The catalogue FAULTS in packages/core/src/faults.ts names each fault with its point (credential, status-list, identifier-list, response) and format, the one check of the reference validator it must fail (null for a variant that must pass every check, such as credential.exp-within-skew or response.extra-member) and its FCAF wording, so a definition names a fault once and the scenario text follows from it. packages/forge/src/faults.ts implements the 52 SD-JWT VC, JWT and redirect faults of the table after a valid build: the issuer-signed JWT or the Status List Token is decoded, changed and signed again, or a signer from the test PKI replaces the valid one; responses are encrypted with the faulty parameters or changed after encryption. A step applies at most one fault. Issuer selection, the status value, the bits per status, the signer of a valid Status List Token and list changes are parameters of the step action (CredentialSpec.issuer, StatusListSpec, TrustListAction), not faults; the self-validation of the definitions covers them (section 7). forgePresentation builds a step's credential and Status List Token for the controller and the self-validation alike.
Implementation (Phase 5). The point presentation is the KB-JWT or DeviceAuth the Conformance Wallet builds for the request, so its faults need the request: they travel in the step's response.faults and are applied by buildPresentation (packages/forge/src/presentation.ts), which the wallet and the self-validation share. An SD-JWT VC is presented valid (from part 2 with the wallet's own disclosure selection) and its KB-JWT then decoded, changed and signed again with the holder key, or replaced; an mdoc's DeviceResponse is built with the faulty SessionTranscript input, another key or extra DeviceNameSpaces, or changed after signing. presentation.replay sends the vp_token entry the wallet presented in an earlier step (ResponseSpec.presentationOfStep) in an Authorization Response encrypted for the current transaction. The two ES256K faults bind the credential to a second wallet key on secp256k1 (FaultInfo.holderCurve): the forge issues the SD-JWT VC with that key in cnf.jwk and changes the mdoc's deviceKey to it after issuance, since @owf/mdoc refuses the curve, so the algorithm is the only difference. The catalogue holds 123 faults: 25 credential faults, 54 Status List Token faults, 3 identifier list faults, 27 presentation faults and 14 response faults.
Implementation (Phase 5, part 2). 47 credential faults of IssuerIntegrity. A signer fault (credential.signer-expired, mdoc.ds-no-eku, …) issues the credential with another certificate (packages/forge/src/signers.ts), so the chain is the only difference; a key fault (P-192, RSA-1024, ES256K) certifies a key the WebCrypto API does not generate under the issuer's anchor and signs the credential again with Node.js. The path faults with an intermediate CA need the entity PP-I on TL-PID, whose anchor allows one intermediate CA (CA-PP-I-INT) that issues its signers (FaultInfo.issuer). The Conformance Wallet selects the disclosures of an SD-JWT VC itself (selectDisclosures) instead of through @sd-jwt/sd-jwt-vc, which would drop or refuse a faulty disclosure: it leaves out the disclosures of top-level claims the request does not ask for and presents every other one as issued. For mdoc.mso-doctype-other the wallet gives the document the issued docType (ForgedCredential.documentDocType). 7 trust-list faults: buildTrustListVersion (packages/forge/src/trust-list-version.ts) builds the version of TL-PID or TL-QEAA a trust-list step publishes, with its added or removed entities, a withdrawn PID/Issuance service listed again (restoreIssuance), a QTSP service granted (grantQualified) and the fault; the harness and the self-validation share it. 21 request faults (packages/forge/src/request.ts, self-validation only). The catalogue holds 198 faults: 72 credential faults, 54 Status List Token faults, 3 identifier list faults, 27 presentation faults, 14 response faults, 7 trust-list faults and 21 request faults.
Implementation (data model, issue 30). 18 faults for RP_WS_DM_IdentifyingData and RP_WS_DM_CredentialMetadata. 16 are attribute variants of the PID (packages/forge/src/pid-variants.ts): forgePresentation issues the PID with other attributes instead of changing it afterwards, valid in every other respect (non-Latin-1 names with every mandatory attribute, only the requested attributes, a birthdate / birth_date that is an integer, nationalities / nationality as a string, the age-over attribute for 18 true or false, a structured address whose members are disclosable within it, a claim that no specification defines and that is not selectively disclosable). A variant names the default query it is presented for (FaultInfo.query): the data model variants of default_query_pid request every mandatory attribute, the age-over attribute for 18 without and with the values constraint true, or three members of address. issueRegistrationCertificate lists them like every default query, so request.unregistered-claim now requests email / email_address. The 2 presentation faults change what the Conformance Wallet discloses, in both formats: family_name left out, or place_of_birth and nationalities / nationality disclosed without being requested. The wallet now discloses only the requested members of a structured claim that the request names by its members (selectDisclosures with the claim paths). The catalogue holds 222 faults with the 6 of issue 29.
Implementation (UC_Presentation, 2026-11-19). Combined presentations: a presentation step names the credential query its credential answers (PresentationAction.answers) and further credentials presented in the same Authorization Response, each with its credential query and status list (alongside). forgePresentations forges them all and buildVpToken (packages/forge/src/combined.ts) builds the vp_token with one presentation per credential under the id of its query, for the Conformance Wallet and the self-validation alike; a presentation fault applies to the step's own credential. 4 faults at the new point vp-token change the vp_token and leave every presentation valid: the entry of the step's credential left out, an extra entry x for no credential query, two presentations for a query without multiple, and one DeviceResponse with both mdocs as the entry of both queries. The reference validator checks the vp_token as a whole before its presentations (vp-token: known ids, one presentation unless multiple, every required credential query or credential set satisfied, one document per DeviceResponse) and, after them, the identifying attributes of the presented credentials (combined-binding, attribute-based binding); a vp_token that fails vp-token is rejected without validating its presentations (OpenID4VP 1.0 section 8.6). Each credential is validated under the root of trust of its own credential query (categoryOfCredentialQuery). The catalogue holds 226 faults with the 22 of issues 29 and 30.
Implementation (partial matches, issue 10). Further stimuli in rows that already had stimuli, one fault each, built from the valid artifact: 7 credential faults (the valid ES256 signature DER-encoded for the Issuer-signed JWT and for IssuerAuth, a disclosure with four elements, a repeated alg label in the protected header of IssuerAuth, an MSO without tag 24, an IssuerSignedItem encoded again in other bytes, a value digest cut to 20 bytes) and 9 presentation faults (a KB-JWT without aud, with aud as an array, or without nonce; a SessionTranscript with the Client Identifier without its prefix, with a null JWK thumbprint, or with the Origin written with origin:; a device signature over another docType, with its payload attached, or an empty deviceAuth). The self-validation also shows for the faults that change a signature or a structure that the rest of the artifact is what the valid one is. The reference validator rejects a repeated label in the protected header of IssuerAuth as malformed in its format check (RFC 9052 section 3), which it did not before. Two further stimuli of that mapping, NaN in the KB-JWT payload and an HTML page with HTTP 503 at the status endpoint, were already there with issue 32 (presentation.kb-payload-nan, the status endpoint behaviour).
Implementation (vectors without a counterpart row, issue 10). 14 test cases, one fault each, built from the valid artifact: 10 credential faults (an Issuer-signed JWT or an IssuerAuth whose crit names a header parameter the validator does not understand; exp or iss moved into a disclosure; a signing certificate under the right anchor that names another issuer's URI, only another host, or another issuer's URI beside the host of iss; a device key with key type OKP on curve P-256; IssuerAuth declaring ES384 or ESP384 over a SHA-384 signature of the P-256 document signer key) and 4 presentation faults (a KB-JWT whose crit names an unknown header parameter, or whose exp is a string; a SessionTranscript with the handover of the other flow, in each flow). The checks are logic inside existing check IDs, as for the repeated IssuerAuth label: issuer-signature refuses an unknown crit entry (RFC 7515 section 4.1.11; for IssuerAuth the validator's choice, since no sentence of RFC 9052 requires the refusal) and an IssuerAuth algorithm whose curve is not that of the document signer key; disclosures refuses a disclosure of a claim SD-JWT VC section 2.2.2.2 keeps out of disclosures; issuer-trust refuses, with ICS RP.P.13, a signing certificate that does not name iss (a URI subject alternative name equal to iss, or with no URI a DNS name equal to its host; a credential without iss is not checked); key-binding refuses an unknown KB-JWT crit entry, a device key whose key type and curve do not belong together (RFC 9053 section 7.1) and a device signature over the handover of the other flow, which it names; kb-freshness refuses an exp that is not a NumericDate (RFC 7519 section 4.1.4). Four of the rows are POLICY: RP_WS_SM_IssuerIntegrity_038_UF to _040_UF behind RP.P.13 and _041_UF (ES384, a polymorphic identifier) behind RP.P.14; _042_UF (ESP384, fully specified) is REJ. Three are INFO: RP_WS_SM_IssuerIntegrity_017_UF and _018_UF, since the MUST NOT of SD-JWT VC section 2.2.2.2 binds the Issuer and no sentence of SD-JWT VC draft-16 or RFC 9901 requires the RP to refuse, and _029_UF, since no sentence of RFC 9052 says what a recipient does with a listed header parameter it does not understand (ISO/IEC 18013-5 was not verified). The wallet presents a disclosure of a registered claim as it is, as it presents one with a reserved name. The foreign signing certificates of the SD-JWT VC signer faults now name the issuer as the valid one does, so those faults keep failing only issuer-signature.
Implementation (Phase 2). @owf/mdoc issues the PID in mdoc format (doctype and namespace eu.europa.ec.eudi.pid.1): one IssuerSignedItem per attribute (birth_date and expiry_date as full-date), an MSO with SHA-256 value digests, validityInfo (signed two days ago, valid for 30 days; for default_credential_pid_short an hour ago, valid for 12 hours), deviceKeyInfo and status, in a COSE_Sign1 IssuerAuth with the document signer certificate in the unprotected x5chain. @owf/token-status-list builds the Status List Token in CWT format, and @owf/mdoc the identifier list (ISO/IEC 18013-5 second edition section 12.3.6.4, application/identifierlist+cwt), each a tagged COSE_Sign1 with typ and x5chain in the protected header. An mdoc references either a status list (status_list, uri, idx) or, in the identifier list test cases, only an identifier list (identifier_list, uri, a random 16-byte id). packages/forge/src/faults-cose.ts implements the 40 faults of the mdoc, the CWT and the identifier list: it decodes the valid artifact as raw CBOR with cborg, which keeps every tag and map as it is (the global cbor-x extensions of @owf/cose would decode a tag 18 into a validated object), changes it, and signs the COSE structure again. The 92 faults are 11 SD-JWT VC and 11 mdoc credential faults, 28 JWT and 26 CWT Status List Token faults, 3 identifier list faults and 13 response faults. Two CWT faults differ from their JWT counterparts: status-list-cwt.mac0-public-key is a COSE_Mac0 (HMAC 256/256) keyed with the DER SubjectPublicKeyInfo of the signer certificate, and the CWT test cases have no alg: none and no base64url fault, as the FCAF text defines them.
4.4 Test PKI and trust configuration¶
A builder creates all entities of default_trust_configuration_rp from a seed: CAs, issuance and revocation anchors, signing certificates, the expired anchor of PP-E, CA-X, the RP's access certificate (AC-A) and registration certificate (RC-A), and the harness TLS CA. Material is generated per run by default; a fixed seed reproduces a run exactly. The RP adapter receives the scheme operator certificates, the access certificate with its key, and the registration certificate.
Implementation (Phase 4). The QTSPs QP-A, QP-N and QP-W of TL-QEAA and the rulebook entity EP-A have the same anchors and signers as the PID Providers; CA-EP-A is on no list, and the environment hands it to the adapter as the anchor of the rulebook of default_credential_eaa (TestEnvironment.rulebooks). The LOTL and TL-QEAA are signed by certificates in the profile of ETSI TS 119 612 clause 5.7.1: self-signed, country and organization equal to the scheme territory (EU, DE) and the scheme operator name, keyUsage digitalSignature, the extended key usage id-tsl-kp-tslSigning, a subject key identifier, cA false. The adapter receives the LOTL's location and signing certificate (TestEnvironment.listOfTrustedLists), the test counterpart of their publication in the Official Journal.
The anchors follow the IACA root profile of ISO/IEC 18013-5 Annex B (Table B.1): basicConstraints CA with path length 0 and keyUsage keyCertSign and cRLSign, both critical, a subject key identifier, an issuer alternative name, a CRL distribution point and the country in the subject. Each entity has three end-entity certificates: the SD-JWT VC signer and the mdoc document signer (Table B.3: keyUsage digitalSignature and the extended key usage 1.0.18013.5.1.2, both critical, at most 457 days) under its issuance anchor, and the status list signer under its revocation anchor. The same anchors serve both formats, so TL-PID is the same for SD-JWT VC and mdoc.
4.5 Conformance Wallet¶
- Redirects: fetches
request_uri(GET, or POST whenrequest_uri_method=post), verifies the request signature andx509_hashclient identifier againstTL-AC, readsclient_metadata, builds the presentation (KB-JWT or DeviceResponse with the OpenID4VP handover), encrypts, posts toresponse_uri, and followsredirect_uriin the same browser session unless the step says otherwise. - mdoc (Phase 2): the DeviceResponse carries one document with the requested
IssuerSignedItems as issued, an emptyDeviceNameSpacesand a device signature (ES256, detached) overDeviceAuthenticationBytes. The SessionTranscript is the one of OpenID4VP 1.0 Appendix B.2.6.1, computed with@owf/mdoc:OpenID4VPHandoveroverclient_id,nonce, the JWK SHA-256 thumbprint of the Relying Party's encryption key andresponse_uri. The wallet assembles the DeviceResponse as raw CBOR, so anIssuerSignedthe fault layer changed reaches the Relying Party exactly as changed; thevp_tokenentry is the base64url DeviceResponse. - Presentation faults (Phase 5):
buildPresentationof the forge builds the KB-JWT or DeviceResponse with the step's presentation fault (section 4.3); the wallet passes it the request'snonce, audience,client_id, handover and encryption key thumbprint, andT_skewandT_kbfrom the ICS. It keeps thevp_tokenentry of every step of a test case, so a later step can replay it. - Request findings: the wallet records every deviation of the request from OpenID4VP and HAIP; they gate the positive controls. From Phase 5 the wallet also captures every request raw (
PresentationEvidence.captured: the invocation URI and the answer atrequest_uri, or the DC API protocol,dataand Origin), and the request checks of the reference validator turn it into verdicts in theMS_*andRpIntegritytest cases. - DC API shim: Playwright opens the RP page with an init script that replaces
navigator.credentials.get. The script forwards the request to the Conformance Wallet and resolves with its response, keeping the page's real origin, soexpected_originsand theorigin:audience behave as in a browser. The platform's credential selection is not tested. - DC API (Phase 3, OpenID4VP 1.0 Appendix A, HAIP 1.0 section 5.2).
packages/dc-api-shimlaunches Chromium (headless shell, Playwright 1.64.1) once per run and opens each page in a new browser context. The init script answersnavigator.credentials.get({ digital: { requests } })through an exposed binding, so the Origin the wallet receives is that of the calling frame as the browser serialises it, not a value the page supplies; other credential types still reach the original method, andDigitalCredential.userAgentAllowsProtocolaccepts theopenid4vp-v1-*identifiers. The page's promise resolves with aDigitalCredential(protocol,data), is rejected, or stays pending when the step sends no response (SessionEncryption_005, T1). The shim logs every request of the page and finds the one that forwards the response to the RP's backend by the JWE (or, unencrypted, the presentation up to its first~) in its body: its HTTP status is the RP's answer to the Authorization Response. - Wallet side of the DC API. The wallet takes the first request whose protocol it supports:
openid4vp-v1-signed(request object indata.request, verified like a redirect request,expected_originsmust name the page's Origin),openid4vp-v1-multisigned(JWS in general JSON serialization; it uses the first signature by a signer underTL-ACand takesclient_idandverifier_infofrom its protected header, Appendix A.3.2.2) oropenid4vp-v1-unsigned(the parameters themselves; a warning finding records that the RP is not authenticated). It requiresresponse_modedc_api.jwt. The KB-JWTaudisorigin:<origin>, also for signed requests (A.4), and an mdoc's SessionTranscript carriesOpenID4VPDCAPIHandoverover[origin, nonce, jwkThumbprint]with the origin without prefix (B.2.6.2). The response payload has nostate;datais{ "response": "<JWE>" }. A request the wallet refuses is answered withdata{ "error": "invalid_request" }(A.4). - Flow behaviour (issue 29,
RP_WS_IA_EngagementandRP_WS_IA_ProtocolFlow, catalogue scenario SCN-F). The wallet retrievesrequest_uriwith GET, as a wallet withoutrequest_uri_methodpostsupport does, even when the invocation offerspost. A request step can retrieve it a second time (RequestAction.requestUritwice) or with POST,wallet_metadataand a freshwallet_nonce(post); the captured request then carriesrefetchorwalletNonce, which the request checksrequest-uri-refetchandwallet-nonceread, next toinvocation-schemeandrequest-uri-content-type(4 request faults prove them). A presentation step can leave theredirect_uriunopened (wallet.redirectnone) or send the response only after the transaction lifetimeT_tx(wallet.late, ICS RP.P.7; via the DC API the shim waits that long for the answer). Two step kinds are new:error-response(an unencrypted Authorization Error Response via redirects, an error object indatavia the DC API) andflow, which continues the transaction of an earlier step: itsrequest_uriagain or that of an unknown transaction (every part in which therequest_uris of two transactions differ replaced by a random value of the same form), its Authorization Response again, or the Relying Party's front end (RelyingPartyAdapter.frontEnd, ICS RP.P.9) without the redirect, with itsredirect_uriin the user agent that started the transaction or in a fresh one, or with a forged response code. Their expected results (REDIRECT,RELEASED,WITHHELD,REQUEST_REFUSED,ERROR_ACK,RESEND_REJ) are evaluated inpackages/controller/src/flow.ts. The reference Relying Party returns aredirect_uriwith a 256-bitresponse_codethat its front end (/done/<id>) releases once to the user agent with the session cookie of the transaction's start, answers POST atrequest_uriwith thewallet_noncein a request object signed again, serves no request object for a finished or expired transaction, ends a transaction on a wallet error response (HTTP 200), and rejects responses afterT_tx.
The Conformance Wallet starts from EUDIPLO's headless E2E wallet (apps/client/e2e/support/wallet.ts), which already answers signed OpenID4VP requests with direct_post.jwt using @openid4vc/openid4vp and @sd-jwt/sd-jwt-vc.
4.6 Test Status Provider¶
- Each issued credential gets a unique status URL (
https://status.rp-test/<run>/<uuid>), so the RP's cache never masks a fault and the request log maps to exactly one test step. - Per URL it serves a registered artifact with programmable behaviour: status code, content type, latency, timeout, redirect.
- The log (time, URL, headers) is part of the evidence.
NOFETCHpasses when no request for the step's URL appears between the step's start and the verdict;FETCHEDwhen at least one does.
4.7 Test Trust Infrastructure¶
- Serves
TL-PID,TL-PUB,TL-WP,TL-AC,TL-RCas JAdES-sealed LoTEs, and a test LOTL with a national Trusted List forTL-QEAA. - Lists live under a namespace (
https://trust.rp-test/<namespace>/…) and are versioned; a step can publish a new version and wait until the log shows the RP retrieved it, or call the adapter's refresh hook. - Trusted Lists are XML with XAdES signatures; the OWF
eudi-tlpackage only parses and verifies them, so creation needs an XAdES library (§10). - Implementation (Phase 5). A trust-list step publishes a version of
TL-PIDorTL-QEAA(TL-QEAA.xml) built bybuildTrustListVersion; sequence numbers count up across the lists of a run, and a rolled back version is one below the latest version of its list. A version with a fault leaves the entities of the version in use unchanged, and the runner restores every changed list after the test case. - Implementation (Phase 4).
packages/forge/src/trusted-list.tswrites the test LOTL (TSLTypeEUlistofthelists) andTL-QEAA(EUgeneric, scheme territoryDE) in ETSI TS 119 612 V2.4.1 format, published asLOTL.xmlandTL-QEAA.xmlwith the media typeapplication/vnd.etsi.tsl+xml. The LOTL points toTL-QEAAand to itself,TL-QEAAback to the LOTL, each pointer with the certificate that signs the list it points to,TSLType, scheme operator name, scheme rules, territory and MIME type.QP-Ahas a granted service of typehttp://uri.etsi.org/TrstSvc/Svctype/EAA/Q(issuance of QEAAs),QP-None of type.../Svctype/EAA(not qualified,recognisedatnationallevel),QP-WanEAA/Qservice withdrawn ten days ago with its granted status in the service history; every service status starts before the attestations are signed. TS 119 612 defines no service type for the status of attestations, so a QTSP signs its status lists under the anchor of itsEAA/Qservice (default_trust_configuration_rpsays so). xadesjs signs each list with an enveloped XAdES-B-B signature as Annex B requires: one reference to the whole list (URI="") with the enveloped-signature and exclusive canonicalization transforms, exclusive canonicalization ofSignedInfo, ECDSA with SHA-256, the signer certificate alone inKeyInfo, and the signed propertiesSigningTime,SigningCertificateV2andDataObjectFormat. Both lists validate against the TS 119 612 V2.4.1 XML schema (checked withxmllintwhen the builder was written; the schema is not part of the repository). Onexpathversion is forced (overridesinpnpm-workspace.yaml): xmldsigjs and@owf/eudi-tlask for different ones, and two copies ofxml-corewould keep the DOM implementation xadesjs registers from reaching xmldsigjs.
4.8 RP adapter¶
// Illustrative, not final API.
interface RelyingPartyAdapter {
name: string;
/** Configure the RP: trust anchors, access and registration certificate, default queries. */
setUp(env: TestEnvironment, namespace: string): Promise<void>;
startPresentation(req: {
query: DefaultQueryId;
flow: 'redirect' | 'dc-api';
namespace: string;
}): Promise<{ transactionId: string; invocation: { uri: string } | { dcApiPage: string } }>;
readResult(transactionId: string, timeoutMs: number): Promise<{
outcome: 'success' | 'failure' | 'pending';
releasedAttributes?: Record<string, unknown>;
flags?: string[]; // for example 'status-unknown', 'trust-list-stale'
raw: unknown; // kept as evidence
}>;
/** Optional: make the RP fetch its trust lists now instead of waiting T_refresh. */
refreshTrust?(namespace: string): Promise<void>;
}
Adapters planned:
| Adapter | How |
|---|---|
| EUDIPLO | One tenant per namespace. setUp imports the access key chain, registration certificate, presentation configs for the default queries and the trust list URLs through the management API. startPresentation calls POST /verifier/offer with response_type uri (redirects) or dc-api with expected_origin, passing skewSeconds from the ICS and optionally a webhook. EUDIPLO has no page of its own for the DC API, so for that flow the adapter serves a minimal relying-party page on its own origin: it passes the returned request to navigator.credentials.get (answered by the shim) and posts the result to POST /presentations/:sessionId/oid4vp. readResult reads GET /session/:id: status completed is success with the attributes from credentials, failed is failure, active and fetched are pending. EUDIPLO needs OUTBOUND_URL_ALLOW_PRIVATE_NETWORK or OUTBOUND_URL_ALLOWED_HOSTS for the harness hosts. The page passes the signed request object EUDIPLO stores for the session (GET /api/session/:id, else its request_uri); EUDIPLO answers the page's cross-origin request because its wallet-facing endpoints allow every origin. Each presentation configuration trusts the root of its credential's category; adapters/eudiplo/README.md describes that configuration and which EUDIPLO versions read Trusted Lists. describe reports GET /api/version. |
| Reference RP | In-process (adapters/reference). Via the DC API it signs a request object with response_mode dc_api.jwt and expected_origins naming its own origin, without response_uri and state, and serves /dc-api/<id>: a page that passes the request to navigator.credentials.get (openid4vp-v1-signed) and posts protocol and data to its backend, which validates with the audience origin:<origin> and the DC API handover. |
| Webhook | For RPs that push their result: the harness exposes an endpoint and matches results by transaction. |
| Manual | Prints the invocation and asks the tester for the outcome; every verdict becomes REVIEW. |
4.9 OIDF bridge¶
For the 16 objectives the OIDF verifier suite already covers, the controller can run the OIDF module instead of its own steps and map the result to the FCAF verdict. EUDIPLO's apps/backend/test/oidf already drives the suite through its API and is the starting point. The bridge is optional: the harness also implements those objectives itself, so it does not depend on the OIDF suite being available.
5. Verdict and evidence¶
Expected-result codes from the catalogue map to checks:
| Code | Check |
|---|---|
ACC |
outcome = success and the released attributes equal the requested ones with the issued values |
REJ |
outcome = failure, or HTTP 4xx at response_uri; never HTTP 5xx; no released attributes |
NOFETCH / FETCHED |
Test Status Provider log for the step's URL |
REJ_OR_ACC |
REJ, or ACC with the issuer-signed values: a Relying Party may reject a device-signed element the MSO does not authorise, or ignore it (DeviceBinding_011) |
NOSTAT |
REJ for PIDs; for other categories the ICS policy, and status-unknown in flags when accepted |
POLICY |
Compared with the ICS declaration the expectation names: for an application-specific status value RP.R.3 (None: REJ; 0x03=valid: ACC; 0x03=invalid: REJ; other text: REVIEW) |
LIST_RETRIEVED |
Test Trust Infrastructure log: a retrieval of the published version; checked after the wait and once more after the next step, for Relying Parties that fetch lists only when they need them |
ENC_KEY |
The request of a started transaction carries an encryption key in client_metadata |
STALE |
trust-list-stale in flags: the RP accepted with a trust list it uses within the grace period G after its NextUpdate (RP_Inf_SM_TrustMechanisms_004, with ACC) |
CONF |
The captured requests pass every request check the expected result names; a check that does not apply (no state) passes, one not evaluated because a check it requires failed fails |
A credential's category follows from the default query of the step (categoryOfQuery): NOSTAT rejects a PID and applies RP.R.2 to the other categories. Via the DC API the Authorization Response counts as delivered when it reached the RP's page; the HTTP status for ACC and REJ is that of the request in which the page forwarded it (rpResponse.endpoint dc-api-forward), when the shim saw one. A step's verdict is the worst of its codes (FAIL, INCONCLUSIVE, REVIEW, PASS); a test case's verdict the worst of its steps. A step the harness cannot execute is INCONCLUSIVE, except when the Relying Party answered earlier in the same test case and then stops answering (connection refused or reset): that step is FAIL, since the Relying Party did not stay available (RP_PP_SM_Revocation_016). The test cases after it stay INCONCLUSIVE. The JUnit XML has one test suite per flow, one test case per FCAF test case, FAIL as a failure, INCONCLUSIVE and REVIEW as errors, NOT APPLICABLE as skipped, and the adapter's description of the RP (for EUDIPLO the version and commit of GET /api/version) as properties. A FAIL listed in the adapter's known findings (--known-findings) keeps its verdict and is marked known-finding in every report; the CLI then exits with 1 only for another FAIL, an INCONCLUSIVE or REVIEW result, or a run error. The test book items (RP_TB, catalogue section 5.4; definition kind TestBookItem in packages/core/src/definition.ts) are inspections: every run lists the selected items (--only selects them like test cases, --list shows them) in a section of their own, testBook in report.json, "Test book" in summary.md and a test suite <adapter> test book in the JUnit XML, each REVIEW with its method. In the JUnit XML they are skipped with the message REVIEW: <method>, not errors, and they never fail a run, also not with --known-findings.
Each test case produces a record like this, collected into JSON, JUnit XML and a markdown summary:
{
"testCase": "RP_PP_SM_Revocation_004a_UF",
"flow": "redirect",
"verdict": "PASS",
"control": { "id": "RP_WS_IA_MainInteraction_001a", "verdict": "PASS" },
"steps": [{
"expected": "NOSTAT",
"fault": "statusList.expiredBy(T_skew+1h)",
"rpResponse": { "endpoint": "response_uri", "status": 400 },
"rpResult": { "outcome": "failure" },
"statusLog": [{ "url": "https://status.rp-test/r1/6f1c…", "at": "2026-11-06T10:14:03Z" }],
"artifacts": ["credential.sd-jwt", "status-list.jwt", "response.jwe"],
"verdict": "PASS"
}]
}
6. Isolation, determinism and parallelism¶
- Every step uses newly issued credentials with unique status URLs, so the RP's status cache needs no reset.
- Trust state is per namespace. With an adapter that maps namespaces to tenants (EUDIPLO), trust-changing test cases could run in parallel; the controller runs one namespace per run, so with
--concurrencyabove 1 they run serially at the end of the run and restore the lists, while the other test cases (each with its own credentials and status URLs) run up tonat a time. A test case waits for its positive control in the same flow; the report keeps definition order. What the test cases share is safe for that: the Conformance Wallet keeps no state between presentations, the Test Status Provider serves and logs per URL, and the DC API shim opens a browser context of its own for every page in one Chromium. - Time faults are computed from the RP's declared
T_skewandT_kbplus one hour, so clock jitter never decides a verdict; the harness checks its own clock against NTP at start. T_refreshcan be long; the adapter's refresh hook avoids waiting it out.
7. Harness self-validation¶
A wrong fault produces a false PASS, so every fault is tested before it is used against an RP:
- A reference validator built from the same OWF libraries checks the unmutated artifact and must report no failure.
- The mutated artifact must fail the targeted check and only that check (for example,
expin the past must fail the validity check but still pass the signature and digest checks). - The harness runs the whole baseline against a reference RP built from that validator in CI. Every test case must PASS there, which also proves each positive control is reachable.
Implementation (Phases 1 to 5). The reference validator (packages/validator) evaluates each named check on its own: 9 credential checks (format, issuer-trust, trusted-authorities, issuer-signature, disclosures, validity, key-binding, kb-freshness, status-reference), 11 Status List Token checks (status-list-fetch to status, the same for JWT and CWT), 9 identifier list checks (identifier-list-fetch to identifier-status), 7 response checks (response-encrypted to response-payload), 5 trust-list checks (trust-list-signer, -signature, -type, -freshness, -sequence) and 20 request checks (signed-request to registered-attributes, REQUEST_CHECKS). Phase 5 moved two checks: the signing algorithm and key of the issuer are part of issuer-signature (ES256 with a P-256 key), and _sd_alg and the MSO digestAlgorithm part of disclosures, which processes the disclosures itself: their form, digests that occur twice, reserved or present claim names, and unreferenced disclosures (packages/validator/src/disclosures.ts). The path validation rejects unknown critical extensions, and issuer-trust of an mdoc an MSO signed outside the validity of its document signer. The TrustStore checks every new version of a list (checkLote, checkTrustedList) and keeps the last valid version in use until its NextUpdate plus the grace period G (ICS RP.T.2); within G a list is used and a match reports it stale, and a version with a lower sequence number than the one in use is refused. The request checks use @owf/eudi-access-certificate for the access certificate profile and @owf/eudi-registration-certificate for the registration certificate and the requested attributes (checkOverAsking). For an mdoc it runs 8 of the credential checks: disclosures compares the presented IssuerSignedItems with the value digests of the MSO, key-binding verifies the DeviceAuth over its own SessionTranscript, issuer-trust also requires the document signer's extended key usage, and kb-freshness does not apply. key-binding covers device binding and session binding together: for an SD-JWT VC a KB-JWT is present, of type kb+jwt, signed with ES256 by the P-256 key in cnf.jwk, with the sd_hash of the presentation and the request's audience and nonce; for an mdoc a deviceAuth with a detached ES256 deviceSignature by the MSO's deviceKey over the SessionTranscript of this request and an empty DeviceNameSpaces. A missing KB-JWT, deviceAuth or deviceKeyInfo fails key-binding, not format, and kb-freshness runs only after key-binding passed (Phase 5). It decodes mdocs, CWTs and identifier lists as raw CBOR and uses nothing of @owf/mdoc; mdoc-interop.test.ts cross-checks the harness's mdoc artifacts with the verifiers of @owf/mdoc and @owf/token-status-list instead. issuer-trust and the trust of status lists follow the credential's category (TRUST_RULES, Phase 4): a PID/Issuance service of TL-PID with status lists under the PID/Revocation service of the same entity; a granted EAA/Q service of a Member State list reached through the LOTL, verified with @owf/eudi-tl, with status lists under the same anchor; a PubEAA/Issuance service of TL-PUB that is not withdrawn, with status lists under its PubEAA/Revocation service; the rulebook anchor for a non-qualified EAA. A check is pass, fail, or skip when a check it depends on did not pass. In first-failure mode, which the reference RP uses, validation stops at the first failure, and status list checks run only for an otherwise valid credential (Token Status List section 8.3); in all mode every check runs. pnpm test proves:
packages/validator/test/faults.test.ts: the valid SD-JWT VC presentation passes all 27 checks, the valid mdoc presentations all 26 (status list) or 24 (identifier list) checks, both also via the DC API (dc_api.jwt, audienceorigin:<origin>, DC API handover), each of the 188 credential, status, presentation and response faults fails exactly its target check and no other inallmode, and the 12 response faults and 27 presentation faults of both flows do so via the DC API too. The 38 faults that failkey-bindingorkb-freshnessand the 50 faults of IssuerIntegrity must also give their own reason, so a fault that broke a signature by accident cannot pass for one that changed thenonce; the twoES256Kfaults verify with the secp256k1 key the credential is bound to. Each of the 7 trust-list faults is refused for exactly its target check, the version in use stays, and the entity the faulty version adds stays untrusted (stale-within-graceis used and reported stale). Valid requests of the reference Relying Party's form pass every request check that applies in their flow, and each of the 21 request faults fails exactly its target check in each flow it applies to;packages/validator/test/definitions.test.ts: every step of every executable definition, built as the controller builds it in each flow the test case runs in and with the trust list changes of earlier steps applied, passes every check when the step expects acceptance and fails exactly one check (its fault's target, where it has a fault) when it expects rejection; a trust-list step's version is refused exactly for its fault's target;STALEis expected exactly where the validator reports a stale list; the requests of a request step pass every check;packages/validator/test/mdoc-interop.test.ts: the reference validator's SessionTranscript equals that of@owf/mdocfor both handovers, with and without encryption key;packages/validator/test/trusted-list.test.ts:@owf/eudi-tlverifies the LOTL with its configured signing certificate andTL-QEAAwith the certificate of the LOTL pointer and finds the three QTSPs with their service types and statuses; both signatures have the structure of TS 119 612 Annex B and the signer certificates the profile of clause 5.7.1; a changed list, a list signed by another key and a list whoseNextUpdatehas passed are not used; only the grantedEAA/Qservice ofQP-Ais trusted for QEAAs, and onlyCA-EP-Afor non-qualified EAAs;packages/controller/test/reference-run.test.ts: every executable test case passes against the reference RP in every flow it runs in (890 runs: 451 via redirects, 439 via the DC API).
Implementation (data model, issue 30). A tenth credential check, claims (packages/validator/src/claims.ts), runs after status-reference and before the status list checks: every claim the credential query requests is disclosed (OpenID4VP sections 6.4 and 8.6) and has a value its values member allows (section 6.3), and the disclosed attributes of a PID have the data types of the PID rulebook (strings, YYYY-MM-DD dates, an array of nationalities, objects for the place of birth and the address, booleans for age-over; for an mdoc on the raw CBOR, so a full-date needs tag 1004). The reference Relying Party passes the claims of its query. The expected result REJ_OR_INVALID (IdentifyingData_004) passes a rejection as REJ and an acceptance only with attribute-invalid in the verification result's flags; REJ_OR_ACC with a fault without target (CredentialMetadata_001) takes the accepting branch in the self-validation, since the extra disclosures pass every check and the reference Relying Party releases only the requested attributes.
8. Deployment and CI¶
docker compose upstarts the harness services and, for EUDIPLO runs, the EUDIPLO image with PostgreSQL. The RP under test trusts the harness TLS CA and allows the harness hosts.- CI installs Playwright's Chromium headless shell so that the reference run covers the DC API flow.
- A nightly GitHub Actions job (
.github/workflows/nightly-eudiplo.yml) runs against EUDIPLO's latest main image. The harness lives outside eudiplo's CI; eudiplo only triggers it on image publication. running.md describes the CLI, the job and when it fails.
9. Reuse¶
| Source | Used for |
|---|---|
OWF identity-common-ts (@owf/*, @sd-jwt/*, @openid4vc/*) |
Builders, reference validator, OpenID4VP wallet side |
test-trust-lists (BMI GitLab) |
LoTE generation and JAdES sealing patterns |
EUDIPLO apps/client/e2e/support/wallet.ts |
Starting point for the Conformance Wallet |
EUDIPLO apps/backend/test/oidf |
OIDF bridge |
10. Gaps and risks¶
| Item | Impact | Mitigation |
|---|---|---|
| No Trusted List (ETSI TS 119 612) creation in the OWF libraries | TrustMechanisms_010, _011 (QEAA) |
Done in Phase 4: XML written by the forge, XAdES signing with xadesjs, accepted by @owf/eudi-tl |
| Relying Parties that read no ETSI TS 119 612 Trusted List (EUDIPLO up to 9.1.0) | QEAA test cases NOT APPLICABLE | The ICS declares RP.G.3 No; the gap is reported against [ARF] Annex 2, OIA_13 and OIA_15b |
| Strict libraries refuse to build invalid artifacts | Fault injection | Direct JOSE/COSE assembly in the fault layer (§4.3) |
| A fault that breaks more than intended | False PASS | Self-validation (§7) |
| RP outbound URL restrictions | RP cannot reach status or trust lists; tests fail for the wrong reason | Adapter configures allowed hosts; positive controls catch it |
| RPs without a machine-readable verdict | No automation | Manual adapter with REVIEW verdicts |
T_refresh of hours |
Slow trust tests | Adapter refresh hook |
| DC API shim instead of the real platform | Platform behaviour untested (credential selection, the browser's own checks of the request) | Out of scope; documented. The shim runs in a real Chromium, so the page's origin, CORS and its network requests are the browser's |
| ISO/IEC 18013-5 second edition still a draft | Identifier list and MSO status structures may change | Pinned to the version @owf/mdoc implements (0.9.3), recorded in every report with @owf/cose and cborg |
11. Delivery phases¶
| Phase | Content | Baseline test cases enabled |
|---|---|---|
| 0 | Repository, controller skeleton, test PKI, Test Status Provider, Test Trust Infrastructure (LoTE), Conformance Wallet for SD-JWT VC via redirects, EUDIPLO adapter, reference RP, self-validation | Positive control RP_WS_IA_MainInteraction_001a |
| 1 | SD-JWT VC faults, Status List Tokens in JWT, response encryption via redirects; the TypeScript renderer replaces the Python generator (section 4.2) | 53 (a variants of Validity, Revocation, RP_PP_SM_Revocation, PID TrustMechanisms, SessionEncryption via redirects), including the control. Done. ETSI TS 119 602 Annex D gives a PID Providers list no ServiceStatus, so TL-PID expresses the withdrawn PID/Issuance service of PP-W (TrustMechanisms_006a) by listing only its PID/Revocation service. TrustMechanisms_002a uses the PKI of QP-A; TL-QEAA is published from Phase 4 |
| 2 | mdoc: MSO, COSE, Status List Tokens in CWT, identifier lists | 45 (b variants and mdoc-only test cases). Done. The anchors follow the IACA profile and the mdoc signers the DS profile of ISO/IEC 18013-5 Annex B (section 4.4). An mdoc of the identifier list test cases references only its identifier list. TrustMechanisms_004b signs with a DS certificate issued under CA-PP-A-REV, so the anchor is the only difference |
| 3 | DC API shim | 11 (SessionEncryption via the DC API), plus every earlier test case repeated per flow. Done. The shim keeps the page's real origin; the wallet answers signed, multi-signed and unsigned requests with dc_api.jwt; the reference RP and the EUDIPLO adapter each serve a page of their own (sections 4.5, 4.8) |
| 4 | QEAA (Trusted List XML), PuB-EAA, non-qualified EAA; nightly CI | 12 (TrustMechanisms_010–_015). Done. The forge writes and signs the LOTL and TL-QEAA (section 4.7); default_credential_A is issued as QEAA by QP-A, as PuB-EAA by PB-A and as non-qualified EAA by EP-A under its rulebook anchor; the default queries default_query_qeaa, _pubeaa and _eaa exist in both formats. The OIDF bridge (section 4.9) stays optional and is not part of this phase |
| 5 | Remaining catalogue areas (SessionBinding, DeviceBinding, IssuerIntegrity, RP_Inf, request-side checks) |
Beyond the baseline. Done. Part 1: SessionBinding (10) and DeviceBinding (15) with the fault point presentation (27 faults) and the expected result REJ_OR_ACC. Part 2: IssuerIntegrity (38) with 47 credential faults and the entity PP-I with an intermediate CA; RP_Inf_SM_TrustMechanisms (9) with the fault point trust-list (7 faults), a TrustStore that keeps the last valid list and uses a stale one within the grace period, the expected result STALE and the ICS item RP.T.3; the request-side checks (MS_ProtocolMessages 5, MS_Metadata 5, MS_CredentialFormats 8, SM_RpIntegrity 7) with the step request, the expected result CONF and 20 request checks, proven by 21 request faults. Not written: the proximity objectives SessionBinding_010, DeviceBinding_012, RpIntegrity_010, _011; IssuerIntegrity_035 (CRL, optional); RP_Inf_SM_TrustMechanisms_007 (several RP Instances), _010, _011 (covered by other test cases); ProtocolMessages_006 (ISO/IEC 18013-7 Annex C); RpIntegrity_008 (several services) and _009 (intermediaries). Issue 32: SH_Encoding (8) with 15 faults (packages/forge/src/robustness.ts) and the expected results HTTP_4XX and NO_DETAILS; RP_PP_IA_Supportive (12) with the Test Status Provider behaviour of a step (StatusListSpec.endpoint, uriOfStep, ttl), PresentationAction.delaySeconds and the expected result STATUS_REQUEST; RP_PP_SM_Revocation_014 (2) and _031, SM_Revocation_011, SM_Validity_004 (expected result INFO) and _020 (2) with 6 faults (packages/forge/src/policy-faults.ts) and POLICY against the ICS items RP.R.7, RP.R.8 and RP.P.12. Not written: SM_TrustMechanisms_017 (no channel for the registration certificate of an attestation provider) |
Later issues added test cases outside these phases:
- Issue 29: 16 test cases for how the Relying Party invokes the wallet and handles the flow around the presentation (
IA_Engagement,IA_ProtocolFlow:request_uri, the redirect and its response code, error, late and repeated responses,state). - Issue 30: 24 test cases for the positive baseline of QEAA, PuB-EAA and non-qualified EAA, selective disclosure and the data model (the released PID attributes, their values and data types, missing and unrequested claims,
valuesconstraints). - Issue 31: 21 test cases for combined presentations (
UC_Presentation: a PID and an EAA in one response,credential_sets, entries left out, unknown or repeated, one DeviceResponse for two mdocs, attribute-based binding). -
Issue 32: 27 test cases: robustness against malformed and oversized input (
SH_Encoding), how status lists are retrieved (RP_PP_IA_Supportive: the request, caching withinttl, failing endpoints, redirect loops, link-local URIs), and six single objectives on status list freshness, revocation mechanisms and validity policies (the Issue 32 part of Phase 5 above). -
Class
RP_AP: 150 test cases, theRP_PPtest cases for QEAAs, PuB-EAAs and non-qualified EAAs (category variantsQ,PB,E, catalogue section 2.1), derived from theRP_PPdefinitions with the credential, query, positive control and status list anchor of the category;NOSTATfollows RP.R.2, and the ICS item RP.R.9 selects them.RP_PP_SM_Revocation_011_UFhas no counterpart (catalogue section 8.2).
Together with the 121 baseline test cases and the 97 of Phase 5, 470 test cases run unattended, each once per presentation flow the Relying Party supports.
12. Decisions¶
- Where the harness lives: decided 2026-11-06, the private repository
cre8/eudi-pcaf, next to the catalogue and the baseline. A move to an organisation (EUDIPLO, OpenWallet Foundation Labs) stays possible later. - Source of truth: decided 2026-11-07, the executable test definitions; a TypeScript renderer in this monorepo produces the FCAF markdown and replaces the Python
generator/(section 4.2). - Reference RP: decided, a minimal RP built on the reference validator (
packages/reference-rp,adapters/reference), so the harness is proven independently of EUDIPLO; CI runs every executable test case against it (section 7). - OIDF bridge: decided, the overlapping objectives run only through the harness's own steps. The bridge (section 4.9) stays optional and is not built.