fix(board): --brief's zero-debt branch no longer claims zero pending mail

Found in review of the previous commit, before catalog tags 0.22.0: once
n_owe counts OWED repos rather than raw pending, its ==0 branch could fire
while a repo still held FYI-only mail, making "Ingen repo har uhaandtert
innboks" false at the exact moment it printed. Fixed to state only the
debt claim, and to name any FYI-only mailboxes found instead of letting
their existence go unmentioned. No fixture in the shared test tree ever
reached n_owe==0 (it always carries a debtor), so this needed its own
isolated-root fixture to pin.

Still part of the 0.22.0 release -- amends that changelog entry rather
than bumping again, since no tag exists yet.

board-selftest.sh: 150 -> 152 checks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGWMPskXBsTjMrrQ2GofFx
This commit is contained in:
Kjell Tore Guttormsen 2026-08-13 21:07:39 +02:00
commit 61aebad748
5 changed files with 80 additions and 10 deletions

View file

@ -30,9 +30,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
hit `--brief` too, whenever there was neither chain-root credit nor debt on
a given day). Verified against the shipped 0.21.0 script with a minimal
reproduction. Fixed by matching on `FILENAME` instead of line counts.
- **`--brief`'s zero-debt branch claimed no mail was pending, not just that
none was owed.** A side effect of the first fix above: once `n_owe` counts
OWED repos, its `== 0` branch can fire while a repo still holds FYI-only
mail, making the branch's first sentence ("Ingen repo har uhaandtert
innboks") false the moment that happens. Fixed to state only the debt
claim, and to name any FYI-only mailboxes found instead of letting their
existence go unmentioned in that branch.
`board-selftest.sh`: 142 -> 150 checks (fixtures for FYI-only mail,
mixed owed/pending mail, and the zero-blocked-repos case).
`board-selftest.sh`: 142 -> 152 checks (fixtures for FYI-only mail, mixed
owed/pending mail, the zero-blocked-repos case, and the zero-debt
briefing's own false claim).
## [0.21.0] - 2026-08-09