DEBT.LEDGER_MISSING — the account was expected on this machine and is not there
- Category: safety
- Level: 0
- Stability: stable
- Suites: audit, deploy
sqlens:audit looked for the debt ledger and it is not at the configured path.
Why this is undetermined and not "no debts"
This is the one place where the recording side and the collecting side answer the same observation oppositely, and deliberately so.
In the repository, an absent file honestly means nothing has been recorded yet — a project that has not adopted the account has none. Here the file is the expected artefact, and the likely causes are mundane and invisible:
- It was not deployed. Many pipelines ship a subset of the repository.
deploy.debt.pathis repository-relative, and this process is running from a different working directory.
Either way, whether the project has open debts is unknown — which is a different sentence from "none", and the comfortable one would be wrong at exactly the moment nobody can say.
What to do
Ship the file, or point deploy.debt.path at where it actually is. If the project genuinely does
not use the account, deploy.debt.enabled => false says so once and this finding stops.