Record experiment outcome
hypotize_experiment_record_outcomeRecord how an experiment ended, atomically: result (Win, Lose or Neutral), actual_result, learning_summary, and optionally next_steps, evidence_links, winner_variant, ended_at and final_status. It is the only tool that sets result. Usually called in Analyzing with final_status, which closes the test in the same call; hypotize_experiment_transition is then not needed. The whole outcome is replaced: omitting next_steps or evidence_links clears them, so to correct a single outcome field use hypotize_experiment_update. final_status must be a move allowed from the current status (INVALID_STATUS_TRANSITION) and match the result: Win with Winning, Lose with Failed, Neutral with Inconclusive (OUTCOME_STATUS_MISMATCH); Learned accepts any result. Optimistic concurrency (STALE_EXPERIMENT). Requires the editor or owner role in the project; a contributor or viewer gets INSUFFICIENT_ROLE with required_roles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| ended_at | No | ||
| next_steps | No | ||
| final_status | No | ||
| actual_result | Yes | ||
| experiment_id | Yes | ||
| evidence_links | No | ||
| winner_variant | No | ||
| idempotency_key | Yes | ||
| learning_summary | Yes | ||
| expected_updated_at | Yes |