docs(claude): pre-PR verification, adversarial self-review, and shell-portability discipline in CLAUDE.md - #146
Merged
Conversation
…lity discipline to CLAUDE.md
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.
What
Extends the Verifying changes section of
CLAUDE.mdwith working discipline distilled from a month of session-history analysis (/insights):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/| tailfilter; PR bodies carry real counts, and unproven claims are labeled "unverified".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 testandnpm run test:e2e(plusnpm run test:e2e:livewhen providers, records, CLI, or the binary change) from the repo root; judge pass/fail on full output (nogrep/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/findusage must work on both.Reviewed by Cursor Bugbot for commit cc899aa. Bugbot is set up for automated code reviews on this repo. Configure here.