title XDI Ninja! - Invite Connection to Profile (Auto) note over =alice AGENT,=alice ENDPOINT,=bob ENDPOINT,=bob AGENT: ALICE INVITES CONNECTION =alice AGENT -> =alice ENDPOINT: XDI M1 note right of =alice AGENT M1 / $send : M2 M1 / $send : M3 end note note right of =alice ENDPOINT M1 / $send is executed and M2 is sent to =alice end note note right of =alice ENDPOINT M1 / $send is executed and M3 is sent to =bob end note =alice ENDPOINT -> =alice ENDPOINT: XDI M2 note right of =alice ENDPOINT M2 / $connect : $msg$digest{$contract} end note note right of =alice ENDPOINT M2 / $connect is executed and MD-LC-1 is instantiated from LCT $msg$digest{$contract} end note =alice ENDPOINT -> =bob ENDPOINT: XDI M3 note right of =alice ENDPOINT M3 / $send : M4 "connection invitation" end note note right of =bob ENDPOINT M3 is deferred in =bob's graph due to LC policy decision end note note over =alice AGENT,=alice ENDPOINT,=bob ENDPOINT,=bob AGENT: BOB APPROVES CONNECTION =bob AGENT -> =bob ENDPOINT: XDI M5 note left of =bob AGENT M5 / $send : M3 "approval" end note note right of =bob ENDPOINT M5 / $send is executed and M3 is sent to =bob end note =bob ENDPOINT -> =bob ENDPOINT: XDI M3 note right of =bob ENDPOINT M3 / $send : M4 "connection invitation" end note note right of =bob ENDPOINT M3 / $send is executed and M4 is sent to =alice end note =bob ENDPOINT -> =alice ENDPOINT: XDI M4 note left of =bob ENDPOINT M4 / $connect : $get{$contract} M4 / $connect : $push{$contract} "connection request" end note note right of =alice ENDPOINT M4 / $connect is executed and LC-1 is instantiated from LCT $get{$contract} end note note right of =alice ENDPOINT M4 / $connect is executed and LC-2 is instantiated from LCT $push{$contract} end note