Skip to main content

Module coord_channel_handlers

Module coord_channel_handlers 

Source
Expand description

HTTP side of the coordination channel (docs/specs/SPEC_AGENT_COORDINATION_CHANNEL_2026_10_15.md):

  • POST /api/v1/coord/posts: PostToChannel. Publishes the caller’s message to a repository’s channel, about a path, branch, PR or topic.
  • GET /api/v1/coord/posts: ReadChannel. What agents posted about a question, newest first.

Posts are stored in the identity store (storage::coord_posts), so every channel on this computer sees them. A post is an explicit publication: nothing here reads or copies a direct message.

Structs§

PostParams
PostToChannel’s arguments, plus who is asking (as for ClaimWork).
ReadParams
ReadChannel’s arguments.

Constants§

DEFAULT_LIMIT 🔒
ReadChannel’s default and largest answer, and its default window.
DEFAULT_SINCE_MS 🔒
MAX_LIMIT 🔒
MAX_LINES 🔒
MAX_TEXT 🔒
The longest post, in characters and lines.
READ_NOTE 🔒
WHO_POSTS 🔒
How many recent posts WhoIsWorkingOn adds, and from how far back.
WHO_SINCE_MS 🔒

Functions§

bad_request 🔒
clean_text 🔒
A post’s text as it is kept: control characters other than line breaks become spaces, lines are trimmed, blank runs dropped, at most MAX_LINES lines and MAX_TEXT characters. None when empty.
handle_post_to_channel 🔒
POST /api/v1/coord/posts: PostToChannel.
handle_read_channel 🔒
GET /api/v1/coord/posts: ReadChannel.
recent_posts 🔒
WhoIsWorkingOn’s recent_posts: the last day’s posts about the question (and about pr, when it asks about a PR).
resolve_target 🔒
The question, resolved as WhoIsWorkingOn resolves it against the caller’s facts; also the caller’s block, for claimer.
server_error 🔒