<!-- Source: @site/projects/sqlens-for-laravel/docs/rules/debt-resolved.md -->
<!-- Canonical: https://docs.pushery.com/sqlens-for-laravel/rules/debt-resolved/ -->

# DEBT.RESOLVED — a recorded debt the catalog shows as settled

> Somebody finished it. Reported here and removed in the repository, never from a deploy server.

- **Category:** safety
- **Level:** 0
- **Stability:** stable
- **Suites:** audit, deploy

The ledger records this debt and the catalog shows it settled — the constraint is validated, the
index is valid. Somebody did the work.

## Why the entry is still in the file

`sqlens:audit` runs against a live server, on a machine that has a *copy* of the repository rather
than a working copy of it. Editing a committed file from there would put a change into somebody's
tree that nobody made, on a machine where nobody could review it — and the next deploy would
overwrite it anyway.

So the removal belongs to the repository:

```bash
php artisan sqlens:lint --debt=record
```

That run has a working copy, a person behind it, and a pull request to land in.

## Why it is reported at all

An account that quietly kept settled debts would overstate what a project owes, and the number in
the report is what people act on. Saying so is how the file gets brought up to date at all.
