Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Teams and channels

Teams

A team is a leader and a set of teammates working a shared objective. The control plane owns team lifecycle, membership, directives, and the member mailbox.

Lifecycle: create, list, inspect, add/remove members, destroy. Creation is admin-only; reads are member/creator/admin; mutating a team requires the teams:manage gate. Directives are the fleet-correct assignment plane (the historical teamspawn tool is retired). A directive is signed on the wire; a worker refuses an unsigned directive. Mailbox: members can read their team’s mail; sends require the creator/admin mutator gate. Messages are durable and can be acknowledged. Cancellation propagates to the team subtree; children are walked through the durable store, and already-frozen rows are released exactly once. Caps and attribution: per-member caps and team usage attribution are available on the Mango side.

Commands

zerg team mail list --team <team-id>
zerg team mail send --team <team-id> --to <member> --body "Status?"

Team creation and membership are HTTP APIs; see Teams API.

Channels

Channels connect ZERG to external messaging surfaces (Telegram, Discord, Slack, Microsoft Teams, and generic webhooks).

Ingress validation: each channel validates its signature/secret before accepting a message. Origin-routed replies: a reply returns to the channel that originated the task, even when multiple channels are active. Rate buckets: per-channel rate limiting prevents one noisy channel from starving the others. Replay protection: webhook update ids are deduplicated within the documented window. Delivery autonomy: a channel with no handler is retired loudly rather than silently dropping messages.

Commands

zerg channels
zerg channel-add <type> <config> --name <name>
zerg channel-test <channel-id>
zerg channel-send <channel-id> "message"
zerg channel-remove <channel-id>

Channel secrets are redacted in logs and support bundles.

Next

Teams API Channels API Permissions and sandbox Security model