log_outcome
Log a signed outcome event linked to a prior decision via decision_event_hash. Managed Mode (default): omit signing fields - the managed key from the linked decision's agent is used automatically when the decision was also managed. For client-signed decisions, pass agent_private_key_b64 or agent_public_key + signature using the same agent key. Signing method must match the linked decision (managed or client-signed). Outcomes do not accept scenario fields - scenario context is inherited from the linked decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| signature | No | ||
| agent_name | No | Ignored for outcomes - managed signing uses the linked decision's agent. | |
| outcome_type | Yes | Private semantic type, e.g. pnl | |
| metadata_json | No | ||
| outcome_label | No | Private human-readable outcome label (account only). | |
| outcome_value | Yes | Private numeric result | |
| agent_public_key | No | ||
| public_output_json | No | Optional public structured output (shown on proof pages). Stored gzip-compressed; event hash includes content hash only. | |
| decision_event_hash | Yes | 64-char hex hash of the linked decision event. | |
| public_outcome_type | No | Optional public mirror of outcome_type (shown on proof pages). | |
| public_outcome_label | No | Optional public outcome summary (shown on proof pages). | |
| public_outcome_value | No | Optional public mirror of outcome_value (shown on proof pages). | |
| agent_private_key_b64 | No | Client-side signing override. |