{"$id":"https://KATA.org/schemas/delegation.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"description":"Conceptual schema for a machine-readable delegation between a principal and an AI agent. Status: Concept / Open Design — not production ready.","examples":[{"agent":{"agent_id":"shopper-01"},"conditions":[{"type":"max_risk_score","value":70}],"delegation_id":"dlg_77","expires_at":"2026-10-10T23:59:59Z","granted_at":"2026-10-04T13:55:00Z","principal":{"display_name":"K. Uluer","id":"usr_9182","type":"human"},"purpose":"Buy a laptop within budget","revocable":true,"scope":{"allowed_action_verbs":["search","compare","purchase"],"currency":"CAD","intent_ids":["int_9f31"],"maximum_amount":1500},"status":"active"}],"properties":{"agent":{"additionalProperties":true,"description":"The agent receiving authority.","properties":{"agent_id":{"type":"string"}},"required":["agent_id"],"type":"object"},"conditions":{"description":"Conditions that must hold for the delegation to remain effective.","items":{"additionalProperties":true,"properties":{"type":{"type":"string"},"value":{}},"required":["type"],"type":"object"},"type":"array"},"delegation_chain":{"description":"For agent-to-agent delegation: the chain from the root principal. Each link must not exceed its parent's scope.","items":{"type":"string"},"type":"array"},"delegation_id":{"description":"Unique identifier for this delegation.","type":"string"},"expires_at":{"description":"When the delegation lapses. Short-lived by default.","format":"date-time","type":"string"},"granted_at":{"description":"When the delegation was issued.","format":"date-time","type":"string"},"principal":{"additionalProperties":true,"description":"The entity granting authority.","properties":{"display_name":{"type":"string"},"id":{"type":"string"},"type":{"enum":["human","business","institution","system","agent"],"type":"string"}},"required":["type","id"],"type":"object"},"intent_agreement":{"$ref":"agreement.json","description":"The signed intent agreement held inside this delegation. One delegation may carry several live intents, each a subset of the parent limits."},"purpose":{"description":"Human-readable purpose of the delegation.","type":"string"},"revocable":{"default":true,"description":"Whether the principal can revoke this delegation.","type":"boolean"},"revocation_endpoint":{"description":"Where revocation is published and checked.","type":"string"},"scope":{"additionalProperties":true,"description":"Machine-readable limits: bound intents, ceilings, allowed verbs, resources.","properties":{"allowed_action_verbs":{"items":{"type":"string"},"type":"array"},"currency":{"type":"string"},"intent_ids":{"items":{"type":"string"},"type":"array"},"cumulative_maximum":{"description":"Total that may be spent under this delegation, tracked separately from maximum_amount.","minimum":0,"type":"number"},"maximum_amount":{"type":"number"},"resource_constraints":{"additionalProperties":true,"type":"object"}},"type":"object"},"status":{"enum":["active","suspended","revoked","expired"],"type":"string"}},"required":["delegation_id","principal","agent","granted_at","expires_at","status"],"title":"KATA Delegation","type":"object"}