Backend Validate

Validate the backend by running lint and tests. Loop until both pass.

NicoD updated 27d ago
Claude CodeGeneric
View source ↗
# Backend Validate

Validate the backend by running lint and tests. Loop until both pass.

## Steps

### 1. Run tests

Run `make backend-test`.

If tests fail, identify required fixes:
- **Minor fix** (typo, wrong value, missing import, trivial fixture): apply directly.
- **Major fix** (logic change, interface change, multiple files, behavioral change): present a summary of proposed changes and wait for confirmation before applying.

### 2. Run lint fix

After each round of corrections (or if tests passed on the first try), run `make backend-lint-fix` to catch any formatting issues introduced by the fixes.

### 3. Loop

Go back to step 1 and repeat until `make backend-test` exits with 0 and `make backend-lint-fix` produces no further changes.

### 4. Non-convergence

If after a few iterations lint and tests appear to be conflicting with each other (lint breaks tests, test fixes break lint), stop immediately. Report what is conflicting and why, and ask the user how to proceed. Do not attempt further fixes.

Maintain Backend Validate?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Backend Validate on getagentictools](https://getagentictools.com/loops/nicod-backend-validate?ref=badge)