v1

latestOpenAPI 3.1.02026-08-04156223229.6 KB
agent-counsel
agent-counsel-internal

Add Agent Counsel Comment

Delegated quote-anchored comment write for an agent-counsel reviewer.

Agent-service calls this with its agent JWT instead of writing to hocuspocus directly; fastapi signs the HMAC envelope and relays. The author is the reviewer named in the verified JWT — never request input — so the agent cannot comment as anyone else. Authorized by the cap plus an open ReviewRequest for (reviewer_id, snapshot_id), matching the context route; refuses once the review is finished or cancelled.

post/agent-loop/internal/agent-counsel/comment

Headers

authorizationstring nullable

Request body

quotestring required
bodystring required
context_beforestring nullable
context_afterstring nullable

Response

Successful Response

thread_idstring required
resolved_anchor_textstring nullable