Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

The master switch and the veto hook

How to turn Exponential Intelligence off everywhere or per siteaccess with one setting, what happens at every entry point when it is off, and how the veto hook refuses single requests by rule (section, class, subtree…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/ai-agents/expai/master-switch-and-veto.md

On this page

The master switch and the veto hook

This page is for administrators who need to stop the assistant, entirely or in part, and for developers who connect it to a compliance check. Two controls are checked before anything else (permissions, data policy, limits, budgets), in one place that every call to a provider goes through.

Contents

  1. The master switch
  2. What happens when it is off
  3. The veto rules
  4. A veto listener
  5. What is recorded

The master switch

[AISettings]
Enabled=disabled
# or: on, but off on these siteaccesses
Enabled=enabled
DisabledSiteAccesses[]=intranet_admin

Enabled is off unless it says enabled or true. A siteaccess can also set it in its own settings/siteaccess/<siteaccess>/expai.ini.append.php. Or do not activate the extension on that siteaccess at all. Changes of the switch written through exp:ini or the settings views are recorded in the audit trail as system.setting.write.

What happens when it is off

From the extension's switch and veto page:

Entry pointWhen off
The Intelligence tabNot drawn
Edit form controls and field actionsNot drawn; a request is refused ("Exponential Intelligence is switched off.")
VectorThe page says AI is not ready; every function that needs a provider is refused
The dashboardSays "Switched off"
Chains, translation sync, other queued workNothing new is queued
Queued requests already waitingHeld, and resumed by the cron part once the assistant is on again
Model test and probeRefused
Any other provider callRefused before anything is sent

Provider batches sent before the switch went off are still collected, so nothing already paid for is lost.

The veto rules

A veto refuses one request with a reason the editor reads and that is logged. It is checked after the master switch and before the limits, on every provider call and before a request is queued.

[RequestVeto]
Rules[]=no_ai_on_users
Rules[]=maintenance

[RequestVeto_no_ai_on_users]
Sections[]=2
Reason=Exponential Intelligence is not used for user accounts.

[RequestVeto_maintenance]
SiteAccesses[]=intranet_admin
Purposes[]=queue.*
Reason=Queued AI work is paused on the intranet until Monday.
ConditionMatches when
Sections[], Classes[], Subtrees[]The content of the request is in that section, of that class, or at or below that node
SiteAccesses[]The siteaccess of the request (or the one a queued request came from)
Providers[], Regions[]The provider, or its region (us, eu, local)
Purposes[]The purpose, such as panel, vector, a field action name, queue.*
ReasonThe text shown and logged

The first rule whose conditions all match refuses the request; a rule without conditions refuses every request. The content conditions are checked not only for the starting node but for every object the tools read: an object that a rule names is refused or withheld from a list, with the reason.

A veto listener

For decisions the settings cannot express (a compliance service, office hours, a per-user flag), register a filter:

[Event]
Listeners[]=expai/request/veto@myComplianceCheck::veto

The listener receives the request context (user, node, object, class, section, siteaccess, provider, region, retention, model, purpose, and what the data policy requires) and returns it; setting veto to a text refuses the request. A listener that fails or returns nothing refuses the request too: the hook fails closed.

What is recorded

Every refusal is a row of the usage log with the error class veto and the rule or listener that refused it, and an audit event system.expai.request.refused. No tokens are counted and no cost is estimated, because nothing was sent (The audit trail for AI).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x