Generalized Global Governance (GGG) A standard for scalable governance systems

Click or press → to startTap to start

Why

Governance is a stream of actions

Each action has the same form: someone does something to someone, or to something.

who does to whom or what a town council adopts a tax rate the town registers a new resident … and tells the national statistics office the State sets a rule for every town the action crosses a boundary
  • 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.
Why

Cooperation does not scale today

Each body runs its own systems. Between them, much of the work is still carried by hand.

the State statistics office the region town A town B each with its own data model a rule from above, rewritten by every town exports, letters, re-typing
  • 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.
Why

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.

without a standard GOS 1 GOS 2 GOS 3 wallet audit assistant wallet audit assistant wallet audit assistant every tool, rebuilt for every system with GGG GOS 1 GOS 2 GOS 3 GGG wallets audits assistants other realms each tool, written once
  • 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.
The standard GGG

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

It says what a realm does, not how. Any language, any GOS, any way of storing data, as long as what it shows matches the model.

The model comes first

The model changes first and implementations follow. A conformance suite checks them against it.

Complete, yet optional

Every operation answers. A realm with nothing in a domain is still valid: it answers with an empty list, NotFound or Forbidden.

Only what others must read

It is not a general data store. It holds what another realm, a tool or the standard itself needs; the rest stays with the realm.

The world's nouns

Departments, courts, funds, licences, tenders: concepts most governments share. Each country's names and numbers stay in its own legislation.

No political choice

It records who decided what, by which rule. Which rule is right is each realm's own decision.
The standard GGG

The ontology: what a realm is made of

One vocabulary of governance, in twelve domains, defined in five ways.

A realm Membership Departments Governance Finance Land and NFTs Licensing Justice Procurement Quarters andfederation Codex, noticesand audit Setup andadministration Private content and across them all: permissions, and invariants that always hold
  • 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.
The standard GGG

One action, in GGG terms

Every action becomes an operation that is checked, then recorded as an event that anyone entitled can read.

the council proposes the 2027 tax policy operation: tax_policy_propose does this caller hold the permission? Event { op: "tax_policy_propose", user: the council member, args: { policy: "policy-2027" }, result: { Proposed: "P-114" }, at: 20 Nov 2026, 09:45 } an audit tool a wallet a parent realm an AI assistant
  • 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.
The standard GGG

Compliance can be checked

GGG is a model, an interface and a test suite. A GOS either passes it or it does not.

ggg.did: the interface, every entity and operation Realms GOSPython · the reference a minimal GOSMotoko · a test fixture any other GOS, in any language conformance suite on mainnet or a local replica
  • The interfaceggg.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.
Ciutat VellaBenimaclet
An example

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.

European Union27 member states · a source of legislation, with no realm
Spain17 autonomous communities and 2 autonomous cities
Comunitat Valenciana542 municipalities · shaded: EMSHI's 51 member towns
València19 districts: zones of one realm
  • 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

From the standard to an implementation

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.

GGG the standardRealms GOS one implementation
Legislation as code Realms GOS

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.

tax procedure water data protection local regime EU Spain Com. Valenciana EMSHIwater only València legislation/eu/es/tax.py · legislation/eu/es/vc/46250-valencia/tax.py water: five layers tax: Spain, then València
  • 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.
Legislation as code Realms GOS

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

Spain · register
authority = fixed(Ref("authority", "INE"), legislation="Ley 7/1985 Art. 17.3")
València · register
authority = Ref("authority", "Ajuntament")
Refused: a lower layer may not redefine it

overridable

Spain · procedure
decision_deadline_days = overridable(90, legislation="Ley 39/2015 Art. 21.3")
València · procedure
decision_deadline_days = 60
The lowest value holds: València runs 60 days

extension

Spain, then CV, then València · local regime
@extension(legislation="Ley 7/1985 Art. 70.2") def on_codex_install(self, event): ...
Spain tells the State and the region; CV records missing languages; València tells every resident.
Every layer's definition runs, top to bottom

forbid

Spain · procedure
over_six_months = forbid( "procedure.set", F.decision_deadline_days > 183)
València proposes
decision_deadline_days = 200
Refused. Forbids are never overridden or removed: every layer's forbids apply.
Legislation as code Realms GOS

A chapter is a Python class

Short, readable, and citing its legislation line by line. Most towns write almost nothing: they inherit.

Spain · legislation/eu/es/procedure.py
class Procedure(above("procedure")): decision_deadline_days = overridable(90, legislation="Ley 39/2015 Art. 21.3") over_six_months = forbid("procedure.set", F.decision_deadline_days > 183, legislation="Ley 39/2015 Art. 21.2") def on_license_apply(self, event): # runs after GGG's license_apply event.decision_due = self.days_after( event.at, self.decision_deadline_days)
València · legislation/eu/es/vc/46250-valencia/procedure.py
class Procedure(above("procedure")): decision_deadline_days = 60
  • One class per chapterIt extends the same domain one layer up: above("procedure").
  • Method names are GGG'scheck_<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.
Legislation as code Realms GOS

Cedar for rules, a sandbox for code

Nobody writes Cedar by hand, and no chapter can reach outside its sandbox.

A forbid becomes Cedar

written in the chapter
F.decision_deadline_days > 183
generated when the realm installs it
forbid (principal, action == Realm::Action::"procedure.set", resource) when { context.facts.decision_deadline_days > 183 };
Cedar is a policy language whose rules can be validated and analysed. Its validator runs at install; off-chain, its analysis shows what a change newly forbids or allows.

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
Realms and quarters Realms GOS

What a canister is

Realms GOS runs on the Internet Computer. Each piece of a realm is a canister.

codeWebAssembly dataits own memory a canister a subnet: every node runs the same canister and agrees on each step cycles: it pays for its own computing messages to other canisters
  • 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.
Realms and quarters GGG

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.

not split by function tax canister register canister votes canister every action would cross canisters València · one realm codex 9f3c capital quarter directory · realm-wide votes · door to other realms · · · quarter 1 quarter 2 quarter 404 codex 9f3c codex 9f3c codex 9f3c about 808,000 residents ÷ 2,000 members per quarter ≈ 404 quarters
  • 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.
Realms and quarters GGG

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.

makes its own legislation → a realm a State an autonomouscommunity a foralprovince a municipality a body of several towns(water, waste) administers an area → a zone inside a realm a district,a neighbourhood Madrid's 21 districts: about 160,000 residents each holds members, for capacity → a quarter, with no territory · · · 2,000 members each, wherever they live Provinces without legislation of their own, and comarcas, are left out for now.
  • 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.
Realms and quarters

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 and quarters GGG

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.

Spain iso: ES Com. Valenciana iso: ES-VC València es:ine 46250 confirmed confirmed València's quarters talk only to its capital a stranger's canister "es:ine 46250" not registered: no link
  • 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.
Realms and quarters Realms GOS

How the codex travels

Between realms, from capital to capital. Inside a realm, from the capital to its quarters. Always pinned by checksum.

Spain Spain's published record release 2.4.0 · tax.py sha256 4be1… · from 1 Jan 2027 Com. Valenciana València through the parent or from the source sha256 matches Spain's record a parent can relay, never alter · · · quarters fetch from their own capital
  • 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.
Realms and quarters Realms GOS

Casals runs the canisters

Casals is an open-source orchestrator for fleets of canisters. Realms GOS uses it to create, upgrade and grow realms.

Casalsconductor València backend, frontend, quarters Com. Valenciana Spain create · upgrade · snapshot · roll back · top up each realm approves its own upgrades
  • 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.
All together: one change, through time

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.

EUa source, no realm Spain Com. Val. València 404 quarters Town B2 quarters EMSHIwater body of 51 towns solid: parent links · dashed: layers that are not parents
  • 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.
All together: one change, through time

Six weeks, one timeline

From Spain's vote to the last town installing, every step is an action on a public record.

1 January 2027: in force 1 Dec · Spain adopts 2.4.0 and publishes it in its record 1 Dec 2 Dec · daily checks find it CV, València and Town B 2 Dec 10 Dec · València votes install it, switch on 20 December 10 Dec 20 Dec · 404 quarters switch quarter 17 is late, then catches up 20 Dec Town B has not installed non-compliant since 1 January 15 Jan · Town B installs the flag clears at once 15 Jan
All together: one change, through time

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.

Realm-wide vote, 10 December adopt codex b71e, switch on 20 December 20 December: switch capitalquarter 1quarter 2quarter 17quarter 404 staging: download from the capital, check every byte codex b71e late: flagged caught up
  • 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.
All together: one change, through time

If a member does not comply

A member votes on when to install legislation from above, never on whether it applies.

Spain · release 2.4.0 published 1 December 2026 1 Jan 2027: in force València vote: install installed compliant Town B vote: not yet non-compliant Spain's legislation decides what follows: a formal request, then court; transfers held back installed, flag cleared
  • 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.
All together: one change, through time

Splitting and merging

Quarters split and merge for capacity today. Realms merging or leaving a parent is possible in principle, but not designed yet.

quarters · in GGG today quarter 404full 404405 split: members move to a new quarter merge: two quiet quarters become one realms · not designed yet town C town D one town two municipalities merge: two codices become one a parent a member a member leaves its parent: governed on both sides
  • 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.
In one sentence

One standard, many systems, many realms so that cooperation scales with the number of communities, not against it