This protocol defines how delegation of capabilities flows from human controllers through organizations to AI agents within the TrustDID ecosystem, using DIDComm v2.1 messaging and W3C Verifiable Credentials v2.0.
Human (depth 0) -> Organization (depth 1) -> Agent (depth 2) -> Sub-Agent (depth 3)
AgentDelegationCredential (W3C VC v2.0)DelegationChain.sol for chain-of-custody verificationParent -> Child: DIDComm message type "https://trustdid.org/delegation/1.0/offer"
body: { capabilities, maxDepth, expiresAt }
Child -> Parent: DIDComm message type "https://trustdid.org/delegation/1.0/accept"
Parent -> Registrar: POST /1.0/delegate
Registrar -> Chain: Register delegation on-chain
Registrar -> Parent: Return AgentDelegationCredential
Parent -> Child: Forward credential via DIDComm
limit=1000 -> limit=500)DelegationChain.sol::revokeDelegation(id, cascade=true)AgentA -> AgentB: auth_request { required_capabilities }
AgentB -> Resolver: Resolve AgentA DID
AgentB -> Chain: Verify AgentA delegation chain
AgentB -> TrustRegistry: Check AgentA trust score >= threshold
AgentB -> AgentA: auth_response { delegation_chain_proof, trust_score }
Both: Mutual authentication established
decommissioned (irreversible)