audit_log_append
Record behavioral events to an immutable audit log with risk scoring and automatic certificate revocation check for high-risk events.
Instructions
Append a behavioral event to this agent's immutable audit log. Use this to voluntarily record actions — transactions, data operations, API calls. Returns the risk score for the event and a transaction ID for traceability. High-risk events (score >= 0.85) automatically trigger a certificate revocation check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | Yes | Arbitrary key-value pairs describing the event. For transactions: include amount, currency, venue. For data ops: include resource_type, resource_id, operation. Avoid PII — this is stored in the immutable audit log. | |
| event_type | Yes | Type of behavioral event being logged. Use "transaction_initiated" for financial operations, "data_mutation" for write/delete ops, "api_call" for standard API calls. | |
| session_id | No | Optional session ID for grouping related events in the audit trail. |