Docs
Baseline management
How nono baselines are proposed, approved, stored and compared — and why agents cannot approve them.
A baseline is the approved record of how a journey is supposed to behave. nono verify compares every run against the journey's current baseline, so baseline changes are changes to expected behaviour. nono treats them that way.
Properties#
Baselines are:
- Versioned — each approval creates a new baseline with its own ID, like
bl_20261130T100000_a1b2c3. - Immutable — an approved baseline directory is never rewritten. A change creates a new one and moves
CURRENT. - Tied to a journey definition — the baseline records the
journeyHashand the IDs of the assertions it was approved with. - Tied to a source revision — the commit of the source run is recorded when the project is a git repository.
- Explicitly approved — by a human, through the CLI. The approver (
git config user.name, or the OS user) and time are recorded.
Storage#
.nono/
├── baselines/
│ └── checkout/
│ ├── CURRENT # id of the approved baseline
│ └── bl_20261130T100000_a1b2c3/
│ ├── baseline.json # behaviour signature, checks, assertion ids
│ ├── <checkpoint>.png # checkpoint screenshots
│ └── <checkpoint>.dom.json # normalized DOM snapshots
└── proposals/
└── checkout/
└── prop_….json # proposals, git-ignored
Commit .nono/baselines/. Reviewers then see baseline changes in pull requests alongside the code that motivated them. .nono/proposals/ is listed in the .nono/.gitignore that nono creates.
Lifecycle#
1. Run the journey#
nono replay checkout
Make sure every required check passes and the behaviour is what you actually want.
2. Propose (optional)#
nono baseline propose checkout --reason "Initial working checkout"
--reason is required. By default the latest run of the journey is used; pass --run <id> to pick another. Runs that ended with an execution error cannot be proposed. A proposal changes nothing about verification.
Agents can propose through the MCP tool nono_propose_baseline — for example after an intentional behaviour change — but that is where their part ends.
3. Review#
nono baseline show checkout
nono diff <current-baseline-source-run> <proposed-run>
baseline show prints the current baseline's source run ID, its request signature, checks, checkpoints and any pending proposals. nono diff compares two runs that still exist locally: requests, statuses, errors, screenshots, DOM, assertion results and timing.
4. Approve#
nono baseline approve checkout --proposal <proposalId>
# or directly from a run:
nono baseline approve checkout --run <runId>
# or the latest run of the journey:
nono baseline approve checkout
nono shows the run's verdict and asks for confirmation. Without an interactive terminal, approval is refused unless you pass --yes (asserting that a human approved it). Approval is also refused:
- when
CIis set, unless--allow-ciis passed; - for a run that ended with an execution error;
- for a run produced by an older version of the journey (a different
journeyHash) — replay the current journey and approve that run; - for a run in which any required check did not pass, unless
--allow-failingis passed.
Approval writes a new baseline directory, updates CURRENT and, for --proposal, marks the proposal approved.
Why agents cannot approve#
The failure mode nono exists to prevent is an agent "fixing" a failing check by redefining what correct means. So:
- The MCP server has no approve tool.
nono_propose_baselineonly writes to.nono/proposals/.- Approved baselines are immutable, so an earlier baseline cannot be quietly rewritten.
- The managed instruction block tells agents never to modify baselines to make checks pass and not to run the approve command.
An agent with unrestricted shell access could still run nono baseline approve --yes. Keep baselines in version control and review changes to .nono/baselines/ in pull requests; never auto-approve in CI. See CI integration.
How comparison works#
During verify, after evaluating assertions, nono compares the run with the current baseline. Request paths and text are normalized first (see Journeys), and only requests to the base URL's origin are compared.
| Regression kind | Raised when | Default severity |
|---|---|---|
assertion_removed |
A required assertion ID in the baseline no longer exists in the journey. | high |
assertion_regressed |
A check that passed in the baseline fails now. | high |
request_count_changed |
A method + path was requested a different number of times. | high |
request_status_changed |
The set of response statuses for a method + path changed. | high |
new_request |
A method + path appears that the baseline did not request. | medium |
missing_request |
A method + path the baseline requested is gone. | medium |
new_exception |
An uncaught exception message not seen in the baseline. | high |
new_console_error |
A console error message not seen in the baseline. | medium |
final_url_changed |
The journey ends on a different path. | high |
screenshot_changed |
A checkpoint screenshot differs by more than verification.maxScreenshotDiffRatio. |
medium |
dom_changed |
A checkpoint's normalized DOM differs. | low |
timing_regressed |
The run took more than verification.timingRegressionFactor times the baseline duration and over a second longer. |
info |
For GET, HEAD and OPTIONS requests, request_count_changed, new_request and missing_request default to low. Override severities in .nono/config.yaml under regressions.severity, keyed by kind or by kind:METHOD:
regressions:
severity:
new_request: low
request_count_changed:POST: critical
failOn: [critical, high, medium]
A regression whose severity is in regressions.failOn is gating and makes the verdict REGRESSION. Other regressions are recorded as informational (gating: false) and do not change the verdict.
Screenshot comparison is skipped for checkpoints that have an explicit screenshot assertion (the assertion decides instead) and when verification.compareScreenshots is false. A checkpoint that exists in the baseline but was not captured is listed as unverified.
If the journey did not complete, only the assertion-level comparisons (assertion_removed, assertion_regressed) run; behavioural comparison is skipped and noted in unverified.
Without a baseline#
If a journey has no approved baseline, verify still evaluates assertions and adds an unverified entry noting that regressions were not checked. That entry is informational by default, so a run can still be VERIFIED; set verification.requireBaseline: true to make it required, which turns such runs into UNVERIFIED. screenshot assertions are unverified without a baseline. nono never invents a baseline.
When the journey changes#
Editing a journey changes its journeyHash. verify still compares against the existing baseline but adds an unverified note (journey-changed) saying the definition changed since approval, and removing a required assertion raises an assertion_removed regression. baseline approve refuses runs made with an older definition. To accept the new definition: replay the updated journey, review, and approve the new run.