audit_event_compose
Compose a governance event for audit streams by assigning event_id, computing canonical hash, and linking to previous hash. Supports 19 event kinds plus 'other'.
Instructions
Build a ready-to-POST audit-stream-py GovernanceEvent: assigns event_id, computes the canonical hash, links to prev_hash (defaults to 64 zeros for event #1). Kind must be one of the 19 declared event kinds (decision_card_drafted, watch_drifted, request_denied, etc., plus 'other').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| source | Yes | ||
| payload | No | ||
| event_id | Yes | ||
| prev_hash | No | 64-char hex; defaults to 64 zeros. | |
| timestamp | No | Optional ISO-8601; defaults to now. |