A Reference Architecture for a Regulated EU AI Platform: Guardrails, Logging, Registry and Kill-Switch

Most regulated firms are building the same AI compliance controls three or four times over — once per product, each time slightly differently, and each time worse than the last.

The pattern is familiar. A team ships an AI feature. Legal asks how it is logged, whether there is human oversight, how it would be switched off, and where it is recorded. The team improvises answers. The next team, on the next product, improvises its own — different log format, different off-switch, different notion of what counts as an incident. Six products later you have six governance implementations, no consistent evidence, and a supervisor who can ask the same question about any one of them and get six different answers. The fix is not another policy document. It is to treat the recurring controls as shared infrastructure and build them once.

The controls repeat; the implementations shouldn’t

If you list what the EU AI Act, the GDPR and — where the model feeds an online platform — the Digital Services Act actually demand of an AI product, the same handful of controls come back every time. The AI Act wants record-keeping over the system’s lifetime (Article 12), human oversight (Article 14), registration of stand-alone high-risk systems in the EU database (Articles 49 and 71), post-market monitoring (Article 72), and — for deployers — retention of automatically generated logs for at least six months (Article 26(6)). The GDPR wants a lawful basis checked at the point of processing, a record of processing activities (Article 30), a data protection impact assessment where the risk is high (Article 35), and safeguards around solely automated decisions with legal or similarly significant effects (Article 22). The DSA, where relevant, wants recommender-system transparency and defensible statements of reasons.

Free · 4 minutes

If your most senior engineer left tomorrow, would anyone still understand the system?

Fourteen questions on documentation, dependencies, and the gap between how the architecture works and how many people know it. Banded finding on screen, full sheet by email.

These are not one regime’s requirements dressed three ways. They are three regimes that happen to converge on the same architectural primitives: log everything, gate the call, know what you are running, and be able to stop it. Build those primitives per product and they drift. Build them as a platform and conformity becomes a default rather than a project. This is the same argument I have made about treating the AI Act, DORA and NIS2 as one programme rather than three — the overlap is the opportunity.

Four components every AI product plugs into

The reference architecture has four load-bearing parts, and every AI product in the estate reaches its model through them rather than around them.

  • A policy gateway. Every model call — internal or vendor — routes through one enforcement point that applies guardrails, checks the lawful basis, and emits the log. Products do not call models directly.
  • An immutable log sink. Append-only, tamper-evident, retained to the longest applicable floor. This is the evidence a supervisor reconstructs an incident from.
  • A model and system registry. The authoritative record of what is running, its risk class, its owner, its EU-database registration reference and its DPIA status.
  • A kill-switch controller. One place that can stop a named system from serving, immediately, without a redeploy.

The policy gateway is where governance stops being a slide

The gateway is the part that makes the rest real. If a product can reach a model without passing through it, every guarantee downstream is a hope rather than a control. So the gateway denies by default: an unregistered system does not get served. Below is the shape of it — a component view and the policy a gateway applies to every call.

# Component view: every AI product plugs into shared platform services
#
#   product ──► Policy Gateway ──► model (internal / vendor)
#                  │  │  │
#                  │  │  └─► Guardrail service (input/output filters)
#                  │  └────► Consent & lawful-basis check (GDPR)
#                  └──────► Immutable log sink ──► Registry + evidence store
#                                                     │
#          Kill-switch controller ◄──────────────┚  (revokes gateway token)

# policy-gateway.yaml — applied to every model call, no product opt-out
gateway:
  deny_by_default: true
  systems:
    - id: ai-0142                    # ties to EU database registration
      registry_ref: "reg://high-risk/ai-0142"
      risk_class: high              # AI Act Annex III
      lawful_basis: contract        # GDPR Art. 6; verified per call
  guardrails:
    input:
      - block_prompt_injection
      - pii_redaction               # before data leaves the estate
    output:
      - block_disallowed_categories
      - require_confidence: 0.75    # else route to human review
  logging:
    sink: immutable-append-only
    retain_months: 6                # AI Act Art. 26(6) floor; extend for sectoral law
    fields: [system_id, actor, input_hash, output_hash, guardrail_verdicts, ts]
  human_oversight:
    on_low_confidence: route_to_reviewer   # AI Act Art. 14
  kill_switch:
    trigger: [manual, incident_rule]
    action: revoke_token            # gateway stops honouring this system's calls

Note what the gateway logs: hashes of input and output, not the raw content. That keeps the log defensible under the GDPR while still letting you prove what a system was asked and what it returned. Note too that the lawful basis is a field checked on the call, not a paragraph in a policy nobody reads at runtime.

The registry is the evidence layer, not a spreadsheet

Most firms already have an AI inventory. It is usually a spreadsheet, it is usually out of date, and it is not wired to anything. A registry that earns its place is the system of record the gateway reads from: a system that is not in the registry cannot be served, so the registry cannot drift out of sync with reality without someone noticing that a product has stopped working. It carries the risk classification, the owner, the EU-database registration reference for stand-alone high-risk systems, and the DPIA reference where one is required. Done well, this is also the join point where one assessment feeds several regimes — the argument I have made for running a single risk-assessment engine across DPIA, FRIA and CRA rather than three parallel exercises.

The kill-switch has to actually stop things

A kill-switch that requires a code change, a pipeline run and a deployment window is not a kill-switch; it is a change request. The version that satisfies a supervisor stops a named system serving in seconds, from one place, and leaves a logged record of who pulled it and why. Because every call already passes through the gateway, the mechanism is mundane: revoke the system’s gateway token and its calls stop being honoured, instantly, without touching the product. The hard part is never the mechanism — it is the governance around who may pull it, on what trigger, and how service resumes. I have written separately on governing the kill-switch, because the control is worthless if nobody is willing to use it.

A note on the moving deadline

The timeline is in flux and you should build to the substance, not the date. Under the Digital Omnibus agreed in 2026, the obligations for stand-alone high-risk systems listed in Annex III were moved from 2 August 2026 to 2 December 2027, with product-embedded systems pushed to August 2028 — verify the final text in the Official Journal, as the package was still being finalised when this was written. The transparency duties under Article 50 were not deferred, and the prohibited-practice and general-purpose-model obligations have applied since 2025. The relief is on timing, not on scope. A platform built once now carries whatever the transposed detail turns out to be, because the components — gate, log, registry, switch — do not change when a date does.

Build the controls into each product and you will rebuild them, worse, on every product after it. Build them into the platform and the next AI feature ships already governed — which is the only version of this that scales past the third product.

Free interactive tool

Website compliance checklist

What your site has to do, based on what it actually does

Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.

Can you trust the architecture you have?

Architecture diagrams rarely show the reality of how systems actually operate. An independent review establishes what is really there.