Report what the build learned about the doc (REQ-137). A blocked report opens a blocking thread.
const url = 'https://example.com/api/v1/handoffs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/report';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"kind":"blocked","section":["example"],"trace_id":"example","text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/handoffs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/report \ --header 'Content-Type: application/json' \ --data '{ "kind": "blocked", "section": [ "example" ], "trace_id": "example", "text": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”What a coding agent learned about the doc while it built from it (REQ-137).
object
Blocked means the agent cannot build the section without an answer. note means it built something, and the doc was unclear.
The heading path of the section the report is about.
A trace ID the report is about, such as REQ-012. Speccy anchors the thread to where the doc defines it.
What the agent needs, in its own words.
Responses
Section titled “ Responses ”The thread the report opened.
object
For text, an Anchor. For a section, {heading_path}. For a finding, {finding_id, check_slug}. For a check, {check_slug}.
object
The handoff a builder opened this thread from (REQ-137).
The bundle version the builder took. 0 when no handoff opened it.
object
The AI is writing an answer.
Example
{ "anchor_kind": "text", "addressed_to": "humans", "status": "open", "messages": [ { "author_kind": "user", "decision": "" } ]}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}