Pre-register an experiment's expectation
compass_opportunities_register_expectationThe honesty mechanism: write what the experiment is expected to change BEFORE evidence exists. Creates a Ledger decision entry and links it to the opportunity — never backfill an expectation to match an outcome. Bind a metric (ledger_metrics_list) + comparator + target when the expectation is measurable; readings then land on the entry as evidence automatically. One expectation per opportunity — revise by superseding in Ledger. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Target value, in the metric's unit. | |
| deadline | No | ISO date the expectation is due by. | |
| metricId | No | Ledger metric to bind (requires target). From ledger_metrics_list. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response, after the user has approved. Omit on the first call. | |
| comparator | No | ||
| expectation | Yes | One sentence — what we expect this to change. | |
| opportunityId | Yes | The change's key (e.g. ACME-12) or id, from compass_opportunities_list. |