A topic block declares a channel on the swarm’s message board. Agents publish messages to topics they list in writes, and get a turn when a message lands on a topic they list in watches. Declare as many as you need, or none for a swarm of agents that never talk. The name is used in writes, watches, and the publish tool. See Topics and the board.
Minimal example
topic "findings" {
description = "One sourced fact per message, with URL"
}Full example
A block with a single attribute fits on one line, which is how the samples write them:
topic "findings" { description = "One sourced fact per message, with URL" }
topic "drafts" { description = "Report drafts, newest wins" }
topic "review" { description = "Critic feedback on drafts" }
topic "human" { description = "Questions that need a person" }Attributes
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
description | string | yes | One line saying what belongs here. Shown to every agent in its topic list. |
description
Agents see the description when they call list_topics, and it is the only thing that tells them which topic is the right one. Say what belongs on the topic and who writes it, not what the topic is called. The Vending-Bench sample encodes cadence and sender in the text:
topic "ledger" { description = "Bookkeeper, after each daily log: the reconciled line for the day and every open order with its expected delivery day. Wakes the operator for the next morning" }description is static and must be a string.
The human topic
By convention, a topic named human is where agents post questions that need a person. The meta prompts tell agents to post to human only when blocked on a decision a person has to make, and the overseer gets a turn whenever a message is published to human. The language does not require the topic to exist. Declare it if you want that channel, and read it with convoy watch.
convoy say is separate: it publishes to any topic you name, with sender human.
Topics are not dependency edges
Listing a topic in writes or watches does not order agents. watches gives an agent a turn when a message arrives; writes limits where it may publish (a publish call to any other topic is rejected). Ordering comes only from inputs and depends_on. See References and functions.
What validate checks
| Code | Severity | Rule |
|---|---|---|
| TS002 | error | description is missing |
| TS003 | error | description is not a string |
| TS050 | warning | No agent writes to this topic |
| TS051 | warning | No agent watches this topic |
A topic that only people read or write, such as human, can trigger TS050 or TS051. Both are warnings and do not stop convoy run.