Skip to Content
placket

The mediator API

<!-- Generated by go run ./api/gen from api/ and adapters/errtext; do not edit. -->

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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.envelopebase64, ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$yesThe envelope, {"hash","seq","sig"}, signed by the giver over the message's typed hash and its next seq.
call.args.messagebase64, ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$yesThe crossing message: one part in ROLE_USER, under placket's extension, its kind and salt in the part's metadata.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"give"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.waitwait, from 0 to 60noHow many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"get"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.aftercursor, ^[a-z0-9.-]{1,128}$noAn 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.waitwait, from 0 to 60noHow many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"questions"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.answerobjectyesThe answer call, as the answerer signed it: a frozen format (spec/frozen-formats.md), carried as an object of its canonical bytes.
call.args.saltstring, ^[0-9a-f]{64}$noFor an accept or a change: the answer's salt, 32 bytes in lowercase hex.
call.args.textstringnoFor an accept or a change: the answer's text, whose salted digest the call signs.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"resolve"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.questionstringyesThe question's id.
call.args.waitwait, from 0 to 60noHow many whole seconds the door may hold the call until it has something to return; absent or 0, it replies at once.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"result"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"view"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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:

MemberValueRequiredWhat it is
callobjectyesWhat is signed: the call's canonical bytes.
call.accordhash, ^sha256:[0-9a-f]{64}$yesThe Accord id the caller expects the window to serve.
call.argsobjectyes
call.args.acceptanceobjectyesThe 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.accordhash, ^sha256:[0-9a-f]{64}$yesA typed hash: sha256: and 64 lowercase hex digits. An Accord id, a receipt id and a question id are typed hashes.
call.args.acceptance.fromactor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.args.acceptance.sigstring, ^[0-9a-f]{128}$yesThe signature, 128 lowercase hex digits.
call.args.acceptance.viewhash, ^sha256:[0-9a-f]{64}$yesA typed hash: sha256: and 64 lowercase hex digits. An Accord id, a receipt id and a question id are typed hashes.
call.attimestamp, ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$yesThe caller's clock; the door refuses a call more than 60 seconds from its own (stale).
call.calleractor, ^ed25519:[0-9a-f]{64}$yesAn actor reference: ed25519: and the public key in 64 lowercase hex digits.
call.noncenonce, ^[0-9a-f]{32}$yes16 random bytes in lowercase hex, never sent twice within 120 seconds.
call.op"accept"yes
sigsig, ^[A-Za-z0-9+/]{86}==$yesThe 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.

MemberValueRequiredWhat it is
dataany JSON valuenoThe body, as any JSON value.
kindstring, ^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 charactersyesThe part's kind.
restring, not emptynoWhat the part is about, such as a question's id.
textstringnoThe body, as text.
tostring, ^ed25519:[0-9a-f]{64}$yesThe receiver: a member's actor reference.
topicstring, not emptynoThe 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.

MemberValueRequiredWhat it is
waitinteger, from 0 to 60noHow 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.

MemberValueRequiredWhat it is
afterstring, ^[a-z0-9.-]{1,128}$noThe cursor of an earlier questions result.
waitinteger, from 0 to 60noHow 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.

MemberValueRequiredWhat it is
action"accepted", "changed", "declined", "cancelled"yes
answerstring, not emptynoFor accepted, the text accepted; for changed, the version.
questionstring, ^sha256:[0-9a-f]{64}$yesThe 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.

MemberValueRequiredWhat it is
questionstring, ^sha256:[0-9a-f]{64}$yesThe question's id, a typed hash.
waitinteger, from 0 to 60noHow 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.

MemberValueRequiredWhat it is
questionstring, ^sha256:[0-9a-f]{64}$yesThe 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.

MemberValueRequiredWhat it is
mediatorsarrayyes
mediators[].accordstring, ^sha256:[0-9a-f]{64}$yesThe Accord id.
mediators[].foundingstring, not emptyyesThe founding set's path, from which placket mcp reads the key's roles.
mediators[].keystring, not emptyyesThe party's key file. Its state directory is <key>.state/<the Accord id's hex>/.
mediators[].labelstring, ^[a-z0-9][a-z0-9-]{0,62}$no1 to 63 of a-z, 0-9 and -, starting with a letter or a digit.
mediators[].socketstring, not emptynoThe 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.

FromCodeCause and fix
adapters/clientaskedWhat the window shows of the question is not the part its ask's receipt names, so nothing was signed; list the questions again.
adapters/clientbad-configThe labels config is not in its format; fix mediators.json against api/config/mediators.json.
adapters/clientenvelopeThe envelope could not be signed; check the key file holds a key.
adapters/clientlabel-takenTwo entries of the labels config have one label; give each entry its own label.
adapters/clientmediator-collisionTwo 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/clientrandThe source of randomness failed; call again.
adapters/clientreplyThe window's reply is not what the call asked for; check the socket reaches this Accord's window.
adapters/clientunknown-mediatorNo mediator served has that name; name one by its label, or by its Accord id when it has none, as mediators lists them.
adapters/clientviewThe key keeps no view of this Accord to accept; run placket view first.
adapters/keyfilekeyThe key file does not hold a key; give the path of a key placket key new made.
adapters/keyfilekey-existsA file is already at the key's path; choose another path.
adapters/keyfilekey-modeThe key file can be read by others; make it mode 0600.
adapters/keyfilekey-readThe key file could not be read; check its path and its owner.
adapters/keyfilekey-writeThe key file could not be written; check the directory.
adapters/localcursorThe window could not draw its cursors' key; start it again.
adapters/localjudgeThe window's judge configs are not the ones its card lists; start it with the card's judges.
adapters/localreplyWhat the window sent is not a reply; check the socket is a placket window's.
adapters/localsocketThe window could not be reached, or went away before it replied; start the window, or check the socket path.
adapters/localsocket-pathThe socket path is longer than the system takes; use a shorter one.
adapters/mcpanswering-keyThe 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/mcpbad-argumentsThe tool's arguments do not fit its input schema, or wait is above 60; send them as the schema says.
adapters/mcpfoundingThe 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/mcpinternalThe call failed in a way no other code names; call again, and report it if it persists.
adapters/statestateA file of the state directory could not be read or written, or is not in its format; check the directory and its files.
adapters/statestate-actorThe state directory belongs to another key; give each key its own state directory.
doorbad-callThe 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.
doorbad-signatureThe call's signature does not verify under its caller's key; sign it with the key it names.
doordoor-internalThe window failed after the call passed its checks; call again, and see the window's log if it fails again.
doorjudge-busyThe caller's last give is still with a judge; wait for its reply, then give again.
doornot-foundedThe Accord is proposed, not founded: every member must view and accept its view first; run placket view and placket accept.
doorreplayedThe window has seen the call's nonce already; call again with a fresh nonce.
doorstaleThe call's time is more than 60 seconds from the window's clock; set the clock right and call again.
doortoo-largeThe call is longer than the door reads; send a smaller part.
doorwrong-accordThe window serves another Accord than the call names; check the mediator's Accord id.
erroratA time does not keep the timestamp rule; the window's clock is wrong, so check it.
errorcloseThe journal was cut inside a close; run placket window close to finish it.
errorclosedThe Accord is closed already; nothing more can close it.
errorheldA reloaded delivery is queued by no receipt; restore the journal's held files.
errorinternalThe mediator could not write a receipt or delivery; see the window's log and restart it.
errorjournalA reloaded receipt does not verify or names another Accord; restore the journal or close the Accord.
errorquestionA reloaded open question does not match the receipts; restore the journal's questions file.
errorunfoundedThe window's mediator is not founded; restart the window on its founding set.
rejectionaccord-mismatchThe message names another Accord than the window's; name this mediator's Accord.
rejectionanswer-bodyThe answer's text and salt do not fit its call; send the text whose salted digest the call signs.
rejectionanswer-callThe answer call does not read, names another Accord, or is not the caller's; sign it with the answering key for this Accord.
rejectionclosedThe Accord is closed and takes no give or answer; found its successor and use that.
rejectionenvelope-hashThe envelope names another message than the one sent; sign the envelope over this message's hash.
rejectionenvelope-sequenceThe envelope's seq is not above the last the mediator took from this key; give at the next seq.
rejectionenvelope-signatureThe envelope's signature does not verify under the giver's key; sign it with the giving key.
rejectionextension-missingThe message lacks placket's extension or its role; build it as a member gives one.
rejectionno-open-questionNo question of that id is open; list the open questions, or ask for the result.
rejectionnot-a-memberThe key is not a member of the Accord; use a key the founding set binds.
rejectionnot-an-answererThe key may not answer or cancel that question; only its answerers answer it, and only its asker cancels it, while it has answerers.
rejectionnot-canonicalThe message is not in canonical form; send its canonical bytes.
rejectionone-bodyThe part must carry exactly one body, a text, a raw body or data; send one.
rejectionone-partThe message must carry exactly one part; send each part on its own.
rejectionpart-metadataThe part's kind or salt is missing or malformed; give a kind and a salt of 32 bytes.
rejectionreceiver-unknownThe receiver is not a member of the Accord; give to a member's actor reference.
rejectionurl-unsupportedA part given by URL does not cross; send its body.

On this page