open-standards/wai/wai-ledger/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science fedbf6a562 Tariff version 7 bills an instance once and a batch in one period, reads the leader's statement whole, and its service issues the month
A review reproduced four ways to bill against the extension's own text, and each is closed here in
wai-rs and in receipt_ledger_verify.py:

- One node schedule in two cache sources billed twice. A group or cache source's heads are now its
  claims, and an instance of a group that two sources of an invoice declare is refused.
- Overlapping batches billed across two invoices of a chain. An aggregated source is in a period
  when its batch is, read through its task's time_precision, so a verifier given one invoice sees it.
- A node billing the publisher's own instance beside the publisher: bearer_contradicted.
- wai-ledger could not issue the corpus's second week, since a group's head was its group receipt.
  It now issues the month and the week after it byte for byte, and a test holds it to that.

The leader's statement is read whole (statement_invalid, wrong_signer, batch_invalid), and the task
through its time_precision (task_invalid). Section 5.2 now says what is enforced, 5.3 holds a cache
source to the entries it bills, and 4.10 and 12 state what a period rule leaves unbilled and what a
declaration's bytes bound.

Two accepted vectors hold what no control did: two groups on one broadcast service, and a leader's
statement of version 1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 08:35:01 -05:00
..
http.rs Through a front, /metrics is a path a service does not have, by any method and to the letter 2026-11-07 01:50:41 -05:00
ledger.rs Tariff version 7 bills an instance once and a batch in one period, reads the leader's statement whole, and its service issues the month 2026-11-07 08:35:01 -05:00
main.rs Six WAI services answer GET /metrics, and wai-audit builds as a library 2026-11-07 01:50:40 -05:00
store.rs wai-ledger: the receipt ledger as a service; registry, SPEC §5, CHANGELOG and CI 2026-10-25 21:41:30 -04:00
tests.rs Tariff version 7 bills an instance once and a batch in one period, reads the leader's statement whole, and its service issues the month 2026-11-07 08:35:01 -05:00