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

# Project vision (VISION.md)

> Write down what your project is for and what it won't do, and Otto reviews every pull request against it.

A vision file is a short statement of what your project is for: its principles, what it will never do, and where its scope ends. When your repository has one, Otto reads it and flags changes that go against it. There is nothing to turn on: if the file is there, Otto uses it.

## What a vision file is

A good vision is short and testable. Someone reading a pull request should be able to say whether the change fits it. It usually has three parts:

* **Principles**: what the project values when there's a trade-off.
* **Non-goals**: what the project deliberately doesn't do, even if asked.
* **Scope**: who it's for and where it stops.

Otto looks for it in this order, at the repository root:

1. `VISION.md`: the whole file is the vision.
2. `STRATEGY.md`: only its `## Vision` section (any heading level), up to the next heading at the same level or higher.

You can also [point Otto at another file](#turn-it-off-or-point-elsewhere) in `otto.yml`.

## Why have one

Most reviews judge a change against the code. A vision lets Otto also judge it against what the project means to be:

* **It catches scope creep.** A feature that's well written but doesn't belong in the project gets flagged, with the non-goal it crosses.
* **It catches changes that fight a principle.** A new runtime dependency in a project that promises none, or a config option in a project that promises zero configuration.
* **It makes those calls consistent.** Every review, and every reviewer, judges against the same written statement, not one person's memory of a design discussion.
* **It helps people and agents too.** New contributors and coding agents can read the same file before they start, and propose changes that fit.

## How Otto uses it

### Read from the base branch

Like [`otto.yml`](https://docs.fullotto.app/configuration/otto-yml#which-version-applies), Otto reads the vision from the pull request's **base commit**, never from the pull request itself. A pull request can't rewrite the vision so that it approves itself.

This also means a new or changed vision takes effect once it's merged into the target branch.

### Treated as data, not instructions

Otto treats the vision as a description of your project, never as instructions to Otto. It can't change Otto's review format, its [severity scale](https://docs.fullotto.app/reviews/how-reviews-work.md#severity) or its verdict rules, and it can't tell Otto to approve, skip or ignore anything. For *how* to review, your [review instructions](https://docs.fullotto.app/configuration/instructions.md) still apply; the vision only answers whether a change belongs in the project.

### Findings quote the vision

Otto raises a vision finding only when a change clearly goes against a specific principle or non-goal. A change that fits, or that the vision doesn't speak to, gets no comment about it.

A vision finding is titled **Goes against the project vision**, quotes the principle or non-goal word for word, says how the change goes against it, and links the vision file:

> **P2** Goes against the project vision: never parses dates
>
> > Widgets will never parse dates; it only formats them.
>
> This adds `parseDate`, and a runtime dependency on moment to do it.

### Never blocks a merge on its own

* A vision finding is **P2**, or **P3** when the vision only states a preference ("prefer", "usually"). Otto caps it at P2 when it posts the review, so it's never P0 or P1.
* When the only findings that would request changes rest on the vision, Otto posts a comment instead of requesting changes, and the summary has a **Project vision** line saying so.

A P2 vision finding still counts toward your [approval policy](https://docs.fullotto.app/configuration/approval-policy.md) like any other P2 finding.

### A pull request that changes the vision isn't approved

A pull request that changes the vision in use never gets Otto's approval: a person must approve it. Where Otto would have approved, it comments instead, and the summary has a **Project vision** line saying why. This covers a pull request that:

* edits, moves or deletes the vision file;
* edits the `## Vision` section of `STRATEGY.md`, when that's where the vision comes from (other sections don't count);
* adds a `VISION.md` that would replace the `## Vision` section of `STRATEGY.md`.

Otto reviews the new text against the current one, and says in the review which principles or non-goals it adds, drops or weakens. If Otto can't tell whether a pull request changes the vision, it treats it as a change.

### In adversarial reviews

[Adversarial reviews](https://docs.fullotto.app/configuration/adversarial-reviews.md) work the same way. Both reviewers read the vision, vision findings are capped before Otto merges their reviews and picks the verdict, and the merged review carries the same **Project vision** line.

### Size limits and missing files

| Case | What Otto does |
| - | - |
| No `VISION.md`, and no `STRATEGY.md` with a `## Vision` section | Reviews as usual. Nothing is read or enforced, and a pull request that adds a vision can be approved like any other. |
| Vision longer than 8,000 characters | Uses the first 8,000 characters, cut at a line break, and doesn't assume what the rest says. |
| Larger than 256 KB, empty, not a text file, a symlink, or unreadable | Skips the file. |

When Otto skips `VISION.md`, it moves on to `STRATEGY.md`; if that has no usable `## Vision` section either, Otto reviews without a vision. A vision file that can't be used never stops a review.

## Turn it off or point elsewhere

Use `reviews.vision` in [`otto.yml`](https://docs.fullotto.app/configuration/otto-yml):

```yaml otto.yml theme={null}
version: 1
reviews:
  vision:
    path: docs/product/VISION.md # read this file instead of VISION.md and STRATEGY.md
```

```yaml otto.yml theme={null}
version: 1
reviews:
  vision: false # turn it off for this repository
```

* `path` must be a Markdown file (`.md` or `.mdx`), relative to the repository root. Otto reads it whole, unless it's named `STRATEGY.md`, in which case it reads only the `## Vision` section. With a `path`, Otto doesn't fall back to `VISION.md` or `STRATEGY.md` if the file is missing.
* With `vision: false`, Otto reads no vision, and a pull request that edits `VISION.md` or `STRATEGY.md` is reviewed, and can be approved, like any other.

| Field | Type | Default | Description |
| - | - | - | - |
| `reviews.vision` | boolean or map | `true` | `false` turns the vision off for this repository. |
| `reviews.vision.enabled` | boolean | `true` | The same, inside a map. |
| `reviews.vision.path` | string | *(none)* | A Markdown file to read as the vision instead of `VISION.md` and `STRATEGY.md`. |

An invalid `path` is ignored, Otto looks for `VISION.md` and `STRATEGY.md` as usual, and the problem is listed with your other [`otto.yml` errors](https://docs.fullotto.app/configuration/otto-yml#errors).

## How to write a good one

Keep it short: Otto reads up to 8,000 characters, and a page people actually read works better than a long one. Write each principle and non-goal so a reviewer can point at a change and say whether it breaks it. Say "never" for hard lines and "prefer" for preferences; Otto rates findings against a preference lower.

```markdown VISION.md theme={null}
# Tidewater

Tidewater is a small library that turns tide-gauge readings into
predictions for harbors and marinas.

## Principles

- Correct before fast: every prediction is checked against published tables.
- Runs anywhere: no network access at runtime, no native dependencies.
- Prefer plain functions over classes.

## Non-goals

- Tidewater will never forecast weather, waves or storm surge.
- No user interface; apps build their own.
- No support for readings older than 1980.

## Scope

For developers of harbor, marina and sailing apps. Not for research
models or navigation-grade systems.
```

> [!TIP]
>
> To draft a first version from your repository's history, try the open-source
> [vision skill](https://github.com/kunchenguid/vision) for coding agents.


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