Architecture & security
Provider onboarding (Phase 0)
How a provider registers, how its tools are discovered and reviewed without any AI, the difference between technical constraints and governance ceilings, and how schema changes are handled.
Built from 3 source documents
- Spécification v1 — acteurs, composants, flux Reference
- Raw Q&A transcript (base project analysis) Raw transcript
- Platform spec (stub + SPA) POC
The steps
| Step | Who | Action | Produces |
|---|---|---|---|
| 0.1 | Provider | Creates an account; declares its MCP endpoint, its discovery endpoint, optionally a discovery credential (if discovery is not public) | provider_id (UUIDv4, non-guessable) |
| 0.2 | Veritia | Calls MCP tools/list (after initialize) | Raw tool list: name, description, inputSchema, annotations |
| 0.3 | Veritia | Deterministic parse — plain code, no AI model: reads annotations.readOnlyHint (indicative only) and per-parameter JSON-Schema keywords (maximum, minimum, enum, pattern) | Candidate structure |
| 0.4 | Veritia → provider | Review screen: what was understood per tool; optional governance-ceiling fields; explicit warning when a bounded parameter is left without a ceiling; the provider must click "J'accepte". A "Re-check now" button re-runs 0.2. | Explicit confirmation |
| 0.5 | Veritia | Freezes the confirmed version (schema hash + timestamp + who clicked) | Confirmed schema cache — the source of the mandate form |
| 0.6 | Veritia | Periodic polling of tools/list (e.g. daily). The confirmed version keeps serving new mandates without interruption | Detected diff |
| 0.7 | Veritia → provider | E-mail + link to an authenticated differential review screen; same confirmation mechanics | Re-confirmation |
| 0.8 | Veritia | Cross-checks the diff against active mandates (removed tool, or a ceiling now below a declared value) | List of affected mandates → dashboard annotation + e-mail to the human (on by default, can be switched off) |
Technical constraint vs governance ceiling
The review screen shows both side by side, but they come from different sources:
| Technical constraint | Governance ceiling | |
|---|---|---|
| Where the number comes from | Read as-is from the provider's real tools/list, e.g. "amount": {"type":"number","maximum":1000} | Typed by the provider on Veritia's review screen — exists nowhere else |
| What it describes | What the provider's API accepts, on every channel | What the provider accepts for agent mandates specifically |
| Example | 1000 € | 500 € (≤ 1000) |
| To change it | Fix its own server's inputSchema, then let Veritia re-read it | Type another value on the dashboard — effective immediately |
| Why the difference | Describes an external system → must stay re-verifiable at its source (that is what polling checks) | A preference communicated directly → nothing external to re-check |
Which field the review screen offers (by JSON-Schema type)
number/integer→ optional ceiling, always offered; bounded bymaximumif declared (can only tighten).stringwithenum→ restrict to a subset. (In the POC mandate form this became a single-select "largest value allowed".)stringwithoutenum→ optional "restrict to these values".boolean→ nothing.- Plus one schema-independent field: maximum mandate validity (e.g. 30 days).
Stored server-side as JSON chosen by Veritia (never written by the provider), e.g.
{ provider_id, max_mandate_validity_days, tool_governance: { transfer_funds: { amount: { ceiling, currency } } }, schema_version, confirmed_by, confirmed_at }.
How it is used later
When generating the mandate form (2.5), each field's bound is min(technical maximum, governance ceiling).
It is only an input bound: the human chooses any value under it, and that value becomes
disclosed_scope. Governance rules are never consulted at call time (Phase 4 never passes through Veritia);
the provider applies its real rules then.
When the provider changes something
- The mandate already issued is cryptographically frozen — it keeps showing the old scope.
- Nothing breaks at execution by construction:
disclosed_scopewas never a guarantee; the provider applies its current real rules. A €90 call on a "€100" mandate after the provider lowered its cap to €50 is simply refused, like any breach of its own rules. - What changes is the human experience: annotate the mandate on the dashboard + e-mail by default (switchable off, global setting). No automatic revocation (one affected tool out of several would be disproportionate).
- A ceiling change on the permanent provider dashboard is cross-checked synchronously (old and new value are both known at save time). Loosening affects nobody.
Who may call the discovery endpoint
Two different callers, two different credentials:
- Veritia itself (0.2, 0.6, "Re-check now") — before any human or agent exists, so there is no mandate to
present. If the provider protects discovery, it gives Veritia a separate API credential (API key or OAuth
client credentials), kept server-side like Veritia's own private key. Not a fourth key pair —
tools/listonly describes tools. - The local tool at start-up — a mandate already exists, so discovery is just an authenticated MCP call with the mandate (+ proof if the provider wants it).
A provider may also leave discovery public (as the POC does).
Who on the provider side may click "J'accepte"?
| Option | Principle | For | Against |
|---|---|---|---|
| A. Named accounts | Any declared account can click | Trivial, standard SaaS | Weak evidence: "someone logged in clicked" |
| B. A + restricted role | Only a "Compliance / integration admin" role | Almost free on top of A | No stronger identity proof |
| C. Enterprise SSO | Click authenticated by the provider's own IAM | Access removed when people leave | Bespoke per provider |
| D. itsme / itsme Sign (QES) | The person confirming authenticates or signs with itsme | Same trust root on both sides; strong evidence | itsme support for "acting for a company" unverified; heavy for minor re-confirmations |
| E. Maker-checker | Two people approve | Familiar in finance | Friction |
| F. Two speeds | B/C for routine re-confirmations; D for registration and significant tightening | Friction where evidence matters | "Significant" must be defined |
F looks most promising; nothing decided. The POC uses A (admin@bqt.example).
Still open
Grace period before a ceiling tightening takes effect; exact diff granularity that forces re-confirmation and
escalation if a provider never answers; immutable provider-side audit trail of registrations and ceiling changes;
basic consistency checks at ingestion (e.g. warn if a tool named transfer has no bounded amount); whether to
block registration of tools without usable inputSchema.properties; adopting RFC 9728 metadata. See
open questions.