VVeritia documentation

Proof of concept

POC wire reference

The exact bytes the POC modules exchange — a navigable digest of the frozen contracts. contracts.md stays the single source of truth.

Built from 1 source document

Contract A — the mandate JWT

RS256, typ: at+jwt, kid: platform-poc-1. Claim set and who enforces what:

ClaimPOC value / sourceEnforced by the PDS?
isshttps://veritia.eu (identifier only)✅ equals expected issuer
audhttp://localhost:8081/mcp (canonical MCP URI)✅ else 403 aud_mismatch
subfake itsme pick, e.g. itsme:be:sofie.maeslogged
act.subagent_label from the formlogged
cnf.jwkpasted agent JWK✅ thumbprint = proof key
provider_account_ref.{value, source, asserted_at, provider_jkt, assertion}from the verified link session; source: signed_assertion✅ re-verified (steps 14–18), resolved → account
iat / expnow / now + 3600✅ ±60 s skew
jtiUUIDv4introspection + audit key
purposee.g. consultation de soldelogged
disclosed_scope.allowed_toolsform checkboxes✅ 403 tool_not_allowed (filter)
disclosed_scope.tool_constraintsoptional per-tool param caps✅ by the tool handler: MCP error <param>_exceeds_mandate
disclosed_scope.bindingfalse—
transparency, revocation_checkconstant URLs + jtinot dereferenced (PDS uses its configured introspection base)

Contract B — DPoP

POST http://localhost:8081/mcp
Authorization: DPoP <mandate JWT>
DPoP: <proof JWT>                 header {typ: dpop+jwt, alg: EdDSA, jwk: <agent public key>}
Content-Type: application/json    claims {jti, htm: POST, htu: http://localhost:8081/mcp, iat, bsha}

The provider's 19-step check

Exempt entirely: initialize, notifications/initialized, tools/list. Never exempt: tools/call.

#CheckFail
1Authorization scheme is DPoP401 missing_dpop
2Mandate verifies against the platform JWKS; alg RS256, typ at+jwt, iss401 bad_token
3exp/nbf/iat ±60 s401 token_expired
4aud = canonical MCP URI403 aud_mismatch
5Introspection active:true — anything else, including unreachable, fails closed403 revoked_or_unknown / introspection_unreachable
6Thumbprint of cnf.jwk401 bad_token
7Proof parses, dpop+jwt, EdDSA, signature valid against its header jwk401 bad_dpop
8Proof key thumbprint = cnf thumbprint403 pop_key_mismatch
9htm/htu match the request403 dpop_htu_htm_mismatch
10Proof iat ±60 s403 dpop_stale
11bsha = hash of the received body403 body_hash_mismatch
12Proof jti not seen (cache 120 s)403 dpop_replay
13Tool ∈ allowed_tools403 tool_not_allowed
14–15Account-link assertion present, EdDSA, verifies against the PDS's own key; iss/aud403 account_ref_assertion_invalid
16assertion.sub = provider_account_ref.value403 account_ref_value_mismatch
17provider_jkt and asserted_at match403 account_ref_jkt_mismatch
18Assertion valid at issuance: assertion.iat ≤ mandate.iat ≤ assertion.exp + 60 s403 account_ref_stale
19Build the principal (provider_account_ref.value, sub, agent thumbprint, allowed_tools, tool_constraints)—

Every deny writes an mcp_call_audit DENY row and returns WWW-Authenticate: DPoP error="<code>".

Contract C — platform signing key

RSA-2048, kid platform-poc-1 (stable across restarts), private JWK in deploy/keys/platform-signing.jwk.json (git-ignored, created by gen-keys.sh), public half at GET /jwks.json.

Contract D — seed data

itsme subprovider_account_ref.valueCustomerIBAN (illustrative)Balance
itsme:be:pieter.janssenspacr_bqt_7f3a91cust-001BE68 5390 0754 7034€ 4 231,17
itsme:be:sofie.maespacr_bqt_2c8d40cust-002BE71 0961 2345 6769€ 12 802,50
itsme:be:noah.duboispacr_bqt_9b1e05cust-003BE62 5100 0754 7061€ 318,04

The sub ↔ customer pairing is only the demo-intended one: the human picks the customer on the mock customer area, and the PDS vouches for it — it is never derived from sub.

ThingValue
Fixed provider_id (= assertion iss)9b7c1e40-2f6a-4c11-9e2a-000000000bqt
Mandate linkhttp://localhost:4200/mandate/new?provider=<provider_id>
PDS assertion keyEd25519, kid bqt-assertion-1, generated once to pds/data/pds-assertion.jwk.json
Keycloakrealm bqt, client bqt-rest / bqt-secret; users pieter, sofie, noah / demo
SPA provider adminadmin@bqt.example / demo
TTLsmandate 3600 s · assertion 300 s · link session 600 s · setup code 600 s
Dev secretX-Poc-Dev-Auth: poc-dev-secret

Contract E — stub HTTP API

See POC components and contracts §5 for exact request/response bodies and error codes.

Contract F — configuration matrix

MeaningStub envPDS envHost valueCompose value
Token audPDS_MCP_URIMCP_CANONICAL_URIhttp://localhost:8081/mcpsame (identifier)
Platform JWKS—PLATFORM_JWKS_URIhttp://localhost:3000/jwks.jsonhttp://web-platform-stub:3000/jwks.json
Introspection base—PLATFORM_INTROSPECT_BASEhttp://localhost:3000/introspecthttp://web-platform-stub:3000/introspect
Platform issuerPLATFORM_ISSUERPLATFORM_EXPECTED_ISShttps://veritia.eusame
PDS discoveryPDS_DISCOVERY_URI—http://localhost:8081/mcphttp://pds:8081/mcp
PDS assert endpointPDS_ASSERT_URI—…:8081/account-link/asserthttp://pds:8081/account-link/assert
PDS assertion JWKSPDS_ASSERTION_JWKS_URI—…:8081/pds-jwks.jsonhttp://pds:8081/pds-jwks.json
Provider id—PDS_PROVIDER_IDfixed UUIDsame
Dev secretPDS_ASSERT_DEV_SECRETPDS_ASSERT_DEV_SECRETpoc-dev-secretsame

In the browser registration form the MCP endpoint default is http://pds:8081/mcp — discovery runs inside the stub container.

Contract G — account-linking hand-off

Sequence, assertion format and stub verification: account linking and contracts §8.

Contract H — setup code, one key per machine

One-time redeem URL (≥128 bits, 600 s, single-use, 404 for unknown or used), one agent.key per machine, one named folder per mandate, replace-not-accumulate, NP_MANDATE selection: local tool and contracts §9.

Generated 2026-11-30 by documentation/build.mjs · edit the Markdown, never this HTML.