On this page · 8 sections
The help text advertises machine-readable output, such as --json or --format json, but this run did not check that the output parses. The finding is a statement about the run, not about your CLI. It is there so that a clean report never hides a flag that nobody tested.
What it checks
When the help text advertises machine-readable output, ax-check reports this rule unless the json probe ran, exited 0 and printed something on stdout that it could validate. The message gives the reason. There are four:
- the json probe is opt-in and was not enabled (the default);
- the help text names machine-readable output, such as
--porcelain, that ax-check cannot turn into a JSON selector; - the json probe exited with a non-zero status, so there was no output to validate;
- the json probe printed nothing on stdout.
When the json probe did validate the output, this rule is silent, and Documented JSON output does not parse reports output that does not parse.
Why it matters
A JSON flag in help text is a claim. An agent trusts it and parses whatever comes back. Before this rule existed, a help text that mentioned --format json was enough to silence No machine-readable output flag, even when no probe ever ran the selector. A report with no findings then looked like a pass for output nobody had seen. Saying “not verified” keeps the report honest about its coverage.
How to fix
If the command is safe to run with its JSON selector, re-run with --probe json, for example ax-check probe-cli --probe json -- invoicer list. If the selector needs a subcommand to produce data, probe that read-only subcommand. If you cannot run it safely, check the output by hand: invoicer list --format json </dev/null 2>/dev/null | jq ..
Example
Before
$ ax-check probe-cli -- invoicer
info <rule-id> [observed] Help advertises `--format json`, but its output was not verified: the json probe is opt-in and was not enabled (add --probe json).
After
$ ax-check probe-cli --probe json -- invoicer list
No findings.
How ax-check detects it
ax-check builds the selector from the help text as an argument array: a boolean flag such as --json, a value flag whose choices or description mention JSON (--format json, --output json, -o json), or a selector written out in the text, such as invoicer list --output=json. It passes the flag and its value as separate arguments, never through a shell. The rule then looks at the json probe’s result, if there is one.
Known false positives: a CLI whose JSON selector needs a subcommand, probed at the root. The probe may exit non-zero because no subcommand was given. Probe a read-only subcommand instead. Silence the rule with --disable <rule-id> once you have checked the output another way.
Safety note: probe-cli executes your program under your own OS account. The json probe runs your command with its JSON selector added, which on some CLIs does the command’s ordinary work, so it is opt-in. The temporary working directory and HOME are not a sandbox. See the “Probe safety” section of the ax-check README for what is and is not isolated.
Sources
- Guideline: Command Line Interface Guidelines, clig.dev. https://clig.dev/ . Says to display output as formatted JSON if
--jsonis passed and to send messaging to stderr.
Related evidence
Records in the AX evidence register about the same pattern as this rule. They don’t test the rule itself.
A CLI exits 0 when a destructive command is refused
Cloudflare's cf CLI documents that in a non-interactive session a destructive command without --force prints 'Aborted.' and exits with status 0, and a public issue reproduces this for workflows delete.
Independent measurement: no stake in the product
An enum in the schema ends silent failures from example-only vocabularies
SilentProbe (preprint) reports that a vocabulary a parameter description only exemplified ("e.g.") was missed on 88 of 88 attempts across twelve models, and that promoting it into the schema cut the failure to 0 of 89.
Preprint: not yet peer reviewed
Constraints stated only in prose produce silent failures on live APIs
SilentProbe (preprint) reports that only 7.5% of 2,501 public OpenAPI documents declare an enum, and that on live endpoints machine-checkable constraints returned an honest error in 111 of 111 cases while prose-only constraints failed silently in 44 of 61.
Preprint: not yet peer reviewed
Naming recovery tools is the active ingredient in failure receipts
Outcome Monitors (preprint) reports that receipts naming a violated outcome and the public recovery tools raised ToolMaze completion from 10.9% to 28.1% across four models, and that removing the list of recovery tools eliminated the gain.
Preprint: not yet peer reviewed
Idempotency keys cut duplicate writes from 28% to 4%
LIMBO (preprint) reports that offering an idempotency key on every write cut duplicate side effects from 28% to 4% of episodes because agents use keys when they exist, and that agents reported success in 90% of the episodes in which they had duplicated an effect.
Preprint: not yet peer reviewed
An evidence contract cuts false-success reports after tool failures
Failure-Transparent Agents (preprint) reports that after a required tool failed, six models falsely reported success in 22.8% of responses by default, 9.3% with a transparency instruction and 0.8% with a structured evidence contract.
Preprint: not yet peer reviewed
Related guides
Agent error recovery: design the path back
Agent error recovery in practice: what a failure response must say, when a retry is safe, how to handle partial completion, and when to escalate.
Guide
Record retries as product history
Why hiding an AI agent's retry history creates false confidence, and how to record attempts so a team can tell recovery from clean success.
Guide
