actionNamestring required
status'pending' | 'waiting_for_approval' | 'approved' | 'not_approved' | 'running' | 'error' | 'complete' | 'cancelled' required
requesterUserKeystring required
requesterNamestring nullable required
targetDeviceKeystring nullable
targetDeviceHostnamestring nullable
approvedByNamestring nullable
startedAtstring date-time nullable required
completedAtstring date-time nullable required
createdAtstring date-time required
totalDurationMsinteger nullable
scriptDurationMsinteger nullable
triggerSource'manual' | 'sparky_chat' | 'schedule' | 'ticket_recommendation'
What initiated an execution.
Set server-side per callsite, never from a request body — provenance on an
audit record must not be forgeable. Rows created before this field existed
are NULL ("unknown"); there is no data from which to recover their origin.