{"profile_id":"uai.error.v1","title":"UAI Error v1","summary":"Schema for typed validation, transport, authorization, and execution errors in the richer UAI-1 envelope.","current_release":"UAI-1","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","$id":"urn:uaix:uai-1:schema:uai.error.v1","title":"UAI Error v1","description":"Schema for typed validation, transport, authorization, and execution errors in the richer UAI-1 envelope.","type":"object","additionalProperties":false,"required":["uai_version","profile","message_id","source","target","conversation","delivery","trust","body","provenance","integrity","extensions"],"properties":{"uai_version":{"type":"string","const":"1.0"},"profile":{"type":"string","const":"uai.error.v1"},"message_id":{"type":"string","minLength":1},"source":{"type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"label":{"type":"string"},"uri":{"type":"string","format":"uri"},"did":{"type":"string","minLength":1},"role":{"type":"string"},"implementation":{"type":"string"}}},"target":{"type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"label":{"type":"string"},"uri":{"type":"string","format":"uri"},"did":{"type":"string","minLength":1},"role":{"type":"string"},"implementation":{"type":"string"}}},"conversation":{"type":"object","additionalProperties":false,"required":["conversation_id","turn_id","sequence"],"properties":{"conversation_id":{"type":"string","minLength":1},"turn_id":{"type":"string","minLength":1},"parent_message_id":{"type":"string","minLength":1},"correlation_id":{"type":"string","minLength":1},"traceparent":{"type":"string","minLength":1},"sequence":{"type":"integer","minimum":1}}},"delivery":{"type":"object","additionalProperties":false,"required":["mode","priority","expires_at","reply_requested","ack_required"],"properties":{"mode":{"type":"string","enum":["sync","async","event"]},"priority":{"type":"string","enum":["routine","interactive","urgent"]},"expires_at":{"type":"string","format":"date-time"},"reply_requested":{"type":"boolean"},"ack_required":{"type":"boolean"},"task_ref":{"type":"string","minLength":1},"idempotency_key":{"type":"string","minLength":1},"retry_count":{"type":"integer","minimum":0},"sequence":{"type":"integer","minimum":1},"lifecycle":{"type":"string","minLength":1},"timeout_ms":{"type":"integer","minimum":0},"fallback_directive":{"type":"string","minLength":1},"expected_output_schema":{"type":"string","minLength":1},"duplicate_of_message_id":{"type":"string","minLength":1},"dedupe_behavior":{"type":"string","minLength":1}}},"trust":{"type":"object","additionalProperties":false,"required":["channel","auth_scheme","principal"],"properties":{"channel":{"type":"string","enum":["public-web","private-api","mtls","signed-envelope","credentialed"]},"auth_scheme":{"type":"string","minLength":1},"principal":{"type":"string","minLength":1},"credential_ref":{"type":"string","format":"uri"},"signature_ref":{"type":"string","format":"uri"},"replay_window_id":{"type":"string","minLength":1},"trust_profile":{"type":"string","minLength":1,"description":"Profile or policy label for interpreting trust metadata; not required for compact trust readers and not a mandatory credential stack."},"verification_status":{"type":"string","enum":["not_verified","verified","failed","expired","revoked","unknown"]},"credential_status":{"type":"string","enum":["not_checked","valid","invalid","expired","revoked","unknown"]},"verifier_ref":{"type":"string","format":"uri"},"trust_root_ref":{"type":"string","format":"uri"},"proof_ref":{"type":"string","format":"uri"},"replay_policy_ref":{"type":"string","format":"uri"},"verification_checked_at":{"type":"string","format":"date-time"},"verification_expires_at":{"type":"string","format":"date-time"},"assurance_level":{"type":"string","enum":["self_asserted","reference_only","transport_authenticated","signed_reference","credential_verified","local_policy_verified"]}}},"body":{"type":"object","additionalProperties":false,"required":["type","title","detail","status","code","retryable","instance"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string","minLength":1},"detail":{"type":"string","minLength":1},"status":{"type":"integer","minimum":400,"maximum":599},"code":{"type":"string","minLength":1},"uaixCode":{"type":"string","minLength":1,"description":"Stable UAIX problem code for RFC 9457 problem-details clients."},"uaixCategory":{"type":"string","minLength":1,"description":"UAIX problem category. Platform HTTP APIs must use the category taxonomy published in the error registry."},"uaixSeverity":{"type":"string","enum":["info","warning","error","critical"]},"retryable":{"type":"boolean"},"retryAfterUtc":{"type":"string","format":"date-time"},"retryAfterMs":{"type":"integer","minimum":0,"description":"Relative retry delay in milliseconds when a transport binding exposes duration-style retry guidance."},"rateLimit":{"type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetUtc":{"type":"string","format":"date-time"},"scope":{"type":"string"}}},"blockedByPolicy":{"type":"boolean"},"blockedByNetwork":{"type":"boolean"},"bindingStatus":{"type":"string","minLength":1,"description":"Transport, profile, or trust-binding state that caused the error when a binding decision is involved."},"constraintViolation":{"type":"string"},"schemaPointer":{"type":"string"},"payloadPointer":{"type":"string"},"field":{"type":"string"},"line":{"type":"integer","minimum":1},"column":{"type":"integer","minimum":1},"expected":{"type":"string"},"actual":{"type":"string"},"allowedValues":{"type":"array","items":{"type":["string","number","boolean","null"]}},"documentationUrl":{"type":"string","format":"uri"},"safeHarborUrl":{"type":"string","format":"uri"},"supportReference":{"type":"string"},"evidenceRefs":{"type":"array","items":{"type":"string","minLength":1}},"traceId":{"type":"string","minLength":1},"correlationId":{"type":"string","minLength":1},"evidenceRecommended":{"type":"boolean"},"suspensionRecommended":{"type":"boolean"},"redactionApplied":{"type":"boolean"},"instance":{"type":"string","format":"uri"},"errors":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["path","code","message"],"properties":{"path":{"type":"string","minLength":1},"code":{"type":"string","minLength":1},"message":{"type":"string","minLength":1},"schemaPointer":{"type":"string"},"payloadPointer":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"string"}}}},"next_step":{"type":"string"}}},"provenance":{"type":"object","additionalProperties":false,"required":["trace_id","issued_at","log_ref","agent_id","model_id","confidence"],"properties":{"trace_id":{"type":"string","minLength":1},"parent_trace_id":{"type":"string","minLength":1},"issued_at":{"type":"string","format":"date-time"},"log_ref":{"type":"string","minLength":1},"agent_id":{"type":"string","minLength":1},"model_id":{"type":"string","minLength":1},"confidence":{"type":"number","minimum":0,"maximum":1},"lineage":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["stage","actor_id"],"properties":{"stage":{"type":"string","minLength":1},"actor_id":{"type":"string","minLength":1},"model_id":{"type":"string","minLength":1},"note":{"type":"string"}}}}}},"integrity":{"type":"object","additionalProperties":false,"required":["version","algorithm","canonicalization","checksum"],"properties":{"version":{"type":"integer","minimum":1},"algorithm":{"type":"string","minLength":1},"canonicalization":{"type":"string","minLength":1},"checksum":{"type":"string","minLength":1}}},"extensions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["namespace","purpose","critical"],"properties":{"namespace":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"critical":{"type":"boolean"}}}}}},"body_required":["type","title","detail","status","code","retryable","instance"],"route_url":"https:\/\/uaix.org\/wp-json\/uaix\/v1\/schemas\/uai.error.v1","example_route_url":"https:\/\/uaix.org\/wp-json\/uaix\/v1\/examples\/uai.error.v1","registry_route_url":"https:\/\/uaix.org\/wp-json\/uaix\/v1\/registry\/uai.error.v1"}