Terms
A party's terms say what may cross to it and from it, and with whom. Each party signs its own declaration of terms, and seals it, so the other parties never read it; each consents instead to its own view of what will cross (the Accord). The mediator reads every party's terms, and decides each part from both sides' (section 5 of the protocol).
A term
A declaration holds a list of terms (setup-contract-1). Each term has:
- a
stance:wantorneed, which compose alike (composition-6);no, a refusal; ormaybe, an ask; - a
dir:give, for parts this party sends, orget, for parts it receives; with: the roles the other side must hold, eachrole:<label>;select: the kinds of part it is about, underkind.
A maybe term also has resolve: to, the roles that answer the question, timeout, how many seconds the question stays open, and, optionally, judges, each to decide or to advise (judges).
These are the agent's terms of placket init approve: it gives a proposal to the applier, asked of the role decider for up to an hour, and gets the decider's answers.
{"terms":[
{"stance":"maybe","dir":"give","with":["role:applier"],"select":{"kind":["proposal"]},"resolve":{"to":["role:decider"],"timeout":3600}},
{"stance":"want","dir":"get","with":["role:decider"],"select":{"kind":["answer","changed-version","comment"]}}]}How a part is decided
A term matches a part when it is the sender's of dir give or the receiver's of dir get, its kind is among the term's, and one of its with roles is a role the other party's binding gives it (composition-1). Then, in this order, the first rule that applies decides:
- A matching
no, of either side, blocks the part, reasonno-match(composition-3). - A part with no matching term on one side or the other is blocked, reason
no-match: a kind no term names never crosses (composition-2). - Matching
maybeterms must agree on who answers and on the timeout; when they differ, the part is blocked, reasonmaybe(composition-5). - A judge both sides list to
decidemay pass or block it (composition-7). - A matching
maybeasks: the part is held as a question (ask and answer). - Anything else passes, reason
ok.
So a part crosses only when both sides said it may. The same terms decide the same part the same way every time, and a verifier who holds every party's opening decides each receipt again to check it (verify).
Where terms are read
placket declaresigns a declaration, andplacket sealseals it (the command line).- A member's view, from
placket view, shows each crossing of its own ascrosses,blockedorasked, and never says whether the other side refused or said nothing (setup-contract-14). placket verifywith every party's opening,--open, checks every decision against the terms; without them it checks what was signed and says the terms were not checked.