You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Self-hosting slice 1b, lane B: sybil-proof credit, pay-for-work epoch statements, live Postgres #1770
Part of #1761, lane B ("honest economics"). See #1756.
Lane B's three rows of #1761, on top of slice 1 (#1760) on the integration branch hosting-mvp:
Sybil-proof credit. The runtime for gHashTag/t27 specs/hosting/sybil.t27 (t27#8743): anchored quorum, canaries, probation, a per-key cap per epoch, attestation and the slash. It sits behind TRIOS_HOSTING_SYBIL=on.
Pay-for-work credits and epoch statements. The runtime for specs/hosting/statement.t27 (t27#8744, t27#8759):
every credit is named by kind (EXECUTOR_FEE, VERIFIER_FEE, slash);
each epoch closes into a statement signed with the Queen's ledger key;
GET /hosting/ledger/epochs and GET /hosting/ledger/epochs/:n/proof?key= serve them;
trios-host statement checks a host's own inclusion;
settlement stays shut and nothing moves value.
Live Postgres.
The hosting store runs against a real PostgreSQL 16 (tests/pglive/hosting-store-live.test.ts; it skips without TRIOS_PG_TEST_URL).
The boot migration is idempotent, and it builds nothing with TRIOS_HOSTING off.
The release follow-up: the ledger key comes from one variable, TRIOS_HOSTING_LEDGER_KEY. Without it, epochs stay open and unsigned.
Done on queen, behind TRIOS_HOSTING (off by default): 6350c2f (PR #1771 into hosting-mvp), shipped to queen by PR #1776 (dfb6d97). Checked at queen 9cfb52b:
TRIOS_HOSTING_SYBIL gates sybil.t27's rules; credits carry their kind; epoch statements are served by GET /hosting/ledger/epochs and /ledger/epochs/:n/proof; trios-host statement checks inclusion; the ledger key is read from TRIOS_HOSTING_LEDGER_KEY.
Activity
Merge pull request #1771 from gHashTag/hosting-economics
feat(hosting): slice 1b lane B - sybil-proof credit, pay-for-work epo…
dmitrii-f-t27 commentedon Oct 11, 2026
Done on
queen, behindTRIOS_HOSTING(off by default): 6350c2f (PR #1771 intohosting-mvp), shipped toqueenby PR #1776 (dfb6d97). Checked at queen 9cfb52b:TRIOS_HOSTING_SYBILgates sybil.t27's rules; credits carry their kind; epoch statements are served byGET /hosting/ledger/epochsand/ledger/epochs/:n/proof;trios-host statementchecks inclusion; the ledger key is read fromTRIOS_HOSTING_LEDGER_KEY.tests/api/hosting-economics.test.ts16 pass, 0 fail.tests/pglive/hosting-store-live.test.tswas not run locally (needsTRIOS_PG_TEST_URL); the server-pglive suite is green on PR queen(hosting): ship self-hosting - hosts join, full lab verdict, sandbox, sybil-proof credit, signed epoch statements (behind TRIOS_HOSTING, off) #1776.Closed by hand: PRs into
hosting-mvpandqueendo not auto-close issues.Dmitrii Fedorov (@dmitrii-f-t27)