paddock, with one tool, send. An agent calls it to post a message somewhere outside its session: a Slack thread, an email address, your own endpoint. The message goes through a connector’s outbound side, whose deliver function holds the destination’s credential, so the sandbox never sees it.
Set up the outbound side
Create a connector with an outbound side, set its deliver function, here theslack preset, and the secrets it reads:
slack (a channel ID, or channel/thread_ts for a thread, as the address), webhook (a signed POST to the param url, with the address in the body), and email-ses (an email address). Write your own with the deliver contract.
Keys and the allow list
A key is the connector’s name,:, and an address, such as slack-acme:C0123ABCD/1763600000.123456. paddock splits it at the first : and never reads the address; the deliver function decides what it means. Keys are compared byte for byte.
An agent may send to its session’s reply key and to the keys its allow list permits. A template lists them as patterns in spec.outbox.allow, where * matches any run of characters, : and / included:
agent.outbox.delete() restores the template’s list. Without a list, an agent sends only to its sessions’ reply keys. Each send is checked against the list as it is then; a message already queued is delivered even if the list changes.
Reply routing
A session has at most one reply key: where its conversation takes place.send without a key goes there, and the reply key needs no pattern, since only your code sets it, never the agent.
- An inbound route’s
replyKeybecomes the session’s reply key when the route is delivered; the newest delivered route wins. Theslackpreset sets the thread of each mention, so the agent answers in the thread it was asked in. agent.sessions.createtakes areplyKeyfor a session your code starts:
externalId of what it posted. An inbound route with replyTo set to that ID reaches the session that posted it, so a reply to the agent’s message lands in the conversation that wrote it, even when the agent started the thread on its own. With matchOnly, a route without such a session is recorded unmatched instead of starting a new one: the slack preset routes thread replies this way, so the agent hears replies only in threads it wrote in.
The outbox
Every accepted send is an outbox message, with anobx_... ID:
outbox.list filters by connectorId, sessionId, key, and status, newest first. outbox.retry queues a failed message again with the same ID and its place in its key’s order.
What the outbox promises:
- Durable. A message is committed before the tool answers, and every attempt uses its ID, which a deliver function gives its destination as an idempotency key.
- Order. Messages of one key are delivered in the order they were sent; a later one never overtakes an earlier one.
- Retries. Up to 6 attempts, 10 seconds, 40 seconds, 160 seconds, about 11 minutes, and about 43 minutes apart, or later when the destination’s
retryAfterasks. - Pace. A connector delivers at most
rateLimit.perMinutemessages a minute, and aretryAfterholds all of its keys until it ends, without using an attempt. - Credentials. A permanent error with code
authsets the connector’soutbound.credentialError, which the console shows; the next delivered message, after you rotate the secret, clears it.
Events
Each step is an event in the session’s log, whichevents.list, the stream, and the client SDK’s events show; none starts a turn:
Attachments
The daemon uploads each file the agent names to object storage before the message is committed, and each attempt gives the deliver function a download link valid one hour inmsg.attachments. Files are kept 30 days, so a message retried after that is delivered without them.