{"$schema":"http://json-schema.org/draft-07/schema#","description":"JSON schema for the machine-readable diagnostic report compiled on GDC bare-metal target nodes.","properties":{"bootstrap_stages_progress":{"items":{"properties":{"evidence":{"description":"Metrics or configurations captured during the stage-gate check as cryptographic or technical proof of state completion.","properties":{"cis_benchmarks":{"$ref":"#/properties/cis_benchmarks_evidence"}},"type":"object"},"name":{"type":"string"},"stage_id":{"enum":["HARDWARE_SETTLING","DISK_SANITIZATION","NAMESPACE_SYNC","STORAGE_LAYOUT","OS_PAYLOAD","TPM_SEALING","BOUNDARY_HUB_TURNUP","LINUX_READY_VALIDATION"],"type":"string"},"status":{"enum":["PENDING","IN_PROGRESS","COMPLETED","FAILED","BYPASSED"],"type":"string"}},"required":["stage_id","name","status","evidence"],"type":"object"},"type":"array"},"cis_benchmarks_evidence":{"description":"Results and metadata from the CIS benchmark scans.","properties":{"execution_status":{"enum":["PENDING","IN_PROGRESS","COMPLETED","FAILED","SKIPPED"],"type":"string"},"profiles":{"additionalProperties":false,"description":"Map of CIS profile names to their respective results.","patternProperties":{"^[a-zA-Z0-9_]+$":{"properties":{"report_path":{"type":"string"},"rules_failed":{"minimum":0,"type":"integer"},"rules_other":{"minimum":0,"type":"integer"},"rules_passed":{"minimum":0,"type":"integer"},"rules_total":{"minimum":0,"type":"integer"},"score_percentage":{"maximum":100,"minimum":0,"type":"number"}},"required":["report_path","rules_failed","rules_passed","rules_total","score_percentage"],"type":"object"}},"type":"object"},"timestamp":{"format":"date-time","type":"string"}},"required":["execution_status","profiles","timestamp"],"type":"object"},"gdc_endpoints_readiness":{"additionalProperties":{"additionalProperties":{"properties":{"dns_resolved":{"type":["boolean","null"]},"executed":{"type":"boolean"},"notes":{"type":"string"},"resolved_ip":{"type":["string","null"]},"scope":{"enum":["system","platform"],"type":"string"},"status":{"enum":["PASS","FAIL","SKIPPED","WARN"],"type":"string"},"target_stage":{"type":["string","null"]},"tcp_connected":{"type":["boolean","null"]}},"required":["status","dns_resolved","resolved_ip","tcp_connected"],"type":"object"},"type":"object"},"description":"Egress resolution checks mapped by network context (management vs kubernetes).","type":"object"},"gdc_os_prerequisites":{"properties":{"overall_compliance":{"type":"string"},"software_checks":{"additionalProperties":{"properties":{"details":{"type":"string"},"remediation":{"description":"Optional remediation instructions provided when a check fails.","type":"string"},"status":{"enum":["PASS","FAIL","PENDING","NOT RUN"],"type":"string"},"test_results":{"items":{"properties":{"output":{"type":"string"},"status":{"enum":["PASS","FAIL","PENDING","NOT RUN"],"type":"string"},"test_name":{"type":"string"}},"required":["test_name","status"],"type":"object"},"type":"array"}},"required":["status","details","test_results"],"type":"object"},"type":"object"},"storage_partitions":{"items":{"properties":{"free_gib":{"type":"number"},"mount":{"type":"string"},"required_gib":{"type":"number"},"shared_by":{"type":"string"},"status":{"type":"string"}},"required":["mount","shared_by","free_gib","required_gib","status"],"type":"object"},"type":"array"}},"required":["software_checks","storage_partitions","overall_compliance"],"type":"object"},"hardware_inventory":{"properties":{"bios":{"properties":{"release_date":{"type":"string"},"system_uuid":{"type":"string"},"uuid_status":{"enum":["OK","DUPLICATE_ANOMALY"],"type":"string"},"vendor":{"type":"string"},"version":{"type":"string"}},"required":["vendor","version","release_date","system_uuid","uuid_status"],"type":"object"},"cpu":{"properties":{"logical_cpus":{"type":"integer"},"model":{"type":"string"}},"required":["model","logical_cpus"],"type":"object"},"gpu":{"properties":{"devices":{"description":"List of discovered GPU devices (0..many).","items":{"properties":{"driver_name":{"description":"Kernel driver bound to the device (e.g. nvidia, i915, amdgpu)","type":["string","null"]},"driver_present":{"description":"True if an active kernel driver is bound to this device","type":"boolean"},"driver_version":{"description":"Version string of the driver or kernel module","type":["string","null"]},"gpu_type":{"description":"Whether the GPU is integrated on CPU/APU or discrete PCIe card","enum":["Embedded","Discrete","Unknown"],"type":"string"},"memory_size":{"description":"Reported total VRAM or primary BAR aperture size (e.g. 24467 MiB, 256M)","type":["string","null"]},"model":{"description":"Commercial or hardware GPU model name","type":"string"},"pci_slot":{"description":"PCI domain/bus/slot/function identifier (e.g. 0000:02:00.0)","type":"string"},"vendor":{"description":"Hardware vendor (e.g. NVIDIA, Intel, AMD, Unknown)","type":"string"}},"required":["pci_slot","model","gpu_type","driver_present"],"type":"object"},"type":"array"},"present":{"description":"True if at least one discrete or embedded GPU is detected on the host.","type":"boolean"}},"required":["present","devices"],"type":"object"},"memory":{"properties":{"modules":{"items":{"properties":{"locator":{"type":"string"},"manufacturer":{"type":"string"},"part_number":{"type":"string"},"serial_number":{"type":"string"},"size":{"type":"string"},"speed":{"type":"string"}},"type":"object"},"type":"array"},"total_gb":{"type":"number"}},"required":["total_gb","modules"],"type":"object"},"network":{"items":{"properties":{"interface":{"type":"string"},"mac_address":{"type":"string"},"speed":{"type":"string"},"status":{"type":"string"},"virtual_mac":{"type":"boolean"}},"required":["interface","mac_address","status","speed","virtual_mac"],"type":"object"},"type":"array"},"storage":{"items":{"properties":{"device":{"type":"string"},"model":{"type":"string"},"serial_number":{"type":"string"},"size_gib":{"type":"number"}},"required":["device","size_gib","model","serial_number"],"type":"object"},"type":"array"},"tpm":{"properties":{"description":{"type":"string"},"present":{"type":"boolean"},"vendor":{"type":"string"}},"required":["present","vendor","description"],"type":"object"}},"required":["cpu","memory","storage","tpm","bios","network","gpu"],"type":"object"},"host_metadata":{"properties":{"hostname":{"type":"string"},"inotify_max_user_instances":{"type":"integer"},"inotify_max_user_watches":{"type":"integer"},"iso_version":{"description":"The version of the GDC bootloader ISO used to bootstrap the system.","type":"string"},"kernel":{"type":"string"},"machine_id":{"description":"MAC address of the node's primary management NIC acting as the unique node identifier.","type":"string"},"privileged":{"type":"boolean"},"system_state":{"description":"Indicates whether the system is in its initial boot state (before Ansible completed) or is fully provisioned and ready.","enum":["First Boot","Baseline Ready"],"type":"string"},"system_uuid":{"description":"The SMBIOS UUID of the motherboard system.","type":"string"},"uefi_boot":{"type":"boolean"}},"required":["hostname","kernel","uefi_boot","privileged","inotify_max_user_instances","inotify_max_user_watches","machine_id","system_uuid","iso_version","system_state"],"type":"object"},"http_health":{"additionalProperties":{"properties":{"healthy":{"type":"boolean"},"http_code":{"type":"integer"}},"required":["http_code","healthy"],"type":"object"},"type":"object"},"ip_address":{"description":"IPv4 address of the node's primary management interface.","format":"ipv4","type":"string"},"lvm_volumes":{"description":"Raw JSON output parsed from lsblk indicating disk structure and mounts.","type":"object"},"machine_stages_progress":{"description":"Overarching sequential machine states tracking the bootstrap across separate reboots.","items":{"properties":{"evidence":{"properties":{"cis_benchmarks":{"$ref":"#/properties/cis_benchmarks_evidence"}},"type":"object"},"name":{"type":"string"},"stage_id":{"enum":["LIVECD","FIRST_BOOT","SECOND_BOOT","LINUX_READY","CLUSTER_READY","CLUSTER_TURNUP","POST_VALIDATION","UPDATE_UPKEEP"],"type":"string"},"status":{"enum":["PENDING","IN_PROGRESS","COMPLETED","FAILED","BYPASSED"],"type":"string"},"timestamp":{"format":"date-time","type":"string"}},"required":["stage_id","name","status","timestamp"],"type":"object"},"type":"array"},"network_connectivity":{"properties":{"cross_link_isolated":{"properties":{"secured":{"type":"boolean"}},"required":["secured"],"type":"object"},"kubernetes_gateway":{"properties":{"avg_rtt_ms":{"type":"number"},"reachable":{"type":["boolean","null"]},"skipped_reason":{"type":"string"}},"required":["reachable"],"type":"object"},"management_gateway":{"properties":{"avg_rtt_ms":{"type":"number"},"reachable":{"type":"boolean"}},"required":["reachable"],"type":"object"},"public_wan_dns":{"properties":{"avg_rtt_ms":{"type":"number"},"reachable":{"type":"boolean"}},"required":["reachable"],"type":"object"}},"required":["management_gateway","kubernetes_gateway","cross_link_isolated","public_wan_dns"],"type":"object"},"ports":{"additionalProperties":{"properties":{"listening":{"type":"boolean"}},"required":["listening"],"type":"object"},"type":"object"},"preflight_validations":{"description":"Standardized decoupled preflight validation results from Ansible.","properties":{"current_stage":{"type":"string"},"execution_timestamp":{"format":"date-time","type":"string"},"overall_status":{"enum":["PASS","FAIL","WARN"],"type":"string"},"results":{"items":{"properties":{"category":{"enum":["hardware","network","storage","binary","configuration","service"],"type":"string"},"duration_ms":{"minimum":0,"type":"integer"},"meta":{"type":"object"},"notes":{"type":"string"},"remediation_hint":{"type":"string"},"severity":{"enum":["FATAL","WARNING","INFO"],"type":"string"},"status":{"enum":["PASS","FAIL","SKIPPED","WARN"],"type":"string"},"test_name":{"type":"string"},"timestamp":{"format":"date-time","type":"string"}},"required":["test_name","category","status","severity","notes"],"type":"object"},"type":"array"},"test_suite":{"type":"string"},"total_duration_ms":{"minimum":0,"type":"integer"}},"type":["object","null"]},"services":{"additionalProperties":{"properties":{"active":{"type":"boolean"},"active_state":{"type":"string"},"load_state":{"type":"string"},"unit_file_state":{"type":"string"}},"required":["active","load_state","active_state","unit_file_state"],"type":"object"},"type":"object"},"system_health":{"properties":{"failed_units_count":{"type":"integer"},"load_average":{"type":"string"},"uptime":{"type":"string"}},"required":["uptime","load_average","failed_units_count"],"type":"object"},"system_minimum_requirements":{"properties":{"cpu":{"properties":{"hyperthreading_enabled":{"type":"boolean"},"logical_threads":{"type":"integer"},"physical_cores":{"type":"integer"},"status":{"type":"string"}},"required":["status","physical_cores","logical_threads","hyperthreading_enabled"],"type":"object"},"memory":{"properties":{"status":{"type":"string"},"total_gib":{"type":"number"}},"required":["status","total_gib"],"type":"object"},"overall_status":{"type":"string"},"storage":{"properties":{"disk_sizes_gib":{"items":{"type":"number"},"type":"array"},"status":{"type":"string"},"total_disks":{"type":"integer"}},"required":["status","total_disks","disk_sizes_gib"],"type":"object"}},"required":["cpu","memory","storage","overall_status"],"type":"object"},"timestamp":{"description":"UTC timestamp indicating when the report was compiled.","format":"date-time","type":"string"},"tpm_status":{"properties":{"device_present":{"type":"boolean"}},"required":["device_present"],"type":"object"}},"required":["timestamp","host_metadata","system_health","services","ports","tpm_status","lvm_volumes","http_health","network_connectivity","system_minimum_requirements","gdc_endpoints_readiness","ip_address","gdc_os_prerequisites","hardware_inventory","bootstrap_stages_progress","machine_stages_progress"],"title":"GDC Bare-Metal Diagnostic Report Schema","type":"object"}