Repository navigation
spec(automation): service_ledger v3 -- one door settle_service for the money path - #11791
Conversation
Summary by t27-beesChecked by the t27 compilert27c parse, parse-complete and typecheck on each changed .t27 file at
Read by the modelThis PR introduces a new Worth a look
Read: 7 files, +827 -37, the whole diff. Head |
CI triage: 8 red checks, none from this diffThe diff is 7 files (3 specs, 3 seals, 1 docs/now entry). Every failing check
Green on this PR: L1 TRACEABILITY, check-linked-issue, own-language, Locally verified on this branch: |
…e money path (Closes #11790) The owner's principle of 2026-10-23, in both halves: a service never holds, prices or moves money -- it emits a receipt, one splitter reads it, and the distribution is decided by rules alone; and the accounting is settled without any person taking part. - NEW specs/automation/service_ledger.t27 (v1..v3): four services, one receipt gate, books derived from entries only (BOOK_STOP fail-closed, no adjustment entry), and settle_service -- the single door running STOP -> receipt gate -> payout eligibility -> books arithmetic -> delivery in one fixed order, answering SETTLE_STOP / SETTLE_NONE / SETTLE_HOLD / SETTLE_PAY. HOLD is reachable only when the books already say PAY: earned, not payable today. - specs/automation/token-wallet.t27 v2: the three-unit trade (TRADE_UNITS 3; one unit is the price, one funds the bounty pool, one pays the referrer). - specs/verified/payout.t27: trade_split_fits refuses a client-side split exceeding the charge, subtracting so a share near u64 top cannot wrap. Claim status stays honest: DESIGN, no host (COMPLETION_HOST_EXISTS=false, BOOKS_HOST_EXISTS=false, LIVE=false, TRI_PAYABLE=false). Nothing is sold live. Verification: test-report green (service_ledger 24 tests, 2 invariants, vacuous 0; token-wallet 11; payout 17), seals regenerated + verified, validate-seals exit 0, L3 ASCII clean. Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
34a8ed8 to
44e09e2
Compare
PR DashboardGenerated at: 2026-10-25 01:27:44 UTC
Summary
Seal Status
|
Goal
One spec-owned door (
settle_service) that settles any of the four services in afixed order -- books-STOP, receipt gate, payout eligibility, books arithmetic,
delivery -- answering SETTLE_STOP / SETTLE_NONE / SETTLE_HOLD / SETTLE_PAY.
Closes #11790
What
operation, node-job, resale), one receipt gate, books derived from entries
only (BOOK_STOP fail-closed, no adjustment entry,
accrued = paid + outstandingconserved), andsettle_service-- the single door that runs thewhole chain in one fixed order. HOLD is reachable only when the books already
say PAY: earned, not payable today, never NONE and never PAY.
one unit is the operation's price, one funds the bounty pool, one pays the
referrer). The house's own price per operation does not move.
trade_split_fits-- refuses a client-sidesplit that exceeds the charge, subtracting instead of adding so a share near
the top of u64 cannot wrap the sum back inside.
Honesty / claim status
DESIGN, no host yet:
COMPLETION_HOST_EXISTS=false,BOOKS_HOST_EXISTS=false,LIVE=false,TRI_PAYABLE=false. Nothing here is sold as live; the specrecords the entitlement and the gate and does not promise or mint $TRI.
Verification
--verifyMATCH x3, validate-seals exit 0settlement_law.t27+ledger.zigexist; 999-multibots-telegraf host files (
billing-shared.ts,token-ledger.ts,token-wallet.ts+ vendored gen) existNote on the working tree
Built in a clean worktree from
origin/master(a059416) because the primarycheckout was mid-interactive-rebase on an unrelated branch (wasm-board-p3); that
state was left untouched.