Proof of Agency

What the machine was allowed to do. And what would have stopped it.

An agent acted in your tenant at 02:14. The log line proves the act happened. It does not prove the machine had authority to act, and it cannot prove what would have stopped a larger act. Proof of Agency records all three artifacts: the envelope, the act, and the counterfactual.

In one paragraph

Proof of agency holds three artifacts for every autonomous action: the envelope that permitted it before it ran, the chained record of what it did, and the counterfactual showing what would have blocked it had it been one notch different. The envelope's limits are product-set, and each record carries the digest of the envelope in force.

PolicyCortex NIST AI RMF workspace showing 72 of 72 AI Risk Management practices rated across Govern, Map, Measure, and Manage alongside MITRE ATLAS and Guardrails tabs

A machine acted in a regulated environment. On what authority?

When an autonomous system acts in a regulated environment, a reviewer asks three questions answered by three distinct artifacts:

  • What was the machine permitted to do?
  • What did it actually do?
  • What would have stopped it?
the permission

The autonomy envelope: a machine-enforced object that existed before the action, stating which action types were allowed, how many resources could be touched, at what cost, in which environments, inside which change windows.

the act

The evidence record: what the agent actually did, written to the SHA3-256 hash-chained stream of every exported package, carrying the before state hash, the hashed delta, and the rollback id where one was armed.

the counterfactual

The gate evidence: what would have blocked this exact action had it been one notch different, produced by the same gates that screened it live.

The counterfactual: what would have stopped it

For any action the system took, PolicyCortex can show what would have blocked it had it been one notch different. The gates are declarative and versioned, so the evaluation that screened the live action can be recomputed with exactly one parameter moved. Below is the shape: one executed action, then the same action pushed one notch past each constraint.

counterfactual replayproduct-set envelope · gates recomputed live
autonomy_envelopeexisted before the act
# hard ceilings, read at PRE-CHECK
max_affected_resources   5
min_confidence           90
cost_ceiling_usd         100
excluded_environments    [production-critical, restricted-gov]
change_windows           Monday to Friday UTC
evidence recordas executed
# as of 2026-08-13T02:12:09Z
action              storage.tls.enforce
resources_affected  4
confidence          96
cost_usd            14
environment         staging
change_window       inside
mode                GATED
gates               3/3 PASS
rollback_id         rb_7f2c41
verdict             EXECUTED

replay the act, one notch different

execution path

  1. 01 PRE-CHECKPASS
  2. 02 DECISIONSIGNED
  3. 03 EXECUTERAN
  4. 04 VERIFYMATCH
  5. 05 ROLLBACK-IDrb_7f2c41
gateevaluationresult
max_affected_resourcesresources_affected 4, ceiling 5PASS
min_confidencepublished 96, floor 90PASS
cost_ceiling_usdestimated $14, ceiling $100PASS
excluded_environmentsenvironment staging, excluded [production-critical, restricted-gov]PASS
change_windowsinside declared window, Monday to Friday UTCPASS

EXECUTED: all gates passed. rollback_id rb_7f2c41 issued.

A log pipeline added after the fact cannot produce this table.

Illustrative records. The shape is real; the values are sample data.

AUTONOMY ENVELOPE

The envelope: what the machine was allowed to do

The envelope is not a policy document and not a configuration convention. It is an object the execution layer reads before every autonomous action, and the action either fits inside it or does not run unattended. The limits below are product-set; the operator sets autonomy on or off, the mode, the severities in scope, excluded resource types and the emergency stop. Each evaluation is recorded with the digest of the envelope it was checked against.

autonomy_enveloperead at 01 PRE-CHECK, before every action
# product-set limits, machine enforced; records carry this envelope's digest
envelope                 digest sha3:6e1f0c82a9d4
trust_mode               AUTONOMOUS
allowed_action_types     modify  create  configure  scale
                         restart  failover  update
blocked_action_types     destroy  delete  drop  purge
                         wipe  exec  shell
max_affected_resources   5       # blast radius, hard ceiling
min_confidence           0.9     # published by the reasoning layer
cost_ceiling             $100    # per action, estimated before execute
excluded_environments    production-critical  restricted-gov
change_windows           Mon to Fri, 00:00-24:00Z
dry_run_first            true
emergency_stop           andon cord: any operator, halts every envelope
SHADOW

Watch only. The reasoning layer proposes and publishes confidence; zero actions are executed. Every deployment starts here. Read-only onboarding uses this mode after access is reviewed and the deployment scope is agreed.

GATED

The default. A human approves each action: per action, per control class, per resource type, or per environment. The approving identity becomes part of the act's record.

AUTONOMOUS

Narrow, well-tested action classes only. All three policy gates must pass, 3/3, and published confidence must clear the envelope floor of 0.9.

SIX-GATE EXECUTION

The act: what it actually did

Every remediation PolicyCortex executes directly, in every trust mode, runs inside the same wrapper. We call it the Safety Sandwich because the action is never the first thing that happens and never the last. The gate's verdict is stored on the execution record, so the act arrives with its context attached.

00 DETECT

The condition is observed and recorded before anything is proposed. Detection sources are inventoried per scope, so an unobserved scope is a declared gap, not a silence.

01 PRE-CHECK

A grammar validator rejects any proposal outside the permitted vocabulary, and a deterministic postcondition check runs on the planned change (six properties today: encryption at rest, public access, TLS version, ingress range, IAM wildcards, resource count); a rejection or a failed check stops it in every trust mode. An autonomous action must also stay inside the envelope's blast radius and pass its policy gates, 3/3, or it stops here, goes to a human, and the stop is recorded.

02 DECISION

The reasoning layer proposes a captureState and restoreState pair and publishes its confidence. It cannot execute. In GATED mode, this is where the human signs.

03 EXECUTE

The action runs, inside the envelope it passed at pre-check, within the change window, under the cost ceiling.

04 VERIFY

The state delta is hashed and compared to what was proposed. A mismatch triggers rollback where a restore exists and rollback is enabled for the action; otherwise the action goes to manual review. The mismatch is recorded either way.

05 ROLLBACK ID

Where a restore exists and rollback is enabled for the action, the record closes with an identifier that reverses this exact action.

AI ESTATE & RMF

The AI estate: every model and agent, not only ours

Agency proof is wider than our own remediation handlers. The same record inventories the models and agents acting in your tenant: which identities they hold, which channels and egress paths they use, which envelope binds them, and which techniques they are exposed to. When someone asks whether an AI system in your environment is in scope, the record answers from data, as of a date, not from a spreadsheet somebody maintains. The standing federal obligations this estate record answers are tabulated on the AI governance page.

GOVERN

The envelope is the governance object: set before use, machine enforced, with every evaluation recorded against its digest.

MAP

The estate inventory is the map: models, agents, identities, channels, exposure, as of a timestamp you choose.

MEASURE

Published confidence per proposal, gate results per action, hashed verify deltas per execution.

MANAGE

Trust modes, change windows, dry-run first, and the andon cord, with their use recorded as evidence rather than asserted in a narrative.

OFFLINE VERIFICATION

How the record is verified

Agency records verify the same way state and change records do, because they live in the same chain. The digest of an action record commits to the policy decision that permitted it, the digest of the envelope it was evaluated against, the before and after state hashes, and the digest of the record before it.

verify.agencyIllustrative replay
Output complete
$ python3 verify_ledger.py ledger.jsonl
recomputing sha3-256 over exported records
chain:              INTACT
head:               sha3:9b41c2e07d33
envelope_digests:   one on every agency record
gaps_declared:      1 (2026-02-19T22:04Z to 2026-02-21T03:11Z)

Demonstration only; no commands are executed.

FRAMEWORK MAPPING

Where it maps

NIST 800-53
AC-6 least privilege enforced as an envelope rather than asserted in a narrative, CA-7 continuous monitoring, SI-4 system monitoring from the same chain.
NIST AI RMF
GOVERN, MAP, MEASURE, MANAGE evidenced from the envelope and estate records above, not from a questionnaire.
MITRE ATLAS
Estate inventory annotated against AML.T0048, T0051, T0023, T0024, T0017, and T0040, with unbounded techniques recorded as declared gaps.
MITRE ATT&CK
Acts and detections carry technique references, so an assessor can trace a 2 a.m. action to an adversary model without leaving the record.
CMMC Level 2 / NIST 800-171
Agent actions produce control evidence as a byproduct, inside the same base that covers the 110 requirements.

Prove the authority behind every machine action.