document step commits after test passes and nothing re-validates it - four occurrences, one reverted a review-step fix
The document step commits after the test step, and nothing re-validates its commit
Summary
The document step runs after test has already passed, makes its own commit, and no step re-runs against that commit. Anything it writes therefore lands in the branch that gets pushed and merged without ever being measured or reviewed.
We hit this four times in one day on 2026-08-31 with no-mistakes v1.48.0 (2ac3769), across two runs in one repository. Every occurrence was caught by a human or agent reading the commit's diff. None was caught by the pipeline.
The fourth occurrence is the reason we are filing rather than absorbing it: the document step reverted a correction that the review step had made earlier in the same run. So the step does not only write unverified content - it can undo verified content. That makes "read the diff before merging" a necessary mitigation but not a sufficient one, because a fix can be silently removed after it was checked.
What we observed
All four are the same mechanism, in four different shapes.
1. An unmeasured number, presented as a measurement. The step wrote a mutation-testing figure of the form "N of N confirmed red" into a documentation file. The number was arithmetic on a previous figure - the earlier count plus two tests added during a review round - not a measurement of anything. It shipped in the pushed branch. Measured properly afterwards, the true figure was different and larger.
2. A large unrelated file added to the repository. Alongside a legitimate ~15-line docstring correction, the same step committed a 6844-line, 1.4MB lockfile byproduct that had been created earlier in the run by a linting invocation. It was previously untracked and unignored, so it became part of what the repository ships.
3. A false measured claim. In a second run, the step wrote into an audit document that two named test environments "still resolve no scope" because "neither carries a resolvable identity column". Both actually resolve. Verified by running the project's own instrument against the pipeline worktree's own checkout of the code.
4. A verified correction, reverted. The same commit as (3) reintroduced an off-by-one that the review step had corrected earlier in that same run.
Why this is a correctness issue and not a documentation nit
The step's output is presented as, and is indistinguishable from, verified content:
- It lands in a commit authored by the pipeline, in a branch the pipeline reports as passing.
- The run's outcome is
passed, so a reader has no signal that one commit in it was never checked. - Occurrences (1) and (3) were false statements about measurements, which is the failure mode that documentation exists to prevent. A stale doc is a known cost; a confidently wrong measured claim carrying the pipeline's authority is a different thing.
- Occurrence (2) changed what the repository distributes.
- Occurrence (4) means an earlier step's verified fix is not durable.
Suggested direction
We are not attached to a particular fix, and we recognise re-running the full test step after document may be too expensive to be the default. Some options, roughly in increasing cost:
- Re-run only the cheap gates after the
documentcommit - lint and any static/consistency checks - so at minimum the commit is not entirely unchecked. - Detect and refuse out-of-scope changes in the
documentcommit. Every occurrence above was out of scope for the finding the step was addressing. A check that the step touches only files named by its own findings would have caught (2) outright and made (1), (3) and (4) visible. - Refuse a
documentcommit that reverts a change made earlier in the same run. This is the narrow fix for (4) and the one we would value most, because it is the occurrence that defeats diff-reading as a mitigation. - Report the
documentcommit distinctly in the run outcome, so downstream automation can require a human read of exactly that commit rather than inferring it.
Option 2 alone would have converted all four from silent to loud.
What we are doing meanwhile
Reading the diff - never the commit summary - of every pipeline-authored commit before merging, and instructing worker agents to do the same and to stop and report rather than absorb an out-of-scope change. That has caught four for four. It is also entirely dependent on attention at the right moment, which is why we would rather the tool refused.
Environment
no-mistakes v1.48.0 (2ac3769), 2026-08-31- macOS 26.5.1 (Darwin 25.5.0)
- Python project,
--skip=ciin use (the repository has no workflow that can register a check, per the tool's own documented guidance) - Both runs reported outcome
passed
Source: kunchenguid/no-mistakes