Files
loki/scripts/ci/client-ledger.baseline
T
CatoandClaude Opus 5 5412b7d769 chore(register): record the four live client engagements as favours, baseline 4 -> 0 (#572)
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>
2026-09-10 13:14:10 -07:00

2 lines
2 B
Plaintext