Declare the output structure
{ body, sources }. Runtime checks outputSchema before accepting success. A string, missing sources, or empty body cannot advance as an accepted result.
Schema checks types and required fields. Whether sources support conclusions or all requirements are covered needs business validation.
Register a business validator
This validator implements an example requirement: the body must mention at least one source identifier. It does not verify source authenticity; add that check for your application.Try valid and invalid results
Start separate Runs and have the generator report:
After rejection, inspect the error and original Action. Do not relabel failed output as success. Correct the executor or business result and follow an allowed recovery path.
For disk files, JSON structure alone cannot prove existence or content. Declare real files and conditions with artifact validation.

