{ "type": "object", "properties": { "plan_id": { "type": "string" }, "engagement_id": { "type": "string" }, "tasks": { "type": "array", "items": { "type": "object", "properties": { "task_id": { "type": "string" }, "type": { "type": "string" }, "assigned_agent": { "type": "string" }, "target_ref": { "type": "string" }, "mcp_tool": { "type": "string" }, "depends_on": { "type": "array", "items": { "type": "string" } }, "batch": { "type": [ "integer", "null" ] }, "declared_rps": { "type": [ "number", "null" ] }, "evidence_artifact": { "type": "string" } }, "required": [ "task_id", "type", "target_ref" ] } }, "coverage_gaps": { "type": "array", "items": { "type": "object", "properties": { "scope_entry_id": { "type": "string" }, "reason_code": { "type": "string", "enum": [ "no_connector", "no_read_only_credential", "unsupported_asset_class", "out_of_region", "insufficient_metadata", "no_mcp_source" ] }, "reason": { "type": "string" } }, "required": [ "scope_entry_id", "reason_code", "reason" ] } }, "summary": { "type": "object", "properties": { "scope_entries": { "type": "integer" }, "planned": { "type": "integer" }, "gaps": { "type": "integer" }, "scan_batches": { "type": "integer" } }, "required": [ "scope_entries", "planned", "gaps", "scan_batches" ] }, "findings_note": { "type": "string" } }, "required": [ "plan_id", "engagement_id", "tasks", "coverage_gaps", "summary", "findings_note" ], "title": "Discovery task graph" }