The mediator API
The mediator API is the calls a window's door takes, and their replies. A client in any language reaches a mediator through them; adapters/client is placket's own, and placket mcp wraps it as MCP tools. The API is versioned with the release: these schemas are those of placket 0.1, every $id under https://placket.tech/api/0.1/. It is a door format, outside the frozen formats; the answer call a resolve carries, and the receipts, deliveries and close a reply carries, are frozen formats of spec/, described here as the door carries them.
It has two layers. The wire layer (api/wire/) is what travels on the socket: one signed call and one reply per connection. The request layer (api/request/) is what adapters/client and the MCP tools take: the client builds the wire call from it, signs it, and checks the reply.
The wire layer
A window listens on a unix socket, mode 0600, by default <runtime>/<first 12 hex of the Accord id>.sock, where <runtime> is $XDG_RUNTIME_DIR/placket, else $TMPDIR/placket-<uid>, with /tmp for an unset TMPDIR; a variable that is not an absolute path counts as unset. A client connects, writes one call and a line feed, reads one reply and a line feed, and closes. It must not close its side of the socket for writing before it has read the reply. A call is at most 1 MiB, a reply at most 4 MiB, each in canonical JSON.
A call is {"call","sig"}: sig is standard base64 of the Ed25519 signature, by the caller's key, over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the canonical bytes of call. The door checks a call in this order and refuses it at the first that fails, under the reply's door member: its size (too-large), its form (bad-call), its signature (bad-signature), its Accord (wrong-accord), its time within 60 seconds of the door's (stale), and its nonce, unseen in the last 120 seconds (replayed). The mediator then rejects what the caller did wrong under rejection, or names what its program did wrong under error.
A call of questions, get or result may carry wait, whole seconds up to 60: the door holds it until it has something to return, or the wait ends, and then replies as it would have at that moment. A connection may stay open 30 seconds, or its wait and 10 seconds more when that is longer; a give, which has no wait, may take up to 20 seconds when a judge decides it.
give
Gives one part: the message and the envelope the giver signed, each as standard base64 of its exact bytes. The door hands the mediator the bytes as decoded. A give has no wait; with a judge it may take up to 20 seconds.
The call, wire/give.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.envelope | base64, ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ | yes | The envelope, {"hash","seq","sig"}, signed by the giver over the message's typed hash and its next seq. |
call.args.message | base64, ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ | yes | The crossing message: one part in ROLE_USER, under placket's extension, its kind and salt in the part's metadata. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "give" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/give.reply.json, one of:
{ok,outcome,release}(outcomes): The receipts the call made, or a closed question's: outcome, and release, the release's, when the answer had one.ok:true.outcome: outcome. One receipt the call made: its verdict, reason and id, and the receipt.release: outcome. One receipt the call made: its verdict, reason and id, and the receipt.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
get
Fetches the next delivery queued for the caller. With wait, the door holds the call until one is queued and replies queued, taking none, or until the wait ends.
The call, wire/get.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.wait | wait, from 0 to 60 | no | How many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "get" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/get.reply.json, one of:
{ok}(empty): Nothing to return: get with nothing queued, or result while the question is open.ok:true.
{delivery,ok}delivery: object. The delivery, as the mediator returned it: its receipt and id, the message id, kind, salt, re, the body, and the answer call when an answer queued it.ok:true.
{ok,queued}ok:true.queued:true. A delivery is queued for the caller; an ordinary get takes it.
{close,ok}close: object. The Accord's close receipt: a frozen format, carried as the door carries it.ok:true.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
questions
Lists the open questions the caller may answer, oldest first. With after, a cursor of an earlier reply of this window's start, it lists only those opened since; any other after is taken for none. With wait, the door holds the call until there is one to list or the wait ends.
The call, wire/questions.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.after | cursor, ^[a-z0-9.-]{1,128}$ | no | An opaque value a questions reply carries. Passed back as after, it asks only for the questions opened after the last one that reply carried. |
call.args.wait | wait, from 0 to 60 | no | How many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "questions" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/questions.reply.json, one of:
{close,cursor,more,ok,questions}close: object. The Accord's close receipt, on a closed Accord.cursor: cursor,^[a-z0-9.-]{1,128}$. An opaque value a questions reply carries. Passed back as after, it asks only for the questions opened after the last one that reply carried.more:true. Questions were left out to keep the reply under 4 MiB; ask again after the cursor.ok:true.questions: array.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
resolve
Answers a question with the answerer's signed answer call, or withdraws it, the asker's cancel. For an accept or a change, the answer's text and the salt the answerer minted travel beside the call.
The call, wire/resolve.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.answer | object | yes | The answer call, as the answerer signed it: a frozen format (spec/frozen-formats.md), carried as an object of its canonical bytes. |
call.args.salt | string, ^[0-9a-f]{64}$ | no | For an accept or a change: the answer's salt, 32 bytes in lowercase hex. |
call.args.text | string | no | For an accept or a change: the answer's text, whose salted digest the call signs. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "resolve" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/resolve.reply.json, one of:
{ok,outcome,release}(outcomes): The receipts the call made, or a closed question's: outcome, and release, the release's, when the answer had one.ok:true.outcome: outcome. One receipt the call made: its verdict, reason and id, and the receipt.release: outcome. One receipt the call made: its verdict, reason and id, and the receipt.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
result
Asks how a question the caller asked closed. With wait, the door holds the call until it closes or the wait ends.
The call, wire/result.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.question | string | yes | The question's id. |
call.args.wait | wait, from 0 to 60 | no | How many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "result" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/result.reply.json, one of:
{ok}(empty): Nothing to return: get with nothing queued, or result while the question is open.ok:true.
{ok,outcome,release}(outcomes): The receipts the call made, or a closed question's: outcome, and release, the release's, when the answer had one.ok:true.outcome: outcome. One receipt the call made: its verdict, reason and id, and the receipt.release: outcome. One receipt the call made: its verdict, reason and id, and the receipt.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
view
Asks for the caller's own view of the Accord: for each crossing its own terms select, whether it crosses, is asked or is blocked, and each question it answers. A proposed Accord serves it, and so does a founded one; only a member is shown one, and only its own.
The call, wire/view.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "view" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/view.reply.json, one of:
{ok,view}ok:true.view: object. The caller's view: accord, viewer, salt, crossings and answers.
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
accept
Hands the window the caller's signed acceptance of its view. A proposed Accord is founded once every member's is taken; on a founded one, an acceptance that checks changes nothing.
The call, wire/accept.call.json:
| Member | Value | Required | What it is |
|---|---|---|---|
call | object | yes | What is signed: the call's canonical bytes. |
call.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | The Accord id the caller expects the window to serve. |
call.args | object | yes | |
call.args.acceptance | object | yes | The caller's acceptance, signed under https://placket.tech/acceptance/0.1: the Accord id, the typed hash of its view, and from, the caller (setup-contract-15). |
call.args.acceptance.accord | hash, ^sha256:[0-9a-f]{64}$ | yes | A typed hash: sha256: and 64 lowercase hex digits. An Accord id, a receipt id and a question id are typed hashes. |
call.args.acceptance.from | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.args.acceptance.sig | string, ^[0-9a-f]{128}$ | yes | The signature, 128 lowercase hex digits. |
call.args.acceptance.view | hash, ^sha256:[0-9a-f]{64}$ | yes | A typed hash: sha256: and 64 lowercase hex digits. An Accord id, a receipt id and a question id are typed hashes. |
call.at | timestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ | yes | The caller's clock; the door refuses a call more than 60 seconds from its own (stale). |
call.caller | actor, ^ed25519:[0-9a-f]{64}$ | yes | An actor reference: ed25519: and the public key in 64 lowercase hex digits. |
call.nonce | nonce, ^[0-9a-f]{32}$ | yes | 16 random bytes in lowercase hex, never sent twice within 120 seconds. |
call.op | "accept" | yes | |
sig | sig, ^[A-Za-z0-9+/]{86}==$ | yes | The call's signature: standard base64 of the 64-byte Ed25519 signature over the DSSE pre-authentication encoding of the payload type application/vnd.placket.call+json and the call's canonical bytes. |
The reply, wire/accept.reply.json, one of:
-
{founded,ok}founded: boolean.ok:true.
-
{ok,rejection}ok:false.rejection: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.
-
{error,ok}error: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
-
{door,ok}door: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. A code: lowercase letters and digits in words joined by single hyphens.ok:false.
-
{founding,ok}founding: code,^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. The founding code of the row the acceptance fails, such as invalid-shape, acceptance-signature, acceptance-accord or acceptance-view, or of the row that kept the window from founding.ok:false.
The request layer
Each tool of placket mcp takes its request, and mediator: the label of a mediator it serves, or the Accord id of one with none. resolve is the client's alone: placket mcp lists only its asker's slice, cancel. view and accept are the client's alone too: placket mcp lists neither, since a member consents to an Accord itself.
give
Gives one part to a member: the client builds the message, mints its id and salt, and signs the envelope at the key's next seq. Returns the receipt; when the part is asked about, the question's id, at once.
| Member | Value | Required | What it is |
|---|---|---|---|
data | any JSON value | no | The body, as any JSON value. |
kind | string, ^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters | yes | The part's kind. |
re | string, not empty | no | What the part is about, such as a question's id. |
text | string | no | The body, as text. |
to | string, ^ed25519:[0-9a-f]{64}$ | yes | The receiver: a member's actor reference. |
topic | string, not empty | no | The part's topic. |
Exactly one of text and data.
get
Fetches the next delivery queued for the key, and records it in the key's state directory before returning it; a delivery whose record cannot be written is returned beside the error. With wait, it waits for one, holding no lock.
| Member | Value | Required | What it is |
|---|---|---|---|
wait | integer, from 0 to 60 | no | How many whole seconds the mediator may hold the call until it has something to return; absent or 0, it returns at once. |
questions
Lists the open questions the key may answer. With after, the cursor of an earlier result, only those opened since; with wait, it waits until there is one.
| Member | Value | Required | What it is |
|---|---|---|---|
after | string, ^[a-z0-9.-]{1,128}$ | no | The cursor of an earlier questions result. |
wait | integer, from 0 to 60 | no | How many whole seconds the mediator may hold the call until it has something to return; absent or 0, it returns at once. |
resolve
Answers a question the key may answer: accepted or changed with the answer, declined, or cancelled by its asker. The client checks the question shown, mints the answer's salt and signs the answer call.
| Member | Value | Required | What it is |
|---|---|---|---|
action | "accepted", "changed", "declined", "cancelled" | yes | |
answer | string, not empty | no | For accepted, the text accepted; for changed, the version. |
question | string, ^sha256:[0-9a-f]{64}$ | yes | The question's id, a typed hash. |
answer is required for accepted and changed, and absent otherwise.
result
How a question the key asked closed: the closing, the release, and after an accept or a change, the answer or the version. With wait, it waits for the closing.
| Member | Value | Required | What it is |
|---|---|---|---|
question | string, ^sha256:[0-9a-f]{64}$ | yes | The question's id, a typed hash. |
wait | integer, from 0 to 60 | no | How many whole seconds the mediator may hold the call until it has something to return; absent or 0, it returns at once. |
cancel
Withdraws a question the key asked: a resolve whose action is cancelled. It never accepts, changes or declines.
| Member | Value | Required | What it is |
|---|---|---|---|
question | string, ^sha256:[0-9a-f]{64}$ | yes | The question's id, a typed hash. |
mediators
Lists the mediators of the labels config, and whether each is served. It takes no member, and is no door call.
It takes no member.
view
Shows the key's own view of the Accord, and keeps it as view.json in the key's state directory. placket mcp lists no tool of it.
It takes no member.
accept
Signs the key's acceptance of the view its state directory keeps, hands it to the window, and keeps it as acceptance.json. placket mcp lists no tool of it.
It takes no member.
The labels config
mediators.json in placket's config directory ($XDG_CONFIG_HOME/placket, else ~/.config/placket, a variable that is not an absolute path counting as unset): the mediators one user reaches. A label is a local, human name, never signed. Relative paths are taken under the config directory. Entries must not collide: no two have one label, no two of different Accords use one socket, no two use one state directory, and no two of one Accord are both unlabelled; those checks are the client's, not this schema's.
| Member | Value | Required | What it is |
|---|---|---|---|
mediators | array | yes | |
mediators[].accord | string, ^sha256:[0-9a-f]{64}$ | yes | The Accord id. |
mediators[].founding | string, not empty | yes | The founding set's path, from which placket mcp reads the key's roles. |
mediators[].key | string, not empty | yes | The party's key file. Its state directory is <key>.state/<the Accord id's hex>/. |
mediators[].label | string, ^[a-z0-9][a-z0-9-]{0,62}$ | no | 1 to 63 of a-z, 0-9 and -, starting with a letter or a digit. |
mediators[].socket | string, not empty | no | The window's socket; absent, the Accord's default socket. |
The client checks, in this order, after the schema (bad-config): no two entries have one label (label-taken); no two of different Accords use one socket, given or default; no two use one state directory; and no two of one Accord are both unlabelled (mediator-collision). The first that fails is reported, naming its two entries by their index, the first pair by the first index and then the second.
Errors
Every code placket mcp can return, by where it comes from: a code in a door reply by its member, door, rejection or error; any other by the package that declares it. A tool error's text is the code, a colon and its sentence.
| From | Code | Cause and fix |
|---|---|---|
adapters/client | asked | What the window shows of the question is not the part its ask's receipt names, so nothing was signed; list the questions again. |
adapters/client | bad-config | The labels config is not in its format; fix mediators.json against api/config/mediators.json. |
adapters/client | envelope | The envelope could not be signed; check the key file holds a key. |
adapters/client | label-taken | Two entries of the labels config have one label; give each entry its own label. |
adapters/client | mediator-collision | Two entries of the labels config use one socket for two Accords, one state directory, or one Accord id with no label; give each its own socket, key or label. |
adapters/client | rand | The source of randomness failed; call again. |
adapters/client | reply | The window's reply is not what the call asked for; check the socket reaches this Accord's window. |
adapters/client | unknown-mediator | No mediator served has that name; name one by its label, or by its Accord id when it has none, as mediators lists them. |
adapters/client | view | The key keeps no view of this Accord to accept; run placket view first. |
adapters/keyfile | key | The key file does not hold a key; give the path of a key placket key new made. |
adapters/keyfile | key-exists | A file is already at the key's path; choose another path. |
adapters/keyfile | key-mode | The key file can be read by others; make it mode 0600. |
adapters/keyfile | key-read | The key file could not be read; check its path and its owner. |
adapters/keyfile | key-write | The key file could not be written; check the directory. |
adapters/local | cursor | The window could not draw its cursors' key; start it again. |
adapters/local | judge | The window's judge configs are not the ones its card lists; start it with the card's judges. |
adapters/local | reply | What the window sent is not a reply; check the socket is a placket window's. |
adapters/local | socket | The window could not be reached, or went away before it replied; start the window, or check the socket path. |
adapters/local | socket-path | The socket path is longer than the system takes; use a shorter one. |
adapters/mcp | answering-key | The label's key answers questions under its Accord, and placket mcp holds proposing keys only; serve a proposing key, or start it with --allow-answering. |
adapters/mcp | bad-arguments | The tool's arguments do not fit its input schema, or wait is above 60; send them as the schema says. |
adapters/mcp | founding | The label's founding set cannot be read or does not found, or its kept acceptance is not signed by its key for this Accord; fix the founding path in the labels config, or run placket view and placket accept with its key. |
adapters/mcp | internal | The call failed in a way no other code names; call again, and report it if it persists. |
adapters/state | state | A file of the state directory could not be read or written, or is not in its format; check the directory and its files. |
adapters/state | state-actor | The state directory belongs to another key; give each key its own state directory. |
door | bad-call | The call is not in the door's format, or its wait is not a whole number from 0 to 60; check the call against the mediator API. |
door | bad-signature | The call's signature does not verify under its caller's key; sign it with the key it names. |
door | door-internal | The window failed after the call passed its checks; call again, and see the window's log if it fails again. |
door | judge-busy | The caller's last give is still with a judge; wait for its reply, then give again. |
door | not-founded | The Accord is proposed, not founded: every member must view and accept its view first; run placket view and placket accept. |
door | replayed | The window has seen the call's nonce already; call again with a fresh nonce. |
door | stale | The call's time is more than 60 seconds from the window's clock; set the clock right and call again. |
door | too-large | The call is longer than the door reads; send a smaller part. |
door | wrong-accord | The window serves another Accord than the call names; check the mediator's Accord id. |
error | at | A time does not keep the timestamp rule; the window's clock is wrong, so check it. |
error | close | The journal was cut inside a close; run placket window close to finish it. |
error | closed | The Accord is closed already; nothing more can close it. |
error | held | A reloaded delivery is queued by no receipt; restore the journal's held files. |
error | internal | The mediator could not write a receipt or delivery; see the window's log and restart it. |
error | journal | A reloaded receipt does not verify or names another Accord; restore the journal or close the Accord. |
error | question | A reloaded open question does not match the receipts; restore the journal's questions file. |
error | unfounded | The window's mediator is not founded; restart the window on its founding set. |
rejection | accord-mismatch | The message names another Accord than the window's; name this mediator's Accord. |
rejection | answer-body | The answer's text and salt do not fit its call; send the text whose salted digest the call signs. |
rejection | answer-call | The answer call does not read, names another Accord, or is not the caller's; sign it with the answering key for this Accord. |
rejection | closed | The Accord is closed and takes no give or answer; found its successor and use that. |
rejection | envelope-hash | The envelope names another message than the one sent; sign the envelope over this message's hash. |
rejection | envelope-sequence | The envelope's seq is not above the last the mediator took from this key; give at the next seq. |
rejection | envelope-signature | The envelope's signature does not verify under the giver's key; sign it with the giving key. |
rejection | extension-missing | The message lacks placket's extension or its role; build it as a member gives one. |
rejection | no-open-question | No question of that id is open; list the open questions, or ask for the result. |
rejection | not-a-member | The key is not a member of the Accord; use a key the founding set binds. |
rejection | not-an-answerer | The key may not answer or cancel that question; only its answerers answer it, and only its asker cancels it, while it has answerers. |
rejection | not-canonical | The message is not in canonical form; send its canonical bytes. |
rejection | one-body | The part must carry exactly one body, a text, a raw body or data; send one. |
rejection | one-part | The message must carry exactly one part; send each part on its own. |
rejection | part-metadata | The part's kind or salt is missing or malformed; give a kind and a salt of 32 bytes. |
rejection | receiver-unknown | The receiver is not a member of the Accord; give to a member's actor reference. |
rejection | url-unsupported | A part given by URL does not cross; send its body. |