RFC-013: Inter-Gandalf Delegation Protocol (IMDP) — 1. Purpose
AIGP Specification › RFC-013: Inter-Gandalf Delegation Protocol (IMDP) › 1. Purpose
Section index · 2. Core Principles →
RFC-013: Inter-Gandalf Delegation Protocol (IMDP)
PRIVATE AND PROPRIETARY — NOT A PUBLIC RFC. Owned by Kanjani AI Research & Causum. See NOTICE.md.
1. Purpose
The Inter-Gandalf Delegation Protocol (IMDP) defines a standardized protocol for delegating tasks between Gandalf instances across the four amigos. Each Gandalf has a domain of expertise; when a request falls outside that domain, the originating Gandalf delegates to the Gandalf that owns the capability while staying in the loop.
Delegation is not forwarding. The originating Gandalf retains ownership of the user interaction, receives the result, and summarizes it for the user.
IMDP SHALL ensure:
- every delegation is capability-checked before dispatch
- the originating Gandalf always stays in the loop
- delegation depth is bounded (max 2)
- every delegation is AIGP-governed (RFC-010)
- context flows via ACP (RFC-011) the delegate receives structured context, not raw prompts
- delegation chains are auditable end-to-end
- circular delegation and privilege escalation are prevented by protocol design