Skip to main content
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 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, 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 or its verdict rules, and it can’t tell Otto to approve, skip or ignore anything. For how to review, your review instructions 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 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 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

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:
otto.yml
otto.yml
  • 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.
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.

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.
VISION.md
To draft a first version from your repository’s history, try the open-source vision skill for coding agents.