quantaoptima_log_action
Log AI agent decisions, API calls, and file operations to an HMAC-SHA256 signed, hash-chained audit trail that makes tampering evident.
Instructions
Log any action to the cryptographic audit chain.
Every logged action is HMAC-SHA256 signed and hash-chained to the previous action. Tampering with any entry invalidates the entire chain from that point forward.
Use this to make any AI agent workflow auditable:
Decisions and their reasoning
API calls and responses
File operations
Data transformations
Queries and answers
Tool invocations
Available on all tiers (Community, Pro, Enterprise).
Args: action_type: What happened (e.g., "query", "decision", "file_write", "api_call", "calculation", "approval"). state_before: JSON string of state/input before the action. state_after: JSON string of state/output after the action. metadata: JSON string of extra context (tags, parameters, etc.). actor: Who performed the action (default: "ai-agent").
Returns: JSON with block details including signature and chain position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | ai-agent | |
| metadata | No | {} | |
| action_type | Yes | ||
| state_after | No | {} | |
| state_before | No | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |