{ "type": "object", "title": "CP1 - Dependency Mapping 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." }, "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" ] } }, "flows": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string" }, "destination": { "type": "string" }, "port": { "type": "string" }, "bytes_total": { "type": "integer" }, "days_observed": { "type": "integer" }, "source_ref": { "type": "string" } }, "required": [ "source", "destination", "port", "bytes_total", "days_observed", "source_ref" ] } }, "provider": { "type": "string", "enum": [ "sample", "azure", "gcp" ], "default": "sample", "description": "Which estate this run reads: `sample` (the Meridian sample estate, through the alz-* tools) or a live cloud, `azure` or `gcp`, through that cloud's discovery server. Set once for the whole workflow run." }, "findings": { "type": "array", "items": { "type": "object" }, "default": [], "description": "The scan's findings; each finding's dependencies become edges (ADR 0019)." }, "cmdb_cis": { "type": "array", "items": { "type": "object" }, "default": [], "description": "The CMDB step's judged CIs and their reconciliation results: the graph's ci nodes." }, "cmdb_relationships": { "type": "array", "items": { "type": "object" }, "default": [], "description": "The CMDB step's relationships between CIs, parent to child: the graph's ci -> ci edges." }, "cmdb_dangling": { "type": "array", "items": { "type": "object" }, "default": [], "description": "CMDB relationships with an end that matches no CI." } }, "required": [ "engagement_id", "records" ] }