how-to administratorintegrator

Runbook — assistant access: how long it lasts, and how to end it

What this is. People connect AI assistants to a country’s OpenGov deployment. An assistant signs in as the person it works for and can then do what that person can do — read, and (since 2026-08-28) make changes. This runbook is for the operator and the country administrator: how long an assistant’s access lasts, the five things that end it, and what to do when one must be stopped now.

One-line summary: a person signs in once; their assistant keeps working for up to 90 days without asking again; anybody can end it from the Country settings screen, and an operator can close the door for everyone from a terminal.


What an assistant may do

It acts as the person who connected it — never more. Every call runs that person’s permission checks and lands in their audit trail. Making changes additionally requires that the assistant asked to be allowed when it was connected; one connected to read only can never change anything, even if the person is an administrator.

Nothing here can be used by an assistant nobody signed in for. There is no robot account and no credential that a machine can mint for itself.

How long access lasts, and the five things that end it

  1. Fourteen days unused. An assistant that goes a fortnight without being used stops; the next use asks its person to sign in again.
  2. Ninety days, whatever happens. No assistant’s access outlives a quarter.
  3. The person changed. Rights are read live on every call — a role removed this morning binds this afternoon.
  4. Somebody ended it. See below.
  5. The door closed. The country administrator’s assistants switch, or the operator’s environment switch.

Ending one assistant

Country settings → AI assistants lists the assistants connected right now, by person. End access stops that one on its next request. It is audited under whoever did it, naming whose assistant it was.

That screen is the administrator’s. A person who wants their own assistant stopped asks an administrator today: the platform answers each person for their own assistants and ends their own on request, but the screen showing it to them in the tool they use is not built yet.

Ending an assistant does not undo anything it already did, and does not affect that person’s own access to the browser.

Stopping everything, now

What you wantDo thisEffect
Assistants may read but not change anythingOPENGOV_MCP_WRITES_ENABLED=false, restartReads keep working; every change is refused in plain words
No assistant reaches this country at allCountry settings → turn AI assistants offThe door answers “not found” on the next request; no restart
Same, from a terminal with no browserOPENGOV_MCP_ENABLED=false, restartAs above, and the administrator cannot re-open it

The two switches are independent: the door serves only when both say yes.

What an assistant is told to ask for

The door publishes, before any credential, what an assistant should request: permission to keep working without signing in again, and permission to make changes. A conformant assistant asks for exactly that — nobody configures anything.

The upgrade window worth knowing. The identity service learns about the change permission when the deployment’s init-keycloak step runs, and nothing waits for that step by design. On a deployment being upgraded there is a short window where the app advertises a permission the identity service has not created yet; a sign-in attempted inside that window is refused by the identity service (invalid_scope). It resolves itself once the step finishes. If it does not, check that step’s log: the realm reconciler creates the permission and offers it to the assistants client on every run.

When the platform says it cannot tell who is connected

The list needs to ask the identity service, using the deployment’s own administration credential. If that credential lacks view-clients, the platform cannot even resolve the assistants client and the screen says it cannot tell — deliberately, rather than showing an empty list, which would read as “nothing is connected”. The realm reconciler grants that permission on every run; if the message persists, that step is failing.

  • Design: docs/specs/2026-08-27-embedded-mcp.md — D-MCP-4 (who may change things) and D-MCP-7 (how long access lasts).
  • The door’s address: mcp.<your deployment's domain>, shown on the Country settings screen.
  • Provisioning and the smoke check that probes the door: docs/runbooks/provision-deployment.md.