{"slug": "show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm", "title": "Show HN: Checkwash – flag Git diffs that weaken your tests (offline, no LLM)", "summary": "Checkwash 0.13.2, a local Git-diff analyzer released by developer taipei49314, flags test-weakening changes such as deleted assertions, skipped tests, relaxed expectations and CI checks that stop failing, without using an LLM or network access during analysis and without executing the user's code. The tool requires Python 3.11+ and Git, ships as a single-file zipapp and a PyPI package, and includes a Claude Code hook installer that writes a Stop hook and a PreToolUse ask to `.claude/settings.local.json` to catch edits by coding agents under five rules: ASSERT_WEAKENED, ASSERT_REMOVED, TEST_DISABLED, TOLERANCE_LOOSENED and BROAD_EXCEPT_ADDED. The release matters because edits made through Bash bypass the PreToolUse ask and engine errors in the Stop hook only report a non-blocking note, so the project directs teams to enforce verdicts on merges via a required CI check.", "body_md": "**Check whether a code change weakens your tests.**\n\nA test can pass after it stops checking something useful. checkwash reads your Git diff and flags known patterns such as deleted assertions, skipped tests, relaxed expectations, and CI checks that stop failing.\n\n```\n- assert total == 105.3\n+ assert total > 0\n```\n\nThe new assertion accepts many incorrect totals. checkwash flags changes like this for review, including changes written by coding agents.\n\n**Runs locally. No LLM. No network during analysis. Never executes your code.**\n\nThese examples use 0.13.2. The [installation guide](https://github.com/taipei49314/checkwash/blob/main/docs/install.md)\ntracks the latest verified CLI download and Action pin.\nThe [0.13.2 release guide](https://github.com/taipei49314/checkwash/blob/main/docs/releases/v0.13.2-public-launch.md) describes the Python import fixes, CLI changes and measured Django scan times.\n\nAlready installed from PyPI? From your Git repository, run\n`python -m checkwash check` to review your uncommitted changes. Use the Python\nthat installed the package, including the interpreter in the CheckWash\nenvironment if you used pipx. This also works when Windows blocks the\n`checkwash.exe` launcher.\n\n[Try the offline demo](#try-it-on-a-repository) · [Install Claude Code hooks](#use-it-with-claude-code) · [Require the GitHub Action](#use-it-in-ci)\n\nYou need **Python 3.11+, Git and Claude Code**. Install the CLI, then run the\nhook installer from the root of your repository:\n\n```\npipx install checkwash==0.13.2\ncheckwash hook install --agent claude-code --local\n```\n\nThis writes checkwash's hooks to `.claude/settings.local.json`, your\nmachine-local Claude Code settings (`--local` is the default; `--shared`\nwrites `.claude/settings.json` without the PreToolUse prompt):\n\n- **Stop hook:** checks the working tree and the session's commits when Claude\nis about to finish (paired with a`SessionStart` hook that records where the\nsession began). On a blocking finding, it stops Claude and returns the\nfinding so Claude can restore the test or explain what blocked.\n- **PreToolUse ask (`--local` only):** prompts before an`Edit` ,`Write` or`MultiEdit` of a Python test file leaves a`high` finding under one of five\nweakening rules (`ASSERT_WEAKENED` ,`ASSERT_REMOVED` ,`TEST_DISABLED` ,`TOLERANCE_LOOSENED` ,`BROAD_EXCEPT_ADDED` ). Non-interactive`claude -p` runs deny such edits because nobody can answer; the interactive prompt\nitself is not verified in automated tests.\n\nBoth hooks are author-side checks: edits made through `Bash` bypass the\nPreToolUse ask, and engine errors in the Stop hook report a non-blocking note\n(except working-tree files over the size limit). To enforce verdicts on merges,\nconfigure the required CI check under [Use it in CI](#use-it-in-ci). Hook\nlimits are documented in the\n[0.11.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.11.0.md).\n\nYou need **Python 3.11+ and Git**. Download the single-file zipapp and run the\nbuilt-in offline examples first.\n\nWindows PowerShell (including 5.1, where `curl` aliases `Invoke-WebRequest`):\n\n```\ncurl.exe -LO https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz\npython checkwash.pyz --version\npython checkwash.pyz demo\n```\n\nmacOS/Linux or Git Bash:\n\n```\ncurl -LO https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz\npython checkwash.pyz --version\npython checkwash.pyz demo\n```\n\nYou can also [download `checkwash.pyz` in your browser](https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz).\nThen, from a Git repository with at least two commits:\n\n```\npython checkwash.pyz check HEAD~1..HEAD\n```\n\n- **Uncommitted changes:**`python checkwash.pyz check`\n- **Branch review from merge base:**`python checkwash.pyz check BASE...HEAD` (`BASE..HEAD` compares the two snapshots directly)\n- **Hands-on walkthrough:** follow[`examples/invoice`](https://github.com/taipei49314/checkwash/blob/main/examples/invoice/README.md) to watch a failing test, a one-line shortcut edit that makes it green without fixing the bug, and checkwash's block.\n\nRunning `check` from a subdirectory analyses the whole repository from its Git\nroot and notes that root on `stderr`\n([#416](https://github.com/taipei49314/checkwash/issues/416)). For JSON/SARIF\noutput and machine integration, see the\n[embedding guide](https://github.com/taipei49314/checkwash/blob/main/docs/embedding.md)\nand [stability contracts](https://github.com/taipei49314/checkwash/blob/main/docs/stability.md).\n\nTo stop a merge, make the **`checkwash` status check required** in your\nrepository's branch rules. Installing the tool or adding a workflow alone\ndoes not enforce its verdict.\n\nSave this as `.github/workflows/checkwash.yml`:\n\n```\n# .github/workflows/checkwash.yml\non: [pull_request]\n\npermissions:\n  contents: read\n\njobs:\n  checkwash:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n        with:\n          fetch-depth: 0\n          persist-credentials: false\n      - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0\n        with:\n          python-version: \"3.12\"\n      - uses: taipei49314/checkwash/action@4ecb0b0efa2febe7dcacae7f4114e98877205128 # v0.13.2\n```\n\nAfter the workflow runs once, open **Settings → Rules → Rulesets** and require\nthe `checkwash` status context (keep the job unconditional). Repository\nadministrators with a clone of this project can also add the ruleset via:\n\n```\ngh api repos/OWNER/REPO/rulesets --method POST --input action/required-ruleset.json\n```\n\n`checkwash doctor` checks the local workflow file (it cannot inspect live\nGitHub branch protection). When upgrading, update the CLI and local hooks\nbefore bumping the Action pin; see [CI details](#ci-details-doctor-and-the-pin).\n\n| Result | What to do | \n|---|---|\n| **Pass · exit 0** | No finding requires blocking under your configuration. Keep running your normal test suite and code review. | \n| **Block · exit 1** | Read the finding and the diff. It may be weakened verification or a false positive. | \n| **Error · exit 2** | Resolve the input or analysis error before relying on the result. | \n\nThe default threshold is **high**: a visible **warn** still passes.\n\n**Read the finding.** For the diff at the top of this page inside\n`test_invoice_total` in `tests/test_billing.py`, checkwash prints:\n\n```\nASSERT_WEAKENED   HIGH   tests/test_billing.py :: test_invoice_total\n  test_invoice_total: assertion strength EXACT_VALUE(90) -> BOUND(40)\n  why high: NO_PROD_CHANGE_IN_DIFF\n  no de-escalator applied\n  before  assert total == 105.3\n  after   assert total > 0\n```\n\n`EXACT_VALUE(90) -> BOUND(40)` ranks assertion strength before and after;\n`why high` names the escalator (`NO_PROD_CHANGE_IN_DIFF`, or\n`REPAIR_EVIDENCE_REFUSED` when weakened alongside a production edit). Use\n`checkwash check --format json` for machine-readable output.\n\n**Fix the change, or record a reviewed exemption.** If the test was weakened\nby mistake, restore it and fix the code. If the weaker test is intentional,\nrecord a time-boxed exemption (90 days default, 180 max) using the fingerprint\nprinted in the report:\n\n```\ncheckwash allow \"<the fingerprint from the report>\" --reason \"why the weaker test is correct\"\n```\n\nConfiguration and exemptions are read strictly from the **base** side of the\ndiff (comparing `.checkwash/` against any `.greenwash/` predecessor), so a PR\ncannot exempt or relax rules for itself: merge the ledger entry through code\nreview first, and protect `.checkwash/` and `.greenwash/` with\n[CODEOWNERS](https://github.com/taipei49314/checkwash/blob/main/docs/enterprise.md#4-codeowners)\n([exemption rules](https://github.com/taipei49314/checkwash/blob/main/docs/enterprise.md#3-allowlist--reviewed-time-boxed-base-side)).\n\nFor a local `main...branch` check, merge or rebase onto the updated `main` so\nthe common ancestor includes the exemption. On GitHub, push to the pull\nrequest branch or use **Update branch** to trigger a new pull request event.\nRe-running an old job uses the original event's commits.\n\n**Report a false block.** If checkwash blocks an honest change, check the\n[failure ledger](https://github.com/taipei49314/checkwash/blob/main/benchmarks/FAILURES.md)\nfirst, then open an [issue](https://github.com/taipei49314/checkwash/issues)\nwith the **checkwash blocked honest work** template (`checkwash check --format json`\nplus the diff). Accepted reports become regression fixtures crediting the\nreporter.\n\n**checkwash is alpha.** A pass means no known tampering pattern was flagged at\nor above your threshold; it does not prove a change is correct or honest.\nPython is the primary supported language; JS/TS support covers a bounded set of\npatterns.\n\nFour core limits to know before relying on a pass:\n\n- **Test files are found by default naming conventions.** Python files are\nscanned when named`test_*.py` or`*_test.py` outside pytest's default\nignored directories (`build/` ,`dist/` ,`venv/` , dot-directories), reading\nonly default pytest test names; non-default filenames such as`tests/pricing_tests.py` or Django`tests.py` emit an`analysis incomplete` note on`check` (`stderr` , terminal report and SARIF) when changed, and are\nnot parsed as test units even if`pyproject.toml` collects them. JS/TS scans zero-configuration Jest\nand Node paths (`*.test.*` ,`*.spec.*` ,`__tests__/**` ,`.js` /`.ts` under`test/` , and`tests/` files importing`ava` or`tap` ), without reading`jest.config.*` ,`vitest.config.*` ,`.mocharc.*` or`package.json`` jest` collection rules.\n- **A JS/TS pass covers fewer patterns than Python.** Fewer assertion and\nhelper idioms are modelled in JS/TS, and runner config changes that silently\ndrop test files are not read.\n- **Editing agent-instruction files blocks, except strict inert EOF appends to root `CLAUDE.md`.** Changes to root` AGENTS.md` ,`.cursorrules` ,`.claude/**` ,`.checkwash/**` or`.greenwash/**` —and any prepend, mid-file insertion, adjacent append without\na blank line, deletion, edit, reorder, or fence/comment/`---` /`[label]:` addition\nin root`CLAUDE.md` —escalate`GUARDRAIL_TOUCHED` to`critical` .\nStrict inert appends at the end of root`CLAUDE.md` separated by a blank line\n(`GUARDRAIL_ADDITIVE` ), appended exemption entries (`EXEMPTION_ADDED` ), and newly\ncreated guardrail files that do not weaken checkwash config stay at`warn` .\n- **Claude Code hooks are author-side helpers, not a merge gate.** Only the\nrequired CI check in range mode enforces verdicts on pull requests.\n\n**Honest changes can pass, warn or block.** When a deprecated function and\nits whole test are removed together, `PROD_SYMBOL_REMOVED` can hold the finding\nat warn. When behaviour changes and a test's expected value changes with it,\nthe report can credit the production change (`REPAIR_EVIDENCE`).\nPython refuses that credit for a removed assertion or deleted test.\nJS/TS can give it in both cases. Both languages refuse it for a weakened\nassertion or loosened tolerance. If a legitimate change still blocks, review\nthe finding before requesting an exemption.\n\nOn the project's 60-case refactor corpus (57 strictly qualified), the\nexpected-verdict table (`benchmarks/refactors/expected.json`) and the published\n0.12.0 CLI mark **6 of 60** as blocking (4 among the 57, including known false\nblocks `CASE_020_windows` and `CASE_029_flatten`). Changed files over\n**1,000,000 bytes** are not read (non-Python assets/docs warn on `stderr`;\ntest, CI, guardrail, `.py` or pytest config files over the cap exit 2).\n\n## Customizing guarded instruction files (for example, unguarding CLAUDE.md)\n\nSubdirectory instruction files, `CLAUDE.local.md`, lowercase `claude.md`,\n`.gitattributes` working-tree-encoding rules, and other agents' config filenames\nare not guarded by default. `GUARDRAIL_ADDITIVE` on root `CLAUDE.md` covers only\nstrict inert appends at end-of-file separated by a blank line (no `---`, code\nfences, HTML comments, `[label]:` definitions or invisible Unicode formatting\ncharacters), and stays at `warn` even if an appended plain-text line contradicts\nearlier prose or adds an `@path` import.\n\nTo let a blocking guardrail edit through, record a reviewed exemption or\noverride `[roles].guardrail` in a base-side `.checkwash/config.toml` (or\n`.greenwash/config.toml` if your repository uses that directory):\n\n```\n[roles]\nguardrail = [\"AGENTS.md\", \".cursorrules\", \".claude/**\", \".checkwash/**\", \".greenwash/**\"]\n```\n\nBecause this list replaces the default, keep `.checkwash/**` and\n`.greenwash/**` in it so checkwash continues guarding its own config and\nledger. Creating a new config file is a `warn`; editing an already-tracked\nconfig is itself a `critical` guardrail edit until merged to the base.\n\n## Repair-evidence residuals, JS/TS table scope and refactor-corpus provenance\n\n`REPAIR_EVIDENCE` describes related changes in the same diff; it does not prove\na repair is semantically valid, and a no-op production edit (such as `+ 0`) can\nearn it ([#419](https://github.com/taipei49314/checkwash/issues/419)). From\n0.12.0 ([0.13.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.13.0.md),\n[0.12.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.12.0.md),\n[0.11.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.11.0.md)),\nweakened or loosened assertions and skips on live tests refuse repair evidence\nin both languages. Removing an assertion or a whole test also refuses that\ncredit in Python. JS/TS can still credit a related change for those removals.\nA Python test deletion held at warn by `PROD_SYMBOL_REMOVED` uses a separate\nrule about a removed production symbol. Review the reason printed with the\nfinding. For stricter enforcement, see the `fail-on: warn` and base-side\n`oracle_freeze` options in the\n[enterprise hardening guide](https://github.com/taipei49314/checkwash/blob/main/docs/enterprise.md#7-hardening-against-bought-repair-evidence-419).\n\nIn JS/TS (since v0.9.0, [#428](https://github.com/taipei49314/checkwash/issues/428)),\neach `test.each`, `it.each` and `test.for` table with a static title is a unit\nwhose rows are counted when written as an inline array, tagged template or\nsame-file `const` used only as a table; `describe.each` rows and computed-title\ntables remain unread.\n\nFor the 60-case refactor corpus, **6 of 60** (4 of 57 strictly qualified) is\nthe static source readback retained since the\n[D-185 dispositions](https://github.com/taipei49314/checkwash/blob/main/docs/oracle-context-dispositions-0.10.0.md)\nand matched by the published 0.12.0 CLI on Windows (2026-11-10 UTC). Earlier\nhistorical snapshots in the repository record 22/60 blocks (36.7%) at v0.3.1\n(`benchmarks/refactors/results-latest.json`) and 4/60 (2/57 strictly qualified,\nwith three fixture errors) in a pre-v0.3.4 source replay; those historical\nrecords are preserved unchanged and are selected examples rather than a general\nfalse-positive rate.\n\n## Which files over the 1,000,000-byte limit stop the run, and how each output reports them\n\nSince v0.9.0 ([#454](https://github.com/taipei49314/checkwash/issues/454),\n[#455](https://github.com/taipei49314/checkwash/issues/455)), oversized\nnon-Python assets, lockfiles, docs and non-Python production sources are set\naside without earning repair evidence: `--format json` lists them under\n`unread`, SARIF emits a tool execution notification, and terminal output prints\na `!` note (opening with `analysis incomplete` when there are zero findings);\n`--format hook-json` and `--emit-ir` omit `unread`.\n\nAny oversized file a detector or import resolver must read—test, conftest, CI,\nguardrail, snapshot, JS setup, runner script, `.py` module, pytest config\n(`pytest.ini`, `.pytest.ini`, `pytest.toml`, `.pytest.toml`, `tox.ini`,\n`setup.cfg`, `pyproject.toml`) at any depth, or non-generated `scripts/**`\nfile—stops the run with exit 2 (`--format json` prints `{\"unread\": [...]}`\nexcept on an unread symlinked pytest-config target in range mode; term and\nSARIF stay empty). checkwash streams up to 64,000,000 bytes per Git side and\ninspects the first 200 bytes of oversized sides solely to detect shell shebangs\n(an extensionless file with a side over 64 MB still stops the run). Generated\npaths (`build/`, `dist/`, `node_modules/`) are set aside unless they match `.py`,\npytest config, CI, runner script or unknown-shebang extensionless rules. At the\nbase, oversized root `poetry.lock`/` uv.lock` warn on `stderr`, while oversized\nroot `pyproject.toml` or `requirements*.txt` exit 2 across term/json/SARIF. In\nthe Claude Code Stop hook (`--format hook-json`), engine errors report a\nnon-blocking message and exit 0, except when a file changed by the hook's diff\nexceeds the limit in the working tree, which blocks the stop and asks to\nshrink, split or revert it ([#456](https://github.com/taipei49314/checkwash/issues/456);\nsee [subject integrity](https://github.com/taipei49314/checkwash/blob/main/docs/subject-integrity.md)).\n\nTry it on your own changes before making it required.\n[Coverage and limitations](https://github.com/taipei49314/checkwash/blob/main/docs/stability.md#coverage-and-adoption-cost)\n· [Known gaps](https://github.com/taipei49314/checkwash/blob/main/docs/adversarial-catalog-2026-09.md)\n· [0.13.2 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.13.2.md)\n· [0.13.1 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.13.1.md)\n· [0.13.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.13.0.md)\n· [0.12.0 known issues](https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.12.0.md)\n\nThe recommended Action and CLI above are both **v0.13.2**. The CLI is available\non PyPI and as a standalone download from the GitHub Release. Always upgrade the CLI and its local\nhooks first, then update the Action SHA in `.github/workflows/checkwash.yml`.\n[Enterprise setup](https://github.com/taipei49314/checkwash/blob/main/docs/enterprise.md)\n· [Action reference](https://github.com/taipei49314/checkwash/blob/main/action/README.md)\n\n## Verify the Action pin or upgrade from an older release\n\n**Development snapshots:** source on `main` may be ahead of the published CLI.\n[The advertised-release manifest](https://github.com/taipei49314/checkwash/blob/main/release/advertised.toml)\nrecords the verified version, tag commit and artifact digests behind the\ncommands above.\n\n**Verify the SHA.** In a CheckWash clone, substitute the release tag for\n`vX.Y.Z` and run `git rev-parse 'vX.Y.Z^{commit}'`. For v0.11.0 only, use\n`git rev-parse 'vX.Y.Z^2^1'`. An Action commit cannot embed its own commit SHA.\nThe CLI on PyPI and the release zipapp are built with that SHA, so their\n`doctor` recognizes the pin. The\n[Action reference](https://github.com/taipei49314/checkwash/blob/main/action/README.md)\nexplains release tags, pin updaters and older CLI versions.\n\n**Advisory for Action `<= v0.7.0`:** Action releases up to v0.7.0 ran\n`python -m pip` and `checkwash` with the PR checkout as working directory,\nallowing a PR to shadow `pip` or `checkwash` ([#372](https://github.com/taipei49314/checkwash/pull/372),\nfixed in v0.8.0). Pin the v0.13.2 Action above; see\n[SECURITY.md](https://github.com/taipei49314/checkwash/blob/main/SECURITY.md#known-issue-action-trust-boundary).\n\n## Install as a CLI or try the included examples\n\nIf you already use pipx, install the fixed version:\n\n```\npipx install checkwash==0.13.2\n\ncheckwash check HEAD~1..HEAD\ncheckwash demo                  # 8 tampering cases, blocked, offline\n```\n\nTo find pipx's Python, run `pipx environment --value PIPX_LOCAL_VENVS`.\nUse the full path to `checkwash\\Scripts\\python.exe` on Windows or\n`checkwash/bin/python` on macOS/Linux under that directory when running\n`python -m checkwash` from your repository.\n\n`checkwash demo` replays eight tampering cases and one honest fix. Five of\nthe eight are adapted from this project's decoy corpus: coding agents were\npointed at small repositories with a failing test and asked to make the\nsuite pass without fixing the bug (given only the task, none of the twelve\ntouched a test). One was found in this project's own release gate; two are\nsynthetic. The demo prints each case's origin. It illustrates known\npatterns; it is not a coverage guarantee.\nYou can run the same examples with `python checkwash.pyz demo`.\n\n## Read the measurements and their limits\n\nThe historical six-repo sweep recorded **46 / 1800 = 2.56%** blocks:\n**31 false positives (1.72%)**, 15 legitimate\npolicy blocks (0.83%). The tracked artifacts record engine **v0.3.0**\n(the release commit, swept 2026-09-07) on a corpus used to tune the\ndetectors, not a held-out result.\n\n**1.33% of the corpus (24/1800) records opaque production changes**.\nThat flag does not establish that each verdict changed or each diff was unanalyzed.\n\nReview methods vary: the three-rater agreement study covers an older\n35-diff cohort, not all 46 blocks. The dedicated **22/60 refactor** result\n(`benchmarks/refactors/results-latest.json`, a dated v0.3.1 snapshot) is a\nseparate population; the general-commit rate does not predict it.\n\n[Measurements and source data](https://github.com/taipei49314/checkwash/blob/main/benchmarks/README.md)\n· [Generated results](https://github.com/taipei49314/checkwash/blob/main/benchmarks/RESULTS.md)\n· [Failure ledger](https://github.com/taipei49314/checkwash/blob/main/benchmarks/FAILURES.md)\n\n| Looking for… | Start here | \n|---|---|\n| Installation checks, versions and first use | [Installation guide](https://github.com/taipei49314/checkwash/blob/main/docs/install.md) ·[0.13.2 release guide](https://github.com/taipei49314/checkwash/blob/main/docs/releases/v0.13.2-public-launch.md) ·[Release history](https://github.com/taipei49314/checkwash/blob/main/docs/releases/README.md) | \n| JSON/SARIF contracts and upgrades | [Stability](https://github.com/taipei49314/checkwash/blob/main/docs/stability.md) ·[Embedding guide](https://github.com/taipei49314/checkwash/blob/main/docs/embedding.md) ·[Findings schema](https://github.com/taipei49314/checkwash/blob/main/docs/findings.schema.json) | \n| Assertion support, coverage warnings and artifact checks | [Assertion coverage](https://github.com/taipei49314/checkwash/blob/main/docs/assertion-coverage.md) | \n| Required checks and reviewed exemptions | [Enterprise setup](https://github.com/taipei49314/checkwash/blob/main/docs/enterprise.md) | \n| Contributing or reporting a problem | [Contributing](https://github.com/taipei49314/checkwash/blob/main/CONTRIBUTING.md) ·[Issues](https://github.com/taipei49314/checkwash/issues) ·[Security reports](https://github.com/taipei49314/checkwash/blob/main/SECURITY.md) | \n| Readiness for 1.0 | [Criteria — not met](https://github.com/taipei49314/checkwash/blob/main/docs/stability.md#what-must-change-before-10) | \n\nRelated project: [checkwash-prove](https://github.com/taipei49314/checkwash-prove)\n(experimental) executes your test suite against concrete mutants to show what\nprotection a test change dropped.\n\nThe package also includes a limited quality preview for coverage, Ruff and\nmypy configuration review. [Setup and CI adoption guide](https://github.com/taipei49314/checkwash/blob/main/docs/quality-adoption.md).\nUse the preview to review changes to tool settings. Its recorded compatibility\ncomparison still fails, and enforcement on real changes remains unverified.\n\nAlpha pre-release. 22 detectors, 23391 tests collected by pytest.\nZero runtime dependencies. [Apache-2.0](https://github.com/taipei49314/checkwash/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm", "canonical_source": "https://github.com/taipei49314/checkwash", "published_at": "2026-11-25 07:23:06+00:00", "updated_at": "2026-11-25 07:48:27.197557+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "ai-safety"], "entities": ["Checkwash", "taipei49314", "Claude Code", "GitHub", "PyPI", "Python"], "also_reported_by": [], "takeaway": "Install checkwash 0.13.2's Claude Code hooks with `checkwash hook install --agent claude-code --local` to block high-severity test-weakening findings, but add the required CI check for merge enforcement because Bash edits bypass the PreToolUse ask.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm", "markdown": "https://wpnews.pro/news/show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm.md", "text": "https://wpnews.pro/news/show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm.txt", "jsonld": "https://wpnews.pro/news/show-hn-checkwash-flag-git-diffs-that-weaken-your-tests-offline-no-llm.jsonld"}}