pub fn api_audit(
page: Option<i64>,
actor: Option<String>,
_caller: Actor,
pool: &State<DbPool>,
) -> Result<Json<AuditPage>, Status>Expand description
The audit log (agent twin of the /admin/audit screen): admin actions, most-recent first,
optionally filtered to one actor, paginated — [AUDIT_PAGE_SIZE] rows per page
(0-based; has_next flags more history). Token-gated — reading who-did-what is sensitive,
so it takes an Actor like the writes it records. 503 if the pool is exhausted.