AgentMemoryAuditLog class final
An audit log kept for the life of the process — for a build with nowhere to write, and for tests.
- Inheritance
-
- Object
- AgentAuditLog
- AgentMemoryAuditLog
Constructors
- AgentMemoryAuditLog({Duration retention = defaultRetention, DateTime clock()?})
Properties
-
appended
→ Stream<
List< AgentAuditEntry> > -
Each appended batch, as it lands — what a viewer repaints from.
no setterinherited
- clock → DateTime Function()
-
finalinherited
-
entries
→ List<
AgentAuditEntry> -
Every retained entry, oldest first.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- retention → Duration
-
How long an entry is kept.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
append(
Iterable< AgentAuditEntry> batch) → List<AgentAuditEntry> -
Appends
batchin order, numbering it after everything already in the log, and answers the entries as stored.inherited -
applyRetention(
Duration value) → void -
Adopts a new retention, dropping what it no longer covers — from
entries at once and from storage as soon as earlier writes have
landed. Settings are often read after the log is open, so this is how a
configured value arrives.
inherited
-
dispose(
) → Future< void> -
inherited
-
flush(
) → Future< void> -
Waits until every appended batch has been handed to storage.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
List< AgentAuditEntry> batch) → void -
Stores
batch. Called once per append, in order.inherited -
pruneStorage(
) → void -
Deletes from storage what retention no longer covers.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited