> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finalsay-hitl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Writing good requests

> When an agent should ask, and how to write a question someone can answer from a lock screen.

A good approval takes ten seconds to answer. The reviewer is often on a phone, between other things, seeing your agent's
request for the first time.

## When to ask

Ask before actions that are:

* **Irreversible**: deleting data, force-pushing, dropping tables, rotating credentials.
* **Outward-facing**: deploys, publishing, emails or messages to customers, PRs on other people's repos.
* **Costly**: spending money or quota, refunds, large API bills.
* **Ambiguous**: two reasonable paths, where the wrong pick wastes real work.

Don't ask about things the agent can check itself, and don't ask again for a decision it already has.

## The question

* **One decision** per approval. "Deploy v2.4 to production?" beats "Review the release".
* Make it answerable from the **notification alone**: name the thing and the action.
* Up to 500 characters, but aim for one line.
* Put the short form in `notification_summary` (up to 120 characters). It becomes the push title: "*Agent name*:
  *summary*".

## The context

`context_markdown` (up to 2500 characters) is what the reviewer reads before answering. Cover:

1. **What** will happen, concretely: the command, the recipients, the amount.
2. **Why** the agent wants to do it.
3. **What changes**: a diff summary, the affected records, the blast radius.
4. **How to undo it**, or that it can't be undone.

```markdown theme={"theme":{"light":"github-light","dark":"vesper"}}
## What changes
- 3 commits since v2.2 (auth fix, two dependency bumps)
- Migration: adds nullable column `users.locale`

## Risk
Low. Rollback is `make rollback VERSION=v2.2`.
```

Keep it short and scannable: headings, bullets, code. Leave out secrets and personal data the reviewer doesn't need.

## The options

* **One to four** options, each with a `label` (up to 120 characters) and a `value` (up to 500).
* Put the **go-ahead option first**. The CLI treats the first option as approval by default.
* Make values **machine-friendly** and stable (`deploy`, `staging_only`, `cancel`), and branch on `selected_option_value`,
  never on the label.
* Offer a middle path when there is one: "Deploy", "Staging only", "Cancel".
* Reviewers can always **write their own answer** instead. Handle `custom_instruction`: follow it, or stop and tell a
  person.

## Timeouts and fallbacks

* Give people realistic time. A deploy gate might be 15 minutes; a weekly report, 4 hours.
* Decide what happens when nobody answers. **Expire with a fallback instruction** returns your text as
  `custom_instruction` on expiry, for example "Nobody answered. Don't send; leave it in drafts."
* Never treat `expired` as approval.

## Reading the answer

| Result | Do this |
| - | - |
| `selected_option` with your go-ahead value | Proceed. |
| `selected_option` with another value | Do what that option means. |
| `custom_instruction` | Follow the instruction, or stop and ask. |
| `expired` | Don't proceed. Follow the fallback, or report back. |
| An error | Don't proceed. Retry with the same `request_id` if it's transient. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.