---
library: "bootstrap"
slug: "SpotAudit"
name: "SpotAudit"
ref: "SpotAudit#d3a9"
hash: "sema:SpotAudit#mh:SHA-256:d3a9df6a57f06278d581310ad3f0cb57941311ced0fb7360a5041e9093231b8a"
type: "Verification"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit"
---

# SpotAudit

Random sampling of internal state

Infrastructure · 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://semahash.org/vocabularies/bootstrap/patterns/StateAudit.md).

## Invariants

- The [Audit](https://semahash.org/vocabularies/bootstrap/patterns/Audit.md) target is unpredictable to the auditee before selection.
- Proof is returned within `response_deadline`.

## Parameters

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

## Preconditions

- Auditor has authority key

## Postconditions

- [Audit](https://semahash.org/vocabularies/bootstrap/patterns/Audit.md) result published to ledger

## Failure modes

- Privacy leakage from the sample.

## Where this came from

—

## Builds on

- [Audit](https://semahash.org/vocabularies/bootstrap/patterns/Audit.md) (references)
- [StateAudit](https://semahash.org/vocabularies/bootstrap/patterns/StateAudit.md) (references)

## Used by

- [OathBind](https://semahash.org/vocabularies/bootstrap/patterns/OathBind.md) (references)
- [PromiseGraph](https://semahash.org/vocabularies/bootstrap/patterns/PromiseGraph.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: SpotAudit#d3a9
- Hash: sema:SpotAudit#mh:SHA-256:d3a9df6a57f06278d581310ad3f0cb57941311ced0fb7360a5041e9093231b8a

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
