Skip to main content

Module bulletin_handlers

Module bulletin_handlers 

Source
Expand description

HTTP side of the bulletin board (SPEC_CHEAPER_FLEET_MESSAGING_2026_10_30.md §4):

  • POST /api/v1/bulletin: Message action bulletin. A short post for the agents of this AgentMux, to read at their next real turn.
  • GET /api/v1/bulletin: Message action read_bulletin. The bulletins the caller has not seen, once.

Only an agent AgentMux knows by its token may post (the sender is proven for the marker’s TRUST), a text that looks like credentials or a destructive action is refused, and a bulletin carries no files.

Structs§

PostParams
ReadParams

Constants§

HOUR_MS 🔒
MAX_TARGETS 🔒
READ_NOTE 🔒

Functions§

bad_request 🔒
handle_post_bulletin 🔒
POST /api/v1/bulletin.
handle_read_bulletin 🔒
GET /api/v1/bulletin.
handle_work_claim_with_bulletins 🔒
POST /agentmux/work/claim (Tasks claim), with the bulletins the claimer has not seen added to the answer. Only a token-proven claimer gets them: the claim route itself takes a name on trust.
note_key 🔒
The key a bulletin’s note is held under in a pane, so a later post of the same author under the same key replaces it there too (and another author’s does not, as in the board).
push_to_running 🔒
Hand b to every registered agent it is for that can take a note (decide with Intent::Note), apart from its author: it joins the turn in flight, or waits to go after the next message the pane gets, and never starts a turn. Those agents have then seen it; one that is stopped and not wanted running has not, and gets the bulletin at its next Tasks claim. (A pane that already holds eight notes drops its oldest, which is then lost to it; that is rare and not recoverable here.) Returns how many agents that was.
server_error 🔒
take_unseen 🔒
The bulletins reader (lower-case) has not seen, as the rendered entries an answer carries; they are now seen.