Validate a subagent result
validate_subagent_resultCheck subagent output against the parent's retained contract before acceptance; confirm valid true, assess evidence, and correct invalid results.
Instructions
Validate worker output structurally against the parent's retained contract.
Required for every returned or revised worker output before acceptance or
integration. Require valid: true, then independently assess its evidence.
Correct and revalidate invalid output; never rewrite its original contract.
Rejects unknown tool arguments. Checks fixed built-in payloads, closed shapes,
task/attempt/revision identity, statuses and evidence references. Limits: nesting 12, 10000 JSON nodes,
100 items per result array (50 for text lists), strings 4000 characters,
and at most 20 diagnostics. Reads no paths/URLs, reruns no checks, writes no
memory and never establishes truth, authorization or issue completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Worker result object or raw JSON string (at most 128000 characters). Raw text must be exactly one JSON object: no fences, duplicate keys, non-finite numbers or trailing prose. | |
| contract | Yes | Original contract object retained by the parent from get_subagent_context, including expected bundle_revision and contract_revision. Never use a worker replacement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| verification | No | structural_only |