pilot_subscribe
Subscribe to a peer's topic and collect N messages, blocking until count satisfied or timeout for event-driven coordination in agent networks.
Instructions
Subscribe to a topic on a peer's pub/sub channel and collect N published messages (or until timeout). Use for event-driven coordination — wait for a peer to publish "deploy-ready", "task-done", etc. Blocks until count is satisfied or timeout elapses. REQUIRES TRUST: call pilot_trust_check(peer) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | Peer hostname or address hosting the topic. | |
| count | No | How many messages to collect before returning. | |
| topic | Yes | Topic name. | |
| timeout_seconds | No | Max wait time. |