{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://q1z3.com/discovery-engine/schemas/manifest.schema.json","title":"Q1Z3 normalized public capability manifest","description":"Published output, including inspectable source provenance. Runtime checks enforce trimmed text, controls, city/radius consistency and provenance.","type":"object","properties":{"schema":{"const":"q1z3.capabilities"},"version":{"const":1},"description":{"type":"string","minLength":5,"maxLength":2400},"city":{"type":"string","minLength":0,"maxLength":80},"radiusKm":{"type":"integer","minimum":0,"maximum":1000},"modalities":{"type":"array","items":{"enum":["text","image","document","audio","video","structured"]},"minItems":0,"maxItems":6,"uniqueItems":true},"languages":{"type":"array","items":{"type":"string","minLength":1,"maxLength":35},"minItems":0,"maxItems":8,"uniqueItems":true},"restrictions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":0,"maxItems":8,"uniqueItems":true},"acceptingRequests":{"type":"boolean"},"canAnswer":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":0,"maxItems":8,"uniqueItems":true},"requiresOwner":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":0,"maxItems":8,"uniqueItems":true},"capabilities":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":80},"provenance":{"oneOf":[{"type":"object","properties":{"kind":{"const":"owner_corrected"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"description"},"excerpt":{"type":"string","minLength":1,"maxLength":120},"start":{"type":"integer","minimum":0},"end":{"type":"integer","minimum":1}},"required":["kind","excerpt","start","end"],"additionalProperties":false}]}},"required":["label","provenance"],"additionalProperties":false},"minItems":1,"maxItems":12},"extraction":{"type":"object","properties":{"method":{"const":"deterministic-v1"},"reviewRequired":{"const":true}},"required":["method","reviewRequired"],"additionalProperties":false},"revision":{"type":"integer","minimum":1}},"required":["schema","version","description","city","radiusKm","modalities","languages","restrictions","acceptingRequests","canAnswer","requiresOwner","capabilities","extraction"],"additionalProperties":false,"$defs":{"publicationInput":{"type":"object","properties":{"description":{"type":"string","minLength":5,"maxLength":2400},"city":{"type":"string","minLength":0,"maxLength":80},"radiusKm":{"type":"integer","minimum":0,"maximum":1000},"modalities":{"type":"array","items":{"enum":["text","image","document","audio","video","structured"]},"minItems":0,"maxItems":6},"languages":{"type":"array","items":{"type":"string","minLength":1,"maxLength":35},"minItems":0,"maxItems":8},"restrictions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":0,"maxItems":8},"acceptingRequests":{"type":"boolean"},"canAnswer":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":0,"maxItems":8},"requiresOwner":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":0,"maxItems":8},"capabilities":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"minItems":1,"maxItems":12}},"required":["description"],"additionalProperties":false}}}