moo.sdk.audit

Action audit log helpers.

record_action() is the single write point for the append-only AuditLog. Core paths (create, recycle, sanction) call it; it resolves the actor from the current account (G) and skips anything with no human actor, so bootstrap and system activity never floods the log. query_audit() is the staff-only read side.

Functions

query_audit([actor, action, target, limit])

Return recent audit rows, most recent first (staff-only at the verb layer).

record_action(action[, target, detail, ...])

Append one consequential action to the audit log.