---
title: "Record Brief"
method: POST
path: "/api/rooster/issues/{issue_id}/build-brief"
tags: ["rooster"]
---

# Record Brief

`POST /api/rooster/issues/{issue_id}/build-brief`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/rooster/issues/{issue_id}/build-brief`
- Auth: none declared

`tools/rooster_worker/drain.py` posts the prompt each build attempt is given, once, right after it is
rendered and before the builder starts. Keeps it on the attempt's open `seat_build_sessions` row with a hash the
API computes (`seat_usage.record_brief`). RRC-15-READ-STORED, decided 2026-11-18 (triage lead, owner brief U1;
ledger row RRC-15-READ-STORED).

Bookkeeping, never a gate: it spends no attempt, moves no status, and never 404s. An issue with no open session
comes back `recorded: false` with `sha256: null`, which the drain ignores.

## Path parameters

- `issue_id` string, uuid, required

## Request body

- BuildBriefRequest: The prompt one build attempt was given, and the slice block rendered into it. RRC-15-READ-STORED, decided 2026-11-18 (triage lead, owner brief U1). The drain sends the text it actually handed the builder, so the stored brief is what the builder read, not a re-render from later data. Bounds are generous for a real prompt and refuse only a runaway payload.
  - `prompt` string, required
  - `slice_block` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-19** `e726fa19626f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/rooster/issues/:issue_id/build-brief/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
