Skip to content

docs(claude): pre-PR verification, adversarial self-review, and shell-portability discipline in CLAUDE.md - #146

Merged
kdr merged 1 commit into
mainfrom
claude-md-verification-discipline
Aug 3, 2026
Merged

docs(claude): pre-PR verification, adversarial self-review, and shell-portability discipline in CLAUDE.md#146
kdr merged 1 commit into
mainfrom
claude-md-verification-discipline

Conversation

@kdr

@kdr kdr commented Aug 3, 2026

Copy link
Copy Markdown
Owner

What

Extends the Verifying changes section of CLAUDE.md with working discipline distilled from a month of session-history analysis (/insights):

  • Pre-PR contract — run npm test + npm run test:e2e (plus the live suite when providers/records/CLI/binary are touched) from the repo root, judging pass/fail on FULL output, never through a | grep/| tail filter; PR bodies carry real counts, and unproven claims are labeled "unverified".
  • Adversarial self-review before every push — hunt for error paths that fall through to success, unbounded loops/spins, new crash surfaces (ENOENT/null), and regressions of the exact bug class just fixed. This targets the recurring pattern of fix commits introducing new defects that only Bugbot caught.
  • Fix review findings by class — grep the PR for adjacent instances of the same pattern and root-fix once (shared helper at 2+ sites) instead of one finding per review round.
  • Shell portability both ways — dev boxes are macOS (bash 3.2, BSD coreutils) while CI is GNU/Linux + shellcheck; anything shelling out to tar/split/sed/find must pass on both.

Verification

Doc-only change (CLAUDE.md, +17 lines, no code touched) — no test suites run; behavior is unaffected by construction.


Note

Low Risk
Documentation-only change to CLAUDE.md; no code, scripts, or CI behavior modified.

Overview
Extends CLAUDE.md → Verifying changes with agent/PR working rules—no runtime or code changes.

Pre-merge verification: Run npm test and npm run test:e2e (plus npm run test:e2e:live when providers, records, CLI, or the binary change) from the repo root; judge pass/fail on full output (no grep/tail); put real counts in the PR verification section and label anything not run as unverified.

Review discipline: Adversarial self-review before every push (fall-through success paths, unbounded loops, ENOENT/null crashes, regressions of the bug class just fixed); address review findings by pattern class (grep adjacent instances, shared helper at 2+ sites) instead of one-off fixes per round.

Shell portability: Document macOS dev (bash 3.2, BSD coreutils) vs GNU/Linux CI + shellcheck—tar/split/sed/find usage must work on both.

Reviewed by Cursor Bugbot for commit cc899aa. Bugbot is set up for automated code reviews on this repo. Configure here.

@kdr
kdr merged commit 5a1eeb4 into main Aug 3, 2026
5 checks passed
@kdr
kdr deleted the claude-md-verification-discipline branch August 3, 2026 22:34
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.

1 participant