Beer Can Labs
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)

packages/gatekeeper/src/ingress/index.ts ↗

Rules

  • Discord is an optional mailbox, not a requirement.
  • The ingress keeps its socket when the agent scales to zero.

Where it appears