{ "type": "object", "title": "CP1 - Discovery Critic Agent input", "properties": { "engagement_id": { "type": "string", "description": "The engagement being discovered, e.g. ENG-MERIDIAN-001." }, "run_id": { "type": "string", "description": "The discovery run; the same id across the workflow's steps." }, "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" ] } }, "findings": { "type": "array", "items": { "type": "object", "properties": { "scope_entry_id": { "type": "string" }, "hostname": { "type": "string" }, "os": { "type": "string" }, "services": { "type": "array", "items": { "type": "string" } }, "dependencies": { "type": "array", "items": { "type": "string" } }, "migration_risks": { "type": "array", "items": { "type": "string" } }, "prompt_injection_detected": { "type": "boolean" }, "injection_note": { "type": "string" }, "evidence_ref": { "type": "string" } }, "required": [ "scope_entry_id", "hostname", "os", "services", "dependencies", "migration_risks", "prompt_injection_detected", "injection_note" ] } }, "records": { "type": "array", "items": { "type": "object", "properties": { "canonical_id": { "type": "string" }, "scope_entry_id": { "type": [ "string", "null" ] }, "hostname": { "type": "string" }, "fqdn": { "type": "string" }, "asset_class": { "type": "string", "enum": [ "server", "network_device", "storage_array", "hypervisor", "crypto_appliance", "database", "cloud_resource" ] }, "environment": { "type": "string", "enum": [ "production", "non_production", "dr", "unknown" ] }, "os": { "type": "object", "properties": { "family": { "type": "string" }, "version": { "type": "string" } }, "required": [ "family", "version" ] }, "services": { "type": "array", "items": { "type": "string" } }, "facts": { "type": "object" }, "fact_source": { "type": "string" }, "sources": { "type": "array", "items": { "type": "object", "properties": { "source_type": { "type": "string", "enum": [ "scan", "cmdb", "itsm", "provider_api", "file" ] }, "source_ref": { "type": "string" }, "evidence_ref": { "type": [ "string", "null" ] } }, "required": [ "source_type", "source_ref" ] } }, "match_basis": { "type": "array", "items": { "type": "string", "enum": [ "serial", "cloud_resource_id", "fqdn", "hostname", "ip" ] } }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string" }, "values": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string" }, "source_ref": { "type": "string" } }, "required": [ "value", "source_ref" ] } } }, "required": [ "field", "values" ] } }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "canonical_id", "hostname", "asset_class", "environment", "os", "facts", "fact_source", "sources", "match_basis", "conflicts", "confidence" ] } }, "drift_items": { "type": "array", "items": { "type": "object", "properties": { "drift_id": { "type": "string" }, "type": { "type": "string", "enum": [ "orphan", "ghost", "stale_attribute" ] }, "canonical_id": { "type": [ "string", "null" ] }, "ci_ref": { "type": [ "string", "null" ] }, "field": { "type": [ "string", "null" ] }, "discovered_value": { "type": [ "string", "null" ] }, "cmdb_value": { "type": [ "string", "null" ] }, "evidence_refs": { "type": "array", "items": { "type": "string" } }, "suggested_action": { "type": "string", "enum": [ "add_ci", "retire_ci", "update_attribute", "investigate" ] } }, "required": [ "drift_id", "type", "evidence_refs", "suggested_action" ] } }, "stores": { "type": "array", "items": { "type": "object", "properties": { "canonical_id": { "type": "string" }, "store_name": { "type": "string" }, "highest_class": { "type": "string", "enum": [ "PCI", "PHI", "PII", "none" ] }, "class_counts": { "type": "object", "properties": { "PII": { "type": "integer" }, "PCI": { "type": "integer" }, "PHI": { "type": "integer" }, "review_required": { "type": "integer" } }, "required": [ "PII", "PCI", "PHI", "review_required" ] }, "requires_disposition_controls": { "type": "boolean" }, "reason": { "type": "string" }, "column_tags": { "type": "array", "items": { "type": "object", "properties": { "table": { "type": "string" }, "column": { "type": "string" }, "class": { "type": "string", "enum": [ "PII", "PCI", "PHI", "none", "review_required" ] }, "basis": { "type": "array", "items": { "type": "string", "enum": [ "column_name", "data_type", "column_comment", "record_note", "compliance_scope" ] } }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "table", "column", "class", "basis", "confidence" ] } } }, "required": [ "canonical_id", "store_name", "highest_class", "class_counts", "requires_disposition_controls", "reason", "column_tags" ] } }, "edges": { "type": "array", "items": { "type": "object", "properties": { "edge_id": { "type": "string" }, "source": { "type": "string" }, "target": { "type": "string" }, "type": { "type": "string", "enum": [ "hosted_on", "app_to_db", "app_to_app", "app_to_shared_service", "middleware" ] }, "protocol_port": { "type": [ "string", "null" ] }, "evidence": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "cmdb_relationship", "declared", "config", "flow", "trace" ] }, "ref": { "type": "string" } }, "required": [ "kind", "ref" ] } }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 }, "validation": { "type": "string", "enum": [ "auto_approved", "sme_review_recommended", "sme_validation_required" ] } }, "required": [ "edge_id", "source", "target", "type", "protocol_port", "evidence", "confidence", "validation" ] } }, "network_findings": { "type": "array", "items": { "type": "object", "properties": { "finding_id": { "type": "string" }, "type": { "type": "string", "enum": [ "bottleneck", "single_point_of_failure", "unsupported_device", "legacy_protocol", "address_overlap", "unowned_rule" ] }, "subject": { "type": "string" }, "measurement": { "type": [ "string", "null" ] }, "window": { "type": [ "string", "null" ] }, "evidence_refs": { "type": "array", "items": { "type": "string" } }, "severity": { "type": "string", "enum": [ "high", "medium", "low" ] } }, "required": [ "finding_id", "type", "subject", "measurement", "window", "evidence_refs", "severity" ] } } }, "required": [ "engagement_id", "findings" ] }