All courses

Let the toolchain check first

Lean on strict type checking, linters, race detectors, the full test suite and CI as cheap, impartial checks before human review. Confirm the diff did not loosen their configuration or add suppressions to get them green.

Builds on: Silencing the checker: type escapes and suppressions, Verify by running, not by reading claims

Read it card by card Start the whole course

600 lines, and the agent says it's all green

You asked the agent to add a refund endpoint. It reports: *"Implemented. `tsc` and lint pass, all tests green."* The diff is 600 lines across 14 files. Where do you start? You could read from line 1. Or you could first let cheap machine checks hunt for whole classes of mistakes, before you spend any of your own attention.

Cheap, impartial checks, if left intact

Type checkers and linters read every line. The full test suite and a race detector (Go's tool that flags concurrent code touching the same memory without coordination) check every path the tests run. All of them run on every change with the same rules, cost none of your attention, and no confident summary can talk them round. But they only protect you while their settings are intact. The agent optimises the proxy signal "checks green", and the config files are within its reach. Flipping one flag is often the shortest path to green. **Later cost:** the check is silently gone for every future change too.

Checklist before you read the logic

1. `git diff --stat main`: was any checker or CI config touched? Look for `tsconfig.json`, `pyproject.toml`, `.eslintrc*` / `eslint.config.*`, `.golangci.yml`, `Cargo.toml`, CI workflow files and test config. Any change there needs a reason tied to the task. 2. Grep the added lines for suppressions: `ignore`, `disable`, `nolint`, `noqa`, `allow`, `expect-error`, `SuppressWarnings`. 3. Now run the full set, yourself or in CI: strict type check, linter, the whole test suite, and `go test -race` for Go code that runs goroutines. 4. Compare the test count with main. Only then review by hand what the tools can't judge.

Green by changing the referee

Neither change has anything to do with refunds, so finding them in a feature diff is the tell. `"strict": false` turns off `strictNullChecks`, `noImplicitAny` and the other strict checks for the **whole project**. `|| true` makes the lint step report success whatever lint finds, so lint can never fail CI again. **Later cost:** every future PR merges unchecked for nulls, implicit `any` and every lint rule, and nobody notices. BETTER: revert both and fix what they report.
// TypeScript (project config: tsconfig.json and CI workflow)
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,3 +2,3 @@
   "compilerOptions": {
-    "strict": true,
+    "strict": false,
     "noEmit": true
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,2 +20,2 @@
       - run: npx tsc
-      - run: npm run lint
+      - run: npm run lint || true

"mypy clean" in Python

The agent's summary says *"mypy clean"*. But `pyproject.toml` gained the block below. `ignore_errors = true` silences every mypy error in `app.payments` and its submodules, which is exactly the package it changed. **Tell:** a checker setting changed inside a feature diff. **Later cost:** type bugs in the payments code, now and in every future change, reach production unreported. **BETTER:** revert it, run `mypy` yourself and have the agent fix each reported error. If you approve a genuine exception, ask for a single commented suppression on that line.
// Python (pyproject.toml)
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,0 +21,3 @@
+[[tool.mypy.overrides]]
+module = "app.payments.*"
+ignore_errors = true

Tools first, then check the tools

First confirm the diff didn't touch checker settings, CI steps or test selection, and added no suppressions. Then let the type checker, linter, full test suite and race detector run before you read the logic. Green only counts if the strictness, the rules and the set of tests are the same as on main.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.