Live on GenLayer Studionet

A constitution
that only tightens.

RATCHET is a small assembly that governs itself through a written charter of tiered articles. Every motion needs a supermajority that grows with how entrenched the articles it touches are, and GenLayer’s AI validators must agree exactly on what “touches” means.

00Members
0.000Treasury · GEN
00Motions filed
v0Charter version
How a motion travels

Five clicks of the wheel

One motion is on the floor at a time. It is filed with a bond, classified by AI validators, voted on, can be challenged once, then settled by plain code.

📜
01

File

A member files an amendment, grant, admission or expulsion and attaches exactly the bond. The charter, roster and treasury are frozen into the motion.

🧠
02

Classify

Validators answer one yes/no question per article: would this motion touch it? They must match exactly. The tier is computed in code.

🗳️
03

Vote

The tier sets the threshold: majority, two thirds, four fifths or unanimity of the frozen roster. A passing count never ends voting early.

⚖️
04

Challenge

Think the first reading was too lenient? Post a bond. An inclusive re-read can raise the tier, never lower it and pays you a bounty.

🏛️
05

Enact

Anyone can finalize. The effect applies, bonds return, payouts become pull balances. No owner, no admin, no upgrade path.

Feel the ratchet

Tiers go up. Never down.

Turn the wheel to harden a motion’s tier. Then try to turn it back: the pawl will not let you. That is the whole idea of the contract.

Tier 1 · ORDINARY: a strict majority is enough.

3D · drag to look around
Why it is built this way

Small rules, strictly enforced

🎯 Exact-equality AI consensus

Booleans, tiers, thresholds: every decision-bearing value must be identical between leader and validators. No tolerance band. Only the free-text reason may differ.

🔒 A one-way ratchet

A challenge can only add touched articles. Entrenchment grows, it never loosens, and weakening an entrenched article needs that article’s own supermajority.

💰 Bonds with teeth

Bonds are escrowed. A successful challenger wins their bond back plus half of the proposer’s. A motion nobody votes on forfeits its bond to the commons.

🧾 Pull payments

Payouts credit a balance; people withdraw() themselves, so a failing recipient can never block the assembly. Bounced transfers return to the treasury.

🧩 No admin, no oracle

One contract file. No owner, no upgrade path, no off-chain authority. Parameters are fixed at deployment and the charter changes only through motions.

📊 A conservation ledger

get_ledger proves the contract balance covers treasury + escrow + claimable at all times. Tested with 190 tests and 49 mutants.

Demo video

See a motion get ratcheted

A 2½-minute walk-through: connect a wallet, switch network, file a motion, watch the validators classify it, vote, then challenge it and see the tier tighten.

Simulated data · real UI

    The recording uses the site’s built-in simulation mode (try it yourself) so nothing costs gas. The live pages talk to the deployed contract.

    Mochi, the Ratchet mascot
    Hi, I’m Mochi! I’m the clerk who keeps the wheel honest.
    Meet Mochi

    The clerk who never loosens the ratchet

    Mochi is the GenLayer cat who watches every motion. Click the bubble for a tip, or open the docs to learn how tiers, bonds and challenges fit together.

    Read the docs
    On the floor

    Latest motions

    All motions →
    Reading the chain…

    Join the assembly

    Connect your wallet on Studionet, file a motion, or challenge one that looks too lenient.

    Browse motionsGitHub ↗@amirhp771 ↗