> For the complete documentation index, see [llms.txt](https://docs.metamynd.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metamynd.ai/regulatory-compliance/compliance-and-auditing.md). Agents can also search and read this documentation through its [MCP server](https://docs.metamynd.ai/~gitbook/mcp).

# Compliance & Auditing

This page covers the part that actually matters when a regulator, a court, or your own audit committee asks a hard question after the fact: **how do you prove it, without asking anyone to trust you?**

**The starting position: MetaMynd is not the record-keeper of last resort**

Every decision the authorize gate makes is anchored as evidence — but what's anchored is a commitment, not the raw transaction. That's a deliberate constraint, not a limitation to work around: a compliance system that becomes a second copy of every payment amount and counterparty an agent ever touched is a liability, not a control. The actual record — the amount, the destination, the full context — stays with the party that holds it (the agent's owner, the counterparty), each with an independent cryptographic salt. Auditing this system means verifying that a governed decision happened, was unaltered, and was anchored at a specific time — and, when lawfully required, that one specific record opens to exactly what it claims.

**What an auditor can ask for**

For any governed action, the platform can show three things separately: **what was authorized**, **what was executed**, and **how sure anyone can be** about the second.

| Artefact                          | What it proves                                                                                                                                                                                                                                                                              | How it's verified                                                                                                                                                     |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Anchored decision record**      | A decision was made, under which controls, at what time. The digest of the exact payload the agent signed (when it bound one) is folded into the anchored commitment, so the record shows which payload was authorized, not just the amount.                                                | Merkle inclusion proof (`GET /magp/evidence/{eventId}/proof`) against a batch root anchored on Hedera; checkable offline with `magp-evidence` (below)                 |
| **Action Passport**               | One specific authorization was granted — signed, single-use, with an expiry.                                                                                                                                                                                                                | Signature against the public key at `GET /action-passport/pubkey`, offline; or the public verification page at `metamynd.ai/verify/action-passport/{authorizationId}` |
| **Execution receipt**             | What the hold actually settled for. Version 2 also signs the `settlementEvidence` — what the settled figure rests on.                                                                                                                                                                       | Same key, offline                                                                                                                                                     |
| **Authorized vs. settled amount** | Both are kept: the amount the gate authorized is never overwritten at settlement, and every settlement records its evidence — `counterparty_attested` (the executing service said so), `independently_confirmed` (an observer of the payment confirmed it), `operator_resolved`, and so on. | Outcome lookup `GET /policy/mandate/authorize/{id}/effect`; the execution receipt                                                                                     |
| **Signed human decisions**        | Who approved, rejected or modified an escalated action — including the modification itself. Each vote carries a platform-notarised Ed25519 signature.                                                                                                                                       | Against the key at `GET /magp/policy/pubkey`, offline                                                                                                                 |

Note what the execution receipt's `payloadMatch` field does and doesn't say: it confirms the amount charged did not exceed the amount authorized. Whether the executed *payload* matched the authorized one is established by payload binding at the claim, not by the receipt.

**Two levels of audit, two tools**

**1. Auditing a single decision**

`@metamynd/magp-evidence`'s auditor checks a disclosure package — a record its holder has chosen to open — in four steps, entirely offline:

1. **Leaf integrity** — the evidence Merkle leaf recomputes from the disclosed record.
2. **Inclusion** — the Merkle proof reproduces the anchored batch root.
3. **On-chain anchoring** — that root was actually anchored on the evidence HCS topic, read from a public Hedera mirror node, with a real consensus timestamp.
4. **Commitment opening** (optional) — the disclosed values and salt open to the anchored commitment, confirming these exact figures were the ones governed.

```bash
npx -p @metamynd/magp-evidence magp-auditor disclosure.json --topic 0.0.5000 --network testnet
```

No MetaMynd server is contacted at any point. A regulator, an external auditor, or opposing counsel in a dispute can run this against a mirror node MetaMynd doesn't operate and reach the same answer MetaMynd would.

**2. Auditing a tenant's full trust-graph state**

For questions that span more than one record — "was this agent's authority chain ever broken," "does this decision log actually validate against the same rules MetaMynd claims to enforce" — `@metamynd/mmt-graph`'s auditor **replays an entire disclosed event log through a fresh graph engine**, checks the recomputed Merkle root against what was claimed, and re-runs the same SHACL structural validation and authority-chain invariant MetaMynd itself runs. A third party never has to trust that MetaMynd validated its own data correctly the first time — they rebuild it and check.

```bash
npx -p @metamynd/mmt-graph mmt-graph-auditor disclosure.json --topic 0.0.x --network testnet
```

Where this stands: the trust-graph event log can be anchored to Hedera in periodic batches, and historical events can be backfilled into it. Reading trust answers from the graph is chosen per question; the evidence-path question is still answered from the relational store. See [mmt-graph](https://docs.metamynd.ai/sdks/mmt-graph) and [Trust Graph Operations](https://docs.metamynd.ai/agent-ontology/trust-graph-operations). For a single record you need to stand behind, the single-decision auditor above is the most direct proof.

**Exports**

An owner can take their records out in several forms:

| Export                  | What it holds                                                                                                                                                                                                                                   | Where                                                                                |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| **Decision list (CSV)** | Each decision with its authorisation, approval, execution, settlement and evidence stages, for the period, agent, verdict, source or reason code you filtered on. Up to 5,000 rows.                                                             | Reporting → Decision Explorer → **Export CSV**                                       |
| **Audit record**        | One decision: the anchored leaf and its Merkle inclusion proof, plus what was requested, the mandate version, the policy bundle and the rule that decided.                                                                                      | A decision's detail in the Decision Explorer; `GET /evidence/{eventId}/audit-record` |
| **Evidence pack**       | A regulator-ready pack of your evidence, as JSON or printable HTML.                                                                                                                                                                             | `GET /evidence/pack`                                                                 |
| **Compliance artefact** | A signed, offline-verifiable artefact for one agent, also in **SAFR's own signed export shape** (`?format=safr`) and as a monitoring view bucketed into the **UK AI Risk Management Toolkit's** risk categories (`?format=uk-ai-risk-toolkit`). | `GET /evidence/artifact`                                                             |
| **Audit Log (CSV)**     | Administrative changes: who changed which role, setting, mandate, rule, agent state, credential, incident or review, and whether it went through, including refused attempts. Up to 10,000 rows.                                                | Reporting → Audit Log → **Export CSV**                                               |

The Audit Log is a separate record from the evidence ledger. Evidence records what the gate decided about an agent's action and is anchored on Hedera. The Audit Log records what people changed. It is append-only and hash-chained, and its chain head is anchored on Hedera every 10 minutes when new entries were written, so entries cut from the end or a rewritten chain no longer match the anchor. An organisation can verify the chain against its latest anchor itself, and see how many of its own entries the anchor covers. Unlike evidence, there is no per-entry proof, and entries after the latest anchor are covered once the next one lands. See [Evidence & Audit](https://docs.metamynd.ai/core-concepts/evidence-and-audit) and [Administrative Audit Log](https://docs.metamynd.ai/core-concepts/administrative-audit-log). For the dashboard views behind these exports, see [Reporting & the Decision Explorer](https://docs.metamynd.ai/guides/reporting-and-the-decision-explorer).

**Regulator access**

A regulator does not have to ask you for a pack each time. Access has two parts, and both are needed:

1. **A regulator seat.** MetaMynd's platform admins assign it to the regulator's user account (Super Admin → Regulators). A seat on its own reads nothing.
2. **A grant from you.** An organisation admin grants that regulator read access to one legal entity by entering the regulator's email (Legal Entities → Supervision). The grant covers that legal entity only, never your other legal entities, and can be given an expiry date.

With a live grant, the regulator can list that legal entity's decisions, read the assurance statement for one decision, and, if the grant includes the `proofs` scope, download its evidence pack from their **Supervision** page (JSON, or a printable report, optionally for a date range). Every supervisory read is recorded in a hash-chained access log that both you and the regulator can read, with a check that the chain is intact: you can see who looked, at what, and when. You can revoke a grant at any time. If the platform removes a regulator's seat, every grant held by that regulator is revoked with it. See [Supervisory Access for Regulators](https://docs.metamynd.ai/regulatory-compliance/supervisory-access-for-regulators).

**Complaints from the public**

A member of the public can file a complaint about an AI agent. Who can read it depends on who you are:

* **MetaMynd's platform reviewers** triage complaints. They see the complaint, including the complainant's contact details, and move it through its statuses.
* **The owner of the agent named** can read the complaint about their agent, without the complainant's identity. The owner does not change the complaint's status.
* **Anyone else** sees nothing, including whether the complaint exists.

**What this looks like against a specific framework**

| Requirement                                                                        | Satisfied by                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| EU AI Act — record-keeping (Art. 12)                                               | The evidence ledger itself: signed, Merkle-batched and Hedera-anchored, auditable via `magp-evidence` without MetaMynd's involvement. The Decision Explorer lists each decision with its stages and exports it as CSV; the append-only Audit Log records administrative changes to the controls themselves. (Retention is not yet a documented, enforced period — see the [Regulatory Control Matrix](https://docs.metamynd.ai/regulatory-compliance/regulatory-control-matrix).) |
| EU AI Act — human oversight (Art. 14)                                              | `escalate` holds the action for a person; approvals can require M of N reviewers with a named role and authority level; a reviewer can **modify** the action, which re-enters the gate; every decision is signed. After a modification the agent must bind the payload of the action that will actually run (late binding) before an executor that requires binding can claim it.                                                                                                 |
| EU AI Act — monitoring and suspension (Art. 26)                                    | Containment (`suspend`, `quarantine`) stops an agent's next call. Scoped circuit breakers are enforced by default once an operator arms one for a scope. **Automated containment** — repeated denials quarantine the agent (`REPEATED_DENIALS_CONTAINED`) — is opt-in per deployment.                                                                                                                                                                                             |
| Integrity of the rules being enforced                                              | Policy bundles are signed; guards pin the signing key and refuse a tampered, unsigned or stale bundle for value-bearing actions (`POLICY_BUNDLE_SIGNATURE_INVALID`, `POLICY_BUNDLE_STALE`, `POLICY_BUNDLE_UNVERIFIED`).                                                                                                                                                                                                                                                           |
| Integrity of what was executed                                                     | Payload binding: the executing service is held to the exact payload the agent signed (`PAYLOAD_DIGEST_MISMATCH`), and each authorization executes at most once (`AUTHORIZATION_ALREADY_CLAIMED`).                                                                                                                                                                                                                                                                                 |
| A regulator's right to verify without relying on the regulated party's own tooling | Both auditors are independently implemented, zero-dependency, and run against public infrastructure (a Hedera mirror node) — not against MetaMynd's API                                                                                                                                                                                                                                                                                                                           |
| Data minimisation alongside auditability                                           | Commitments and salts, not raw records — see [Why Blind Governance](https://docs.metamynd.ai/zero-knowledge/why-blind-governance) for how the same principle extends to policy verification itself                                                                                                                                                                                                                                                                                |

See [Regulatory Mapping](https://docs.metamynd.ai/regulatory-compliance/regulatory-mapping) for the framework-by-framework picture, the [Regulatory Control Matrix](https://docs.metamynd.ai/regulatory-compliance/regulatory-control-matrix) for obligation-level traceability, and [SAFR Alignment](https://docs.metamynd.ai/regulatory-compliance/safr-alignment) for how the reason codes these decisions carry map to an external vocabulary.

**What compliance and auditing does&#x20;*****not*****&#x20;mean here**

It does not mean MetaMynd holds a growing database of everyone's transaction history "just in case." It does not mean an auditor has to trust MetaMynd's own report about itself. It does not mean every record is disclosable by default — disclosure is the **holder's** decision, on lawful demand, one record at a time, retaining its own salt for the retention period. Losing that salt makes a record unopenable, never forgeable — the failure mode is inconvenience, not a silent gap in the evidence itself.

And it does not mean certification. MetaMynd provides controls and verifiable evidence that support these obligations; it does not certify that you, or MetaMynd, comply with any framework.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.metamynd.ai/regulatory-compliance/compliance-and-auditing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
