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

# Answer and rule from chat

> Review decisions in the mux, answer an agent's question, or record a law from chat.

Review past decisions in the mux before you change a ruling. When an agent needs a decision, it files a question. Reply in chat. The agent records your exact words. You can also ask it to record, limit or explain a law, a durable rule for later sessions.

For scopes, strengths and authority, see [How decisions and law work](/docs/concepts/decisions.md).

> **Note:** This page describes F\[no] 0.4.9. From 0.4.9, `fno inbox law set` reads the live rulings near your new law first. Near means 6 or more shared topic words with the new law, at half or more of the shorter text. If one is near, the command refuses with exit code 3 until you name each one. Name it `--supersedes <id>` to retire it, or `--keep <id>` to keep it beside the new law. [How law stays current](/docs/concepts/law-upkeep.md) covers the refusal and the sweep that follows the write.

## Review a recorded decision

Before you change a ruling, inspect its record in the Decisions view. Follow [Review recorded decisions](/docs/guides/review-decisions.md) for the mux and web views, filters, audit queue and terminal action steps. Your agent can explain the record while you inspect it.

## Answer a question

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Show me the open question and its options. Ask me which answer to record, then save my exact words.
```

Your agent shows the open question and its options, then records your answer. You see a closure receipt. The question and your answer share one number, such as `D1`.

### What the agent runs

The agent shows the question and its options in your session. Reply in your own words, for example "call it export". The agent then runs:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox outstanding clear <QUESTION_ID> --answer "<OPTION_OR_ANSWER>" --authority chat_attested --quote "<YOUR_EXACT_WORDS>"
```

Your board lists each question with its number, such as `D1`. The agent passes that number as `<QUESTION_ID>`. The command prints `closed D1 (decision d-... recorded)`. The question leaves your board, the list of questions that wait for you. Your answer keeps the number of its question. [One number for a question and its answer](/docs/concepts/decisions.md#one-number-for-a-question-and-its-answer) explains why.

![A terminal. An open question is listed, a clear without a quote is refused, and a clear with the quote closes the question.](https://mintcdn.com/fno/biFLq6j8QXuWQOiQ/images/chat-answer.png?fit=max\&auto=format\&n=biFLq6j8QXuWQOiQ\&q=85\&s=cd70c591aafc48220e4bd5d1dddbb2ba)

* The quote is required. Without it the command exits with code 2, and the question stays open.
* The record says `chat_attested`, so a reader can tell it from an answer typed at a terminal.
* A chat answer never grants a merge. Answer a merge question on your board.
* Your answer stays in force on that node. A new question on the node is refused until you retract the answer, as [Drop a rule](#drop-a-rule-or-bring-it-back) shows.

For a local question, the terminal reference uses the same command with no `--authority` and no `--quote`. The next section explains remote copies.

### Open the asker in the mux

Before you answer, you can look at the session that asked. In the mux, click the bell in the tab bar, then select **Questions**. Select a question with `j` or `k`, and press `Enter` to open it. Press `w` to open the asking session. A live pane comes to the front. If the asker has stopped, its row menu opens, where **Resume** starts it again. The footer names the key as `w open`. This `w` is not the notifications wide toggle that [Resize a split](/docs/guides/mux-keys.md#resize-a-split) lists.

![The mux question view. An open question lists its options, and the footer reads w open after n notes.](https://mintcdn.com/fno/9355S2t8XOrlj4hj/images/question-open.png?fit=max\&auto=format\&n=9355S2t8XOrlj4hj\&q=85\&s=9d7172e10182378a5f5090094111759c)

*The question view of the demo board, shot from a disposable F\[no] server with invented content.*

> **Note:** The `w` key is on the main branch after F\[no] 0.4.8rc2. The 0.4.7 release and the 0.4.8rc1 and 0.4.8rc2 pre-releases have no `w open` in the footer. On those builds `w` opens only a live pane. Other rows read `session not on this bridge`.

## Answer a question from another machine

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Show me the question and the machine that asked it. If this is a remote copy, show me where I can answer it myself. Do not submit a chat-attested answer to the copy.
```

A remote copy shows `on <host>` and has an ID such as `<QUESTION_ID>@<HOST>`. Questions reach other machines only with a shared store configured.

In F\[no] 0.4.6, attached screenshots travel with the question through the shared store. Each receiving machine saves local image files for its copy. You do not need the asking machine's filesystem to view those images. If the original image file is missing, F\[no] cannot copy its bytes.

In the mux, click the bell in the tab bar, then select **Questions**. Use `j` or `k` to select the copy. Press `Enter` to open it. Choose an option with its number, then press `Enter` to send. For a question with no options, press `Enter`, type your answer and press `Enter` again.

To inspect an attached screenshot before answering:

1. Open the copied question from the bell's **Questions** tab.
2. Use the left or right arrow to select a screenshot in its **screens** strip. Press `Enter` to expand it.
3. Press `Esc` to return to the question. Press `j` or `k` to return to the answer options.

The agent cannot submit that answer for you. A chat-attested answer on a copy also refuses, because its quote cannot travel yet.

### What the agent runs

The agent finds the copy with `fno inbox outstanding`. It identifies the question ID and source host from that list. If you want a terminal reference, it substitutes those values and your answer here:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox outstanding clear <QUESTION_ID>@<HOST> --answer "<YOUR_ANSWER>"
```

This command requires you at the terminal. The agent does not run it. The mux provides the answer path without typing commands.

The receipt includes `the answer goes there`. This records the answer here and sends it to the asking machine. It closes nothing here. The background pull fetches changes from the shared store. After the asking machine applies the answer, the next pull closes the copies. Ask your agent to check `fno inbox outstanding` again. Closure removes the copy from that open-question list.

A bare clear, without `--answer`, refuses on a copy. A second answer to that copy refuses with `the first answer stands`. If the answer cannot apply, a notice names the question, reason and source host. If the question remains open, answer the original on that host.

## Record a law with limits

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Record this law for this project: Use short sentences in documentation. Apply it only to edits under docs/. Warn when it applies. Ask for my exact words before recording it.
```

The default scope is the current project. If the law must reach this machine, your user, or every session, ask for a different scope. See [Law has a scope](/docs/concepts/decisions.md#law-has-a-scope) for those choices.

### What the agent runs

For the example above, the agent records the law after it receives your exact words:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox law set "documentation style" "Use short sentences in documentation." --paths 'docs/*' --strength warn --quote "<YOUR_EXACT_WORDS>"
```

The command prints a new `d-...` ID. From 0.4.9, a law that says nearly the same thing as a live ruling refuses. The agent names each near ruling with `--supersedes` or `--keep`, then retries. The refusal names the ruling IDs. The agent reports the new ID and checks the law with `fno inbox law history <LAW_ID>`. The agent substitutes the returned ID for `<LAW_ID>`. In every example, `<YOUR_EXACT_WORDS>` means your verbatim instruction, which the agent asks you to supply.

`--user` replaces `--person`. `--user` alone selects your user. `--user=<NAME>` names a user explicitly. `--machine` selects this machine, and `--global` selects every session. One law takes one scope flag.

The agent can also limit sessions with `--filter <KEY>=<VALUE>` or exclude them with `--not <KEY>=<VALUE>`. For example, `--filter branch=release*` selects branches whose names start with `release`. See [filters](/docs/concepts/decisions.md#law-has-a-scope) for the supported keys and missing-fact behavior.

## Set a law's active periods

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Make the documentation style law warn only between 09:00 and 17:00 in each machine's local time, starting on the date I choose. Give it an end date too. Ask for the dates and exact words before recording it.
```

### What the agent runs

The agent asks for the subject, decision, start date, end date and your exact words. It uses `YYYY-MM-DD` for both dates:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox law set "<SUBJECT>" "<DECISION>" --paths 'docs/*' --strength warn --from date:<START_DATE> --between 09:00-17:00 --until <END_DATE> --quote "<YOUR_EXACT_WORDS>"
```

If this replaces an existing law, the agent adds `--supersedes <LAW_ID>` with that law's ID. The new ID preserves the previous row in history.

When that node closes, `--from event:<NODE_ID>` starts the law. The agent asks which node you mean. `--while <COMMAND>` keeps it on while a state check exits 0. The agent agrees that check with you before recording it. You can combine these conditions, and every condition must pass. See [Active periods](/docs/concepts/decisions.md#active-periods) for clock and cache details.

## Renew a law

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Extend the documentation style law to a new end date. Ask me for the date and exact words. Report the new law ID, or explain why my answer needs the board.
```

### What the agent runs

The agent finds the law with `fno inbox law history <SUBJECT>`. It asks for the end date and your exact words:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox law renew <LAW_ID> --until <END_DATE> --quote "<YOUR_EXACT_WORDS>"
```

`<LAW_ID>` is the law's `d-...` ID. `<END_DATE>` is its new last day, in `YYYY-MM-DD` form. Renewal records a new ID that supersedes the previous law. The command prints that new ID.

If several live laws match a subject, the agent renews one by ID. An agent can renew a chat-recorded law with your quoted instruction. For a terminal-recorded law, it asks you through a question on your board. Renewal does not change who can authorize that law.

## Prepare a machine for a wide law

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check whether this machine has a user certificate before recording a global law. If it needs one, explain the setup and ask where my user key is held. Do not copy the private user key to this machine.
```

A global law, or a law naming another machine or user, requires a user certificate on the recording machine. A certificate binds your user name to one machine key. A configured owner name alone does not prove that identity.

### What the agent runs

The agent needs access to both the destination machine and the machine holding your user key. If it lacks access, ask an agent on each machine to perform its part. Transfer only the destination public key and certificate line between them.

The agent reads the destination machine's public key:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno-agents mail-remote key show
```

On the machine holding your private user key, the certificate command takes its path, your user name and the destination public key:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno-agents mail-remote key certify <USER_KEY_FILE> <USER_NAME> <MACHINE_PUBLIC_KEY>
```

The agent asks for these values. It never invents a key path or user name. If you have no user key, choose a new path on a machine outside the fleet. The certificate command creates the key there. If you already use a user key, reuse it so its certificates share one trust identity.

The command prints a certificate as one line. The destination agent installs that line on its machine:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno-agents mail-remote key cert '<CERTIFICATE_LINE>'
fno-agents mail-remote key show
```

The second command shows the user name and user key fingerprint. A certificate for a different machine key refuses. If the machine key rotates, install a new certificate. The private user key stays where you keep it. The [certificate model](/docs/concepts/decisions.md#proof-for-wide-laws) explains which rows a certified machine accepts.

## Explain why a rule applies

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Explain which rules apply to an edit under docs/ in this project. Show each rule's status and the conditions it matched. Do not edit a file or change a law.
```

### What the agent runs

For an example edit to `docs/guide.md`, the agent sends one JSON request to the law match command:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
printf '%s\n' '{"mode":"rules-explain","event":{"kind":"pre-tool","tool":"Edit","paths":["docs/guide.md"]}}' | fno inbox law match
```

The request describes an event. It does not perform the edit. A missing `project` uses the current directory's project. The response lists each rule's `status` and `clauses`. Each clause names a filter, whether it held, and the value it saw. See [Rule explanations](/docs/concepts/decisions.md#rule-explanations) for the statuses.

## Drop a rule, or bring it back

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Ask me which chat-recorded law I mean. Get my reason and exact words before you retract it.
```

Your agent asks which chat-recorded law to retract, then records your reason and exact words. The old law remains in history.

### What the agent runs

A law is a durable rule that agents read before they ask. Each law and each chat answer has an id that starts with `d-`. To undo a chat answer, use its decision ID as `<LAW_ID>`.

Say which law to drop. The agent asks for your reason and records your exact words with the retraction:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno inbox law retract <LAW_ID> --reason "<WHY>" --quote "<YOUR_EXACT_WORDS>"
```

The history keeps the old law.

### Restore the law

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Restore the chat-recorded law I just retracted, then report its new ID.
```

The agent restores the law and reports the new ID.

#### What the agent runs

The agent runs `fno inbox law restore <LAW_ID>`. The command prints a new id.

![A terminal. A law is retracted with a quote, restored under a new id, and a second restore is refused.](https://mintcdn.com/fno/DJcb0L3Btiu0E_EH/images/law-retract.png?fit=max\&auto=format\&n=DJcb0L3Btiu0E_EH\&q=85\&s=5ce3aac2acfb0ee7ea585251e4d4430d)

Restore records nothing in three cases: the id is still live, the id was already restored, or the subject has a newer live law.

An agent using chat authority can retract only a law that chat recorded. For a law you set at a terminal, the agent files a question that names the law. Your answer in the notifications panel's **Questions** tab retracts it. You can also use the [Decisions pane](/docs/guides/review-decisions.md#retract-or-overrule-a-decision) yourself.

## Why a question reached you

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Route all questions directly to me. Show me the configuration change before applying it.
```

Your agent updates the question route and reports the selected setting.

### What the agent runs

A worker is an agent on one task. A lead is an agent that supervises workers. A worker's question goes to its lead first. The lead answers it or passes it up. Some classes of question go only to you: `irreversible`, `money-security`, `outside-reach`, `taste` and `law-change`.

An unanswered question shows on your board 10 minutes after it reached its holder.

To start or contact a lead, see [Work a backlog with agents](/docs/guides/backlog-and-leads.md).

To send every question straight to you, set `route = "direct"` in the `[questions]` table of `.fno/config.toml`. [Question routing](/docs/reference/configuration.md#question-routing) has the other values and the class lists.

## Next steps

* [Clear a correction the stop gate holds](/docs/guides/dispose-corrections.md): the turn end refuses until you record and ack the correction you typed.
* [Command page](/docs/guides/command-page.md): see the questions that wait for you, by machine.
* [CLI reference](/docs/reference/cli.md): look up `fno inbox` commands.


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