validate_goal_objective(
objective: str,
) -> None| Name | Type | Description |
|---|---|---|
objective* | str | Goal objective proposed by the user or criteria model. |
Reject a goal objective that cannot fit its persistent context budget.
This checks raw length only. HTML escaping can still expand the text
fivefold, so a caller about to run criteria generation should also call
validate_goal_objective_rendered: an objective that passes here can still
leave no room for any criteria in the rendered notice.