AuditTrail
Immutable append-only log of agent actions for compliance and debugging
Mechanism
Every consequential Agent action (state mutation, external call, delegation, decision) appends a Signed entry to an immutable Ledger whose sequence number advances via MonotonicCounter, so no entry can be wedged between two existing ones. Each entry contains: timestamp, Agent Identity, action type, input hash, output hash, and the sema pattern invoked. Extends Trace from single-entity lineage to cross-agent compliance logging. The trail is append-only — entries cannot be modified or deleted. For cross-agent auditing, individual trails are aggregated via Merkle roots into a shared Snapshot, enabling any party to verify the complete history without accessing raw entries.
Invariants
- Append-Only: No entry in the Ledger may be modified after creation
- Every entry must be Signed by the acting Agent
- Trace provenance must link each entry to the sema pattern that triggered it
Signature
- Trace(Ledger)
Preconditions
Postconditions
- Action recorded with full provenance in Ledger
- Snapshot of trail Merkle root available for external verification
Failure modes
- Storage exhaustion (unbounded trail growth in long-running systems).
- Clock skew (distributed agents disagree on timestamps — use logical clocks).
- Selective logging (agent omits inconvenient entries — requires external Audit).
Where this came from
—
Builds on
- Identity references
- Agent references
- Audit references
- Sign references
- Ledger references
- Trace references
- MonotonicCounter references
- Snapshot composes_with
Related
Identity
- Ref:
AuditTrail#163b - Hash: sema:AuditTrail#mh:SHA-256:163b784f86e448340b94d0459483f0f476e052b5b7c589113f5c7df5dd1115a8
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository