Contracts / GatekeeperIngress
Contract
GatekeeperIngress
How a message reaches a sleeping agent, and how the Landlord reports the agent’s state back.
Signature
createGatekeeperIngress(opts) // receive(msg) // onAgentStarting(id), onAgentWorking(id), // onAgentIdle(id)
Rules
- Discord is an optional mailbox, not a requirement.
- The ingress keeps its socket when the agent scales to zero.
Where it appears
- Wake a sleeping agent from DiscordGatekeeper
- Wake from zeroLandlord
- Warm down and sleepLandlord