{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://reuse-surface.local/schemas/plan-check-result.schema.json", "title": "PlanCheckResult", "type": "object", "additionalProperties": false, "required": ["query", "verdict", "top_score", "matches"], "properties": { "query": { "type": "object", "additionalProperties": false, "required": ["source", "text"], "properties": { "source": {"type": "string", "enum": ["workplan", "intent"]}, "text": {"type": "string", "minLength": 1}, "workplan_id": {"type": ["string", "null"]}, "workplan_path": {"type": ["string", "null"]} } }, "verdict": { "type": "string", "enum": ["reuse", "extend", "new"] }, "top_score": { "type": "number", "minimum": 0, "maximum": 1 }, "matches": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["id", "score", "kind"], "properties": { "id": { "type": "string", "pattern": "^capability\\.[a-z0-9]+(\\.[a-z0-9-]+)+$" }, "score": {"type": "number", "minimum": 0, "maximum": 1}, "vector": {"type": ["string", "null"]}, "owner": {"type": ["string", "null"]}, "summary": {"type": ["string", "null"]}, "kind": { "type": "string", "enum": ["deterministic", "llm", "related"] } } } }, "federated_index_updated": {"type": ["string", "null"]}, "federated_index_stale_warning": {"type": ["string", "null"]}, "notes": { "type": "array", "items": {"type": "string"} }, "filed_capability_request": {"type": ["object", "null"]} } }