record_result
Record an agent outcome, such as task completion, test failure, or tool rejection, with confidence and details to update health and EISV metrics for continuous runtime governance.
Instructions
Primary workflow name for recording outcomes; implemented by outcome_event(). EISV fields: E=Energy [0,1] (mixed-provenance capacity estimate); I=Information Integrity [0,1] (mixed-provenance calibration estimate); S=Entropy [0,1] (drift from the agent's own normal); V=Valence [-1,1] (EMA-smoothed E-I imbalance; positive=motion outruns integrity, negative=integrity outruns motion).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Type-specific metadata (e.g., mark_count, test_name, error_message) | |
| is_bad | No | Whether this is a negative outcome. Inferred from type if omitted. | |
| agent_id | No | Agent ID. Falls back to session-bound agent_id if omitted. | |
| confidence | No | Agent confidence at outcome time (0-1). Looked up from last check-in if omitted. | |
| session_id | No | Optional session id; falls back to client_session_id and then to context. | |
| outcome_type | Yes | Type of outcome event | |
| outcome_score | No | Quality score 0.0 (worst) to 1.0 (best). Inferred from type if omitted. | |
| prediction_id | No | Tactical prediction id from a prior process_agent_update response. | |
| response_mode | No | 'full' is an alias for include_semantics=true; 'lite' (default) returns the small snapshot. | |
| decision_action | No | The decision the agent took (e.g. 'proceed', 'pause'). | |
| continuity_token | No | Ownership proof from onboard()/identity(), for same-live-process rebinds only. Not a cross-process resume credential. | |
| client_session_id | No | In-session binding id from start_session()/identity(); pass it on same-process calls. Not a cross-process proof. | |
| include_semantics | No | If true, the response's eisv_snapshot carries the full EISV ontology (state_semantics role table + hierarchy). | |
| verification_source | No | Provenance of this outcome. | agent_reported_tool_result |