asRolledBack method

AgentAuditEntry asRolledBack()

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.

Implementation

AgentAuditEntry asRolledBack() =>
    outcome == AgentAuditOutcome.applied && undoRef >= 0
    ? _with(outcome: AgentAuditOutcome.rolledBack, undoRef: -1)
    : this;