audit_event_compose
Create a governance audit event payload: assigns event_id, computes canonical hash, links to prev_hash (defaults to zeros for event #1), and validates against 19 kinds. Ready to POST.
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').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>",
"kind": "<kind>",
"source": "<source>"
},
"name": "audit_event_compose"
}
}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. |