Skip to content

Output and exit codes

Reach for this page when you wire a run into CI, a dashboard or a bot. The exit code says whose problem a red build is, and the format decides where each finding lands.

Verified against src/docevals/reporters/ and src/docevals/types.ts, with samples captured from real runs against the fixture corpus in test/docevals/fixtures/pages, run from that directory.

CodeMeaningWho acts
0Everything passed.Nobody.
1Failures, errors, or a suite below its target pass rate.The page author.
2Operational or usage error, such as bad config, a missing provider, a malformed flag, or a run that would check nothing.Whoever owns the pipeline.

1 and 2 route to different people, which is the whole reason they are distinct. A CI recipe that treats any non-zero exit as “the docs are bad” blames authors for infrastructure problems. It also earns the check a reputation for flakiness it does not deserve.

--fail-on-review additionally makes exit 1 cover evals sitting in the human-review zone.

A run narrowed by --eval or --suite cannot exit 1 on a suite target: its suite summaries are marked partial and are not enforced. Exit 1 then comes only from the evals that actually ran, or from an error-level resolution problem.

If no page the run would check resolves a single eval, run stops with exit 2 instead of reporting success over an empty report. Nothing is wired up: no defaults.suite in the config, and no eval-suite or evals key on any page. The message names how many pages were affected, the keys that would attach an eval, and manni docevals list, which prints the resolved plan.

This is the same answer --eval no-such-eval already gave. Reaching “nothing would have been checked” through a config file rather than a flag does not make it a passing build.

Two empty runs are not errors, because both are choices rather than misconfigurations:

  • Every page carrying eval-skip. Pages you skipped are not counted.
  • A --since or --newer-than scope that selects no pages (see Scoping a run to what changed).

Neither passes in silence. Whenever no eval reaches a verdict, the report carries a warning saying the run graded nothing and established nothing about the corpus. A green exit code is never the only thing you have to go on.

A manifest the tool cannot write to is exit 2

Section titled “A manifest the tool cannot write to is exit 2”

A collection may keep evals, eval-suite and eval-skip in its external-metadata manifest. Two declarations of that manifest leave a writer nowhere to write, so both stop the run before any page is read:

RefusalstderrExit
A URL manifest owns an eval keymanni: manni.config.yaml: collection site: evals cannot come from a URL manifest, because docevals writes them.2
Two of a page’s collections own onemanni: docs/install.md is in collections site and guides, and both keep evals in a manifest.2

A page that carries a key its manifest owns is the third case, and it is exit 1. That one is a page problem rather than a configuration error, because the fix is an edit to the page:

error docs/install.md:4 "evals" is owned by manifest site.metadata.yaml (collection site); remove it from the document

-f/--format is not one shared set. run has seven reporters; list and fill render only two.

CommandAccepted formats
runpretty, json, markdown, github, sarif, junit, html
listpretty, json
fillpretty, json

Anything else is a usage error, giving exit 2, with the allowed set in the message. Matching is exact, so JSON and Json are rejected rather than folded, and a typo surfaces instead of being guessed at. Passing run’s markdown to list is rejected for the same reason.

Terminal window
$ manni docevals list docs/ --format xml
manni: --format must be one of pretty | json, got "xml"
$ echo $?
2

That matters most in CI, where --format json is piped into a parser. Exit 2 stops the pipeline; silently falling back to the pretty report would hand jq ANSI colour codes and still exit 0.

fill, generate and promote --write put each key where its location says, which is the page or a manifest. Each reports which, so a reviewer knows what to open.

A fill result carries wroteTo: "page", or the manifest’s path as the run spells it. It is absent when nothing was written, and present under --dry-run, where it names the file the write would go to:

{
"file": "docs/install.md",
"status": "filled",
"wroteTo": "site.metadata.yaml"
}

The pretty report prints the same thing under the page’s line, and prints nothing when the evals stayed on the page:

filled docs/install.md +1 evals (states-the-problem 0.90)
evals → site.metadata.yaml

metaProvenance carries the destination of its own entry, since a manifest may own meta-provenance without owning the eval keys. destination is the manifest that holds the entry, and absent means the page:

ShapeMeaning
{"written": true, "entry": …, "destination": "site.metadata.yaml"}The entry went into that manifest.
{"written": false, "skipReason": "schema-mismatch"}The page’s meta-provenance is not a list.
{"written": false, "skipReason": "manifest-owned", "manifest": "…"}A URL manifest owns the key, and nothing fetched can be written.
{"written": false, "skipReason": "unwritable"}The owning manifest joins on a field this page does not carry.

A page a joined manifest has no entry for is refused rather than written somewhere else. fill reports it as an error result with no wroteTo, and the run exits 1:

docs/no-id.md carries no doc-id, which site.metadata.yaml joins on, so its evals has no entry there.

generate carries refusals, one per eval whose command reference had nowhere to go, each with its file, evalName and the sentence above. It is decided before the model is asked, so no script is written for a refused eval. A script nothing can reference helps nobody, and paying for one helps less. The refused target still counts, so the run exits 1 for generating fewer scripts than it had targets.

Where no manifest owns the key, the page keeps it. On a terminal fill offers the relocation that would give it a manifest, once per collection. Off one it writes the page and says so once for the whole run:

manni: wrote evals to 3 pages; the schema prefers external metadata. Run manni meta relocate to give it a manifest.

Under --dry-run the same line reads would write and nothing is offered.

The default. Per page, one line per eval; then per-suite aggregates.

Terminal window
$ manni docevals run docs/actions/goTo.mdx --deterministic-only --no-generate
docs/actions/goTo.mdx
skip no-future-promises docs/actions/goTo.mdx:5
judge skipped (--deterministic-only)
pass names-an-action docs/actions/goTo.mdx:5
FAIL no-todo-markers docs/actions/goTo.mdx:7
error:14 [regex/found] Pattern /\b(TODO|TBD|FIXME)\b/ found in body, expected absent. Remove or reword the matching text.
docs/actions/goTo.mdx no-todo-markers: The page carries no TODO, TBD or FIXME markers.
Guide: https://hawkeyexl.github.io/manni/docevals/fix/
Suites
reference: 1/2 passed — 0% vs target 100% below target (1 skipped)

Each eval line ends with its location, the file and line that declare the eval. The finding line is severity:line [ruleId] message, and every message ends with what to do. The two dim lines under it are the eval’s guidance. Colour is applied only on a TTY, and never under NO_COLOR or --no-color. The other formats carry no colour.

The guidance lines follow every eval that failed, errored or awaits review. They also follow a finding on a passing eval, such as a warning the eval reports and passes.

A judged eval that did not pass prints the judge’s verdict, what it quoted and why, then the vote count. A failing verdict never quotes a run that passed. This sample is an example rather than a captured run:

FAIL no-future-promises [auto-fail] docs/actions/goTo.mdx:5
AI judge: fail (confidence 0.91). Edit the page so the assertion holds.
Observed: Waiting for network idle is planned for a later release.
Reasoning: Line 16 promises a later release.
votes pass:0 fail:3 partial:0
docs/actions/goTo.mdx no-future-promises: The page makes no claims about unreleased or future functionality.
Guide: https://hawkeyexl.github.io/manni/docevals/fix/

A judged eval read as its page’s personas carries a dim tag after the zone, and before (human-reviewed) when a review resolved it. See Judge a page as its readers.

FAIL fix-and-rerun [auto-fail] (read as theo) docs/src/content/docs/meta/fix/index.meta.yaml:16
pass x [human-review] (read as theo, maya) (human-reviewed) docs/x.meta.yaml:9
OutcomeFirst line under the eval
Judged failAI judge: fail (confidence N). Edit the page so the assertion holds.
Judged needs-reviewAI judge: no confident verdict (confidence N). Record a verdict with manni docevals review, or sharpen the assertion and run manni docevals calibrate.
human eval awaiting reviewAwaiting human review. Record a verdict with manni docevals review.

When any eval awaits review, the report ends with one more line:

2 eval(s) need human review. Run `manni docevals review` to record verdicts.

A finding may also carry "diagnostic": true, which appears in --format json and sarif. It means a command eval could not reach a verdict. It had no command yet, its command failed to start, or it timed out. The eval fails whatever its severity says. Consumers that gate on severity alone will miss these; read the eval’s outcome instead.

Note the suite line. The skipped eval is excluded, so the count is 1/2 rather than 1/3. The rate is weighted and the count is not. names-an-action and no-todo-markers form a failing criterion of weight 2, scored in place of its members. So 0 of 2 weight passed, which is 0%.

One object, for programmatic consumers.

{
"pages": 1,
"evalResults": [
{
"evalName": "no-todo-markers",
"type": "regression",
"grader": "tool:regex",
"file": "docs/actions/goTo.mdx",
"outcome": "fail",
"findings": [
{
"evalName": "no-todo-markers",
"file": "docs/actions/goTo.mdx",
"ruleId": "regex/found",
"message": "Pattern /\\b(TODO|TBD|FIXME)\\b/ found in body, expected absent. Remove or reword the matching text.",
"severity": "error",
"line": 14
}
],
"durationMs": 0,
"suite": "reference",
"weight": 1,
"location": { "file": "docs/actions/goTo.mdx", "line": 7 },
"integrity": "sha256-901110ea1cc5b000881c5cadc6ed2435eb8c0390cfb56e7fb337df0017b2fdbb",
"guidance": {
"id": "docs/actions/goTo.mdx",
"rule": "no-todo-markers",
"description": "The page carries no TODO, TBD or FIXME markers.",
"guide": "https://hawkeyexl.github.io/manni/docevals/fix/"
}
}
],
"suites": [
{
"suite": "reference",
"total": 3,
"passed": 1,
"failed": 1,
"needsReview": 0,
"skipped": 1,
"errored": 0,
"passRate": 0,
"targetPassRate": 1,
"meetsTarget": false,
"criteria": { "total": 1, "passed": 0, "failed": 1, "suspended": 0 }
}
],
"usage": { "totalTokens": 0, "cachedEvals": 0, "judgedEvals": 0 },
"generated": [],
"exitCode": 1,
"problems": []
}

The sample shows one of the three evalResults. The other two are the skipped ai eval and the passing names-an-action.

FieldNotes
outcomepass, fail, needs-review, skipped, or error.
consensusPresent for ai-graded evals only.
personasThe persona record ids the judge read the page as, in the page’s order. Present only on a judged result of an eval with readers: personas whose page names a persona record. Absent otherwise.
findingsPresent for command/tool evals that produced findings.
generatedTrue when this run generated the eval’s check script.
via"human-review" when a persisted review resolved the outcome.
selfPreference{axis, model} when the model that judged the eval also produced what it graded (axis: "content") or proposed the eval (axis: "criterion"). Absent otherwise. See Self-preference.
suite, weightThe suite the result reports under, and its weight in that suite’s rate.
location{ file, line? }, where the page declares the eval. See below.
integritysha256- and the hex SHA-256 of the page file as the run read it, frontmatter included. Every result for one page carries the same value, so a later reader can tell whether the page still has those bytes.
guidance{ id, rule, description, guide }, what the eval asks for. Present on every result, passing ones too. See below.
baselinedCount of findings a baseline suppressed on this eval. Present only when a baseline was in effect, so its absence means “no baseline”, not “nothing was forgiven”.
skipReason, durationMs

The entry that declares the eval, so a fix starts on the right line:

  • An item of the page’s evals key names its own line. That covers an inline eval, a use: reference, and the string shorthand.
  • A suite eval the page never names is declared by the page’s eval-suite key, so it names that line. With the suite set by defaults.suite, it names the page alone, with no line.
  • When a manifest supplies the key, file is the manifest and line is the entry’s line in it.

file is spelled the way file is, relative to the run’s directory. In the sample above, no-todo-markers is declared by the use: item on line 7 of the page, and the finding it raised is on line 14.

What the eval asks for, and where to read about fixing it. Every report prints it as two lines under a result that did not pass: <id> <rule>: <description>, then Guide: <guide>.

FieldNotes
idThe file that declares the eval, the same as location.file.
ruleThe eval’s name.
descriptionThe eval’s assertion, or null when it has none. With null, the first line drops the : <description> part.
guidehttps://hawkeyexl.github.io/manni/docevals/fix/, the page for fixing a failing eval.

passRate is the weighted share of graded evals (pass, fail, and error) that passed, and 1 when nothing was graded. A scored criterion counts once, by its own weight, in place of its members. meetsTarget compares it to the suite’s target-pass-rate from the config. criteria is present when the suite lists criteria.

partial is present, and true, only when --eval or --suite filtered the run, or --since or --newer-than left pages out. It says the run measured part of the suite, so the summary carries numbers but no verdict:

{
"suite": "reference",
"total": 5,
"passed": 5,
"failed": 0,
"needsReview": 0,
"skipped": 0,
"errored": 0,
"passRate": 1,
"targetPassRate": 1,
"meetsTarget": false,
"partial": true,
"criteria": { "total": 5, "passed": 0, "failed": 0, "suspended": 5 }
}

That is the reference suite from manni docevals run --deterministic-only --no-generate --eval names-an-action. Each criterion is suspended, because the filter left one of its two members ungraded.

  • meetsTarget is false on every partial summary, including this one, where passRate clears the target. It is not a claim that the suite failed.
  • A partial suite neither passes nor fails the run, so it contributes nothing to the exit code.

Read partial first. A consumer that reads meetsTarget on its own will read a filtered run as a failing suite. An unfiltered run omits the key entirely, so partial !== true is the test for “this verdict is real”. See Selecting evals suspends suite enforcement.

A scoped run carries one block per scoping flag. Each is absent when its flag was not given.

"since": { "ref": "origin/main", "pagesSelected": 2, "pagesTotal": 40 },
"newerThan": { "duration": "7d", "pagesSelected": 2, "pagesTotal": 40 }

pagesSelected counts the pages the run evaluated, out of pagesTotal discovered. With both flags, both blocks carry the one combined count, the pages that satisfied both. The pretty, markdown and github formats print the scope as one line:

Scoped to 2 of 40 page(s) changed since origin/main and in the last 7d.
No pages changed in the last 7d — nothing was evaluated.

Resolution problems, one entry per page problem, reported rather than thrown so one bad page does not stop the run. The pretty, markdown, github and html reporters all print them.

FieldNotes
fileThe file to edit. Usually the page, and the manifest when a manifest supplied the value.
line1-based, in file. Absent when the problem has no line.
levelerror, warning or notice. An error drops the page from grading and makes the run exit 1. The other two report and pass.
messageWhat is wrong.

Read file rather than assuming the page. A corpus that keeps its eval keys in a manifest has nothing at that pointer in the page. An annotation placed there points at the wrong line of the wrong file:

{
"file": "site.metadata.yaml",
"line": 2,
"level": "error",
"message": "Unknown suite \"reference\" (not defined in manni.config.yaml)"
}

Where persona records exist, an ai eval whose readers option is anything but personas is an error here, and the run exits 1:

{
"file": "docs/src/content/docs/meta/fix/index.mdx",
"level": "error",
"message": "Eval \"fix-and-rerun\": ai options.readers must be one of: personas"
}

Present only when a findings baseline was read or written. Absent means no baseline applied.

{
"path": ".manni-docevals-baseline.json",
"recorded": 412,
"suppressed": 340,
"stale": 72
}
FieldNotes
pathThe baseline as the user spelled it, relative to the config file.
recordedFingerprints the baseline holds for the files this run checked, not for the whole file.
suppressedFindings this run produced that the baseline already held.
staleRecorded fingerprints for checked files that no longer occur. This is the burndown number.
writtenPresent only on --write-baseline: { added, removed, total } against the previous file.

recorded and stale are scoped to the files the run touched on purpose. Counted over the whole file, a single-page run would announce that hundreds of entries no longer occur. Acting on that advice would destroy them.

written.removed is the field to alert on. A re-record rewrites the file from what that run covered, so a narrowed scope silently forgives everything it did not see. See A baselined finding does not affect the exit code.

The suite table plus per-page findings, suitable for a PR comment or a job summary. Each item names the eval in bold, a ·, then the eval’s location in backticks. Its sub-bullets carry the findings, the judge’s lines, the votes, and the two guidance lines, in that order. The github sample below ends with this summary.

Workflow commands for inline annotations, followed by the markdown summary. The same output both annotates the diff and works as $GITHUB_STEP_SUMMARY.

::error file=docs/actions/goTo.mdx,line=14,title=manni docevals%3A no-todo-markers::Pattern /\b(TODO|TBD|FIXME)\b/ found in body, expected absent. Remove or reword the matching text.%0Adocs/actions/goTo.mdx no-todo-markers: The page carries no TODO, TBD or FIXME markers.%0AGuide: https://hawkeyexl.github.io/manni/docevals/fix/
## manni docevals results
| Suite | Passed | Failed | Review | Pass rate | Target | |
|---|---|---|---|---|---|---|
| reference | 1 | 1 | 0 | 0% | 100% | ❌ |
### Findings
- ❌ **no-todo-markers** · `docs/actions/goTo.mdx:7`
- error:14: Pattern /\b(TODO|TBD|FIXME)\b/ found in body, expected absent. Remove or reword the matching text.
- docs/actions/goTo.mdx no-todo-markers: The page carries no TODO, TBD or FIXME markers.
- Guide: https://hawkeyexl.github.io/manni/docevals/fix/

Severity maps to the annotation level: error → ::error, warning → ::warning, notice → ::notice. Values are escaped per GitHub’s rules. That covers %, CR, and LF in data, plus : and , in properties, which is why the title reads manni docevals%3A. The guidance lines follow the message after an escaped newline, %0A, so the annotation shows them as lines of their own.

A finding with a line of its own keeps it, as no-todo-markers does above. Anything else lands on the eval’s location. A failing ai eval has no content line, so it annotates the entry that declares it. The annotation carries the judge’s lines, then the guidance. So does a finding that carries no line:

::error file=docs/actions/goTo.mdx,line=5,title=manni docevals%3A no-future-promises::AI judge: fail (confidence 0.91). Edit the page so the assertion holds.%0AObserved: <quote>%0AReasoning: <reasoning>%0Adocs/actions/goTo.mdx no-future-promises: <assertion>%0AGuide: https://hawkeyexl.github.io/manni/docevals/fix/

An eval awaiting review annotates the same entry as a ::warning, with the review line in place of the verdict. It fails the run only under --fail-on-review, and the warning says why it did. An errored eval with no findings annotates the same entry as an ::error, with the reason it could not run.

When a manifest declares the eval, file is the manifest. The markdown summary names the page and then the manifest entry, as `docs/install.md` · `site.metadata.yaml:4`.

One self-contained HTML file, with no CDN, no external stylesheet, no web font, and no script. It is the format for a person rather than a machine. It shows which pages failed, what the judge actually quoted, and whether each suite met its target.

Terminal window
npx @hawkeyexl/manni docevals run --format html > docevals.html

Self-containment is the point. The file is meant to survive being attached to a pull request, mailed, or opened from a CI artifact directory. All of those strip or block external requests, and any of them would otherwise render it unstyled. It follows the reader’s prefers-color-scheme.

Each eval shows its location beside its name. It carries the judge’s observed quotation alongside each verdict, because a verdict without the text it rests on is not reviewable. It also carries findings grouped by page, the weighted suite summary including criteria, and baseline and review state. Under a verdict that did not pass, the quotation comes from a run that did not pass either. The guidance lines close each eval that did not pass, in muted text. A self-preference marker appears when the judging model also produced what it graded.

A SARIF 2.1.0 log, for a code-scanning dashboard.

github annotates one pull request and scrolls away with it. SARIF is ingested and kept: which finding, on which line, first seen when, still open or not. Upload it with github/codeql-action/upload-sarif.

Terminal window
npx @hawkeyexl/manni docevals run --format sarif > docevals.sarif

Two properties are load-bearing, and both are asserted in CI:

  • File URIs are repo-relative and forward-slashed. An absolute or backslashed path uploads successfully and then matches no file, so every finding lands on nothing.
  • Every reported rule is declared in tool.driver.rules, so the dashboard can name it instead of showing a bare id.

A failing ai-graded eval appears as a result too, at level error, with the judge’s lines. It has no Finding, and omitting it would read as “the AI evals all passed”. An eval awaiting review appears as a warning result, with the review line.

Each result’s message.text is the message, then the guidance lines, joined by newlines. result.properties.guidance carries the same object as the JSON report:

{
"ruleId": "regex/found",
"level": "error",
"message": {
"text": "Pattern /\\b(TODO|TBD|FIXME)\\b/ found in body, expected absent. Remove or reword the matching text.\ndocs/actions/goTo.mdx no-todo-markers: The page carries no TODO, TBD or FIXME markers.\nGuide: https://hawkeyexl.github.io/manni/docevals/fix/"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": { "uri": "docs/actions/goTo.mdx" },
"region": { "startLine": 14 }
}
}
],
"properties": {
"guidance": {
"id": "docs/actions/goTo.mdx",
"rule": "no-todo-markers",
"description": "The page carries no TODO, TBD or FIXME markers.",
"guide": "https://hawkeyexl.github.io/manni/docevals/fix/"
}
}
}

Every rule in tool.driver.rules carries helpUri, the fix page. The tool:regex rules mean the same thing whichever eval reports them, so each is named for itself and described:

id and nameshortDescriptionfullDescription
regex/foundText the eval forbids is presentThe page contains text an eval forbids. The line is the first match.
regex/not-foundText the eval asks for is missingThe page lacks text an eval asks for.
regex/countText matches a different number of timesThe page matches an eval’s pattern a different number of times than the eval asks. The line is the first match.
regex/unreadable-targetThe eval’s target cannot be readThe file an eval reads cannot be read. The eval is at fault, not the page.

Any other rule is an eval. Its id and name are the eval’s name, and its shortDescription names the eval and its grader.

A finding with a line keeps its own file and region. A judged failure, an errored eval and a finding with no line take the eval’s location, with its line as region.startLine. A location with no line has no region.

JUnit XML, which every CI system already knows how to render as a test report.

One <testsuite> per eval suite, one <testcase> per (page, eval) pair, with classname as the page and name as the eval. That is the grouping JUnit viewers offer, so you expand a file and see its checks. Each <testcase> also carries file and line, the eval’s location. line is left out when the location has none.

Terminal window
npx @hawkeyexl/manni docevals run --format junit > docevals.junit.xml
OutcomeElement
pass(none)
fail<failure> with the findings or the judge’s lines, then the guidance lines
error<error> with the reason, then the guidance lines
skipped<skipped> with the skip reason
needs-review<skipped message="needs human review">

needs-review is a skip rather than a failure on purpose. JUnit has no third state, and reporting a human-review queue as a broken build is the wrong signal for the person reading it.