anthropic.defineOutcome defines work and a rubric for iterative Claude outcome evaluation.
Example
automations/anthropic-define-outcome.automation.ts
Inputs
RequiressessionId, description, and a text or file rubric. maxIterations defaults to 3 and allows up to 20. Inputs use public camelCase names and accept signals.