George, 2026-09-10, asked directly: all four are favours, nobody pays anything
yet. So they are no longer '-'.
kivvi RevampIT favour|0
aoz-wohnen AOZ favour|0 (AOZ Begleitung)
vitareba clinic favour|0
sink S-Ink favour|0
`favour|0` is a RECORDED ANSWER, not a placeholder. It is the opposite of '-':
'-' means nobody knows, `favour|0` means unpaid on purpose. Until now those two
states were indistinguishable, which is exactly why "what am I maintaining for
free" had no answer — the honest answer was "all of it", and nothing said so.
The ledger baseline therefore goes 4 -> 0, and that is the point of writing it
down rather than just knowing it. The ratchet may never rise, so the NEXT live
client engagement cannot silently become the fifth favour: it fails CI unless it
arrives with terms, and new-site.sh already refuses `--status live` on client
work without --plan/--price before the repo or box exist.
✓ client ledger: all 4 live client engagement(s) have recorded terms
TESTS DECOUPLED FROM THE FLEET'S COMMERCIAL STATE
Banking this broke three of the gate's own cases, which had pinned "at baseline",
"a baseline of 4" and "all 4 live client engagement(s)". A test that fails when
the thing it guards SUCCEEDS is measuring the register's contents, not the gate —
and it would have broken again on the first real invoice.
The ratchet-direction cases now build their own two-row register and their own
baseline, so they test the DIRECTION regardless of what the fleet charges. The
committed-register case asserts a verdict was produced rather than a count. Added
a case pinning the distinction this commit relies on: `favour|0` must read as
settled, or recording the truth would look identical to never having asked.
Verified: client-ledger 13 passed (1 new), deploy-ready 20, uptime-sweep 66,
apply-schema 34.
Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
apps.conf carries plan/price columns that were added before the numbers
existed, on the explicit reasoning that "the gaps are the point — right now
'what am I owed this month' and 'what am I maintaining for free' are
unanswerable, which is why these columns exist before the numbers do".
That reasoning was right and nothing acted on it. All 15 rows still read
plan=- price=-, including four LIVE client engagements: kivvi (RevampIT),
aoz-wohnen (AOZ), vitareba (clinic) and sink (S-Ink). The columns made the
gap recordable; they did not make it visible, nothing ever read them, and
months of '-' looked exactly like having no clients. This is the reader.
check-client-ledger.sh — counts LIVE client-app/client-site rows whose
plan or price is '-'. Ratcheted at 4: may fall, never rise. Deliberately
narrow — a product owes nobody an invoice, and a prospect with no price is
honest, so both are excluded and the near-misses are printed rather than
silently dropped.
new-site.sh — the same rule, enforced earlier: --status live on client
work now requires --plan/--price and refuses at argument validation,
before the repo, the box and the deploy exist. CI would reject the row
anyway, but by then the site is created, pushed and serving.
Not wired into the daily fleet-register-check on purpose: a recurring
message about a number that does not change is how alerts get muted. It
fires at the one moment the answer is cheap — the PR that puts a client
app live.
Proved by mutation, both directions, on copies (12 cases): a regression
goes red, an improvement goes green and prints how to bank it, products
are never counted, and a register with nothing to announce still reaches
its verdict. The last one exists because the two trailing announcements
are `[ -n "$x" ] && echo`, a shape that can end a `set -e` script early on
exactly the register that has nothing wrong with it.
Also fixes scripts/hetzner/verify.sh, which read 6 variables from a
12-field line, so $db silently carried "-|S-Ink|client-site|live|-|-|-" on
every row — harmless only while that loop ignores $db, and the same trap
app_lookup() in lib.sh already documents having been bitten by.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>