Repository navigation
v0.337.7 - The stop on the scanner's allow comment says that prose counts
2026-12-02. Wording of one message, and tests. When the guard fires is unchanged.
- What was wrong. A write that puts the secret scanner's inline allow comment in a file asks the
person, or is refused where nobody is asked (since 0.323.0). On 2026-12-02 an agent was refused an edit
to a documentation page whose sentence named that comment. The message said the write "adds a comment"
and nothing about prose, so the agent read a correct stop as a false alarm, reworded the sentence, and
reported a misfiring guard to the maintainer. Where a person is asked, the message closed with "for
example, to remove Mycelium from this project", an example that belongs to a different stop. - The stop was right, and that was measured before anything changed. gitleaks 8.30.1, three one-line
files holding the same sample key: the bare line is found; the same line with the comment's text in a
sentence is passed; the same line with it behind a code comment is passed. The scanner reads the text on
the line and does not care what kind of line or file it is. - What the message says now. That the scanner passes any line carrying the text, a sentence in a
documentation page as much as a comment in code, so naming it in prose counts; and that the way to
describe it without writing it is to call it the scanner's inline allow comment. The refusal and the
ask both carry this. The ask's example is now a sample value that is not a secret. - Tests. One runs the real scanner on a sentence and on a code comment and holds that both pass the
line, with the bare line as its control, so the reason for the guard's breadth cannot be forgotten. Two
hold the wording, in the asking mode and where nobody is asked. One control holds that the way out the
message names is not asked about. - Alternative considered and not taken: ask only for a code comment, or only when the line holds a
finding. Either would stop the question on documentation. Both open the same route: the agent writes
the text unasked on a line with nothing to find, then puts a value on that line in a second edit, which
never carried the text and so is not asked about either. The guard as it stands makes the first step
the person's. hooks/README.mdsays the same in its line on the scanner's ways past a finding.