Manuscript Offprint
arXiv:2611.06374Corralling AI Risks with Grassroots Contracts
Abstract
AI's inflection point is a fountain of alarming risks. Digital platforms in particular are vulnerable to three major AI risks, as those in control of global platforms cede control to AI, of the algorithms, of membership and of content:
(1) AI control of global platforms—social and economic—used by the majority of humanity, resulting in the majority of humanity becoming vulnerable to AI control.
(2) Unaccountable AI agents operating anonymously on social and economic digital platforms, side-by-side with humans, possibly masquerading as humans, serving unknown masters with unknown goals, operating under unknown restraints without accountability or culpability.
(3) Unattributed deepfakes generated by anonymous AI, with people unable to distinguish them from genuine content and with their producers evading accountability and culpability.
Here, we propose to corral these AI risks with grassroots contracts—a digital incarnation of a two-centuries old notion of Pierre-Joseph Proudhon. Proudhon envisioned a social contract that can be freely-adopted by any group of people, where groups bound by the same social contract can union by mutual consent, possibly into a single global union. Grassroots contracts are realised by grassroots platforms—smartphone-based person-to-person digital platforms owned, operated and governed by their participants. Fundamental grassroots platforms include the grassroots social graph, grassroots social networks, child-safe social networks, and grassroots currencies, with higher-level platforms providing for democratic digital communities and "sharing-economy" cooperatives. We developed, with AI, a methodology to compile grassroots contracts to working smartphone apps. We present grassroots contracts for a social graph with accountable AI agents and for a social network with digital provenance, and working smartphone apps that implement the two and show how they corral these major AI risks:
(1) AI control of global platforms is mitigated by grassroots platforms by design, as, unlike global platforms, they are not controlled by a third party who may then cede control to AI.
(2) Unaccountable AI agents are excluded, as AI agents are introduced to the grassroots social graph with accountability: similarly to cars, their manufacturers are known and are accountable for manufacturing defects, and their operators are known and are accountable for reckless operation.
(3) Unattributed deepfakes cannot circulate in grassroots social networks: every item carries the signatures of its author and of every agent that forwarded it, so creators and forwarders of harmful content are accountable and culpable.
Grassroots platforms are presently a concept with mathematical and computational theory, working prototypes, and tools for their large-scale simulation and testing. Much work remains for grassroots smartphone apps to be competitive with incumbent global
platforms; but perhaps now this could be achieved with some AI-months rather than with incalculably-many person-years.
CCS Concepts
• Computing methodologies → Artificial intelligence; Multi-agent systems; • Computer systems organization → Peer-to-peer architectures; • Human-centered computing → Social networking sites; • Security and privacy → Digital signatures; • Applied computing → Law; • Social and professional topics → Computing / technology policy; • Theory of computation → Distributed computing models.
TL;DR
Those who own and control the Web's social and economic platforms are now ceding their control to AI: of the algorithms, of who may join, and of what circulates. Hence, the majority of humanity now faces AI control of global platforms, unaccountable AI agents posing as people, and unattributed deepfakes. We propose a Web owned, operated and governed by the people who use it, with no "others" who control it and could cede their control to AI; AI agents join only under operators accountable for their operation and developers accountable for their defects; and every circulating item carries digital provenance, identifying its author and those who forwarded it, so a deepfake loses the protection of anonymity by having someone accountable for it.
1 Introduction
AI's inflection point is a fountain of alarming risks [2, 3, 20, 52, 56]. Digital platforms in particular are vulnerable to three major AI risks. Those in control of global platforms are ceding control to AI to maximise the value extracted from their users: of the algorithms, amplifying commercial surveillance [59]; of membership, by letting AI agents masquerade as people [15, 31]; and of content, by letting AI generate deepfakes with no one held accountable [28].
(1) AI control of global platforms—social and economic—used by the majority of humanity, resulting in the majority of humanity becoming vulnerable to AI control. Platform owners may delegate the operation of their platforms to AI, giving AI systems power over the social and economic lives of their participants and compounding existing concentrations of power, surveillance and manipulation [3, 10, 51, 58]; the participants are then subject to AI control even when the AI faithfully pursues its owners' objectives, and the owners may later be unable to reclaim the control they delegated [2]. Kulveit et al. [24] analyse the broader possibility that successive decisions to adopt AI gradually erode human influence over societal systems.
(2) Unaccountable AI agents operating anonymously on social and economic digital platforms, side-by-side with humans, possibly masquerading as humans, serving unknown masters with unknown goals, operating under unknown restraints without accountability or culpability. Social bots already take part in social networks and impersonate people [15, 31]. Proposals to establish, privately, that a participant is a person [1] and to make an AI agent's activity attributable through identifiers, monitoring and logs [7, 51] address two different questions: whether a person is participating, and who authorised an agent's acts and is answerable for them. Attribution must also be related to actual authority and control [34]: an identifiable person may otherwise be made to bear responsibility for a system over which they had little control, Elish's moral crumple zone [13].
(3) Unattributed deepfakes generated by anonymous AI, with people unable to distinguish them from genuine content and with their producers evading accountability and culpability. Untrained observers distinguish synthetic faces from real ones at about chance level [30], and a deceptive political deepfake raises uncertainty and lowers trust in news on social media [55]; Mirsky and Lee survey the creation and detection of deepfakes [28], and Chesney and Citron their consequences for privacy, democracy and national security [9]. Detection estimates whether content is synthetic; provenance records who produced, endorsed or forwarded it [8], and supports accountability without establishing that the content is true [8, 18].
Two further AI risks are not addressed here: harms to people using AI, through erroneous advice, manipulation, overreliance or emotional dependence [2, 14, 16, 56], and harms people cause with abilities amplified by AI, such as fraud, harassment and cyberattacks [2, 5, 27].
Here, we propose to corral these AI risks with grassroots contracts [6, 17], a digital incarnation of a two-centuries old notion of Pierre-Joseph Proudhon [33, Sixth Study]. Proudhon envisioned a social contract that can be freely adopted by any group of people—one could “make a contract with all, as … with some”—where groups bound by the same social contract can union by mutual consent, possibly into a single global union—“each group of citizens … formed by a like contract … could thereafter, and always by a similar contract, agree with every and all other groups”. Grassroots contracts are realised by grassroots platforms [26, 38, 40, 45]: smartphone-based person-to-person digital platforms owned, operated and governed by their participants. A grassroots platform is constituted from its participants' smartphones and the grassroots app each participant runs, and requires no global resource but the network: no hardwired servers, no global authority, and nobody's permission to start. Global platforms, centralised like Facebook or decentralised like Bitcoin and Ethereum [29, 57], can have only a single instance, as two instances would clash over the global resources—domain name, port number, or boot nodes—hardwired into their code, and from the perspective of ordinary people all of them are monolithic entities owned, operated and governed by others [41]. Fundamental grassroots platforms include the grassroots
social graph [12, 17, 39], grassroots social networks [39], child-safe social networks [43], and grassroots currencies [25, 37, 44, 48], with higher-level platforms providing for democratic digital communities [19, 21, 50, 53] and “sharing-economy” cooperatives (in preparation).
We developed, with AI, a methodology to compile grassroots contracts to working smartphone apps: an abstraction cascade from the contract to the app (Section 2), its correctness proved from the transactions down to GLP and the app built and tested, each layer coded by AI from the paper that describes it [11, 17, 22, 26, 42, 46, 49].
In this paper, we present grassroots contracts for a social graph with accountable AI agents (Section 3) and for a social network with digital provenance (Section 4), and working smartphone apps that implement the two (Figures 4 and 5), and show how they corral these major AI risks:
(1) AI control of global platforms is mitigated by grassroots platforms by design, as, unlike global platforms, they are not controlled by a third party who may then cede control to AI. A grassroots platform has no servers, no operators and no global resources, so there is no part of it whose capture is control of the platform, and to control it an AI must control the smartphones of its participants, one by one [38, 40, 41].
(2) Unaccountable AI agents are excluded, as AI agents are introduced to the grassroots social graph with accountability: similarly to cars, their manufacturers are known and are accountable for manufacturing defects, and their operators are known and are accountable for reckless operation. A person takes part in a grassroots platform only with agents they met or were introduced to by an agent who knows them [17, 32, 35, 39], so an AI agent joins only under a person, its principal, who attests that it runs code signed by its developer; every guardian of the AI agent is accountable for operating it recklessly, and the developer for its defects; every act of the AI agent names its principal and its developer, carries the attestation, and is signed and non-repudiable [6, 12, 18]. The contract shares its core with the child-safe social network [43], whose wards are children and whose guardians are their parents.
(3) Unattributed deepfakes cannot circulate in grassroots social networks: every item is a digital speech act [18], signed by its author and carried along the edges of the social graph [17, 39], and signed over by each agent that forwards it; so creators and forwarders of harmful content are accountable and culpable, and people can tell content with provenance from content without it. Some clauses of a grassroots contract are enforced by a correct protocol, and others leave non-repudiable evidence for recourse when breached [17].
Grassroots platforms are presently a concept with mathematical and computational theory [17, 26, 38, 41, 45], working prototypes [11, 22, 46], and tools for their large-scale simulation and testing [47]. We have developed grassroots theory for a decade but could not muster the resources needed to turn it into competitive software, given the not-for-profit, common-good nature of our project. Now, AI is piercing through this conundrum: our scientific papers serve as the evolving interface between us humans and AI, which codes from them [46, 49]. Much work remains for grassroots smartphone apps to be competitive with incumbent global platforms; but perhaps now this could be achieved with some AI-months rather than with incalculably-many person-years.
Section 2 explains how a grassroots contract becomes an app, and presents the grassroots social graph and the grassroots social network with their apps. Section 3 presents the contract with accountable AI agents and Section 4 the contract with digital provenance, each with what it excludes and what it makes answerable. Section 5 reviews related work and Section 6 concludes. Appendix A recalls the framework, Appendix B lists the transactions, and Appendix C defines contracts with wards, an extension of the speech-act schema language of [17], and proves that the protocol realising one is volitionally grassroots, this contract's among them.
2 Grassroots Contracts
A grassroots contract [6, 17] is a few clauses in plain language, each describing an act—who takes it, who must agree to it, and what it changes—or binding the agents without describing one. Befriending is an act of two persons, both of whom must agree; ending a friendship is an act of one. The contract is the whole of the platform's design: there is no server, no operator and no account, only the persons who adopted the contract and their smartphones [38, 40]. Each clause opens with its legal modality [17]: ■ enforced: no act of agents can breach it; ♦ attested by the signatures of the actors: an agent may breach it, and the contract records the breach; ○ undertaken by the actors: its performance lies outside the contract, which records only the undertaking. A contract ends with its pragmas, which the app built from it follows: the first line names a tab of the app and what it lists, a row showing the atoms of the state naming its item, and each other line names a clause by its title, then the agent proposing, a button for each act they propose, bearing its act's name, and any field they fill, and a line for each other agent asked, their name and the question put to them [17, 22]. We show the pragmas of GAI (Section 3) and GSNP (Section 4); the pragmas of every contract are in the repository https://github.com/EShapiro2/GLP, and GKK's, GSG's and GSN's in [17].
From the contract to the app. The clauses are written as speech-act schemas [17], which name the roles of an act, which of them must will it, and what each role's state must hold before and comes to hold after; the schemas compile into volition-guarded multiagent atomic transactions [26], each a change to the states of its participants that occurs only if the persons guarding it are willing; the transactions are realised by communicating volitional agents, whose only acts between two agents are discovery and message delivery, and then by a volition-guarded Grassroots Logic Program (vGLP) [22], which is transformed into the platform's user interface and compiled to Grassroots Logic Programs (GLP) [42, 49], implemented in Dart and Flutter [46] and run as a mini-app of the Grassroots Super-App on a person's smartphone [11] (Figure 1). Correctness is proved from the transactions down to GLP [22, 26]; the app is built and tested. Each layer is coded by AI from the paper that describes it; a gap found in coding is repaired in the paper first, and the code follows [46].
What a person sees. Volition elicitation is the rationale for the user interface design [22]. An act a person must will appears on their phone as a question, with the answers the contract allows [22, 26]: Bob is asked whether to be Alice's friend, and answers Accept
or Decline. A person's phone holds their own state and nothing else [38–40], their friends, their groups, the messages they sent and received, and draws what it shows from that state, by widgets the grassroots app declares for the platform's questions and for the person's state [11, 22]. A person's phone talks to the phones of the agents they know or come to know, and to nobody else [11, 12, 39]. The screens of Figures 2 and 3 are screenshots of the GSG and GSN mini-apps, and those of Figures 4 and 5 of the GSNP mini-app, each compiled from its grassroots contract down the abstraction cascade [17, 22, 26, 42, 46, 49]. One instance of the grassroots app [11] on an iPhone simulator runs the mini-app of every agent [11, 46]; the agents communicate over channels within it [42], and a screenshot shows one person's screen. All source code and all artefacts, including the grassroots contracts and the artefacts the abstraction cascade produces from them, are in the public repository https://github.com/EShapiro2/GLP.
2.1 Grassroots contracts, platforms and apps
Almost two centuries ago Pierre-Joseph Proudhon envisioned a social contract [33, Fourth Study] that is (1) an agreement of man with man; (2) reciprocal; (3) imposing no obligation upon the parties except that which results from their personal promise; (4) subject to no external authority; (5) freely accepted and signed by all the participants; and (6) of the nature of a contract of exchange. Grassroots contracts are social contracts meeting these six conditions and two more: (7) people are free to deal with each other; and (8) there is no external register of people, so people can come to know each other either directly or through people they already know [17].
A digital social contract is one realised by software the parties run [6]. We call the mathematical object a protocol and the software implementing it a platform. A protocol is grassroots when its instances are independent of one another and of every global resource but the net, and can always coalesce, possibly into a single global instance [38, 40, 41], and a grassroots platform is the software implementing a grassroots protocol [17].
A grassroots platform is constituted from its participants' smartphones and the grassroots app each participant runs [38, 40]; a person runs one app, and each platform is a mini-app of it [22]. Participating in a grassroots platform requires adopting the grassroots contract that defines it, as participating in a global platform requires adopting an End-User Licence Agreement (EULA). A grassroots contract is mutual and symmetric among all participants; an EULA is between each person and the platform operator. To join a grassroots platform, a person signs a one-sided undertaking to keep its grassroots contract towards all its other participants, and presents it to every participant they interact with, so every participant has signed it [17].
2.2 The grassroots social graph
A person is a legally culpable entity: a natural person of age, also referred to as an adult, or a legal person of good standing, such as a business. A person takes the pronoun 'they'. An agent is a person, a child, a natural person not of age, or an AI agent, a program that holds a key pair of its own and takes acts of the contract with it, and takes the pronoun 'it'; this paper treats AI agents, and the child-safe social network [43] children. Every contract extends GKK, the
(1) Social contract [6, 17]: Natural language clauses, each describing an act.
(2) Act schemas [17]: a formal language for those acts—roles, who must will it, precondition and effect.
(3) Volition-guarded multiagent atomic transactions [26]: the vehicle for the concise specification of grassroots platforms.
(4) Communicating volitional agents [22]: an implementation-ready restriction; discovery and message delivery are its only non-unary transactions.
(5) Volition-guarded GLP (vGLP) [22]: GLP (6) extended with volition guards, transformed to the platform's user interface.
(6) Grassroots Logic Programs (GLP) [42, 49]: a multiagent, concurrent, polymorphically-typed logic programming language for platforms, coded by AI.
(7) Dart and Flutter: a programming language and its user-interface framework, for iPhone and Android.
(8) The Grassroots Super-App [11], running on a person's smartphone.
[17], informal
[17]
[22]
[22]
[22]
[46]
[11]
Figure 1: The abstraction cascade, from a grassroots contract to a running app. Each arrow but the first, an informal translation, represents an implementation, with the reference defining it.
base contract: a person establishes their identity by choosing a key pair, and knows another agent when they hold that agent's public key [17].
GKK: Grassroots Keys and Knowledge [17]
Alice, Bob and Carol are persons.
-
O Identity. Alice may establish their identity once by choosing a unique key pair. They make themselves known by the public key, sign their acts with the private key, and are accountable for every act signed with it.
-
■ Acquaintance. Alice and Bob may come to know each other by an act of both.
-
■ Introduction. If Alice and Bob know each other and Alice knows Carol, then Alice can make Carol known to Bob, with Bob's consent.
A contract that extends another adds clauses to it and cites its clauses whole; GSG extends GKK.
GSG: Grassroots Social Graph [17]
Alice and Bob are persons.
-
♦ Friendship. Alice and Bob, who know each other personally and are not friends, may jointly decide to become friends.
-
■ Ending a friendship. Alice may end their friendship with Bob.
GSG is the grassroots social graph [17, 39]. The GSG app is a mini-app of the grassroots app, compiled down the cascade from GSG; Figure 2 shows it realising GSG:1.
2.3 The grassroots social network
GSN: Grassroots Social Network [17]
Alice and Bob are persons.
-
■ Messaging. Alice may send a message to their friend Bob.
-
■ Group. Alice may create a group, of which they are the leader and first member; Alice may close the group by leaving it.

Figure 2: The GSG app: Alice asks to be Bob's friend, and Bob answers Accept or Decline (GSG:1); Alice's friends after Bob accepts.
-
■ Joining and Leaving. Alice, the leader of a group, may add their friend Bob to it, with Bob's consent; either Alice or Bob may then end Bob's membership in the group, which also ends when Alice and Bob cease to be friends.
-
■ Group messaging. A member of a group may send a message to the group, and its leader delivers it to every current member.
The GSN app is a mini-app of the grassroots app, compiled down the cascade from GSN; Figure 3 shows it realising GSN:2, GSN:3 and GSN:4.
3 A Social Graph with Accountable AI Agents
This section presents a grassroots contract [6, 17] for a social graph in which AI agents take part, each with a principal and a developer accountable for it, and shows which parts of the second risk of Section 1 the contract excludes and which it makes answerable. The contract has three parts: the grassroots social graph with GKK (Section 2.2) and GnW, guardians and wards, both shared with the child-safe social network [43], whose third part is for parents and children; and the AI-agents extension, the third part here; Section 4 adds the social network of Section 2.3 and its provenance.

Figure 3: The GSN app, on Bob's phone: Alice asks Bob to join her group friends, and Bob answers Join or Decline (GSN:3); the group friends, led by Alice (GSN:2), with Bob's message to the group as Alice delivered it to him (GSN:4).
The running example is Alice's AI agent Alf befriending Bob, Acme Ltd being Alf's developer. It rests on three clauses: ■ Alf and Bob, who know each other, may become friends by an act of Alf, Alice and Bob, provided Alice and Bob are friends (GnW:3); ■ every act of Alf carries Alice's attestation, signed over Alf's public key, that Alf runs code signed by its developer, Acme Ltd (GAI:2); ○ Acme Ltd is accountable for Alf's defects, and Alice for operating Alf recklessly (GAI:1).
3.1 A Social Contract for Guardians and Wards
GnW covers both kinds of ward, AI agents and children.
GnW: Guardians 'n' Wards
Alice and Bob are persons, Carol and Dave wards. A relation is a friendship or the membership of a group.
-
■ Creation. Alice may create a ward, Carol, to be operated by a non-person agent, and establish Carol's identity by choosing Carol's key pair. Alice is then the creator, a guardian and a friend of Carol, a friendship Carol may not end.
-
■ Joint guardianship. Alice, the creator of Carol, may make their friend Bob a guardian and a friend of Carol by an act of Alice and Bob; following which, Alice or Bob may end Bob's guardianship of Carol, which also ends if Bob ends their friendship with Carol. Carol may not end a friendship with their guardian.
-
■ Ward and person. Carol, a ward of Alice, comes to know Bob provided Alice knows Bob, and enters a relation with Bob provided they know each other and Alice and Bob are friends; both by an act of Carol, Alice and Bob. Carol, and the agent in a relation with Carol, may end it, as may Alice.
-
■ Ward and ward. Carol, a ward of Alice, comes to know Dave, a ward of Bob, provided Alice knows Dave and Bob, and enters a relation with Dave provided Carol and Dave know each other, Alice knows Dave and is a friend of Bob; both by an act of Carol, Alice, Dave and Bob, Alice and Bob possibly one person.
-
■ Retiring. If Alice, the creator of Carol, ends their friendship with Carol, then every guardianship and relation of Carol ends and Carol takes no act.
An AI agent is made by a person, its developer, and is operated by its guardians, among them the person who created it, its principal. Accountability for an AI agent is divided between the two as it is for a car between its manufacturer and its driver: the manufacturer is accountable for manufacturing defects, and the driver for reckless driving. So the developer signs the code of the AI agent, and its principal attests, in a speech act signed over the AI agent's public key, that the AI agent runs that code, and every act of the AI agent carries the attestation.
GAI: Accountable AI Agents
Alice is a person and Alf an AI agent.
-
○ AI developer and guardian accountability. The developer of an AI agent, Alf, signs Alf's code, and is accountable for Alf's defects. Every guardian of Alf is accountable for operating it recklessly. The creator of Alf is its principal.
-
■ AI acts. Every act of Alf names its developer and its principal, and carries its principal's attestation, signed over Alf's public key, that Alf runs code signed by its developer.
Pragmas
AI agents: the AI agents Alice is a guardian of.
Creation: Alice [Enter] <name>
Carol: Alice asks to be your principal.
Joint guardianship: Alice [Make guardian] <person>
Bob: Alice asks you to be a guardian of their AI agent Carol.
Alice [End guardian] <person>
Bob [Resign] [Guardian unfriend]
Ward and person: Alice [Agent acquaint] <person>
Carol: Alice asks that you come to know Bob.
Bob: Alice asks that you come to know their AI agent Carol.
Alice [Agent befriend] <person>
Carol: Alice asks that you and Bob befriend.
Bob: Alice asks that you and their AI agent Carol befriend.
Alice [Agent unfriend] <person>
Ward and ward: Alice [Agents acquaint] <person> <person>
Carol: Alice asks that you come to know Dave.
Dave: Alice asks that you come to know Carol.
Bob: Alice asks that Carol and your AI agent Dave come to know each other.
Alice [Agents befriend] <person> <person>
Carol: Alice asks that you and Dave befriend.
Dave: Alice asks that you and Carol befriend.
Bob: Alice asks that Carol and your AI agent Dave befriend.
Retiring: Alice [Retire]
AI developer and guardian accountability: Alice [Sign] <text>
In GAI the wards are AI agents and their guardians the persons who operate them. The principal's will is given once, when they create the AI agent; after that the AI agent acts on its own, and a guardian takes part in each acquaintance of the AI agent and in each friendship it enters (GnW:3 and GnW:4): an AI agent comes to know an agent, and befriends one, only with a guardian. The principal signs the attestation once too, when they create the AI agent, and the AI agent presents it to each agent it comes to know, who records it (GAI:2). A principal may be a legal person, so a company's AI agents act under the company, and may make other persons guardians of an AI agent (GnW:2). A guardian signs the undertaking to keep the contract for their ward [17].
Figure 4 shows the contract on a person's phone, in the GSNP app of Section 4: a person creates an AI agent, attesting that it runs code signed by its developer, approves each acquaintance and each friendship of the AI agent, and may retire it; every agent an AI agent knows sees its principal and its developer.
3.2 The transactions
The contract is realised by volition-guarded multiagent atomic transactions [26]; the speech-act schemas of the contract (Appendix B) determine them by the compilation of [17]. We present the transactions for knowing, friendship and guardianship, of GKK, GSG, GnW and GAI, with the signing, messaging and forwarding of Section 4; a ward's membership of a group, the other relation of GnW:3, is realised as its friendship is, by an act of the leader, the ward and its guardian, and its transactions are left out. We assume a potentially infinite set of agents , but consider only finite subsets of it, so when referring to a particular set of agents we assume to be nonempty and finite; here an agent is a person or an AI agent, with its machine. We use for the strict subset relation and when equality is also possible, for the set of all total functions from to , and for the value of at .
Definition 3.1 (Machine State, Configuration, Transaction, Volition-Guarded Multiagent Atomic Transaction [26]). Given an arbitrary set of machine states, with a designated initial state , and agents , a machine configuration over is a member of , and a machine transaction over participants is a pair such that ; it is unary if . Given such a machine transaction , a volition-guarded multiagent atomic transaction over —henceforth, volition-guarded transaction—is a pair where are its guards.
A volition-guarded transaction can be carried out only if its guards are willing; its participants include those whose state changes and those whose state is a precondition and does not change. The rest of the framework of [26]—agent states, runs, the protocol over a set of transactions, and what makes it oblivious, interactive, grassroots and volitionally grassroots—is recalled in Appendix A.
The local state. The speech-act schemas determine the local state of an agent , each component standing for the atoms of a predicate, all initially empty or zero (Table 1, Appendix B). An agent is a person when and an AI agent when ; the principal of an AI agent is the with , its guardians the with , and its attestation the with . Every transaction requires at each of its participants, except Establish, and Enter at the AI agent, which require there, and at each of its guards; the transactions below leave these requirements out, and all components not explicitly updated are preserved.
Example 3.2 (An AI agent coming to know a person, and befriending them). The two transactions below realise GnW:3 for an AI agent , a guardian of and a person whom knows: and come to know each other by an act of the three, recording with its attestation (GAI:2), and then, and being friends, may become friends by an act of the three; may end the friendship by Agent unfriend, and each of the two friends by Unfriend (Appendix B). The participants of each are , and , and each is guarded by all three.
(3) Volition-Guarded Multiagent Atomic Transactions
(1) Agent acquaint , where , , , , and : , and , guarded by .
(2) Agent befriend , where , , , , , , and : and , guarded by .
For example, let Alice and Bob, , be persons and Alf, , Alice's AI agent. Alice and Bob establish their identities, come to know each other and befriend; Alice signs , her attestation that Alf, by its public key, runs the code its developer signed, and creates Alf with it; Alf comes to know Bob, with Alice willing, and Bob records Alf with Alice's attestation; Alf befriends Bob, with Alice willing; Alf signs an item and sends it to Bob; and Alice retires Alf, which ends Alf's friendship with Bob. The components that change are in Table 2 (Appendix B), Bob's record and the item remaining with him after the friendship ends.
3.3 Properties
This section states what the transactions enforce about an AI agent and its principal, with the argument for it, and that the protocol is volitionally grassroots, proved in Appendix C.
The standing of a principal. Consider any configuration reached by a run of the protocol (Appendix B) and an AI agent r in it, , with .
(1) Guardianship. The identity of was established by Enter, guarded by , for a speech act that authored, and and in every configuration since; and if and only if ; and every guardian of holds in .
(2) Whom knows and befriends. Every other than came to know by an Agent acquaint or an Agents acquaint guarded by a guardian of , and ; every is a guardian of , or is in and became a friend of by an Agent befriend or an Agents befriend guarded by a guardian of .
(3) The power to end each. For every guardian of and every that is not a guardian of , Agent unfriend is machine-enabled and guarded by ; while , Retire, which ends the friendship of and and every friendship and guardianship of , is machine-enabled and guarded by .
(4) Retirement. If then has left, and .
Each holds by inspection of the transactions. (1) Only Enter sets and , and no transaction changes them, so

Figure 4: Accountable AI agents, in the GSNP app: Alice's AI agent Alf, its code signed by Acme Ltd and attested by her, and its Retire button (GnW:1, GAI:2 and GnW:5); Alice proposes that Alf befriend Bob (GnW:3); Bob is asked to befriend Alf, an AI agent of Alice (GAI:2); Bob's friends, Alf among them with its principal and its developer.
and were set by one Enter, which requires and and is guarded by ; before it had the initial state, as every other transaction requires at its participants, and Enter adds to and , to , and to . While , stays in and in : Unfriend excludes the friendship of an agent with a guardian of theirs and with a ward of theirs, Agent unfriend and Guardian unfriend exclude the principal, End guardian and Resign remove from only for , which excludes , and Retire, the one other transaction removing from , sets ; no transaction sets . The guardians of are and the agents Make guardian adds, and each holds : Enter adds it at , Make guardian requires it at and adds it at the new guardian, and no transaction removes a pair from . (2) The transactions adding to are Acquaint and Introduce, which require at the agent coming to know; Enter, which adds ; and Agent acquaint and Agents acquaint, which require , are guarded by a guardian of , and add at the agent coming to know . The transactions adding to are Befriend, which requires ; Enter, which adds ; Make guardian, which adds a guardian; and Agent befriend and Agents befriend, which require the new friend in and are guarded by a guardian of . (3) The requirements of Agent unfriend and of Retire hold— and by (1), and , since Retire, the one transaction setting , requires there and —and each is guarded by and respectively. (4) Every transaction guarded by requires , which no transaction unsets, so once no transaction guards is machine-enabled: has left, and by (1).
Part (1) is why what the contract says of an AI agent is enforced rather than attested: an agent the contract records as an AI agent of cannot cease to be one by any act, its own or another's, and part (4) is the one way it leaves. Retirement ends every guardianship and friendship of the AI agent (GnW:5): the retired AI agent takes no act; the record of its principal stays, for its past acts.
Grassroots. The protocol realising the contract is volitionally grassroots (Proposition C.22, Appendix C, by the theorem for contracts with wards proved there): two persons can always befriend, an AI
agent that is not retired can always befriend a person or another AI agent with a guardian willing, and through befriending any agent can come to interact with any other; two groups that have formed apart, each with an agent that has not left, can always coalesce, and only by an act an agent of each wills. A retired AI agent has left.
3.4 What the contract excludes and what it makes answerable
A clause is enforced, attested or undertaken (Section 2) [17]: no act of agents can breach an enforced clause; a breach of an attested clause leaves non-repudiable evidence against the agent in breach in another agent's hands; and an undertaken clause is kept outside the contract, the agent's signed undertaking to keep the contract, held by every agent they interact with, being its record, so a breach of an attested or an undertaken clause can be taken to court. The second risk of Section 1 has five parts, and we take them in turn.
Anonymity. A person signs their acts with the private key of their genuine digital identity (GKK:1); an AI agent's key pair is chosen by its principal (GnW:1), and every act of an AI agent is signed with its private key and names its principal (GAI:2). Both are enforced: an agent without an identity has no act of the contract available to it, and an act of the contract is a digital speech act, an utterance signed with the key of the agent taking it [17, 18].
Masquerading as a person. An AI agent is recorded as one on its creation (GnW:1 and GAI:2), is a ward from its first act and remains one (Section 3.3(1)), and every acquaintance and every friendship of it is an act of a guardian of it (GnW:3 and GnW:4), so every agent an AI agent knows, and so every agent it interacts with, holds a record of it with its principal's attestation, which names it as an AI agent and names its principal (Section 3.3(2)): enforced. What the contract cannot determine is whether an agent that chose its own key pair is a person: no act of the contract can tell a person's act from a program's taken under that person's identity. Such a program is not an AI agent of the contract; its acts are signed with the person's private key and are that person's acts, for which the person is accountable (GKK:1). A person's accountability for the acts signed with their private key is undertaken: the person's signed undertaking, held by every agent they interact with, is its record.
Unknown masters. The principal of an AI agent is a person with a genuine digital identity, recorded in the AI agent and named in each of its acts, and a guardian of it, a person, takes part in each of its acquaintances and friendships (GnW:3, GnW:4 and GAI:2): enforced.
Unknown goals and restraints. The contract does not determine what an AI agent is for or what its principal lets it do. It determines who is accountable for it: its developer for its defects, and every guardian of it for operating it recklessly (GAI:1). The clause is undertaken, each guardian's signed undertaking being held by every agent they interact with. GAI:2 is enforced: the principal signs the attestation when they create the AI agent, and every act of the AI agent carries it, every agent the AI agent knows holding it (Section 3.3(1) and (2)). The attestation does not establish what code the AI agent runs; an attestation of code the AI agent does not run is evidence against the principal that they cannot repudiate.
Accountability and culpability. Every act of an AI agent is signed with its key, names its principal and carries its principal's attestation (GAI:2), and the agent it is addressed to holds it: non-repudiable evidence attributing the act to the AI agent and the AI agent to its principal [18]. Harm done by an AI agent under this contract is harm done by an identified agent, whose guardians are accountable for operating it recklessly and whose developer is accountable for its defects (GAI:1).
Hence on a platform realising this contract there are no anonymous agents, natural or computational, and so there are no anonymous AI agents: an AI agent acts under an identity of its own, recorded as an AI agent and naming its principal, or a program acts under a person's identity and that person is accountable for its acts.
4 A Social Network with Digital Provenance
This section extends the contract of Section 3 by GSNP, the grassroots social network with provenance [39], which extends GSN (Section 2.3) by one clause: an agent may send an item they received from a friend to another friend, adding their signature to the signatures the item has. It then shows which parts of the third risk of Section 1 the contract excludes and which it makes answerable. An item is a speech act: content signed by its author [18], and, when forwarded, signed over by each agent that forwarded it, in order. GSNP's speech-act schemas are in the repository, and the protocol realising it is volitionally grassroots (Proposition C.21, Appendix C).
4.1 Extending the contract with provenance
GSNP: Grassroots Social Network with Provenance
Alice and Bob are agents.
- ♦ Provenance. Alice, who received an item from a friend, may send the item to their friend Bob after adding their signature to the signatures the item has; Bob can see the list of signatures in the received item.
Pragmas
Items: the items Alice holds.
Messaging: Alice [Message] <item>
Group messaging: Bob [Post] <item>
Alice [Post own] <item>
Provenance: Alice [Forward]
Bob [Post forward]
GSNP adds provenance to the messages of GSN: a message to a friend (GSN:1) or to a group (GSN:4) carries an item. An agent signs the content they create, as they sign every act (GKK:1): signing adds the item to its author's holdings; a message carries an item its sender authored, as they signed it; forwarding adds to the friend's holdings an item the forwarder received, signed over by the forwarder (GSNP:1); and a leader delivers a member's item to the group by forwarding it, signed over by the leader; so an item in an agent's hands is signed by its author and by every agent that forwarded it, in order, and carries its provenance inside it. Alice may remove the signatures of an item with other software and send the result as their own; the item then carries Alice's signature, which is evidence of the breach. An agent holds an item by signing it or by receiving it from a friend, the leader of a group being a friend of each of its members (GSN:3), and in no other way: content that reaches a person otherwise is not an item of the platform. Accountability for the items of an AI agent is as in GAI:1.
The GSNP app is the GSN app with provenance and with the AI agents of Section 3 (Figure 5): every item shows its author and every agent that forwarded it (GSNP:1).
4.2 What the contract excludes and what it makes answerable
The third risk of Section 1 has three parts, and we take them in turn, with the three modalities of Section 3.4.
Anonymous content. Every item is signed by its author, an agent with a genuine digital identity who signs every act with their private key (GKK:1), and an agent holds an item only by signing it or by receiving it from a friend, who authored it or signed it over (GSNP:1): enforced. Every item an agent holds carries the signatures of its author and of each agent it passed through, and content signed by nobody is not an item of the platform. Whether the content was produced by a person or by an AI is not what the signatures say; who is accountable for it is.
Content people cannot tell from genuine content. The platform does not decide whether content is synthetic; it decides who signed it. An item authored by an AI agent is signed by the AI agent, which every agent it knows holds recorded as an AI agent of its principal (GnW:3 and GAI:2): a reader who knows the AI agent sees that the item is an AI agent's and whose; enforced. A reader who does not know the AI agent sees its signature and the forwarders', each of whom received it from a friend (GSNP:1). An item a person signs is that person's, whatever produced it, and the person is accountable for it (GKK:1): a person who signs AI-generated content as their own is its author. An item that purports to be a person's and is not carries that person's signature or it does not, and a signature cannot be forged [18]; an item that depicts or quotes a person is its author's statement about them, and the author is accountable for it. So a reader of a grassroots social network tells content with

Figure 5: The GSNP app: on Bob's phone, an item with its author and the agents that forwarded it (GSNP:1); Bob forwarding it to Fay (GSNP:1); on Fay's phone, the item with Bob among its forwarders; on Bob's phone, an item authored by the AI agent Alf (GAI:2).
provenance from the rest by its signatures, which every item carries, and not by its look.
Producers evading accountability. The signature of an item is non-reputable evidence that its author produced it, held by every agent that holds the item, and each forwarder's signature over it is evidence that they passed it on: attested (GSNP:1). An agent who removes the signatures of an item they received and sends the result as their own breaches GSNP:1, and the item they sent, signed by them, is the evidence [17]. The author of an item, a person or an AI agent with an accountable developer and principal (GAI:1), and each agent that forwarded it, are identified agents, and harm done by an item can be taken to court against them [17, 18].
Hence on a platform realising this contract there is no anonymous content: every item carries the signatures of its author, a person accountable for it or an AI agent whose principal and developer are accountable for it, and of every agent that forwarded it. Deepfake content may be produced outside the platform and signed into it, and it then has an author who is accountable for it; what the platform does not carry is content with no one behind it.
5 Related Work
AI risks. Taxonomies and surveys of AI risks include those of Weidinger et al. [56], Bommasani et al. [3] and Hendrycks et al. [20], the AI Risk Repository [52] and the International AI Safety Report [2]. Algorithmic governance and regulation [10, 58] and gradual disempowerment [24] bear on the first risk; personhood credentials [1], social bots [15], visibility into AI agents [7], the governance of agentic systems [51], moral crumple zones [13] and meaningful human control [34] on the second; deepfakes [9, 28, 30, 55] and reducing the risks of synthetic content [8] on the third; and AI assistants [16], chatbot use [14] and malicious use [5, 27] on the two risks not addressed here. We address the three through the organisation of the platform.
Grassroots platforms. Grassroots platforms [38, 40] are characterised against global platforms, centralised, decentralised and federated [41], the decentralised ones exemplified by Bitcoin [29] and Ethereum [57]. They are specified by atomic transactions [45] and volition-guarded multiagent atomic transactions [26], and defined
by grassroots contracts [17], digital social contracts [6] meeting Proudhon's conditions [33]. Their instances include grassroots social networks [39], currencies [37] and bonds [44], and a child-safe social network [43]. Their identities are genuine personal identifiers [35], their communities grow sybil-resiliently [32], their content is digital speech acts [18], and their participants recover from the loss or compromise of a key or a device with the help of their friends [12].
The cascade. A contract is compiled down to a phone through volition elicitation and vGLP [22], Grassroots Logic Programs [42], their types [49] and their implementation [46], and the Grassroots Super-App [11], in which each platform is a mini-app.
Person-to-person systems. Two deployed systems share the person-to-person architecture of grassroots platforms. In Secure Scuttlebutt [54] each participant publishes to a single-writer, append-only log and replicates the logs of the identities they choose, so data flows along the edges of a social graph, as in grassroots social networks [39]. Briar [4] synchronises messages directly between its users' devices, with no central server, and over Bluetooth or Wi-Fi when the Internet is down. Both are classified as grassroots by their essential agents, informally [41]. Local-first software [23] keeps the primary copy of a person's data on their own devices, with servers holding secondary copies, and merges concurrent changes by conflict-free replicated data types that sync over any channel, a peer-to-peer connection included; in a grassroots platform, the copies of a person's state are held by the state custodians they designate among their friends [12].
6 Conclusion
Grassroots platforms corral three AI risks of digital platforms. A grassroots platform has no part whose capture is control of it, so to control it an AI must control the smartphones of its participants, one by one. Under the contract of Section 3, every AI agent has a principal and a developer, every act of an AI agent names its principal and carries its principal's attestation that it runs code signed by its developer, and its guardians and its developer are accountable for it. Under the contract of Section 4, every item carries the signatures of its author and of every agent that forwarded it.
References
[1] Steven Adler et al. 2024. Personhood credentials: Artificial intelligence and the value of privacy-preserving tools to distinguish who is real online. https://doi.org/10.48550/arXiv:2408.07892 arXiv:2408.07892
[2] Y. Bengio et al. 2026. International AI Safety Report 2026. DSIT 2026/001. Department for Science, Innovation and Technology. https://internationalsafetypreport.org/publication/international-ai-safety-report-2026
[3] Rishi Bommasani et al. 2021. On the Opportunities and Risks of Foundation Models. arXiv:2108.07258. https://doi.org/10.48550/arXiv:2108.07258 arXiv:2108.07258
[4] Briar Project. 2018. Briar: Secure messaging, anywhere. https://briarproject.org.
[5] Miles Brundage et al. 2018. The Malicious Use of Artificial Intelligence: Forecasting, Prevention, and Mitigation. https://doi.org/10.48550/arXiv:1802.07228 arXiv:1802.07228
[6] Luca Cardelli et al. 2020. Digital social contracts: A foundation for an egalitarian and just digital society. In CEUR Proceedings of The First International Forum on Digital and Democracy, Vol. 2781. CEUR-WS, 51–60. https://ceur-ws.org/Vol-2781/paper5.pdf
[7] Alan Chan et al. 2024. Visibility into AI Agents. In The 2024 ACM Conference on Fairness, Accountability, and Transparency. Association for Computing Machinery, 958–973. https://doi.org/10.1145/3630106.3658948
[8] Bilva Chandra et al. 2024. Reducing Risks Posed by Synthetic Content: An Overview of Technical Approaches to Digital Content Transparency. NIST AI 100-4. National Institute of Standards and Technology. https://doi.org/10.6028/NIST.AI.100-4
[9] Robert Chesney and Danielle Keats Citron. 2019. Deep fakes: a looming challenge for privacy, democracy, and national security. California Law Review 107 (2019), 1753.
[10] John Danaher et al. 2017. Algorithmic governance: Developing a research agenda through the power of collective intelligence. Big Data & Society 4, 2 (2017). https://doi.org/10.1177/2053951717726554
[11] Ohad Eitan, Idit Keidar, and Ehud Shapiro. 2026. The Grassroots Super-App: A Secure Operating System for Grassroots Mini-Apps. arXiv:XXX:XXXXX. arXiv:XXX:XXXXX [cs.DC]
[12] Ohad Eitan, Idit Keidar, and Ehud Shapiro. 2026. Securing People and their Machines Against Major Faults (Full Version). Proceedings of The 28th International Symposium on Stabilization, Safety, and Security of Distributed Systems (SSS 2026), to appear (2026). https://arxiv.org/abs/2607.02304 arXiv:2607.02304.
[13] Madeleine Clare Elish. 2019. Moral Crumple Zones: Cautionary Tales in Human-Robot Interaction. Engaging Science, Technology, and Society 5 (2019), 40–60. https://doi.org/10.17351/ests2019.2.60
[14] Cathy Mengying Fang et al. 2025. How AI and Human Behaviors Shape Psychosocial Effects of Extended Chatbot Use: A Longitudinal Randomized Controlled Study. https://doi.org/10.48550/arXiv:2503.17473 arXiv:2503.17473
[15] Emilio Ferrara et al. 2016. The Rise of Social Bots. Commun. ACM 59, 7 (2016), 96–104. https://doi.org/10.1145/2818717
[16] Iason Gabriel et al. 2024. The Ethics of Advanced AI Assistants. arXiv:2404.16244. https://doi.org/10.48550/arXiv:2404.16244 arXiv:2404.16244
[17] James Golike, Andy Lewis-Pye, and Ehud Shapiro. 2026. Grassroots Social Contracts: From Legal Text to an App (Full Version). arXiv:2609.06231 (2026).
[18] James Golike and Ehud Shapiro. 2026. Digital Speech Acts Retain Control of Copyright with People, Not Platforms. arXiv preprint arXiv:2606.19263 (2026). https://arxiv.org/abs/2606.19263
[19] Daniel Halpern, Ariel D Procaccia, Ehud Shapiro, and Nimrod Talmon. 2024. Federated Assemblies. Proc AAAI 2025; arXiv preprint arXiv:2405.19129 (2024). https://arxiv.org/abs/2405.19129
[20] Dan Hendrycks, Mantas Mazeika, and Thomas Woodside. 2023. An Overview of Catastrophic AI Risks. arXiv:2306.12001. https://doi.org/10.48550/arXiv:2306.12001
[21] Idit Keidar, Andrew Lewis-Pye, and Ehud Shapiro. 2025. Constitutional Consensus. arXiv preprint arXiv:2505.19216 (2025). https://arxiv.org/abs/2505.19216
[22] Idit Keidar and Ehud Shapiro. 2026. Volition Elicitation: Operational Semantics for People and Their Machines. arXiv:2607.14138. arXiv:2607.14138 [cs.DC] https://arxiv.org/abs/2607.14138
[23] Martin Kleppmann, Adam Wiggins, Peter van Hardenberg, and Mark McGranaghan. 2019. Local-First Software: You Own Your Data, in spite of the Cloud. In Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software (Onward! '19). 154–178. https://doi.org/10.1145/3359591.3359737
[24] Jan Kulveit et al. 2025. Gradual Disempowerment: Systemic Existential Risks from Incremental AI Development. arXiv:2501.16946. https://doi.org/10.48550/arXiv:2501.16946 arXiv:2501.16946
[25] Andrew Lewis-Pye, Oded Naor, and Ehud Shapiro. 2023. Grassroots Flash: A Payment System for Grassroots Cryptocurrencies. arXiv preprint arXiv:2309.13191 (2023). https://arxiv.org/abs/2309.13191
[26] Andy Lewis-Pye and Ehud Shapiro. 2026. Volition-Guarded Multiagent Atomic Transactions: Describing People and their Machines. arXiv preprint arXiv:2604.25596 (2026). https://arxiv.org/abs/2604.25596
[27] Nahema Marchal et al. 2024. Generative AI Misuse: A Taxonomy of Tactics and Insights from Real-World Data. arXiv:2406.13843. https://doi.org/10.48550/arXiv.2406.13843 arXiv:2406.13843
[28] Yisroel Mirsky and Wenke Lee. 2021. The Creation and Detection of Deepfakes: A Survey. Comput. Surveys 54, 1 (2021), 1–41. https://doi.org/10.1145/3425780
[29] Satoshi Nakamoto. 2008. Bitcoin: A Peer-to-Peer Electronic Cash System. https://bitcoin.org/bitcoin.pdf
[30] Sophie J. Nightingale and Hany Farid. 2022. AI-synthesized faces are indistinguishable from real faces and more trustworthy. Proceedings of the National Academy of Sciences 119, 8 (2022), e2120481119. https://doi.org/10.1073/pnas.2120481119
[31] Joon Sung Park et al. 2023. Generative Agents: Interactive Simulacra of Human Behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST 2023). 1–22. https://doi.org/10.1145/3586183.3606763
[32] Ouri Poupko, Gal Shahaf, Ehud Shapiro, and Nimrod Talmon. 2021. Building a sybil-resilient digital community utilizing trust-graph connectivity. IEEE/ACM transactions on networking 29, 5 (2021), 2215–2227. https://doi.org/10.1109/tnet.2021.3084303
[33] Pierre-Joseph Proudhon and John Beverley Robinson. 2004. General idea of the revolution in the nineteenth century. Courier Corporation. Original work published 1851.
[34] Filippo Santoni de Sio and Jeroen van den Hoven. 2018. Meaningful Human Control over Autonomous Systems: A Philosophical Account. Frontiers in Robotics and AI 5 (2018), 15. https://doi.org/10.3389/frobt.2018.00015
[35] Gal Shahaf, Ehud Shapiro, and Nimrod Talmon. 2020. Genuine Personal Identifiers and Mutual Sureties for Sybil-Resilient Community Growth. In International Conference on Social Informatics. Springer, Springer, EU, 320–332. https://doi.org/10.1007/978-3-030-60975-7_24
[36] Ehud Shapiro. 2021. Multiagent Transition Systems for Composing Fault-Resilient Protocol Stacks. arXiv preprint arXiv:2112.13650 (2021). https://arxiv.org/abs/2112.13650
[37] Ehud Shapiro. 2022. Grassroots Currencies: Turning Mutual Trust into Liquidity. arXiv preprint arXiv:2202.05619 (2022). https://arxiv.org/abs/2202.05619
[38] Ehud Shapiro. 2023. Grassroots Distributed Systems: Concept, Examples, Implementation and Applications (Brief Announcement). In 37th International Symposium on Distributed Computing (DISC 2023). (Extended version: arXiv:2301.04391). LIPICS, Italy, 47:1–47:7. https://arxiv.org/abs/2301.04391
[39] Ehud Shapiro. 2023. Grassroots Social Networking: Serverless, Permissionless Protocols for Twitter/LinkedIn/WhatsApp. In OASIS '23 (Rome, Italy). Association for Computing Machinery. https://doi.org/10.1145/3599696.3612898
[40] Ehud Shapiro. 2024. A Grassroots Architecture to Supplant Global Digital Platforms by a Global Digital Democracy. arXiv:2404.13468, Proceedings of DAWO'24 (2024). https://arxiv.org/abs/2404.13468
[41] Ehud Shapiro. 2025. Characterising Global Platforms: Centralised, Decentralised, Federated, and Grassroots. arXiv preprint arXiv:2511.03286 (2025). https://arxiv.org/abs/2511.03286
[42] Ehud Shapiro. 2025. GLP: A Grassroots, Multiagent, Concurrent, Logic Programming Language for AI (full version). arXiv preprint arXiv:2510.15747, Summary in Proc. of ICLP'26, EPTCS 450, pp. 119–133 (2025). https://arxiv.org/abs/2510.15747
[43] Ehud Shapiro. 2026. Child-Safe Social Networking: From a Grassroots Social Contract to an App. In preparation (2026).
[44] Ehud Shapiro. 2026. Grassroots Bonds: Financing by the People, for the People. arXiv:2603.13671. arXiv:2603.13671 https://arxiv.org/abs/2603.13671
[45] Ehud Shapiro. 2026. Grassroots Platforms with Atomic Transactions: Social Graphs, Cryptocurrencies, and Democratic Federations. In Proceedings of the 27th International Conference on Distributed Computing and Networking. 71–81. https://doi.org/10.1145/3772290.3772309 arXiv preprint arXiv:2502.11299.
[46] Ehud Shapiro. 2026. Implementing Grassroots Logic Programs with Multiagent Transition Systems and AI (Full Version). arXiv:2602.06934. Summary to appear in Proc. of LOPSTR+PPDP'26 (2026). https://arxiv.org/abs/2602.06934
[47] Ehud Shapiro. 2026. sGLP: Simulating People with Stochastic Agents. arXiv:2610.14738. arXiv:2610.14738 [cs.MA]
[48] Ehud Shapiro. 2026. Sovereign Grassroots Currencies: A CBDC Architecture for Credit and Monetary Policy. arXiv:2609.27727. arXiv:2609.27727 https://arxiv.org/abs/2609.27727
[49] Ehud Shapiro. 2026. Types for Grassroots Logic Programs (Full version). arXiv preprint arXiv:2601.17957 (2026). https://arxiv.org/abs/2601.17957
[50] Ehud Shapiro and Nimrod Talmon. 2026. Constitutional Governance in Metric Spaces. Proceedings of the International Conference on Algorithmic Decision Theory (ADT 2026), to appear (2026). https://arxiv.org/abs/2605.13362 arXiv:2605.13362.
[51] Yonadav Shavit et al. 2023. Practices for Governing Agentic AI Systems. White paper. OpenAI. https://cdn.openai.com/papers/practices-for-governing-agentic-ai-systems.pdf
[52] Peter Slattery et al. 2026. The AI risk repository: A meta-review, database, and taxonomy of risks from artificial intelligence. Patterns (2026), 101517. https://doi.org/10.1016/j.patter.2026.101517 arXiv:2408.12622
[53] Nimrod Talmon and Ehud Shapiro. 2025. Grassroots Federation: Fair Democratic Governance at Scale. arXiv preprint arXiv:2505.02208; also Proc. of AAMAS'26 (2025). https://arxiv.org/abs/2505.02208
[54] Dominic Tarr, Erick Lavoie, Aljoscha Meyer, and Christian Tschudin. 2019. Secure scuttlebutt: An identity-centric protocol for subjective and decentralized applications. In Proceedings of the 6th ACM conference on information-centric networking. 1–11. https://doi.org/10.1145/3357150.3357396
[55] Cristian Vaccari and Andrew Chadwick. 2020. Deepfakes and Disinformation: Exploring the Impact of Synthetic Political Video on Deception, Uncertainty, and Trust in News. Social Media + Society 6, 1 (2020). https://doi.org/10.1177/2056305120903408
[56] Laura Weidinger et al. 2022. Taxonomy of Risks Posed by Language Models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency. Association for Computing Machinery, 214–229. https://doi.org/10.1145/3531146.3533088
[57] Gavin Wood et al. 2014. Ethereum: A secure decentralised generalised transaction ledger. Ethereum project yellow paper 151, 2014 (2014), 1–32. https://ethereum.github.io/yellowpaper/paper.pdf
[58] Karen Yeung. 2018. Algorithmic regulation: A critical interrogation. Regulation & Governance 12, 4 (2018), 505–523. https://doi.org/10.1111/rego.12158
[59] Shoshana Zuboff. 2019. The age of surveillance capitalism: The fight for a human future at the new frontier of power. Public Affairs, US. https://www.hachettebookgroup.com/titles/shoshana-zuboff/the-age-of-surveillance-capitalism/9781610395694/
A The Framework, Recalled
This appendix recalls, in the words of [26], the mathematical foundations on which the paper is based; the proofs of the results recalled are in that paper.
Each agent consists of a person and a machine (e.g., smartphone) operated by the person. A machine transaction specifies what machines do; a volition guard specifies which persons must be willing for the transaction to occur.
We assume a potentially infinite set of agents , but consider only finite subsets of it, so we assume any particular set of agents to be nonempty and finite. We use to denote the strict subset relation and when equality is also possible. As standard, we use to denote the set of all total functions from to , and if we use to denote the value of at .
Machine states, configurations, machine transactions, and volition-guarded transactions are as in Definition 3.1 (Section 3.2), which also recalls the reading of guards and of the unguarded case.
Distinct machine transactions can represent “the same action” in different configurations; this is captured with an equivalence relation on machine transactions.
Definition A.1 (Transaction Equivalence [26]). Given a set of machine transactions , a transaction equivalence is an equivalence relation on such that implies and have the same participants, and is countable. We write for the equivalence class of under .
For example, all befriend transactions—differing only in the configurations in which they occur—form an equivalence class. Next is the mathematical machinery allowing people to express their volitions regarding the classes of machine transactions their machines may participate in.
Definition A.2 (Agent State and Configuration [26]). Given agents , states with initial state , a set of machine transactions each over its own participants and , and equivalence on , an agent state is a pair where is its volitional state and its machine state. The initial agent state is . An agent configuration over , and is a member in which for every , where
denotes the classes in in which is a participant; we write for the volitional state and for the machine state of agent in .
Definition A.3 (Volitional Transaction [26]). Given agents , states , machine transactions over and , and equivalence on :
(1) A volition change of agent is a pair of agent configurations over , , , and such that and c_p^v \neq c'_p^v, and c_p^m = c'_p^m.
(2) A volitional machine transaction induced by a volition-guarded transaction , for some over , is a pair where are agent configurations over , and such that for every and c'_p^m = d'_p for every ; c_p^m = c'_p^m for every ; and c'_p^v = c_p^v \setminus \{[t]\} for every .
(3) A volitional transaction is a volition change or a volitional machine transaction.
When a volitional machine transaction induced by is taken, the class is removed from every agent's volitional state: the will is fulfilled by any equivalent transaction. A person may independently change their volitional state via volition changes, which may add or remove classes; beyond these, the framework removes a class from only upon fulfilment.
A person's not willing a transaction has, so far, no consequence: no volitional transaction is enabled by the absence of a will. An implementation of volition-guarded transactions by communicating agents [22] needs one, so that a machine asked for its person's will answers either way; it is the following, by which the machine answers for a person who does not will an act: in machine state , if wills it is taken, else .
Definition A.4 (Volition-Guarded If-Then-Else Transaction, Then-Branch, Else-Branch [26]). Given machine states , a volition-guarded if-then-else transaction over a single participant is a triple ; guarded by , with and ; the unary machine transaction is its then-branch and its else-branch.
Definition A.5 (Else Transaction [26]). Given agents , states , machine transactions over and , and equivalence on , an else transaction induced by a volition-guarded if-then-else transaction ; guarded by , with , is a pair of agent configurations over , and such that ; and c'_p^m = s''; c_q^m = c'_q^m for every ; and c'_q^v = c_q^v for every .
The then-branch, taken when wills it, is the unary volition-guarded transaction and induces volitional machine transactions per Definition A.3; a unary volition-guarded transaction is thus the special case with no else-branch. The else transaction is taken when does not will the then-branch; it fulfils no will and removes no class. The two are placed in one class below, so that liveness obliges the machine to answer either way; the obligation is the machine's, and it has no time bound. Only a unary transaction has an else-branch: a binary one would let an agent that never wills it trigger it.
Induced transition systems. The following is a simplified variation, sufficient for the purpose of this work, on the foundations introduced in [36].
Definition A.6 (Transition System, Computation, Run, Safe, Live, Correct [26]). A transition system is a tuple , where:
(1) S is an arbitrary non-empty set, referred to as the set of states.
(2) Some is the designated initial state.
(3) is a set of correct transitions over , where each transition is a pair of non-identical states , also written as .
(4) ~ is a partial equivalence relation on : a symmetric and transitive relation on , not necessarily reflexive. Its domain is partitioned into countably many liveness classes ; a transition outside the domain belongs to no class.
A computation of TS is a (nonempty, potentially infinite) sequence of states ; it is a run of TS if . A prefix of a computation is a finite initial segment of it. A computation is safe, also written , if for every two consecutive states; and denotes the existence of a safe computation from to (empty if ). A class is enabled in a state if for some . A run is live if no class is enabled in every state of some suffix of with no member of occurring in the suffix. A run is correct if it is safe and live.
A partial equivalence, rather than a total one, is used so that some transitions may carry no liveness requirement at all: only transitions in the domain of form classes and thereby incur a liveness obligation, while transitions outside the domain—belonging to no class—may occur in a correct run but are never required to. A run with uncountably many classes enabled in every state of a suffix is not live.
LEMMA A.7 (EXTENSION [26]). Every finite safe run of a transition system is a prefix of a correct run of it.
Definition A.8 (Multiagent Transition System [26]). Given agents and an arbitrary set of states with a designated initial state , a multiagent transition system over and is a transition system with configurations , initial configuration , transitions a set of transactions over and , and a partial equivalence on .
Rather than specifying a multiagent transition system over a set of agents directly, it is specified via machine transactions (Definition 3.1). A machine transaction over defines a set of multiagent transitions over in which all members of are stationary:
Definition A.9 (Transaction Closure [26]). Let , a set of machine states, and . For any transition or transaction , we write and say is stationary in if . For a machine transaction over with participants , the -closure of , , is the set of transitions over and defined by:
If is a set of machine transactions, each over some and , then the -closure of , , is the set of transitions over and defined by:
Given a relation on , its -closure is the relation on with iff and for some . A transition over is unary if it lies in the -closure of a unary transaction.
Namely, the closure over of a machine transaction over includes all transitions over in which members of do the same in and in , and the rest remain in their current (arbitrary) state. The closure likewise carries any relation on transactions to one on the induced transitions. If distinct transactions in have disjoint -closures—as when every participant of every transaction in changes state—then each transition in has a unique inducing transaction, relates two transitions exactly when their inducing transactions are -related, and is a partial equivalence whenever is.
A set R of volition-guarded transactions with an equivalence on their underlying machine transactions induces a volitional multiagent transition system:
Definition A.10 (Volitional Multiagent Transition System [26]). Given agents , machine states with initial state , a set of volition-guarded transactions and volition-guarded if-then-else transactions—a volition-guarded if-then-else transaction ; guarded by standing in for its then-branch together with its else-branch—such that every has the participants of contained in , every guard of a volition-guarded if-then-else transaction is in , and distinct underlying machine transactions, else-branches included, have disjoint -closures, and an equivalence on the set of underlying machine transactions (a total equivalence, hence in particular a partial equivalence in the sense of Definition A.6), such that no else-branch is in and volition-guarded if-then-else transactions with the same else-branch have -equivalent then-branches, the volitional multiagent transition system induced by over is the multiagent transition system where:
(1) is the agent state space;
(2) is the initial agent configuration, with c_0_p^v = \emptyset and c_0_p^m = s_0 for every ;
(3) consists of all transitions of one of three forms: (i) a volition change of some p \in P - e_p^v, e'_p^v \subseteq (T_R / \sim)_p and e_p^o \neq e'_p^o, e_p^m = e'_p, and for every ; (ii) a volitional machine transaction induced by some volition-guarded transaction per Definition A.3(2); or (iii) an else transaction induced by some volition-guarded if-then-else transaction in per Definition A.5;
(4) is the restriction of (Definition A.9) to the volitional machine transactions and else transactions, relating two of them whenever their inducing machine transactions are equivalent, where the inducing machine transaction of an else transaction is the then-branch of its volition-guarded if-then-else transaction, and leaves every volition-change transition outside its domain—so volition changes belong to no class and carry no liveness obligation.
The conditions on else-branches ensure that the machine transactions inducing a transition of are -equivalent, so that is a partial equivalence. The set R of volition-guarded transactions that specifies a platform thus determines the volitional machine transitions of the induced volitional multiagent transition system, while volition-change transitions are freely available to every agent independent of .
Definition A.11 (Enabled [26]). Given a set of volition-guarded transactions, each with a machine transaction over some and , and an equivalence on machine transactions: the volition-guarded transaction is machine-enabled in agent configuration over if for every , and enabled if in addition for every . The else-branch of a volition-guarded if-then-else transaction ; guarded by is enabled in if and . An equivalence class is enabled in if some volition-guarded transaction with is enabled in , or the else-branch of some volition-guarded if-then-else transaction with then-branch is enabled in .
A volition-guarded transaction with an empty guard requires no volitions and is enabled whenever its machine precondition is met. The class of the then-branch of a volition-guarded if-then-else transaction guarded by is thus enabled whenever 's machine is in its source state, whether or not wills it. For the volitional multiagent transition system above, a class of volitional machine transactions and else transactions is enabled at a configuration in the sense of Definition A.6 exactly when some volition-guarded transaction or else-branch inducing it is enabled in the above sense; this determines which runs are live and correct per Definition A.6. Volition-change transitions belong to no class and so impose no liveness obligation; personal choices remain free.
Protocols and grassroots protocols. A protocol is a family of multiagent transition systems, one for each set of agents , which share an underlying set of local machine states with a designated initial state . A local-states function maps every set of agents to an arbitrary set of local machine states that includes and satisfies .
Definition A.12 (Protocol [26]). A protocol over a local-states function is a family of multiagent transition systems that has exactly one transition system for every , with agent states , configurations , initial configuration , and partial equivalence on determined by the protocol, such that implies and for every .
Definition A.13 (Interleaving [26]). Let be disjoint nonempty sets of agents, a run of , and a run of . An interleaving of and is a sequence of configurations in for which there exist non-decreasing sequences of indices and with such that for every :
(1) for every ,
(2) for every ,
(3) if exists, then exactly one of: (i) and (a -step), or (ii) and (a -step).
Moreover, if is finite of length then for some , and if is infinite then for every there is a with ; likewise for and .
Definition A.14 (Interaction, Interactive Run, First Interaction [26]). Let . For a configuration over and , write for the restriction of to . A transition of is an interaction between if and ,
and is not a transition of or is not a transition of . It is an interaction between disjoint nonempty if it is an interaction between some and some . A run of is interactive between and if some transition of is an interaction between them; the first interaction of and in is the first such transition.
Definition A.15 (Oblivious, Interactive, Grassroots [26]). A protocol is:
(1) oblivious if for every disjoint nonempty , every interleaving of a correct run of and a correct run of is a correct run of .
(2) interactive if for every and disjoint nonempty , every prefix of a correct run of containing no interaction between and is a prefix of a correct run of that contains one.
(3) grassroots if it is oblivious and interactive.
Being oblivious means two disjoint groups coexist without interference: any interleaving of a correct run of one with a correct run of the other is a correct run of the combined system. Being interactive means two groups that have not yet interacted can still do so: the combined system has a correct continuation in which a single transaction engages agents of both groups. Agents that have taken part in a common interaction are joined; an instance is a maximal set of agents joined directly or indirectly, and two instances coalesce when they come to be one.
Definition A.16 (Interaction Graph, Instance, Coalescence [26]). Let be a protocol, , and a prefix of a run of . The interaction graph of has vertices and an edge between whenever some transition of is an interaction between and . A nonempty is an instance in if it is a connected component of the interaction graph of . Disjoint nonempty coalesce in a run of if they are instances in some prefix of and lie in one component of the interaction graph of a longer prefix of .
Definition A.17 (Transactions Over a Local-State Function [26]). Let be a local-states function. A set of transactions is over if every transaction is a multiagent transition over and for some . Given such a set and , is over and .
Definition A.18 (Volitional Transactions-Based Protocol [26]). Let be a local-states function and a set of volition-guarded transactions over with equivalence . The protocol over , and assigns to each set of agents the volitional multiagent transition system induced by over (Definition A.10). In particular, with agent state space -monotone in , as Definition A.12 requires—and has -component for every .
The obliviousness results rest on the following invariant: in a group's own system an agent wills only transactions internal to the group, so the guard of a transaction that reaches another group cannot will it while the group runs alone, and the transaction is never enabled in an interleaving.
LEMMA A.19 (VOLITIONAL CONTAINMENT [26]). Let be a volitional transactions-based protocol over a set of volition-guarded transactions with equivalence . For every , every configuration of , and every , where for some .
LEMMA A.20 (INTERLEAVING SAFETY [26]). Let be a volitional transactions-based protocol and disjoint and nonempty. Every finite prefix of an interleaving of a correct run of and a correct run of is a finite safe run of .
PROPOSITION A.21 ([26]). A volitional transactions-based protocol is oblivious provided that for every disjoint nonempty , no equivalence class whose transactions have participants spanning both and is ever enabled in any interleaving of correct runs of and .
COROLLARY A.22 (GUARDED OBLIVIOUSNESS [26]). A volitional transactions-based protocol over a set of volition-guarded transactions is oblivious if every volition-guarded transaction whose machine transaction has two or more participants has a nonempty guard, .
In a run of a member may will a transaction reaching the other group, which a group's own run forbids; the volitional notion constrains the resulting coupling:
Definition A.23 (Left [26]). Let be a volitional transactions-based protocol over , c a configuration of , and . Then has left in if no with is machine-enabled in any configuration of with .
Definition A.24 (Interactive Among the Agents That Have Not Left [26]). A volitional transactions-based protocol is interactive among the agents that have not left if for every and disjoint nonempty , every prefix of a correct run of containing no interaction between and , in whose last configuration some agent of and some agent of have not left, is a prefix of a correct run of that contains one.
An interactive protocol is interactive among the agents that have not left, the latter requiring a continuation of fewer prefixes. A group all of whose agents have left can never be connected by an act one of them wills, and the definition asks nothing of it.
Definition A.25 (Volitionally Grassroots [26]). A volitional transactions-based protocol is volitionally grassroots if it is oblivious, interactive among the agents that have not left, and, for every disjoint nonempty and every safe run of interactive between and , the first interaction of and is induced by a volition-guarded transaction with and .
Two groups thus become connected only by an act a person of each wills, and a grassroots protocol meeting the condition on first interactions is volitionally grassroots. An else transaction (Definition A.5) is over a single participant and so is never an interaction; a binary transaction with an else-branch would let an agent of another group, who never wills it, trigger it, and could be a first interaction willed by neither, which is why Definition A.4 admits only unary ones.
B The Transactions of the Contract
Nineteen transactions, written in the local-state components of Section 3.2, one per speech-act schema of the contract (programs/gai/GAI.glp and programs/gai/GSNP.glp in the GLP repository, their records cascade/GAI and cascade/GSNP), each determined by its schema at each binding by the compilation of [17], and carrying the schema's name. Every transaction requires at each of its participants, except Establish, and Enter at the AI agent, and at each of its guards; the requirements are left out below, and all components not explicitly updated are preserved.
(3) Volition-Guarded Multiagent Atomic Transactions
(1) Establish(p), where : , guarded by p.
(2) Acquaint(p, q), where and : and , guarded by .
(3) Introduce , where , , and , for an agent : , guarded by .
(4) Befriend , where , , , , and : and , guarded by .
(5) Unfriend(p, q), where and : and , guarded by p.
(6) Enter , where , and : , , , , , , , , , and , guarded by .
(7) Make guardian , where , , , , , , and : , , , and , guarded by .
(8) End guardian , where , , and : and , guarded by p.
(9) Resign , where , and : and , guarded by q.
(10) Guardian unfriend , where , and : , , and , guarded by q.
(11) Agent acquaint , where , , , , and : , and , guarded by .
(12) Agent befriend , where , , , , , , and : and , guarded by .
(13) Agent unfriend , where , , , and : and , guarded by p.
(14) Agents acquaint , where , , , , , , , , , and : , , and , guarded by , p and q possibly one agent.
(15) Agents befriend , where , , , , , , , , , and : and , guarded by , p and q possibly one agent.
(16) Retire , where , , and : , , and , and for every , among them, and for every , guarded by ; its participants are , and every agent in .
(17) , where is a speech act signed by : and , guarded by .
(18) , where and : , guarded by .
(19) , where , and : , guarded by , where is signed over by .
The schema unfriend is guarded in its first role, the friend ending the friendship, and is bound either way, so Unfriend is guarded by and Unfriend by : either friend may end the friendship, unless one is a guardian of the other, a friendship that only Guardian unfriend and Retire end (GnW:1, GnW:2 and GnW:5). The requirement of Unfriend stands for the atoms principal , guarded_by , principal_of and guardian_of forbidden at , and of Agent unfriend for principal and guarded_by forbidden at . The requirement stands for principal_of at , for guardian_of at , and of Retire for principal at ; Enter sets and together and no transaction changes either. The requirement of Enter stands for authored at , the attestation signed, its content naming the AI agent's public key and the code its developer signed (GAI:2); for attestation at ; and for its record agent_of at , which Enter adds at the principal and Make guardian at another guardian, and from which the guardian's machine fills the request; of Message stands for authored at , and of Forward for authored forbidden there. Retire takes every friend and every guardian of by the listed roles and , based on its first role, , and clears friend and guarded_by at [17, 22]. The requirement at each guard stands for retired forbidden at every guarding role. The component is a multiset: Acquaint, Agent acquaint and Agents acquaint neither require nor forbid that the two know each other, and add a copy of each at the other whether they do or not, so that two agents who know each other may take the act again. knows and friend are reflexive, so that in Agents acquaint and Agents befriend one person may be the guardian of both AI agents.
Transaction equivalence. The equivalence is that of [17]: one schema at one admissible binding determines one class, whose members differ only in the configuration in which they occur. All Acquaint transactions form one class, and so do all Introduce , all Befriend , all Unfriend , all End guardian , all Resign , all Guardian unfriend , all Agent befriend , all Agents befriend , all Agent unfriend and all Retire with the same agents; all Enter , all Make guardian , all Agent acquaint and all Agents acquaint with the same agents and speech acts; each Establish ; each Sign with the same item; and each Message and each Forward with the same agents and item.
C Contracts with Wards
This appendix defines contracts with wards, agents who act only with the consent of a guardian, as an extension of the speech-act schema language of [17]: a child with their parents [43], an AI agent with its principal. The GnW contract (Section 3.1) marks a
ward as one and lets only the unsupervised come to know each other (GKK:2), so a contract extending it has no act that any two agents can take and is not syntactically grassroots in the sense of [17]; the protocol realising it is volitionally grassroots nonetheless, since a ward enters the contract with a guardian recorded, who is not a ward, and comes to know, through their guardian, anyone their guardian can come to know, and a retired ward has left. Section C.1 recalls the language and the results of [17] this appendix uses, with the two additions the extension makes to the language, reflexive predicates and signed terms; Section C.2 states conditions on the schemas under which a contract with wards is certified, decidable as the conditions of [17] are, and proves them sufficient (Theorem C.20); Section C.3 certifies the social network with provenance of Section 4 (Proposition C.21) and the contract of this paper (Proposition C.22). The checker of [17], in the repository https://github.com/EShapiro2/GLP, decides the conditions of this appendix as well.
C.1 The Language and the Results Recalled
Atoms and states. is a countable, potentially infinite set of agents and a countable set of utterances disjoint from it. A speech act is an utterance or a speech act signed by an agent: is the least set with and , the signer of is , and for [6, 18]. is a set of predicates, each with an arity; an atom is a predicate applied to as many arguments as its arity, a syntactic object with no truth value, and it names what is among its arguments or is the signer of one. A local state is a finite multiset of atoms over , the initial state is empty, and is the set of finite multisets of atoms over [17]. Multiset sum, difference, intersection and inclusion are , , and , and the join takes the greatest multiplicity. A mark is a predicate of arity zero, and its atom is written as the mark. A schema is written over disjoint sets of roles, of agent variables and of speech-act variables, disjoint from and .
Definition C.1 (Speech-act schema [17]). A speech-act schema is written , with its name, distinct, each possibly carrying the mark ? and those that do its guarding roles, its arity, distinct, its variables, the set of its signed terms with one of its variables in and one of its roles, and each a finite multiset of atoms over , each carrying at most one of the marks , +, . For each role the marks divide into , , and , its members marked +, -, and unmarked; the atoms requires are , and it forbids, adds and deletes those of , and . It is required that , that at every role that is not a guarding role and at some role, that a signed term occurs only in an atom marked +, and that its speech-act variable occurs in an atom its role requires. A contract is a finite set of speech-act schemas over .
A schema may also have, for an agent role of it and a predicate , the listed role , whose participants at a binding are every agent with in the state of , and an atom marked – at a role may carry the wildcard * among its arguments, a cleared atom, which deletes every atom of the state it matches and requires none [17]; Retire takes every friend and every guardian of the AI agent by two listed roles and
Table 1: The local state of an agent .
| component | stands for | |
|---|---|---|
| identity, knowing and friends | , whether has a genuine digital identity | identity |
| , whether is an AI agent | agent | |
| , a multiset of agents, those knows, each by their public key | knows | |
| , the friends of | friend | |
| guardianship | , the principal of , at most one, and , the AI agents created | principal, principal_of |
| , the AI agents is a guardian of, and , the guardians of other than its principal | guardian_of, guarded_by | |
| , the attestation of , a set of at most one speech act | attestation | |
| , pairs of an AI agent and its attestation that holds recorded | agent_of | |
| , whether is retired, and , the AI agents retired | retired, retired_of | |
| items | , a multiset of speech acts, the items holds, each signed by its author and by every agent that forwarded it, in order | item |
| , the items authored | authored |
Table 2: The components that change in the example.
| Transactions | Alice | Bob | Alf |
|---|---|---|---|
| Establish (), Establish () | |||
| Acquaint () | |||
| Befriend () | |||
| Sign () | |||
| Enter () | |||
| Agent acquaint () | |||
| Agent befriend () | |||
| Sign (), Message () | |||
| Retire () |
clears its friendships and guardianships, and Unfriend clears every membership between the two (Appendix B). The results recalled below hold with them [17], and the proofs of this appendix use of them only that the extent of a listed role lies in one instance with its base and that a cleared atom requires nothing.
Definition C.2 (Binding [17]). A binding for a schema maps its roles and agent variables to and to , with , distinct roles to distinct agents, but for two the schema marks as possibly one, which it may send to one agent if neither of them adds or deletes an atom naming the other, and is extended to atoms and to multisets of them componentwise. It is admissible if every speech-act variable of that occurs in an atom added at a role and in no atom required at a role is mapped to a speech act signed by the agent in a guarding role of .
Reflexive predicates. Two roles sent to one agent are carried out by that agent together. A role that adds or deletes an atom naming another cannot share its agent, so no relation a contract records is reflexive. The extension lets a contract declare a predicate of arity one reflexive: every state is then taken to hold the atom of that predicate naming its holder, and no schema adds or deletes, at a role, the atom of it naming that role. For a configuration and an agent , is together with the atom naming of every reflexive predicate; in a contract declaring none, . The child-safe social network [43] and the contract of this paper declare friend and knows reflexive, so that two wards with one guardian may come to know each other and befriend by an act in which that guardian takes both guardian roles (GnW:4).
Signed terms. The extension lets a schema add at a role an atom with a signed term among its arguments, the speech act signed by the agent in the role : a signed term occurs only in an atom marked +, its speech-act variable occurs in an atom its role requires, a binding sends it to , and in traceable provenance it counts as the two arguments and (Definitions C.1, C.2 and C.6). Forward adds at the recipient item(),
what Alice held, signed by Alice (Appendix B). In [17] a speech-act variable is bound to a speech act signed by an agent in a guarding role, and no schema signs over what a role holds.
Definition C.3 (Compilation [17]). Let be a schema with roles and a binding for it, and for an agent let . A machine transaction over is determined by at if for every , with , and , and for every agent that sends a role to, and ; the volition-guarded transaction it determines is the pair of it with a guarding role of .
The realisation of is the set of volition-guarded transactions determined by its schemas at all admissible bindings, the equivalence on their machine transactions generated by relating two when one schema at one admissible binding determines both, and the protocol realising the volitional transactions-based protocol over , and ; with is well formed (Lemma The compilation is well defined of [17]), whose proof, like the compilation, uses nothing of the introductory act, so both stand for the contracts of this appendix.
The protocol. From [26], recalled in Appendix A: for a set of volition-guarded transactions over and , holds those of them over for some , and is contained if every transaction of it with participants in and source over is in ; the protocol over , and has at each the transition system whose transitions are volition changes and the volitional machine transactions the members of induce, each machine-enabled in a configuration whose machine states restrict on its participants to its source, and enabled if every guard holds its class besides; a run is safe if its consecutive configurations form transitions, and correct if besides no class stays enabled forever with no member taken. Every finite safe run is a prefix of a correct run (Lemma Extension of [26]).
Definition C.4 (Records; recording graphs [17]). A local state records an agent if one of its atoms names ; a machine state records if for every with ; on local states the two agree (Lemma Records of [17]). The recording graph of a configuration is the directed graph on with an edge whenever records , and for a set of predicates its -recording graph is the subgraph whose edges are those for which holds an atom with predicate in naming ; the recording graph of a run is the union of those of its configurations. A volition-guarded transaction () over participants is a mutual recording of and if it changes the state of each and the recording graph of has the edges and .
Definition C.5 (Introductory act, unobstructed [17]). A schema of of arity two, guarded in both roles, is an introductory act if any two agents have an introduction: an admissible binding of into that sends to and to , under which some atom added at names and some atom added at names . It is unobstructed if any two agents have an introduction such that, at each role of :
(1) every atom requires at , other than an atom of a reflexive predicate naming , is, under , added by some schema of of arity one that is guarded in its role, requires nothing, and forbids nothing or only that atom, which then requires once at , at some admissible binding that sends its role to ;
(2) every schema of that, at some binding, adds at an atom forbids at has, at that binding, the other of and in a role and adds at an atom naming them;
(3) forbids at no atom of a reflexive predicate naming .
The exceptions for reflexive predicates in clauses 1 and 3 are the extension's; without reflexive predicates the definition is that of [17].
Definition C.6 (Traceable provenance, volition [17]). Write for the atoms over and signed terms whose predicate is in ; a signed term among the arguments of an atom counts as the two arguments and . A set has traceable provenance in if for every schema of with roles , every , every and every argument of in with , is a role of or an argument of some , and every argument of in is an argument of such a or occurs in no atom required at a role of ; a predicate has traceable provenance if it belongs to such a set, and has it if the set of its predicates has it. The role graph of a schema is the undirected graph on its roles with an edge between and when one of the two requires an atom of traceable provenance with the other among its arguments, and satisfies volition if every schema of it has a connected role graph or a guarding role in every connected component of its role graph. is syntactically grassroots if it has an unobstructed introductory act, traceable provenance and volition.
Definition C.7 (Open, closed, polite [17]). A set of volition-guarded transactions is open if for any two agents in any , every finite safe run of with no interaction between and has a finite safe extension, by volition changes and transitions that are not interactions between and , at whose end some transaction of whose induced transitions are interactions between and is machine-enabled; closed if for every , every transaction of enabled at the end of a finite safe run of has
all its participants in one instance in that run or a guard in every instance in that run holding one of them; and polite if it is open and closed.
The results of [17] used below, with a contract of that paper's language, the protocol realising it, and a finite safe run of .
LEMMA C.8 ([17]). (1) Every participant changes state. Every transition of induced by a transaction of changes the state of every participant of it.
(2) A mutual recording is an interaction. Every transition of induced by a mutual recording of and in is an interaction between and .
(3) Containment. If has traceable provenance, is contained.
(4) No edge crosses instances. If has traceable provenance in , every edge of the -recording graph of joins two agents that lie in one instance in .
(5) Closure. If has traceable provenance and volition, is closed.
(6) Openness. If has an unobstructed introductory act, is open.
(7) Containment and closure. The protocol over a contained, closed set of volition-guarded transactions is oblivious, and the first interaction of two disjoint sets of agents in a safe run of it is induced by a transaction guarded by a member of each.
(8) Polite. The protocol over a contained, polite set of volition-guarded transactions is volitionally grassroots.
Parts 1, 2 and 7 are proved in [17] for every set of volition-guarded transactions, part 7 being the parts of the proof of its Theorem Polite headed Oblivious and Volitionally grassroots, which use containment and closure and not openness; parts 3 to 6 are proved there for a contract without reflexive predicates, and the next lemma extends them.
LEMMA C.9 (REFLEXIVE PREDICATES AND SIGNED TERMS). Parts 3 to 6 of Lemma C.8 hold for a contract declaring reflexive predicates and adding atoms with signed terms, with Definition C.5 in place of the definition of unobstructed of [17].
PROOF. Each proof of [17] goes through with one case added, where an atom a role requires is, under the binding, the atom of a reflexive predicate naming the agent in that role, which holds at every agent. Containment: an argument of an atom added, by traceable provenance an argument of an atom required at a role , is itself when is that atom, an agent of . No edge crosses instances: for an argument , or a speech-act variable , of the added atom that is an argument of an atom required at a role , with , is the atom of a reflexive predicate naming , and then , or an atom of the state of , as there. Closure: the image of the atom of traceable provenance that requires naming lies in the state of or is the atom of a reflexive predicate naming , and then and the two lie in one instance. Openness: the extension of the run adds, at each role, every atom required there other than an atom of a reflexive predicate naming its holder, which holds; by clause 3 of Definition C.5 no such atom is forbidden; and no schema adds or deletes at a role the atom of a reflexive predicate naming it, so the rest of the proof is unchanged. A signed term occurs only in an added atom, so openness and closure are untouched by it; Containment: an argument of an added atom that is for a signed term is signed by , an agent of , so the state stays in ; No edge crosses instances: where for the role of a signed term among the added atom's arguments, is a participant, joined to by an edge of the interaction graph.
C.2 Guardianship, Leaving and Relay
Throughout, is a set of marks of , and a schema deletes an atom at a role if the atom is marked – there or matches a cleared atom there [17].
Definition C.10 (Guardianship). A guardianship for in is , with and marks and and predicates of arity one, possibly , such that:
(1) no schema of deletes ; a schema that adds or deletes a mark in does so at one role, and adds or deletes one mark there; and no schema clears an atom of , of or of ;
(2) a schema that adds at a role adds there and forbids there;
(3) a schema adds, and deletes, at a role as many times as it adds, and deletes, atoms of there;
(4) an atom a schema adds at a role has a role of the schema at which the schema requires , forbids every mark in and adds ; and a schema deletes at if and only if it deletes at the role ;
(5) a schema that adds at a role adds there; a schema that adds at a role requires there and forbids every mark in there; and a schema that deletes, at a role, for a role or an agent variable deletes or forbids there.
The ward holds of its creator , who holds ; every guardian of , the creator among them, holds (GnW:1 and GnW:2). For AI agents the marks are agent and identity, the predicates principal and principal_of, and is guardian_of: Enter adds agent, identity and principal() at the AI agent, who had no identity, and principal_of() and guardian_of() at the principal , who has one and is not an AI agent, and Make guardian adds guardian_of() at another guardian (Appendix B). For children they are child and identity, the predicates creator and created, and is parenting, which every parent holds [43].
LEMMA C.11 (WARDS AND GUARDIANS). Let have a guardianship for every mark in and be one of them. In every configuration of a run of the protocol realising , an agent holds as many times as they hold atoms of ; an agent holding holds , while holds of them and and no mark in ; an agent holding holds ; and an agent holding holds and no mark in .
PROOF. By induction on the run. The initial state is empty. A transition is induced by a transaction determined by a schema at a binding, and changes a state only by the atoms the schema adds and deletes there. Clause 3 keeps the counts of and of -atoms equal at every role, and by clause 1 at every agent, as a schema adds or deletes them at one role. If the transition adds at then by clause 3 it adds at , by clause 2 it adds at , and by clause 4 its schema has at a role requiring and forbidding every mark in and adds at : so after it holds , and holds , and no mark in . These persist: is never deleted (clause 1); a mark in is added at a role only where is forbidden (clause 2 of its guardianship), so an agent holding never gains one; and
is deleted at only when is deleted at (clause 4). By clause 5, a transition adding at an agent adds there, and one deleting there deletes or finds it absent, so an agent holding holds ; and a transition adding at an agent finds there and no mark in , which persist as above.
Definition C.12 (Leaving mark). Let have a guardianship for every mark in . A mark is a leaving mark of if:
(1) every guarding role of every schema of forbids , and no schema of deletes ;
(2) a schema that adds at a role requires a mark in there;
(3) a schema that adds, at a role, an atom of the guardianship of a mark in forbids at .
Retirement under GnW:5 is written with a leaving mark: the act by which the creator retires a ward adds it at the ward; here it is retired, added by Retire.
LEMMA C.13 (LEAVING). Let have a guardianship for every mark in and be a leaving mark of . In every configuration of a run of the protocol realising , an agent holding has left; and if an agent holds for the guardianship of a mark in , then does not hold .
PROOF. No schema deletes (clause 1), so an agent holding holds it in every later configuration. A transaction with that agent in sends them a guarding role, which forbids (clause 1), so no such transaction is machine-enabled in a later configuration, and the agent has left. When an atom is added at an agent, does not hold (clause 3), and the act adds none at , whose role forbids every mark in (Definition C.10, clause 4; clause 2); and while an agent holds , holds no mark in (Lemma C.11), so no transition adds at (clause 2).
Definition C.14 (Unobstructed but for marks). An introductory act of that adds one atom at each role, of a predicate of arity one, is unobstructed but for if at each role of :
(1) every atom requires at , other than an atom of a reflexive predicate naming , is, up to renaming the role, the one atom added by some schema of of arity one that is guarded in its role, requires nothing and forbids nothing but that atom and the leaving marks of ;
(2) every atom forbids at is a mark in or a leaving mark of .
The act neither requires nor forbids an atom of , so two agents may take it whether or not each holds of the other, and a local state, a multiset, counts the copies; an agent may hold of an agent they never dealt with, as GKK:3 introduces one agent to another. Acquaint, which forbids agent at each role and adds knows of the other there, is unobstructed but for : it requires identity, which Establish adds (Appendix B).
Definition C.15 (Relay act). Let have a guardianship for every mark in and be an introductory act of unobstructed but for , adding atoms of . A schema of is a relay act with related roles , roles of it guarded in at each of which adds an atom of naming the other, if:
(1) each related role is a ward role of some , requiring , with exactly one other role of , its guardian role, requiring , the of the guardianship of , a guardian of the ward
(GnW:3 and GnW:4), or a free role, forbidding every mark in ; every role of is a related role or a guardian role; and adds and deletes at a guardian role no atom naming another guardian role;
(2) every atom requires at a role is an atom of a reflexive predicate naming the role; or, up to renaming the role, the one atom of a schema of arity one as in clause 1 of Definition C.14; or, at a ward role, its or ; or, at a ward role of , an atom of a predicate whose arguments are distinct speech-act variables of occurring in no other atom requires but its record below, where every schema of that adds at a role adds there an atom of whose arguments are speech-act variables or signed terms, and adds its record, an atom of a predicate whose arguments are and the arguments of that -atom, at the role at which it adds ; every other schema of that adds at a role requires a record at a role at which it requires , and adds that record where it adds ; and no schema of deletes an atom of or of ; or, at the guardian role of a ward role , the atom or of that guardianship, or the record, the atom of whose arguments are and the arguments of the -atom requires; or, at a guardian role or a free role, for another guardian role or free role , with reflexive where both are guardian roles; or, where has two ward roles, at the guardian role of one, of the other ward role (GnW:4);
(3) every atom forbids at a role is a mark in or a leaving mark of .
A relay act is an act by which a ward and another agent come to know each other, with the guardian of each ward among them. Agent acquaint is a relay act with a ward role, the AI agent, a free role, the person, and a guardian of the AI agent as the guardian role, requiring at the AI agent the attestation its principal gave it on entering, an atom of in clause 2, and at the guardian its record, from which the guardian's machine fills the request; Agents acquaint is one with two ward roles and their two guardian roles, the guardian of the one requiring knows of the other AI agent. In the child-safe social network a child and an adult come to know each other by a relay act with the child's parent as the guardian role, requiring of the parent knows of the adult, and two children by one with two ward roles and their two parents, requiring of each parent knows of the other, which binds both parents to one person where the two children share one, knows being reflexive [43]. Befriending, which requires knows of the other at each role, is not a relay act in either contract.
Definition C.16 (Introduction with wards). has an introduction with wards if it has a nonempty set of marks, a guardianship for each mark in , an introductory act unobstructed but for , and, for every , a relay act with a ward role of and a free role and a relay act with a ward role of and a ward role of .
Throughout the rest of this appendix is a contract with an introduction with wards, traceable provenance and volition, its realisation and the protocol realising it.
Definition C.17 (Open among the agents that have not left). A set of volition-guarded transactions is open among the agents that have not left if for any two agents in any , every finite safe run of with no interaction between and , in whose last
configuration neither nor has left, has a finite safe extension, by volition changes and transitions that are not interactions between and , at whose end some transaction of whose induced transitions are interactions between and is machine-enabled.
An open set is open among the agents that have not left.
PROPOSITION C.18 (OPENNESS WITH WARDS). is open among the agents that have not left, and open if has no leaving mark.
PROOF. Let in , let be a finite safe run of with no interaction between and , and let be its last configuration, at which, if has a leaving mark, neither nor has left; by Lemma C.13, neither holds a leaving mark at . Call a ward at if its state holds a mark in , which by Lemma C.11 is one mark and comes with for some , its creator, whom we take as its guardian, who holds , and and no mark; otherwise is free. Two facts. First, the transition that added at a ward was determined by a schema with in a role at which it added (Definition C.10, clause 4), so it changed both states (Lemma C.8(1)), left recording , and was an interaction between and ; so the guardian of , if is a ward, is not , and that of is not . Second, for free in holding no leaving mark, the introductory act at the introduction of and can be made machine-enabled by unary transitions at and at : an atom requires that is absent is the one atom of a schema of arity one requiring nothing and forbidding nothing but that atom and the leaving marks, which is machine-enabled, and adding it adds nothing forbids, as a schema of arity one requiring nothing adds no mark in , such a mark being added only together with a -atom naming another role (Definition C.10, clauses 3 and 4), and no leaving mark, which is added only where a mark in is required (Definition C.12, clause 2); and what forbids is a mark in , absent at the free and , or a leaving mark, absent at and . Taking there, after volition changes of and , leaves holding and holding , and is an interaction between and and no others.
If and are free, the second fact at and gives an extension by unary transitions after which at their introduction is machine-enabled, and every transaction it determines is a mutual recording of and , so its transitions are interactions between and by Lemma C.8(2).
Otherwise let be the relay act for the statuses of and , bound with its ward roles to those of and that are wards, its free role to the free one, and the guardian role of each ward role to that ward's guardian, and the speech-act variables of each atom of a predicate that requires at a ward role, as clause 2 of Definition C.15 admits, to the arguments of an atom of held by the ward bound there, which holds one: the transition that added its mark added one, and no transition deletes one; every transition that added of the ward at an agent added its record there, with the arguments of the ward's -atom, and no transition deletes one, so the guardian holds it under the binding. The related roles are bound to distinct agents, and two guardian roles are bound to one person only where and share a guardian, which GnW:4 admits, Alice and Bob possibly one person, and Definition C.2 permits as the guardian roles add and delete nothing naming each other. Extend as follows, by transitions none of which is an interaction between and : for every atom requires at a role that is the one atom of a schema of arity one and is absent at the agent bound there, the unary transition adding it, machine-enabled as above; and for every required at a guardian role or free role bound to , with bound to , where does not hold , the unary transitions and the transaction of at the introduction of and by the second fact, and being free by Lemma C.11, holding no leaving mark, as and hold none and a guardian holds none by Lemma C.13, and , since a guardian is bound only where its ward is one of and , and is not the other by the first fact; and, where has two ward roles, for required at the guardian role bound to , with the other ward role, bound to the ward , whose guardian is , where does not hold : first at , as above, and then the relay act with ward role , free role and guardian role , made machine-enabled as in this paragraph, its -atoms being between free agents, which leaves holding and is no interaction between and , being neither. At the end is machine-enabled: a reflexive atom naming its holder is in ; the unary atoms are present; a ward role bound to has , and the atom of its variables are bound to at ; a guardian role bound to has and of its ward, by Lemma C.11, and the record of its ward's -atom at ; at a role bound to with bound to holds by the extension where and by reflexivity where ; a mark in that forbids is absent at the free agents and at the guardians, by Lemma C.11, and a leaving mark is absent at , at and at the guardians, by Lemma C.13. Every transaction determines there leaves holding an atom naming and one naming , changing both states, so each records the other after it, the transition restricted to is no transition of , and it is an interaction between and .
THEOREM C.19 (POLITE AMONG THE AGENTS THAT HAVE NOT LEFT). The protocol over a contained set of volition-guarded transactions that is closed and open among the agents that have not left is volitionally grassroots.
PROOF. Let be such a set and the protocol over it. By Lemma C.8(7) is oblivious, and the first interaction of two disjoint sets of agents in a safe run is induced by a transaction guarded by a member of each. Let , let be disjoint and nonempty, and let be a prefix of a correct run of containing no interaction between and , in whose last configuration and have not left. By Definition C.17 some finite safe extension of , by volition changes and transitions that are not interactions between and , ends where some whose induced transitions are interactions between and is machine-enabled. If a transition of the extension is an interaction between and , the extension contains one. Otherwise extend it by a volition change of each agent of , where needed, so that lies in the volitional state of each, and by the volitional machine transaction that then induces, an interaction between and and hence between and . Either way the result is a finite safe run of having as a prefix and containing an interaction between and , and by Lemma Extension of [26] it is a prefix of a correct run of . So is interactive among the agents that have not left, and volitionally grassroots.
THEOREM C.20 (GRASSROOTS REALISATION WITH WARDS). The protocol realising a contract with an introduction with wards, traceable provenance and volition is volitionally grassroots.
PROOF. By Proposition C.18 is open among the agents that have not left. The proof of closure (Lemma C.8(5)) uses traceable provenance and volition and nothing of the introductory act, so is closed, and by Lemma C.8(3), whose proof uses traceable provenance only, it is contained; both hold with reflexive predicates by Lemma C.9. By Theorem C.19 the protocol over is volitionally grassroots.
Where has no leaving mark, is open by Proposition C.18, hence polite, and by Lemma C.8(8) the protocol realising is grassroots as well. A contract with wards whose groups are closed by a listed role of their members, as the child-safe social network's are, is certified by composing this appendix with the agent-named contracts of [17], in [43].
C.3 The Contracts Certified
The social network with provenance (Section 4) is written as speech-act schemas in the repository, programs/gai/GSNP.glp: the schemas of the contract of Section 3 (Appendix B), with message and forward; and the schemas of a group, which name a group by its leader and a number and close it by a listed role, the leader with every member the leader lists, as the agent-named contracts of [17]; create and join forbid the mark of an AI agent, so an AI agent takes no group act, the ward's membership of GnW:3 being left out (Section 3.2).
PROPOSITION C.21 (THE SOCIAL NETWORK WITH PROVENANCE IS GRASSROOTS). The protocol realising GSNP is volitionally grassroots.
PROOF. The contract holds the schemas of the contract of Section 3 with message, forward and the schemas of a group. It has an introduction with wards exactly as in the proof of Proposition C.22: the marks , the guardianship (agent, identity, principal, principal_of, guardian_of), the leaving mark retired, forbidden at every guarding role, the group schemas' among them, acquaint the introductory act unobstructed but for , and agent_acquaint and agents_acquaint the relay acts. The set of all the predicates has traceable provenance: the schemas of Section 3's contract as in the proof of Proposition C.22; message adds item(x) at Bob, whose speech-act variable the required authored(x) carries; forward adds item(sgn(x, Alice)) at Bob, whose arguments are the role Alice of the signed term and the speech-act variable , which the required item(x) carries; and of the schemas of a group, create adds atoms whose arguments are its role, the name based on it and a speech-act variable it requires nowhere, join, close, post, post_own, post_forward, deliver and deliver_own add atoms whose arguments are roles, the roles of signed terms, that name and speech-act variables an agent role of the schema requires, and leave and remove add nothing, and unfriend adds nothing and clears memberships. Volition holds: the schemas of Section 3's contract as in the proof of Proposition C.22; the role Alice of message and of forward requires friend(Bob), an atom of traceable provenance naming the other role; join is guarded in both its roles, the two roles of close have the base Alice, create and post_own have arity one, and the role Alice of leave, remove, deliver and deliver_own requires listed(Bob, n) and the role Bob of post and post_forward requires member(⟨Alice⟩ · n), each an atom of traceable provenance an argument of which has the base of the other role. Every name term is based on the role Alice and the listed roles of close and retire add no atom, so the contract is agent-named in the sense of [17], with signed terms by Lemma C.9, and it has an introduction with wards; the protocol realising it is volitionally grassroots by composing Theorem C.20 with that paper's Theorem Grassroots realisation with listed roles, the composition in [43]. □
PROPOSITION C.22 (GRASSROOTS). The protocol realising the contract (Appendix B) is volitionally grassroots.
The contract is not syntactically grassroots: Acquaint forbids agent, which Enter adds at the AI agent by an act of the AI agent and its principal, so for an AI agent and an agent other than its principal clause 2 of Definition C.5 fails, and Befriend requires knows of the other, which no schema of arity one adds; the contract has no unobstructed introductory act. It has an introduction with wards, with the AI agents as its wards and retired as a leaving mark, forbidden at every guard, and the proof is by Theorem C.20.
PROOF. The contract has an introduction with wards (Definition C.16), traceable provenance and volition (Definition C.6), and the listed roles of retire, whose base is the AI agent, so the protocol realising it is volitionally grassroots by Theorem C.20 composed with Theorem Grassroots realisation with listed roles of [17], as in [43]. The marks are , and is a guardianship for agent (Definition C.10): no schema deletes identity, agent, principal or principal_of; enter, the one schema adding agent, adds it with identity and principal(p) at the AI agent, where it forbids identity, and adds principal_of(r) and guardian_of(r) at p, where it requires identity and forbids agent; make_guardian adds guardian_of(r) at a role where it requires identity and forbids agent; and end_guardian, resign, guardian_unfriend and the listed role of retire, which delete guardian_of(r), forbid principal_of(r) there, so clause 5 holds. The mark retired is a leaving mark (Definition C.12): every guarding role forbids it, no schema deletes it, retire adds it at a role requiring agent, and enter forbids it at p. acquaint is an introductory act unobstructed but for (Definition C.14): it requires identity, the one atom of establish, which requires nothing and forbids nothing but the identity it adds and retired; and it forbids agent and retired. agent_acquaint is a relay act (Definition C.15) with the AI agent's role a ward role, the person's role a free role and a guardian's role its guardian role, and agents_acquaint one with two ward roles and their two guardian roles; neither adds or deletes anything at a guardian role, and each forbids only agent and retired. At a ward role each requires identity, agent and attestation(y), and at the guardian role guardian_of of the ward, the record agent_of(r, y) and knows of the free role, or, in agents_acquaint, of the other guardian role and of the other ward role, as clause 2 of Definition C.15 admits: enter, the one schema adding agent, adds the atom of attestation at the AI agent and its record at the principal, make_guardian, the other schema adding guardian_of(r), adds the record at the new guardian and requires it at the principal, and no schema deletes either. Every atom a schema adds names only roles of that schema, speech acts a role of it requires or no role of it requires, and, in introduce, an agent
variable of an atom required at a role: enter adds attestation(y) and agent_of(r, y) with authored(y) required at p; make_guardian, agent_acquaint and agents_acquaint add agent_of(r, y) with agent_of(r, y) or attestation(y) required at a role; and sign adds item(x) and authored(x), x required at no role: the contract has traceable provenance. In every schema the roles are joined by required atoms naming one another, or a guard stands in each part, and the listed roles of retire have the base of its role r: the contract satisfies volition. □