Report goal measurement
report_goal_measurementRecord a measured value for a goal's success metric and re-evaluate the goal against its target.
Stores the value as success_metric.current, recomputes the goal's
progress from it, and returns the evaluation: progress_score,
confidence_score, success_met and calculation detail. It does not close
the goal; use close_goal when success_met is true and you want to
conclude it.
The goal needs a success_metric with a 'target' and usually an
'operator' (default '=='), set with update_goal, e.g.
{"metric": "test_coverage", "target": 0.9, "operator": ">="}. Without a
target the call fails with 422. Goals evaluated by a structured
success_condition also reject measurements with 422.
Args:
goal_id: UUID of the goal.
value: The measured value. Zero is a valid measurement.
baseline: Starting point used to compute progress, mainly for
reduction goals. Overwrites any stored baseline. If omitted and
none is stored, the previous measurement (or this one, if there
is none) becomes the baseline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| goal_id | Yes | ||
| baseline | No |