Skip to content

The Regulator Frame: A Role, And A Certificate A Frame Can Hold ​

Switched off on the production frames for now. The regulator role and certificates are built (V0671, with the public and the regulator's pages in V0674 and the officials' narrow permission in V0675), and every switch below defaults to off: each is a separate decision on each frame. The regulators on the network today are demonstrations. How an authority's officials do the work, step by step: chapter 44.

A frame can be a regulator frame: the frame of a public authority that certifies other frames. A frame it certifies can hold that certificate, publish it on its card, and let it stand as cover for a regulated act. This chapter covers the role, the certificate, and what a certified frame does with one. Giving an outside party read access is a different rail, chapter 42; the two are separate on purpose.

Both rails are switched off by default. REGULATOR_ROLE_ENABLED (default false) governs a regulator frame: the frame holds the role, so it reads its own licence's claim, issues certificates and stores the authority's binding. REGULATOR_CLAIM_SIGNING_ENABLED (default false) is the genesis's own switch: it signs regulator claims into the frame licences it issues, and holds no role by that. REGULATORY_CERTIFICATES_MODE (off, shadow or enforce, default off) governs a certified frame. The registry's public configuration says a frame is a regulator frame only where it holds the role: the switch on and its licence carrying the claim.

Who may be a regulator ​

Public authorities with a statutory mandate only. A private assessor is never a regulator: they work through audit grants. There is no accredited-auditor role.

A role claim carries a list of jurisdictions (two-letter country codes) and domains. Today financial is the only domain a rail acts on; data_protection and ai_act exist only as display until a rail reads them.

Two roots, both required ​

A frame is a regulator frame only with two independent roots of trust:

  1. The network's. The genesis signs the frame's licence with a role claim, roles.regulator. Only a frame licence can carry it, and only the genesis issues frame licences, so a frame cannot put a role into an operator's licence.
  2. The state's. The authority binds the frame with its own document, served on the authority's own domain at /.well-known/theprotocol-regulator.json over HTTPS: its kind, the frame's trust domain, the thumbprint of the key the licence certifies, and a validity date, signed with the key the document carries.

Where the binding domain is the regulator frame's own (a demonstration, or an authority that runs its frame on its own domain), the frame stores the document and serves it byte for byte: PUT /api/v1/admin/federation/regulator-binding stores it only if it binds this frame's trust domain and licence key, GET on the same path says whether it still verifies, and DELETE removes it.

The genesis records the document's hash in the claim and never decides who a regulator is. It refuses to sign a role whose binding does not verify: no binding is a 409, and a binding for another trust domain or another key is refused. The licence's government plan is a price class and does not make a frame a regulator.

The certificate ​

A regulator frame's official decides what a certificate says, and the registry carries it out:

  • The facts: the subject (a trust domain and a name), the regulator (its trust domain, licence hash and binding hash), the permitted actions, the jurisdiction and domain, when it was issued and when it expires (at most 366 days), and whether the regulator runs on the same host as the subject.
  • The permitted actions are the closed list the regulatory-authorization rail uses: exchange.listing, the exchange's launch act and fiat.lane act; registry.operation is display only and never gates anything. (The issue form and the API name each act by its code.)
  • The decision is an approval card in the regulator's own organization (REGULATOR_ORGANIZATION_ID), decided with presence (the approval rail's own step-up) and consumed once, for this certificate. The decider's role is added to the certificate, never their name.
  • A certificate outside the claim (a jurisdiction or a domain the claim does not cover) is refused.
  • It is signed as a compact JWS with its own type, using the key the regulator's frame licence certifies (the licence's own format; there is no new signing format), and it is kept under the card's 2,048-character cap.
  • It is delivered to the certified frame over the federation lane. A failed delivery is recorded and the certificate stands; it can be delivered again.
  • It is withdrawn on the regulator's word: the withdrawal goes on a signed list, /.well-known/regulatory-certificates.json, and is pushed to the certified frame.

On the regulator frame, POST /api/v1/regulator/certificates issues a certificate from a decided approval and is called by the regulator's agent; GET /api/v1/admin/regulator/certificates lists what the frame issued, and .../{cert_hash}/deliver and .../withdraw deliver again and withdraw, for the frame's officials: an account holding the narrow admin_regulator flag, which opens these routes and the held list and nothing else, or a platform administrator. A frame administrator gives the flag in Administration, Developers, Permissions, or by PUT /api/v1/admin/developers/{id}/admin-flags.

What a certified frame does with one ​

With REGULATORY_CERTIFICATES_MODE on (shadow or enforce), a frame takes a delivery only when all of these hold:

  • the presenter's trust domain is the certificate's regulator, and it is an active peer whose licence verdict passes and names the licence hash the certificate names;
  • the licence presented beside it is that licence, its role claim covers the certificate's jurisdiction and domain, and the certificate verifies with the key that licence certifies;
  • the certificate names this frame and has not expired.

Then the frame holds it. The card publishes the live ones (compliance.regulatory_certificates, at most ten, under the compliance digest), and a withdrawn certificate leaves the card at the next build. The admin view (GET /api/v1/admin/regulatory-certificates/held, the console's Certificates page) lists every certificate the frame held, the live ones first, then the withdrawn and the expired, each with its state, and states a jurisdiction that differs from the frame's declared country as display only.

A certificate as cover for a regulated act ​

The regulatory-authorization rail (REGAUTH) already lets a frame declare that an act needs an authority's authorization. An entry can now name an authority_frame, a regulator's trust domain. A live certificate from that frame whose permitted actions include the act is cover beside a recorded authorization:

  • under enforce, the act goes through on the certificate;
  • under shadow, the registry only logs that the certificate would cover it, and the act decides as before;
  • a certificate is frame-wide, so it covers only an act declared at registry scope. An act that needs an authorization for each subject still needs its own.

A certificate that cannot be read is no cover; the recorded-authorization path decides as it did before.

A demonstration regulator. The genesis can sign a claim as a demonstration (demonstration: true in roles.regulator, signed with the rest of the claim). Its frame card and every certificate it issues say Demonstration in the console, and each of its certificates carries the mark in its own signed payload; a certified frame does not hold a certificate from a demonstration regulator that lacks it. A demonstration certificate covers a regulated act only on a registry that states it is a sandbox (REGISTRY_ENVIRONMENT=sandbox): on production, which an unset value means, and on any other value it is no cover, whatever REGULATORY_CERTIFICATES_MODE says. A real claim carries no such key and is unchanged.

What it does not do ​

  • No emergency brake. A regulator frame cannot suspend or freeze anything; coordinated suspension stays the frame administrator's.
  • No new authority for the genesis. The genesis signs a role only when the authority's own document verifies.
  • No private assessors, and no real authority yet. The regulators on the network are demonstrations: Sandbox Regulator certifies the sandbox frames, each certificate verified offline, with the supply delta at 0, and a demonstration regulator for the production frames comes next.
  • No change to money. A certificate moves no balance; the supply invariant is untouched.

Server components AGPL-3.0-or-later · SDKs and the auditor Apache-2.0 · this documentation CC BY 4.0. If a doc and the running stack disagree, trust the stack. Legal notice (Impressum) · Privacy · Terms