recordMutation method
Records one applied mutation of kind op on target, at the next
position of the invocation's undo chain.
Implementation
void recordMutation(String op, String? target) => _mutations.add(
_entry(
op: op,
target: target,
outcome: AgentAuditOutcome.applied,
undoRef: _context.nextUndoRef(),
),
);