{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://local.invalid/schemas/agent_analysis_handoff_sources.schema.json", "title": "CPLD agent analysis source configuration", "type": "object", "additionalProperties": false, "required": [ "schema", "max_zip_bytes", "target_zip_bytes", "external_sources", "extra_exclusions" ], "properties": { "schema": { "const": "cpld-agent-analysis-sources-v1" }, "max_zip_bytes": { "type": "integer", "minimum": 1 }, "target_zip_bytes": { "type": "integer", "minimum": 1 }, "external_sources": { "type": "array", "items": { "$ref": "#/$defs/source" } }, "extra_exclusions": { "type": "array", "items": { "$ref": "#/$defs/exclusion" } } }, "$defs": { "source": { "type": "object", "additionalProperties": false, "required": [ "id", "category", "kind", "path_candidates", "archive_policy" ], "properties": { "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,63}$" }, "category": { "type": "string", "minLength": 1 }, "kind": { "enum": [ "directory", "file", "git_worktree" ] }, "path_candidates": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }, "archive_policy": { "enum": [ "inspect", "copy" ] } } }, "exclusion": { "type": "object", "additionalProperties": false, "required": [ "path", "reason" ], "properties": { "path": { "type": "string", "minLength": 1 }, "reason": { "type": "string", "minLength": 1 } } } } }