Why this matters
Clean diffs improve focus, reduce repo bloat, and avoid confusion.
Do not include commented-out code, unused files, or unrelated snapshots. Keep diffs minimal and relevant to the change.
Clean diffs improve focus, reduce repo bloat, and avoid confusion.
Side-by-side examples engineers can pattern-match during review.
// old impl kept for reference
// function oldDo() { ... }Removed obsolete helpers and snapshots not used by the new logic.Commented blocks left in diffSeparate gist/ADR for historical context; diff is minimalFrom the same buckets as this rule.
If the PR claims to fix a specific issue (e.g., 'Fixes #123' / 'Fix PAY-123'), validate it against the real production error. - If an observability MCP is available (Sentry/Datadog/Bugsnag): fetch the event/stack trace and confirm the change addresses the root cause. - Require a regression test (or a clearly documented reason why a test cannot be added). Call out fixes that only hide symptoms (catch-and-ignore, broader retries, defaulting values) without removing the underlying failure mode.