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.
VISION.md: the whole file is the vision.STRATEGY.md: only its## Visionsection (any heading level), up to the next heading at the same level or higher.
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
Likeotto.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 datesWidgets will never parse dates; it only formats them.This addsparseDate, 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 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
## Visionsection ofSTRATEGY.md, when that’s where the vision comes from (other sections don’t count); - adds a
VISION.mdthat would replace the## Visionsection ofSTRATEGY.md.
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
Usereviews.vision in otto.yml:
otto.yml
otto.yml
pathmust be a Markdown file (.mdor.mdx), relative to the repository root. Otto reads it whole, unless it’s namedSTRATEGY.md, in which case it reads only the## Visionsection. With apath, Otto doesn’t fall back toVISION.mdorSTRATEGY.mdif the file is missing.- With
vision: false, Otto reads no vision, and a pull request that editsVISION.mdorSTRATEGY.mdis 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
