Repository navigation
Add a verification-discipline section to the agent instructions - #165
Merged
Merged
Conversation
Records the checks that distinguish work actually done from work that merely reports success: run the full lint gate rather than the seemingly relevant part, read a job's log instead of its tick, assert the mechanism a test names, treat the first CI run as the real exercise of a workflow change, make gates fail loud rather than narrow quietly, and avoid regex reassembly of CRLF files.
There was a problem hiding this comment.
Pull request overview
Adds a portable “Verification Discipline” section to AGENTS.md to codify failure-modes where CI/review can appear green while silently skipping intended validation.
Changes:
- Document six verification rules focused on catching “false success” scenarios (skipped jobs, narrowing filters, incidental test passes, local-vs-CI workflow differences, and CRLF regex pitfalls).
- Anchor the guidance directly in
AGENTS.mdalongside the existing PR review etiquette so it is consistently available to any agent/environment.
This was referenced Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every rule here is drawn from a defect that reached CI or review during recent work, and each shares a shape: the failure reported success. A skipped job and a passing job look identical in the required check; a regex that silently matches less still exits zero; a gate that stops gating stays green.
They are recorded in
AGENTS.mdrather than agent memory because they are portable - an agent on any machine needs them, and none is specific to one host or one moment.What
A
Verification Disciplinesection with six rules:run:block locally validates the script, notsecrets:,permissions:, orneeds:wiring..matches\r, so regex reassembly yieldsCRCRLF. Prefer line-based edits.Verification
Full lint gate green: actionlint, editorconfig-checker, markdownlint, cspell. ASCII-clean, CRLF preserved, no
CRCRLF- checked with the rules the section itself adds.Note
Independent of #164 and the #163 promotion; it can land before or after either.