RFC-013: Inter-Gandalf Delegation Protocol (IMDP) — 10. Delegation Registry
AIGP Specification › RFC-013: Inter-Gandalf Delegation Protocol (IMDP) › 10. Delegation Registry
← 9. Limits · Section index · 11. Protocol Summary →
10. Delegation Registry
All active and completed delegations are tracked in a delegation registry (DynamoDB).
10.1 Schema
| Entity | PK | SK | GSI1PK | GSI1SK |
|---|---|---|---|---|
| Delegation | DEL#{delegation_id} | V#{version} | ORIG#{originator} | #{timestamp}#{delegation_id} |
| Delegation Chain | DEL#{delegation_id} | CHAIN#{depth} | DEL_CHAIN#{delegate} | #{timestamp}#{delegation_id} |
| Capability Cache | CAP#{gandalf_id} | V#{version} | CAPS | #{gandalf_id} |
10.2 Delegation Record
{ "PK": "DEL#del-1714900000000-abc", "SK": "V#1", "entity_type": "DELEGATION", "delegation_id": "del-1714900000000-abc", "originator": "identity-service", "delegate": "analytics-service", "capability_id": "policy_conversion", "delegation_depth": 1, "status": "SUCCESS", "requested_at": "2026-05-04T10:00:00Z", "completed_at": "2026-05-04T10:00:45Z", "duration_ms": 45200, "tokens_consumed": 15600, "sub_delegations": [], "aigp_request_id": "req-del-1714900000000", "aigp_record_id": "rec-del-1714900000000"}