VVeritia documentation

Proof of concept

POC status and testing

Build order and status of every step, what is verified and how, the scenario matrix S1–S18, and the commands to boot and test the stack.

Built from 10 source documents

Build order and status

#StepStatus
0Freeze the contracts✅
0bSpike: Spring Boot bump + MCP Streamable HTTP ↔ TS SDK, DPoP header injection✅ 2026-09-09 — GO
1Platform stub (incl. account-linking rework)✅ 2026-09-09
2Outil Local init✅ 2026-09-09
3PDS stand-up + account-link assertion key/endpoints✅ 2026-09-11
4PDS MCP route (get_balance)✅ 2026-09-11
4bPDS list_transactions✅ 2026-09-18
5Outil Local runtime (stdio ↔ Streamable HTTP, DPoP)✅ 2026-09-18
5bOne-time setup code, setup subcommand, multi-mandate layout, replace check✅ 2026-09-25 — full real end-to-end smoke test
6PDS isolated filter (19 steps)✅ 2026-09-19; discovery exemption fixed 2026-09-25
7Angular SPA✅ 2026-09-11 (+ polish 09-16/17, step-1 install screen 10-10, limits wired 10-14)
8compose.yaml + realm + keys + addresses✅ 2026-09-26; live-tested 2026-10-09 (two healthcheck bugs fixed)
9bTrace Prestataire endpoint + dashboard side-by-side trails✅ 2026-10-09 (found while rehearsing)
9End-to-end dry run on the demo machine + finalise the demo scriptNot marked done — rehearsal was under way on 2026-10-09 and later commits fixed run-boot.sh, but no document records step 9 as complete

Later additions: tool_constraints (2026-10-12, enforced in the SPA → stub → PDS by 2026-10-14), init --show (2026-10-12), EXPIRED badge on the dashboard (2026-10-14).

Test coverage

51/51PDS Maven tests (re-run 2026-11-30)
35/35platform stub node:test (re-run 2026-11-30)
manualOutil Local — MANUAL-TESTING matrix, live-verified
noneSPA automated tests — TESTING.md is the coverage
PDS test classTestsCovers
MandateDpopFilterTest15Happy path; S2, S3, S5–S9, S14, S15 with real signed material; discovery exemption; tool_constraints carried
ListTransactionsToolTest16Parameter validation, deterministic period filtering, S18 caps
GetBalanceToolTest4S10 unknown_account, happy path + audit, tool definition
AccountLinkControllerTest4/pds-jwks.json, /account-link/assert 401/400/200 with real verification
AccountControllerTest3/accounts/me 200/401/403
McpAuditControllerTest2/mcp-audit/:jti
McpRouteIntegrationTest2Real MCP Java SDK client: discovery without auth succeeds, tools/call without auth refused
UserControllerUnitTest5Upstream scaffolding

Scenario matrix

#ScenarioExpectedVerified
S1Happy path via Claude Desktop€ balance; mcp_call_audit ALLOW; introspection activeLive (+ unit)
S2Stolen token, no key401 bad_dpop / 403 pop_key_mismatchLive (replay-no-key.sh) + unit
S3Expired mandate401 token_expiredLive (15 s mandate) + unit
S4Revoked mandate403 revoked_or_unknown; trace shows MANDATE_REVOKEDLive
S5Wrong aud403 aud_mismatchUnit only (the API can't mint another aud)
S6Replay of a full signed request2nd → 403 dpop_replayUnit only
S7Tampered body403 body_hash_mismatchUnit only
S8Introspection down403 introspection_unreachable (fail-closed)Live (stop the stub) + unit
S9Tool not in mandate403 tool_not_allowedLive + unit
S10Unknown account linkMCP error unknown_accountUnit only
S11Read-only provider registrationOne tool, read-only badge, no ceiling fieldLive (browser)
S12Discovery failurediscovery_failed, no provider_idLive
S13Stub restart mid-demoUnknown jti → fail-closedLive
S14Tampered account-link assertion403 account_ref_assertion_invalidUnit only
S15Assertion/value mismatch403 account_ref_value_mismatchUnit only
S16Replayed link assertion at issuance422 assertion_invalid (jti_replay)Stub unit
S17Cross-provider link session400 link_session_provider_mismatchStub unit
S18Request exceeds a mandate's tool_constraintsMCP error period_exceeds_mandate / max_results_exceeds_mandateUnit + live (2026-10-14)

Boot and test

Machine: containers in WSL2 (Podman), Outil Local + Claude Desktop native on Windows (separate checkout, Windows Node). Repo on the Linux filesystem, never /mnt/c. JDK 21, Node 20.19+, Podman ≥ 4.4, WSL2 systemd on, ≥ 8 GB memory.

bash
# automated build + boot + health checks (steps 2.1–2.5 of the testing guide)
cd poc-code/demo && ./run-boot.sh

# or by hand
cd poc-code/deploy && ./gen-keys.sh          # once
podman compose up -d --build                  # always --build
cd ../platform/spa && npm start              # http://localhost:4200

# full automated regression, no containers needed
cd poc-code/pds && ./mvnw test               # 51/51
cd poc-code/platform/stub && npm test        # 35/35

Then the browser and Claude Desktop path (register → link → mint → node dist\index.js setup <url> → ask the balance) is scripted step by step in the full-stack testing guide, which also gives a curl-only equivalent of every browser step. Troubleshooting tables live in each module's TESTING file.

Lessons recorded during the build

  • Spring Security 6.5 recognises the DPoP scheme natively and intercepted /mcp/** — fixed by a separate, @Order-ed filter chain in its own configuration class.
  • A filter exposed as its own @Bean gets auto-registered globally — construct it inside the chain.
  • ContentCachingRequestWrapper doesn't make the body re-readable for the downstream handler — a small CachedBodyRequest replays it.
  • The documented "discovery is public" intent was never implemented until a review on 2026-09-25.
  • Keycloak 26 serves health on management port 9000 and its image has no curl/wget → TCP healthcheck.
  • KC_HOSTNAME must be pinned or tokens get a host-dependent iss.
  • The POSIX key-permission check refused to start on every Windows launch → skipped on win32.
  • podman compose up without --build silently ran stale images (a tool_constraints change "didn't work").
  • mcp_call_audit existed for weeks with no way to see it → GET /mcp-audit/:jti + dashboard panel.
Generated 2026-11-30 by documentation/build.mjs · edit the Markdown, never this HTML.