---
slug: "SpotAudit"
name: "SpotAudit"
type: "Verification"
layer: "Infrastructure"
ref: "SpotAudit#d3a9"
sema_id: "sema:SpotAudit#mh:SHA-256:d3a9df6a57f06278d581310ad3f0cb57941311ced0fb7360a5041e9093231b8a"
tags: ["Infrastructure","Verification"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.world/scapes/bootstrap.json
url: https://mindscape.world/bootstrap/SpotAudit/
related: ["Audit","StateAudit","OathBind","PromiseGraph"]
---

# SpotAudit

Random sampling of internal state

Layer: Infrastructure · Category: Verification

## Mechanism

A probabilistic audit where a verifier requests a random sample of an agent's internal memory or logs. The agent must provide a Merkle proof for that specific slice. Keeps agents honest without full audits. Utilizes [StateAudit](https://mindscape.world/scapes/bootstrap/StateAudit.md).

## Invariants

- The [Audit](https://mindscape.world/scapes/bootstrap/Audit.md) target is unpredictable to the auditee before selection.
- Proof is returned within `response_deadline`.

## Preconditions

- Auditor has authority key

## Postconditions

- [Audit](https://mindscape.world/scapes/bootstrap/Audit.md) result published to ledger

## Failure modes

- Privacy leakage from the sample.

## Parameters

- `response_deadline` (Duration, unspecified): How long the auditee has to return a proof. Referenced by the second invariant, which previously named a T_max nothing defined.
- `sample_size` (Integer, [1, 1000]): Slices requested per audit.

## Builds on

- [Audit](https://mindscape.world/scapes/bootstrap/Audit.md) (Infrastructure; References)
- [StateAudit](https://mindscape.world/scapes/bootstrap/StateAudit.md) (Infrastructure; References)

## Used by

- [OathBind](https://mindscape.world/scapes/bootstrap/OathBind.md) (Infrastructure; References)
- [PromiseGraph](https://mindscape.world/scapes/bootstrap/PromiseGraph.md) (Society; References)

## Identity

- Sema ID: `sema:SpotAudit#mh:SHA-256:d3a9df6a57f06278d581310ad3f0cb57941311ced0fb7360a5041e9093231b8a`
- Ref: `SpotAudit#d3a9`
- Supersedes:
  - `sema:SpotAudit#mh:SHA-256:66730b2af0aece3adb72ca9e81b48085fc3654642b14cf82f3d8d2ae4890396d`
  - `sema:SpotAudit#mh:SHA-256:c00cb4b5955cf4cefc126978f1c4f06d5f1a9b505ff0b92f50af1b047b82c3dc`

## Links

- [Pattern page](https://mindscape.world/bootstrap/SpotAudit/)
- [View in the interactive graph](https://mindscape.world/bootstrap/#SpotAudit)
- [JSON](https://mindscape.world/scapes/bootstrap/SpotAudit.json)
- [Index of all patterns](https://mindscape.world/scapes/bootstrap.json)
