VVeritia documentation

Proof of concept

POC components

Each POC module — what it does, its endpoints or screens, its data, and where its detailed spec and test guide live.

Built from 6 source documents
ModuleFolderSpecManual test guide
Platform stubpoc-code/platform/stub/platform spec Part Astub TESTING
Angular SPApoc-code/platform/spa/platform spec Part BSPA TESTING
PDS (Banque Test)poc-code/pds/PDS specPDS TESTING
Outil Localpoc-code/outil-local/Outil Local specMANUAL-TESTING
Deploypoc-code/deploy/deploy specfull-stack testing guide

Platform stub (Node / Express, port 3000)

The machine-facing half of "the platform": only what a downstream process genuinely verifies, plus what the SPA needs to survive a reload. In-memory Maps (restart ⇒ re-register + re-mint). Fails fast if its signing key is missing (never auto-generates — that would silently change the JWKS the PDS caches).

EndpointCallerPurpose
GET /jwks.jsonPDS filterPlatform public key (RSA, kid platform-poc-1)
POST /discoverSPA registrationServer-side MCP initialize → tools/list (dodges browser CORS)
POST /providers · GET /providers/:idSPAFinalise registration / look up a provider
POST /account-link/initiateSPA espace-clientFetch + verify the PDS-signed assertion, open a 600 s link session
POST /mandatesSPA mandate formSign the mandate, consume the link session, mint a setup code
POST /setup-codes/:code/redeemmcp-server setupReturn mandate + endpoint + label once; 404 unknown/used, 410 expired
GET /introspect/:jtiPDS filter, every callactive:true / false (revoked, expired) / 404
POST /mandates/:jti/revokeSPA dashboard, "Replace" flowFlip to REVOKED
GET /mandates?itsme_sub=SPA dashboard, collision checkList; 400 if itsme_sub missing (never "all")
GET /audit/:jtiSPA dashboardPlatform trace
GET /health—Liveness

Angular SPA (port 4200, ng serve)

All platform screens, with persona-coloured "Espace particulier" / "Espace professionnel" spaces.

RoutePersonaPurpose
/ · /connexionanyoneLanding page; persona chooser (Particulier / Professionnel)
/admin/loginProfessionalFake login admin@bqt.example / demo
/admin/registerProfessional (guarded)2 steps: provider identity (company, BCE/KBO number, contact — declarative) → technical integration: endpoint → Découvrir → deterministic review → J'accepte → provider_id + link
/pds-space?provider=IndividualMock "Banque Test — Espace client": pick the customer → Configurer un agent IA → signed account link
/itsmeIndividualFake itsme: pick one of 3 identities
/mandate/new?provider=Individual (guarded chain: link session, then itsme)Step 1 "Installer l'outil local" (shown every visit — the platform cannot see the user's machine) → step 2 form: agent public key, label (<provider>-<firstname>), purpose, expiry (1/8/24 h), tools + per-tool limits → collision check → success screen: one-line setup command, raw config block, client-recipes accordion
/dashboardIndividual (guarded)Mandates (VALID / REVOKED / EXPIRED computed client-side), Revoke, expand → Trace Plateforme + Trace Prestataire

Known gaps: no provider update flow (re-registering creates a second provider_id); governance-ceiling inputs on the review screen are display-only; no automated SPA tests.

PDS — Banque Test (Spring Boot, port 8081)

The verifier. Keeps its existing Keycloak-protected REST layer untouched and adds an isolated MCP route.

EndpointAuthPurpose
GET /accounts/meBank Keycloak token (bqt realm, role CUSTOMER)"This service already exists" — demo beat 1
GET /pds-jwks.jsonpublicThe PDS assertion key (bqt-assertion-1, Ed25519)
POST /account-link/assertX-Poc-Dev-Auth shared secret (mock of the customer's session)Signs a 300 s account-link assertion
POST/GET /mcpinitialize, notifications/initialized, tools/list exempt; tools/call → full 19-step filterMCP tools get_balance (no params) and list_transactions (max_results 1–50, period 7j/30j/90j) — both readOnlyHint: true
GET /mcp-audit/:jtipublic, CORS open, read-onlyTrace Prestataire (200 [] for unknown jti)

Data (H2 file mode, Flyway): customer, account, account_link (the PDS's own provider_account_ref → customer table, seeded for the POC), transaction (22/28/34 rows), mcp_call_audit. DPoP replay cache in memory. Known limitation: generic Streamable-HTTP clients that open the GET /mcp stream before calling (e.g. the MCP Inspector CLI) can't do anonymous discovery — the exemption only inspects POST bodies; exempting GET /mcp entirely was deliberately left as a product-owner decision.

Outil Local (TypeScript, on the Windows host)

Modes init (+ --force, --show), setup <url>, runtime. See local tool.

Deploy

deploy/compose.yaml: pds-keycloak (Keycloak 26, realm imported from pds/docker/realm-export.json, KC_HOSTNAME=pds-keycloak to pin the issuer, TCP healthcheck on management port 9000), web-platform-stub, pds (waits for Keycloak healthy). gen-keys.sh creates the platform RSA key once (git-ignored). demo/run-boot.sh automates build + boot + health checks; always podman compose up -d --build (a stale cached image once hid a code change). Containers talk by service name; the host (SPA, Outil Local, browser) uses localhost; the token aud stays http://localhost:8081/mcp everywhere (an identifier, not an address).

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