Infrastructure · Primitives

StateAudit

Verifying system state after an operation

Definition

Mechanism

A safety pattern where an agent performs an explicit Audit of the State immediately after a write to ensure the StateTransition occurred as expected. Catches silent API failures.

Invariants

  1. Audit timestamp is later than the write it verifies.
  2. Compares observed State against the StateTransition that was expected, not merely that a write returned.

Risks

Failure modes

  1. Silent write failure

    the write reported success and the State did not change. This is the case the pattern exists for.

  2. Audit reads a stale replica, so a successful write looks silently failed.

Relationships

Builds on

References

Audit

Verification of conformance

State

System condition at time T

Used by

References

Reference

Identity

Ref
StateAudit#63cf
Sema ID
sema:StateAudit#mh:SHA-256:63cfd2311667bd0cf3634a23d7c6bb15018d7903ec89e6f5453a827251d7a43c
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:StateAudit#mh:SHA-256:ce13ca0864f9b2658c7101e34eb86670079a96eba47499450f5b6105ba54925e
  • sema:StateAudit#mh:SHA-256:2747b8fd941dcd5a3980556d108b22f376bb3ac0ac6de1561215ad836bf5ed17