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

# Review and ship

> Read a PR's CI, its review coverage and its blockers, and then merge it.

A target is the F\[no] workflow that takes a task to a PR. It runs the delivery loop for you and reports the PR. This page shows how to read the evidence and merge the PR. A PR is a GitHub pull request.

After this page, you can say why a PR is or is not ready, and you can merge it.

## Before you begin

Use the [quickstart](/docs/quickstart.md) to create a PR, or open a PR for work that you own. You need the GitHub CLI, `gh`, because these commands read the PR through it.

Run each command from the repository of the PR. Replace `<PR>` with the PR number, the last part of the PR URL. The [CLI reference](/docs/reference/cli.md#pull-request-status) lists the exit codes. [How completion works](/docs/concepts/completion.md) explains the evidence.

## Read the proposed change

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Find the pull request for this work and summarize its changed files and risks. Ask me which one if several match.
```

Your agent opens the matching PR and reads its diff. You see changed files and risks.

### What the agent runs

Open the PR URL. Confirm the repository and the base branch, and then read the diff. Each check and each review belongs to one commit, the head of the PR. If a fix adds a commit, the older evidence does not cover it.

## Read a file or compare revisions

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Read the file at the earlier revision and compare it with the later revision. Ask me for any missing revision or path.
```

### What the agent runs

> **Note:** These commands target F\[no] 0.4.6. The latest release is 0.4.5.

Run from the repository that holds both revisions. Replace `<REV_A>` and `<REV_B>` with branch names, tags, or commit SHAs. Replace `<PATH>` with the repository-relative file path.

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do show <REV_A>:<PATH>
fno do diff <REV_A> <REV_B> -- <PATH>
```

`show` prints the earlier file unchanged. `diff` prints the unified diff from the earlier revision to the later one. An empty diff prints nothing and exits `0`. Invalid arguments exit `3`. A Git read failure exits `4`.

These reads change no files. The [CLI reference](/docs/reference/cli.md#read-revisions) describes multiple paths and argument limits.

## Read the verdict

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check this work's PR. Report CI, review coverage, mergeability, and readiness. Ask me which PR if several match.
```

Your agent checks current CI, review coverage, mergeability, readiness, and blockers. You see the exact head it read.

### What the agent runs

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do pr status <PR>
```

The command prints one line of JSON, and then a summary. This is the real summary for a docs PR, with the PR number masked:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
<PR> OPEN green settled mergeable NOT-ready @ 4abbf2a91632 - 3 blockers: review_in_flight, review_coverage_uncovered, review_not_posted
note: review coverage uncovered (1 reviewed, 0 passed) computed at 4abbf2a9
note: code-review (local_attestation) reviewed 04a7dba9, whose code no longer matches HEAD - that verdict does not count. Ask it to re-read.
```

Read it from left to right:

| Part | What it tells you |
| - | - |
| `OPEN` | The PR state. |
| `green` | The CI verdict: `green`, `red`, `pending` or `unknown`. |
| `settled` | No check is still running. |
| `mergeable` | Git can merge the PR. The other value is `CONFLICTING`. |
| `NOT-ready` | At least one blocker remains. |
| `@ 4abbf2a91632` | The head commit that this reading covers. |
| `3 blockers: ...` | What stops the merge. |

This PR has green CI, and it is not ready. CI passed, but the review covered an older commit.

The exit code gives the CI verdict: `0` green, `1` red, `2` pending, `3` unknown, `4` read failed, `127` `gh` missing. A failed read is missing evidence. It is not a pass.

To wait for CI, your agent runs this command. It holds the terminal until the checks settle or the time ends:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do pr wait <PR> --until settled --timeout 15m
```

It exits with the same codes. If the PR has a conflict, it exits with code 5 and tells you to integrate the base with `fno do pr push`.

If the verdict is `red`, go to [CI is red](/docs/troubleshooting.md#ci-is-red).

## Check review

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check review coverage and comments on the pull request for this work. Ask me which one if several match, then report open findings.
```

Your agent checks review coverage and comments on the current head. You see open findings and whether replies resolved them.

### What the agent runs

Your agent reads the review verdict for the current head with this command:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do pr coverage-check <PR>
```

Exit code `0` means covered. `3` means uncovered, and the output says why. `4` means that the read failed.

Then read the review comments on the PR, and the response to each blocking finding. Confirm that each finding is fixed or explicitly left open.

The `fno:review` workflow runs in your coding session, and it records the commit that it reviewed. That record is an attestation. If it names an older commit, run the review again on the current head.

To drive delivery yourself, run these workflows in your harness:

| Workflow | When | What it does |
| - | - | - |
| `fno:review` | Before the PR opens, or after a new commit | Reviews the current head. |
| `fno:ship pr create` | After review | Opens the PR. |
| `fno:ship pr check` | After the PR opens | Reads the configured external reviews. |
| `fno:ship pr merged` | After the merge | Runs the post-merge workflow of the project. |

These are harness prompts, not terminal commands. The [harness reference](/docs/reference/harnesses.md#workflow-prompts) shows the prefix for each harness.

## Why a PR waits for your look

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Explain why this PR waits for my look. Report its head, the visual blocker, the critic's findings, and the next step for me.
```

### What the agent runs

In F\[no] 0.4.6, a PR that changes a configured visual surface waits for your look. F\[no] calls this blocker `visual_approval`. In the F\[no] repository, the built-in surface includes the root `README.md`, `docs/images/**`, and UI paths. Other projects use `merge.visual_paint_paths` to name their surface.

The agent reads `fno do pr status <PR>` and prepares shots of the change. A design critic reviews those shots first. A missing, incomplete, or stale critique holds the question page. High findings also hold it. The agent fixes those findings before asking you to look. The page lists what the critic checked, remaining medium and low findings, and anything the critic did not judge.

For root README and docs image changes, a fresh reader also answers what the change shows. They say whether it makes them want to install F\[no] and which claim hurts. That response joins the question page. A harmful claim sends the change back for revision.

When the page is ready, your steps are:

1. Open the look question page that the agent reports.
2. Check the PR number and head commit on the page.
3. Read the shots and critique. Approve or decline that change on the page.

An answer records your decision for the head it names. If the agent records your chat approval for that PR and head, it can also clear the gate. A look approval does not grant merge authority or clear other blockers.

If every changed visual file was in the approved patch, a later head can carry that approval. If their contents change, edits within those same files can still carry. A newly changed visual file needs another look. An open look page for the current head stops that carry. A decline on a later commit also stops it, including a decline answered on another machine. If F\[no] cannot read the evidence for a carry, it holds the PR.

If the patch changes only comments or code names, it can avoid the visual hold. The rendered text must stay unchanged for an identifier-only attestation. Code-review coverage still belongs to the code it reviewed.

The evals gate checks behavior with evaluation tasks. A baseline records their results on the main branch for comparison with the PR. It holds a merge independently of CI. A red `evals_gate` can hold a PR whose CI is green. Pending evals hold too. If the deciding machine has a baseline and expects a gate for the diff, a missing result also holds. A fresh install without a baseline does not invent that missing-result hold.

GitHub auto-merge does not bypass this check. F\[no] refuses to arm it while the evals gate holds. The daemon also disarms queued PRs whose gate becomes red, pending, or required but missing. Read the gate's reason and clearing command, then check status again.

## Merge the PR

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check if this work's PR is ready to merge. Ask me which PR if several match. Merge only with active-target authority or my chat authorization.
```

Your agent reads merge authority and readiness. It merges only when an active target or your chat authorization permits it.

### What the agent runs

Your agent first reads the merge authority in the worktree of an active target:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do state show --field auto_merge_approved
```

If it prints `true`, the target merges the PR after its checks pass, and you have nothing to do. If it prints `false`, or you have no active target, the merge is your step. The [automatic merging](/docs/reference/configuration.md#automatic-merging) section explains the setting.

> **Warning:** This merges the PR into the base branch. If `fno do pr status` lists blockers, fix them first.

After you authorize the merge, your agent can run this command:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do pr merge <PR>
```

The command prints one line of JSON. It has `pr`, `outcome`, `reason` and `strategy`, and sometimes `cleanup`. This is a real `held` result, for a PR number that does not exist:

```json theme={"theme":{"light":"min-light","dark":"min-dark"}}
{"pr":999999,"outcome":"held","reason":"fno-agents pr-worktree exited 3: pr-worktree: gh api pulls/999999 failed: gh: Not Found (HTTP 404)","strategy":"none"}
```

| Exit code | `outcome` | What to do |
| - | - | - |
| `0` | `merged` | Type `fno:ship pr merged` at your harness prompt. |
| `1` | `failed` | Read `reason`, and fix it. |
| `2` | `skipped` or `held` | Read `reason`. Nothing merged. |
| `3` | Merge landed, cleanup failed | The PR is merged. Read `cleanup` for the part to finish by hand. |
| `127` | None | Install `gh`. |

You can also use the merge button on GitHub. F\[no] counts that as a merge too. Your branch protections still apply.

A merged PR does not prove that a website is deployed or that a package is published. Those need their own check.

## Next steps

* [Configuration reference](/docs/reference/configuration.md): look up review rounds and automatic merging.
* [Troubleshooting](/docs/troubleshooting.md#the-pr-is-open-but-the-run-keeps-going): find which part of delivery is unfinished.


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