Generalized Global Governance (GGG) A standard for scalable governance systems
Click or press → to startTap to start
Governance is a stream of actions
Each action has the same form: someone does something to someone, or to something.
- Every community runs on actionsA club, a cooperative, a town, a state: who may act, how, and with what effect.
- Many actions involve another bodyA registration is reported, a payment is owed, a decision is appealed.
- So one body's actions must be readable by othersAbove it, below it and beside it.
Cooperation does not scale today
Each body runs its own systems. Between them, much of the work is still carried by hand.
- Every body, its own systemBuilt or bought one at a time, each with its own data model.
- Rules from above are rewritten belowSpain has about 8,100 municipalities. A change of State legislation is re-implemented in each of their systems.
- Between bodies, people carry the dataSlow, costly and hard to audit. It grows with every new body that has to cooperate.
Governance systems need a shared standard
Software can run a community's actions: a Governance Operating System (GOS). A standard lets every GOS, and every tool, work with the others.
- A GOS runs a realm's actions as softwareMembers, departments, votes, budgets, rules. A community that governs itself on one is a realm.
- Without a standard, each GOS is a new siloTools, audits and other realms would have to learn each one.
- With one, work is done onceWallets, audits, AI assistants and other realms work with every compliant GOS.
What a good standard is like
Six design principles. Each one keeps the standard useful to every community, and owned by none.
Behaviour, not code
The model comes first
Complete, yet optional
NotFound or Forbidden.Only what others must read
The world's nouns
No political choice
The ontology: what a realm is made of
One vocabulary of governance, in twelve domains, defined in five ways.
- Entities: what a realm storesA member, a department, a proposal, a fund, a court case.
- Operations: what changes themJoin, propose, vote, transfer, appeal. Each one is an action.
- Lifecycles: the statuses each followsA proposal is voted on, then accepted or rejected.
- Invariants: what must always holdA member belongs to exactly one home quarter.
- Permissions: who may call whatEvery operation names the permission it needs.
One action, in GGG terms
Every action becomes an operation that is checked, then recorded as an event that anyone entitled can read.
- Who does what to whomThe council proposes the realm's tax policy for 2027.
- An operation, checked firstThe standard names it and the permission it needs. The realm's own rules can refuse it too.
- An event, recorded afterThe same shape in every compliant GOS: what, by whom, with what, when.
- Readable by any toolWritten once, an audit tool or an assistant works with every realm.
Compliance can be checked
GGG is a model, an interface and a test suite. A GOS either passes it or it does not.
- The interface
ggg.did, in Candid: a record for every entity, a method for every operation. - Any GOS can implement itIt announces GGG among its supported standards (ICRC-10).
- The suite decidesA GOS is compliant when it passes. Version 0.1.0 today; until 1.0 anything may change.
From the European Union to a district of València
Each level has its own bodies and its own subdivisions. The rest of this presentation follows València.
- The EU: a sourceIts legislation applies in 27 States, but it runs no realm.
- Spain: a realmIts 17 communities and 2 autonomous cities make legislation too, so each is a realm with Spain as its parent.
- The Comunitat Valenciana: a realmEach of its 542 municipalities is a realm. EMSHI, a water body of 51 of them, is a source beside the line.
- València: one realm, 19 districtsThe districts are zones inside it. Its 808,000 residents fill about 404 quarters.
Map data: Natural Earth · IGN, CC BY 4.0 · Ajuntament de València, CC BY 4.0
One GOS that follows it: Realms GOS
GGG names the domains, the operations and the facts each operation carries. How legislation is written, stored and run is each GOS's own choice. The next slides show how Realms GOS does it.
Layers × domains = chapters
Each body that legislates is a layer. Each subject is a domain, named by GGG. One layer's legislation in one domain is a chapter.
- A chapter is one Python fileKept in a public repository, realms-codices. A missing file is an empty chapter.
- A layer path per domainValència's water runs through the EU, Spain, the Comunitat Valenciana, the water body EMSHI and València itself.
- Empty layers are skippedValència's tax is Spain's chapter, then València's own.
Marks: what a lower layer may do
The layer above marks each setting and method. The realm enforces the mark when it installs and when it runs.
fixed
overridable
extension
forbid
A chapter is a Python class
Short, readable, and citing its legislation line by line. Most towns write almost nothing: they inherit.
- One class per chapterIt extends the same domain one layer up:
above("procedure"). - Method names are GGG's
check_<operation>runs before an operation and may refuse it.on_<operation>runs after it. - A town changes one lineValència keeps everything above and sets its own deadline.
- Every rule cites its sourceThe article it implements travels with it, into the realm and onto its public record.
Cedar for rules, a sandbox for code
Nobody writes Cedar by hand, and no chapter can reach outside its sandbox.
A forbid becomes Cedar
Hooks and guards run in a sandbox
- Only the realm's SDK can be imported
- No files, no network, no
eval, no reaching into Python's internals - A chapter calls another domain through the realm, never directly
- A guard that fails refuses the operation; a hook that fails is reported to the realm's IT team
What a canister is
Realms GOS runs on the Internet Computer. Each piece of a realm is a canister.
- A program with its own memoryCode and data together, upgraded in place: new code, same data.
- Run by a whole subnetMany independent nodes run it and must agree. No single operator can change it alone.
- It pays its own wayIn cycles, topped up like a prepaid meter.
- It talks by messagesThat is how a realm's canisters, and realms themselves, work together.
A realm is one codex, split by people
Every canister of a realm runs the very same codex. A realm grows by adding quarters, each holding part of its members.
- The capital quarterIt holds the directory of quarters, runs realm-wide votes, and is the realm's only door to other realms.
- Quarters: same codex, more roomA quarter that runs another codex is flagged as drifting.
- Each quarter is complete for its membersA member has exactly one home quarter, with everything that member needs.
- Split by people, not by functionMost actions then stay inside one canister.
From countries and cities to realms, zones and quarters
One rule decides: a body that makes its own legislation is a realm. Everything else is a zone inside it, or capacity.
- Legislates: a realmEach realm has at most one parent: València's is the Comunitat Valenciana, whose parent is Spain.
- Administers: a zoneA district is an area of the city, far larger than one quarter. A district board is a department of the realm.
- Capacity: a quarterMembers fill quarters by capacity. A realm may keep neighbours together, but never has to.
- A parent is not every sourceA water body or the EU can be a layer of a realm's codex without being its parent.
Splitting by people: what it costs and what it buys
Quarters make a realm grow without limit, at the price of more coordination.
What it buys
- A realm scales out: one more quarter for every 2,000 members
- Each quarter is complete, so a failure stays in one quarter
- Members' actions mostly stay inside their own canister
- One codex and one program everywhere: one audit covers all
- Splitting, merging or leaving is a single action
What it costs
- A realm-wide vote needs one leg in every quarter
- No central list of who lives where: a member's quarter is found by a pointer or a search
- A member who moves leaves a signed forward behind
- Every quarter pays for its own computing
- During a codex switch, quarters briefly run different codices
Realms find each other, capital to capital
A realm says how outsiders name it, and its parent confirms it. Only capitals talk to other realms.
- Identifiers that outsiders useAn ISO code, a national statistics code: whatever others already call the body.
- Both sides must agreeThe parent registers the member by its own vote and checks the code; the member joins by its own vote.
- Capitals are the doorsQuarters talk only to their own capital. Outsiders never see them.
- A claim alone confirms nothingA registry may cache who is who; the tree of confirmed links is the authority.
How the codex travels
Between realms, from capital to capital. Inside a realm, from the capital to its quarters. Always pinned by checksum.
- The source's record is the authorityWhich version is in force, its checksum and its date come from the body that adopted it.
- Two routes for the bytesThrough the parent's capital, or straight from the source. Canister to canister, no web request is needed.
- Checked on arrivalA copy that does not match the source's checksum is refused.
- Then down to the quartersEach quarter stages the new codex, and all switch at a set time.
Casals runs the canisters
Casals is an open-source orchestrator for fleets of canisters. Realms GOS uses it to create, upgrade and grow realms.
- One stand per realmIts backend, its frontend and its quarters, upgraded and rolled back as one unit.
- The whole lifecycleIt creates canisters, upgrades them, snapshots and rolls them back, and keeps their cycles topped up.
- The realm stays in chargeEach realm approves its own upgrades. When it grows, new quarters are added to its stand.
The bodies, the realms, the layers
Real bodies and real legislation, with one hypothetical change: Spain publishes release 2.4.0 of its tax chapter, in force from 1 January 2027.
- A tree of realmsSpain, the Comunitat Valenciana, València with 404 quarters, and a smaller Town B.
- More sources than parentsThe EU and the water body EMSHI are layers of València's codex, without being its parent.
- The change is hypotheticalThe bodies and the structure of their legislation are real; release 2.4.0 is invented for the example.
Six weeks, one timeline
From Spain's vote to the last town installing, every step is an action on a public record.
Inside València: 404 quarters switch together
One realm-wide vote on 10 December sets the switch for 20 December. Each quarter gets ready at its own pace.
- One vote, one switch timeThe members vote once, in all quarters, through the capital.
- Each quarter stages at its own paceNothing changes while it stages; the old codex keeps running.
- On the day, each switches by itselfFrom a schedule that survives canister upgrades. Calls between quarters carry the sender's codex checksum.
- A late quarter is flaggedThe same mechanism as a late member realm, one level down.
If a member does not comply
A member votes on when to install legislation from above, never on whether it applies.
- The member chooses whenValència installs through its own vote, before the date.
- Late means non-compliantTown B keeps its old codex, flagged on its public record. It cannot vote its way out.
- The parent's legislation decidesNever the platform. A challenge to the legislation itself goes to a justice case.
- Installing clears the flagAnd if a new codex misbehaves, a revert is always possible: no legislation can block it.
Splitting and merging
Quarters split and merge for capacity today. Realms merging or leaving a parent is possible in principle, but not designed yet.
- A full quarter splitsMembers keep their identity; a signed forward points to their new quarter.
- Small quarters mergeCapacity only: the realm, its codex and its votes do not change.
- Realms: later not designed yetA merger of municipalities, or a member leaving its parent, needs both sides' legislation. It is technically possible, and not decided.
One standard, many systems, many realms so that cooperation scales with the number of communities, not against it
- GGGthe model, the interface and the conformance suite
- Realms GOSthe reference implementation
- realms-codiceslegislation as code, in the open
- Casalsthe canister orchestrator