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
- POC cross-module contracts (frozen wire) POC
- POC architecture (entry point) POC
- Step 5b checklist — setup code & multi-mandate POC
- Step 6 checklist — isolated PDS filter POC
- Full-stack testing guide (S1–S17) POC
- PDS — manual testing POC
- Platform stub — manual testing POC
- Angular SPA — manual testing POC
- Outil Local — manual testing POC
- PDS spike notes (versions, MCP transport) POC
Build order and status
| # | Step | Status |
|---|---|---|
| 0 | Freeze the contracts | ✅ |
| 0b | Spike: Spring Boot bump + MCP Streamable HTTP ↔ TS SDK, DPoP header injection | ✅ 2026-09-09 — GO |
| 1 | Platform stub (incl. account-linking rework) | ✅ 2026-09-09 |
| 2 | Outil Local init | ✅ 2026-09-09 |
| 3 | PDS stand-up + account-link assertion key/endpoints | ✅ 2026-09-11 |
| 4 | PDS MCP route (get_balance) | ✅ 2026-09-11 |
| 4b | PDS list_transactions | ✅ 2026-09-18 |
| 5 | Outil Local runtime (stdio ↔ Streamable HTTP, DPoP) | ✅ 2026-09-18 |
| 5b | One-time setup code, setup subcommand, multi-mandate layout, replace check | ✅ 2026-09-25 — full real end-to-end smoke test |
| 6 | PDS isolated filter (19 steps) | ✅ 2026-09-19; discovery exemption fixed 2026-09-25 |
| 7 | Angular SPA | ✅ 2026-09-11 (+ polish 09-16/17, step-1 install screen 10-10, limits wired 10-14) |
| 8 | compose.yaml + realm + keys + addresses | ✅ 2026-09-26; live-tested 2026-10-09 (two healthcheck bugs fixed) |
| 9b | Trace Prestataire endpoint + dashboard side-by-side trails | ✅ 2026-10-09 (found while rehearsing) |
| 9 | End-to-end dry run on the demo machine + finalise the demo script | Not 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
| PDS test class | Tests | Covers |
|---|---|---|
MandateDpopFilterTest | 15 | Happy path; S2, S3, S5–S9, S14, S15 with real signed material; discovery exemption; tool_constraints carried |
ListTransactionsToolTest | 16 | Parameter validation, deterministic period filtering, S18 caps |
GetBalanceToolTest | 4 | S10 unknown_account, happy path + audit, tool definition |
AccountLinkControllerTest | 4 | /pds-jwks.json, /account-link/assert 401/400/200 with real verification |
AccountControllerTest | 3 | /accounts/me 200/401/403 |
McpAuditControllerTest | 2 | /mcp-audit/:jti |
McpRouteIntegrationTest | 2 | Real MCP Java SDK client: discovery without auth succeeds, tools/call without auth refused |
UserControllerUnitTest | 5 | Upstream scaffolding |
Scenario matrix
| # | Scenario | Expected | Verified |
|---|---|---|---|
| S1 | Happy path via Claude Desktop | € balance; mcp_call_audit ALLOW; introspection active | Live (+ unit) |
| S2 | Stolen token, no key | 401 bad_dpop / 403 pop_key_mismatch | Live (replay-no-key.sh) + unit |
| S3 | Expired mandate | 401 token_expired | Live (15 s mandate) + unit |
| S4 | Revoked mandate | 403 revoked_or_unknown; trace shows MANDATE_REVOKED | Live |
| S5 | Wrong aud | 403 aud_mismatch | Unit only (the API can't mint another aud) |
| S6 | Replay of a full signed request | 2nd → 403 dpop_replay | Unit only |
| S7 | Tampered body | 403 body_hash_mismatch | Unit only |
| S8 | Introspection down | 403 introspection_unreachable (fail-closed) | Live (stop the stub) + unit |
| S9 | Tool not in mandate | 403 tool_not_allowed | Live + unit |
| S10 | Unknown account link | MCP error unknown_account | Unit only |
| S11 | Read-only provider registration | One tool, read-only badge, no ceiling field | Live (browser) |
| S12 | Discovery failure | discovery_failed, no provider_id | Live |
| S13 | Stub restart mid-demo | Unknown jti → fail-closed | Live |
| S14 | Tampered account-link assertion | 403 account_ref_assertion_invalid | Unit only |
| S15 | Assertion/value mismatch | 403 account_ref_value_mismatch | Unit only |
| S16 | Replayed link assertion at issuance | 422 assertion_invalid (jti_replay) | Stub unit |
| S17 | Cross-provider link session | 400 link_session_provider_mismatch | Stub unit |
| S18 | Request exceeds a mandate's tool_constraints | MCP error period_exceeds_mandate / max_results_exceeds_mandate | Unit + 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.
# 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/35Then 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
DPoPscheme natively and intercepted/mcp/**— fixed by a separate,@Order-ed filter chain in its own configuration class. - A filter exposed as its own
@Beangets auto-registered globally — construct it inside the chain. ContentCachingRequestWrapperdoesn't make the body re-readable for the downstream handler — a smallCachedBodyRequestreplays 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_HOSTNAMEmust be pinned or tokens get a host-dependentiss.- The POSIX key-permission check refused to start on every Windows launch → skipped on
win32. podman compose upwithout--buildsilently ran stale images (atool_constraintschange "didn't work").mcp_call_auditexisted for weeks with no way to see it →GET /mcp-audit/:jti+ dashboard panel.