Skip to content

Add a verification-discipline section to the agent instructions - #165

Merged
ptr727 merged 1 commit into
developfrom
feature/agents-verification-discipline
Jul 18, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/agents-verification-discipline

Conversation

@ptr727

@ptr727 ptr727 commented Jul 18, 2026

Copy link
Copy Markdown
Owner

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.md rather 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 Discipline section with six rules:

  • Run the whole lint gate before every push, not the parts that look relevant. The one most likely to catch a change is the one it seems least about.
  • A green check is not evidence the work happened. Read the job log for the artifact it promises.
  • A test must assert the mechanism it names. A case that passes for an incidental reason is worse than no case, because it is later cited as evidence.
  • A workflow change is only fully exercised by CI. Running a run: block locally validates the script, not secrets:, permissions:, or needs: wiring.
  • Gates, filters, and watchers must fail loud, never narrow quietly.
  • Editing CRLF files programmatically: . matches \r, so regex reassembly yields CRCRLF. 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.

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.
Copilot AI review requested due to automatic review settings July 18, 2026 20:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md alongside the existing PR review etiquette so it is consistently available to any agent/environment.

@ptr727
ptr727 merged commit e5e1a92 into develop Jul 18, 2026
12 checks passed
@ptr727
ptr727 deleted the feature/agents-verification-discipline branch July 18, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants