federation_node_drain_queue
Collect brokered acts queued for your node (CO 486). NODE-SIGNED like report-in: the node signs the canonical envelope and drains ONLY its own queue — one node can never collect another's acts by construction, because node-b's signature never authenticates as node-a and the drain is keyed by the authenticated node id, not a supplied filter. Expired acts are skipped; an act past its delivery bound dead-letters. Poll-shaped: the node collects on its own initiative. No operator token; the signature is the auth. Returns: { acts: [{ act_id, payload, deliveries, enqueued_at }], count } or { error, code }. Example: call federation_node_drain_queue with arguments {}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alg | Yes | Signature algorithm of the bound key. | |
| limit | No | Max acts to drain (default 50, cap 200). | |
| nonce | Yes | A fresh single-use nonce (part of the signed envelope). | |
| node_id | Yes | The draining node. | |
| signature | Yes | base64 signature over the canonical envelope, by the node bound key. | |
| timestamp | Yes | ISO timestamp within the skew window (part of the signed envelope). |