{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "One CMDB row, normalised to our CI schema (ADR 0018, ADR 0019)", "description": "What the normalise_cmdb_batch sub-agent returns for one row of an uploaded CMDB export. Every string is copied verbatim from the row; environment and lifecycle are the only judgments. Code adds source, evidence_ref and location.", "type": "object", "properties": { "row": { "type": "integer", "description": "The row number shown at the start of the row's line." }, "skip": { "type": "string", "minLength": 1, "description": "Only for a row that is not a CI (a total, a blank, a repeated header): why." }, "ci_ref": { "type": "string", "minLength": 1, "description": "The CMDB's own identifier for the CI, verbatim." }, "name": { "type": [ "string", "null" ] }, "cloud_resource_id": { "type": [ "string", "null" ], "description": "An Azure resource id or GCP asset name, verbatim, if the row has one." }, "ci_class": { "type": [ "string", "null" ] }, "environment_raw": { "type": [ "string", "null" ] }, "environment": { "type": "string", "enum": [ "production", "non_production", "dr", "unknown" ] }, "location_raw": { "type": [ "string", "null" ] }, "status_raw": { "type": [ "string", "null" ] }, "lifecycle": { "type": "string", "enum": [ "active", "retired", "unknown" ] }, "owner": { "type": [ "string", "null" ] }, "business_service": { "type": [ "string", "null" ] }, "support_group": { "type": [ "string", "null" ] }, "other_attributes": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Header -> value, both verbatim, for any other column worth keeping." }, "injection_detected": { "type": "boolean" }, "related": { "type": "array", "description": "Other CIs this row names as its parent or child, as written in the row (ADR 0019).", "items": { "type": "object", "properties": { "ref": { "type": "string", "minLength": 1 }, "role": { "type": "string", "enum": [ "parent", "child" ] }, "type_raw": { "type": [ "string", "null" ] }, "type": { "type": "string", "enum": [ "hosted_on", "app_to_db", "app_to_app", "app_to_shared_service", "middleware", "network_attachment", "unclassified" ] } }, "required": [ "ref", "role", "type" ], "additionalProperties": false } } }, "required": [ "row" ], "additionalProperties": false }