Governance and Safety: Engineering Runtime Control
ADPS position paper
Published: 2026-05-30
Author: Agent Design Patterns Society
Scope
Agent governance defines which actions a system may perform, under what conditions, who is accountable, and how the system stops, explains, and recovers from a deviation. Safety objectives need runtime controls and reviewable evidence.
A production system should answer:
- which tools, data, and environments are accessible;
- which actions may run automatically and which require approval;
- the permitted impact per task, tenant, and time window;
- the evidence retained for each decision and side effect;
- the conditions for stop, rollback, degradation, or reduced autonomy.
These answers belong in permissions, state, code, and operating procedures. A System Prompt or principles document cannot enforce them.
Five runtime controls
1. Tool admission and least privilege
The Tool Registry records each tool's schema, version, owner, risk class, and credential scope. Runtime policy generates the smallest tool set for the task, tenant, and role. Unregistered, incompatible, or out-of-scope tools never enter the candidate set.
Admission runs outside the model call. The model may propose a tool; program logic verifies the caller, resource, parameters, and permissions.
2. Gates for high-risk actions
Approval Gates cover money movement, production writes, deletion, external publication, and irreversible actions. The approval package includes the action, target, quantity, provenance, expected result, and recovery plan. The approval and tool call share one action ID so approval for one proposal cannot authorize another.
Hooks enforce deterministic rules such as path allowlists, prohibited commands, parameter ceilings, and sensitive-field checks. These checks do not require model judgment.
3. Blast-radius control
Blast Radius Control limits the objects, quantity, value, environment, and duration affected by an action. Common mechanisms include:
- development, test, and production separation;
- read-only and short-lived credentials;
- per-tenant, per-batch, and per-resource limits;
- sandbox, working-directory, and network-egress restrictions;
- idempotency keys, transactions, compensation, and kill switches.
Downstream systems enforce these limits. Prompt text asking the model to be careful does not establish a hard boundary.
4. Observability and audit
Model calls, tool calls, approvals, state changes, and business receipts enter one event chain. Events should correlate run, task, action, tool version, actor, input/output hash, and policy decision.
Audit evidence supports incident reconstruction, release evaluation, and accountability. Sensitive inputs may use hashes, redacted summaries, or controlled references so observability does not create another disclosure surface.
5. Progressive autonomy
Agent permissions expand through evidence-based stages such as shadow mode, recommendation, approved execution, bounded automation, and wider autonomy. Promotion criteria should reference task sets, failure classes, human intervention, recovery, and business acceptance.
A version change, domain change, or material incident can trigger demotion. Autonomy is a revocable runtime configuration.
Action risk contract
action_type: payroll_batch_submit
risk_class: high
subject:
tenant_id: tenant_42
scope:
max_records: 200
environment: production
permissions:
required_role: payroll_operator
approval:
required: true
approver_role: payroll_manager
preconditions:
- batch_totals_reconciled
- employee_ids_resolved
- idempotency_key_present
execution:
timeout_seconds: 60
retry: 0
postconditions:
- receipt_persisted
- ledger_matches_receipt
recovery:
mode: manual_compensation
evidence:
retention_days: 365
The contract translates policy into executable fields. Tool dispatch, gates, business ledgers, and audit systems consume the same definition, reducing rule drift between layers.
Control chain
task and identity
↓
minimal tools and credentials
↓
action proposal and parameter validation
↓
deterministic hooks / approval gate
↓
execution in a bounded environment
↓
business receipt and post-condition checks
↓
event chain, alerting, and recovery
Every layer can fail, so later layers still bound impact and preserve evidence. A failed gate prevents execution. A post-condition mismatch stops later steps. A broken evidence chain sends the run to manual handling.
Common failures
| Failure | Consequence | Control |
|---|---|---|
| Permissions exist only in the prompt | A bypassed instruction still reaches the tool | Program allowlists, credentials, and hooks |
| Approval shows only a prose summary | Target, quantity, or provenance remains hidden | Structured action contract and diff |
| The agent holds long-lived production credentials | One error propagates across tasks | Short-lived credentials, scope, and isolation |
| Logs have no correlation identifiers | Decisions cannot be tied to side effects | Unified run/task/action event chain |
| Autonomy can only increase | Incidents leave prior permissions in place | Revocable configuration and demotion criteria |
| The agent can edit its evaluator and gate | Self-validation loses independence | Protected governance boundary and dual approval |
Relationship to ADPS patterns
- G1 Approval Gate defines human decision points for high-risk actions.
- G2 Blast Radius Control bounds the effect of errors.
- G3 Progressive Commitment manages permission and autonomy changes.
- X1 Observability establishes runtime evidence.
- G5 Hooks Pipeline enforces deterministic policy outside the model.
Governance patterns appear with Action, Memory, Collaboration, and Reflection patterns. Selection must resolve to concrete actions, data, permissions, and recovery paths.
Release evidence
Before production, provide at least:
- a tool and credential inventory;
- high-risk action contracts;
- replay records for approvals and hooks;
- impact-boundary and isolation tests;
- one complete event chain from proposal to business receipt;
- stop, rollback, and autonomy-demotion exercises.
Governance is ready when controls run, evidence can be reviewed, and abnormal outcomes have an operating path.
ADPS · Agent Design Patterns Society · adpsagent.com
Chronicle
- Recorded source
- ADPS technical position; arguments and references are listed in the article
- First published on ADPS