{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://local.invalid/schemas/cpld_c_drive_audit.schema.json", "title": "CPLD C-drive read-only audit output", "oneOf": [ { "type": "object", "properties": { "schema": {"const": "cpld-c-drive-audit-v1"}, "command": {"const": "scan"}, "generated_at": {"type": "string"}, "roots": {"type": "array", "items": {"type": "string"}}, "records": {"type": "array", "items": {"$ref": "#/$defs/record"}} }, "required": ["schema", "command", "generated_at", "roots", "records"], "additionalProperties": true }, { "type": "object", "properties": { "schema": {"const": "cpld-c-drive-audit-v1"}, "command": {"const": "compare-archives"}, "generated_at": {"type": "string"}, "archive": {"$ref": "#/$defs/record"}, "directory": {"$ref": "#/$defs/record"}, "comparison": { "type": "object", "properties": { "status": {"enum": ["full_coverage", "mismatch", "unsafe"]}, "recommended_action": {"type": "string"}, "members": {"type": "array", "items": {"$ref": "#/$defs/member"}} }, "required": ["status", "recommended_action", "members"], "additionalProperties": true } }, "required": ["schema", "command", "generated_at", "archive", "directory", "comparison"], "additionalProperties": true } ], "$defs": { "record": { "type": "object", "properties": { "absolute_path": {"type": ["string", "null"]}, "resolved_path": {"type": ["string", "null"]}, "size": {"type": ["integer", "null"], "minimum": 0}, "git_common_dir": {"type": ["string", "null"]}, "worktree_dirty": {"type": "boolean"}, "reparse_point": {"type": "boolean"}, "ownership_evidence": {"type": "array", "items": {"type": "string"}}, "sha256": {"type": ["string", "null"]}, "comparison_target": {"type": ["string", "null"]}, "comparison_result": {"type": "string"}, "classification": {"type": "string"}, "recommended_action": {"type": "string"}, "reason": {"type": "string"} }, "required": [ "absolute_path", "resolved_path", "size", "git_common_dir", "worktree_dirty", "reparse_point", "ownership_evidence", "sha256", "comparison_target", "comparison_result", "classification", "recommended_action", "reason" ], "additionalProperties": true }, "member": { "allOf": [ {"$ref": "#/$defs/record"}, { "type": "object", "properties": { "member_path": {"type": "string"}, "target_size": {"type": ["integer", "null"], "minimum": 0} }, "required": ["member_path", "target_size"] } ] } } }