Documentation / Start / How protocol0 works
How protocol0 works
This page explains in plain words what protocol0 does and states the 18 rules that every copy carries out.
In short
protocol0 keeps the rules of a community in a record that every member holds a copy of. Each entry of the record is signed and a change to the community counts only when more than half of the members signed it.
Every copy checks every entry by itself so no server decides anything. The 18 rules below say what each copy checks. The fixed rule page lists them again with 1 or 2 sentences each.
The text of the protocol and these pages both say team for a body inside a community, and so does the code.
These pages say community for 1 group of members and rule 9 uses community for several groups that share 1 record.
The 18 rules
P1. The record. A group is a record. A record is a set of entries. Each entry names the entries that came before it by their codes. A code is a fingerprint (a hash) of the entry, so a changed entry no longer matches its code. Each entry is signed by the key that wrote it. A copy takes an entry only after it has checked it against these rules by itself. 2 copies that hold the same entries reach the same state, in whatever order the entries arrived.
P2. Keys. A member is a name and a list of keys. Each computer and each approved app of the member has its own key. A new key joins the list by an entry that an older key of the same member signed. A member counts once in any count, however many of its keys sign. A key is made on its computer and never leaves it.
P3. No special member. No entry gives a member a power that other members lack. The person who started the group is an ordinary member. The only powers beyond 1 signature are the 3 team powers of P8, and only a decision of the group gives them to a team.
P4. The fixed rule. A change to the member list, the constitution, a rule or a page counts only when more than half of the members of the deciding body signed it. A constitution can ask for more and never for less. Every copy refuses an entry that sets a number at or below half.
P5. A decision. A proposal names what changes, the exact new content, the deciding body, the number it needs and its end date. The body and its size are fixed when the proposal is written. A signature names the code of the proposal. When enough different members of that body have signed, the change takes effect in every copy at that entry. A signature of a guest, a helper, a removed member or a stranger never counts. A proposal that has not reached its number by its end date is closed. A proposal lives 14 days unless the constitution says otherwise.
P6. Final means final. A signature cannot be taken back. A decision that took effect is undone only by an objection (P7) or a new decision. A late entry, or one written on an older branch of the record, cannot change the outcome of a decision that already reached its number. If 1 member signs 2 different versions of the same proposal, every copy keeps both entries, lists them as proof against that member, and counts that member once at most.
P7. An objection. Any member can object to a proposal or a decision. An objection is a proposal to stop it or undo it. The group hears it; for a decision of a team, the group that the team belongs to hears it. It needs the number that this kind of change needs in the hearing body. When it reaches that number, every copy stops the proposal or undoes its effect. A guest objects through a member, who writes the objection in the guest's name.
P8. Teams. A team is a body inside a group. A decision of the group makes it and names its members, its pages and its powers. A team decides by more than half of its own members. Only the group changes who is in a team. A change to who is in a team names the member list it changes, so 2 rival lists cannot both take effect. A team can hold a team, 2 levels deep. The group can give a team 3 powers: keep named pages, hide a post, and pause a member's posting for up to 30 days. Every member of the group can read the decisions and pages of a team. Only members of the team can read its talk.
P9. A community. 1 record can hold several groups as a community. A community decision takes effect when more than half of the groups have signed. A group has signed when more than half of its own members have signed. A community decision admits a new group.
P10. Talk. Posts live in sub chats. A post is 1 entry signed by its writer and needs no other signature. A post can answer another post. Any member can open a sub chat when the constitution allows it. The live chat and the threads are 2 views of the same posts. A decision of the group, or of a team with the power, hides a post: every copy deletes the words of the post and keeps its code and the decision. A paused member cannot post until the end date, and can still read, sign and object.
P11. Keep. A page has a name, a keeper and versions. The keeper is the group or a team. A new version takes effect only by a decision of its keeper. The constitution is page 1 and the rule book is page 2. A page is text with simple tables.
P12. The constitution. It holds the number for a rule or page change, for a change of the constitution, for a change of the member list and for hiding a post; who may open a sub chat; the lifetime of a proposal; the rules for guests; the relay addresses; the version of protocol0 with its code; and the pages opened to the helper. A new group picks "more than half", "2 of every 3" or "everyone".
P13. Guests and joining. A member writes an invite that holds only the public half of a one-time code. The code travels outside the app, for example by email. The newcomer's app proves the code and becomes a guest. The member who invited stays named in the record. A guest reads what the group leaves open to guests. A guest posts after 1 member lets the guest in, and writes at most 20 posts a day. A guest never signs. A guest becomes a member by a decision on the member list. A group of 1 member admits its second member with 1 signature, because 1 of 1 is more than half.
P14. Leaving and removal. A member can leave and keep the full copy. A decision on the member list removes a member. After that, every copy refuses entries signed with that member's keys, and those keys cannot open anything written later. A member who lost every key gets a new key by a decision on the member list.
P15. The helper. A helper is an AI with its own key, marked as a helper on the member list. Its signature never counts. It reads only the pages that a decision opened to it, because it holds keys for those pages only. It writes only the kinds of entry on its list of powers. By default those are answers in its own thread and drafts that count for nothing.
P16. Sealing. The content of entries is sealed. A relay, or anyone holding the bytes with no key, cannot read it. Members hold the group key. The talk of a team is sealed with a team key. The helper holds page keys only. After a removal the group makes a new key for what is written later.
P17. Moving between copies. Copies pass entries through 1 or more relays that the constitution lists. A relay cannot change an entry without every copy seeing it, and cannot make an entry. A silent relay is replaced by the next one on the list. Nothing depends on a server of the maker.
P18. Versions and apps. The first entry names the version of protocol0 and its code. A group moves to another version only by a decision at the number for the constitution. Every app that runs protocol0 checks every entry of every other app and refuses an entry that breaks a rule, whoever wrote it. On 1 computer, all protocol0 apps of a user read the records from 1 shared folder, and each app signs with its own key.
Something wrong on this page