AgentAuditEntry class final
One audited operation.
Constructors
- AgentAuditEntry({int opId = 0, required String op, required String? targetId, String? locator, required AgentAuditEntryPoint entry, required String scopeId, required bool allowed, String? denyReason, int? gate, int undoRef = -1, required DateTime appliedAt, required String toolName, String? programId, String? programSha256, required AgentAuditOutcome outcome, int? mutationCount, int? logBytes})
-
const
-
AgentAuditEntry.fromMap(Map<
Object?, Object?> map) -
factory
Properties
- allowed → bool
-
final
- appliedAt → DateTime
-
final
- denyReason → String?
-
Present iff not allowed: the true reason.
final
- entry → AgentAuditEntryPoint
-
final
- gate → int?
-
For a denial by the scope guard: the gate that refused it, 1–4 in the
fixed order. Null for a refusal no gate made and for everything allowed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locator → String?
-
The resource (document, file, …) the call reached, when it named or
resolved one.
final
- logBytes → int?
-
For the terminal entry of a program run: the size of the output it
produced, never the output.
final
- mutationCount → int?
-
For the terminal entry of a program run.
final
- op → String
-
The mutation kind for a mutation, the tool name otherwise.
final
- opId → int
-
Monotonic across the log. Assigned by AgentAuditLog.append.
final
- outcome → AgentAuditOutcome
-
final
- programId → String?
-
For a program run: the program executed — never its source.
final
- programSha256 → String?
-
For a program run: the SHA-256 of the source that ran, so a later edit
to it is detectable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scopeId → String
-
The invocation id — in-process there is no token to name.
final
- targetId → String?
-
The target the operation named; null for a call that named none.
final
- toolName → String
-
The tool that produced the entry.
final
- undoRef → int
-
The mutation's position in the invocation's undo chain; -1 for a read, a
denial, and a mutation that was rolled back.
final
Methods
-
asRolledBack(
) → AgentAuditEntry - This entry as a mutation that its call or run then reversed. A read, a denial and anything not applied are unchanged — only an applied mutation has something to reverse.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited