{
  "site": "https://toip.tools/",
  "description": "Every Trust Task type defined in the toip.tools packages and projects, generated from the code.",
  "namespace": "https://toip.tools/spec/",
  "envelope": "Every Trust Task is a JSON document with id, type (the URI below), issuer, recipient, issuedAt, payload and a Data Integrity proof (eddsa-jcs-2022), sent in a TSP Direct message. A response's type is the request's URI with #response appended.",
  "specs": [
    {
      "name": "agents/control",
      "uri": "https://toip.tools/spec/agents/control/0.1",
      "family": "agents",
      "purpose": "The principal controls an agent: pause, resume or stop it, ask it to disclose its audit trail, or revoke a mandate the agent issued to a sub-agent.",
      "from": "principal",
      "to": "agent",
      "kind": "one-way",
      "payload": "export interface Control {\n  op: ControlOp;\n  /** For \"revoke\": a mandate this agent issued. */\n  mandate?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/control/0.1/",
      "markdown": "https://toip.tools/spec/agents/control/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/decline",
      "uri": "https://toip.tools/spec/agents/job/decline/0.1",
      "family": "agents",
      "purpose": "The worker turns a job down, with a reason in words.",
      "from": "worker",
      "to": "hiring agent",
      "kind": "one-way",
      "payload": "export interface JobDecline {\n  job: string;\n  reason: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/decline/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/decline/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L8",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/deliver",
      "uri": "https://toip.tools/spec/agents/job/deliver/0.1",
      "family": "agents",
      "purpose": "The worker hands over the work: a git commit, or a note for a physical task. The attester checks it and attests on Settle.",
      "from": "worker",
      "to": "hiring agent and attester",
      "kind": "one-way",
      "payload": "export interface JobDeliver {\n  job: string;\n  termsHash: string;\n  deliverable: Deliverable;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/deliver/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/deliver/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L11",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/offer",
      "uri": "https://toip.tools/spec/agents/job/offer/0.1",
      "family": "agents",
      "purpose": "A hiring agent offers a job: what to do, the category, the most it will pay, how the payment is released (by an attester such as CI, or by the hirer), the dispute window, the deadline, and the hirer's passport. With a mandate presentation attached, the worker can check the hirer is allowed to spend that much on that category before it quotes.",
      "from": "hiring agent",
      "to": "worker (a person's party or another agent)",
      "kind": "one-way",
      "payload": "export interface JobOffer {\n  job: string;\n  title: string;\n  description: string;\n  category: string;\n  /** The most the hirer offers, in units. */\n  maxUnits: string;\n  release: Release;\n  disputeWindowDays: number;\n  deliverable: \"git\" | \"note\";\n  /** For code jobs: where to push the work (a git URL or a local path in the demo). */\n  repo?: string;\n  deadline: string;\n  hirerName: string;\n  passport: Credential;\n  /** A presentation of the agents/job/offer action. */\n  presentation?: Presentation;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/offer/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/offer/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L6",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/quote",
      "uri": "https://toip.tools/spec/agents/job/quote/0.1",
      "family": "agents",
      "purpose": "The worker answers an offer with a signed Settle payment link for the job, under the job's conditions. The hirer's guard checks the quote matches the offer before anything is paid.",
      "from": "worker",
      "to": "hiring agent",
      "kind": "one-way",
      "payload": "export interface JobQuote {\n  job: string;\n  link: PaymentLink;\n  note?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/quote/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/quote/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L7",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/refused",
      "uri": "https://toip.tools/spec/agents/job/refused/0.1",
      "family": "agents",
      "purpose": "The worker's check of the hirer's mandate failed, so it won't take the job. The payload lists the decision's reasons.",
      "from": "worker",
      "to": "hiring agent",
      "kind": "one-way",
      "payload": "export interface JobRefused {\n  job: string;\n  link?: string;\n  reasons: string[];\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/refused/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/refused/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L9",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/job/watch",
      "uri": "https://toip.tools/spec/agents/job/watch/0.1",
      "family": "agents",
      "purpose": "The hirer tells the attester what to check before it attests the work complete: for a code job, the repository and the test command to run.",
      "from": "hiring agent",
      "to": "attester (CI in the demo)",
      "kind": "one-way",
      "payload": "export interface JobWatch {\n  job: string;\n  termsHash: string;\n  check: CiCheck;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/job/watch/0.1/",
      "markdown": "https://toip.tools/spec/agents/job/watch/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L10",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/report",
      "uri": "https://toip.tools/spec/agents/report/0.1",
      "family": "agents",
      "purpose": "An agent tells its principal something in words, with optional references to jobs, payments or trail entries.",
      "from": "agent",
      "to": "principal",
      "kind": "one-way",
      "payload": "export interface Report {\n  text: string;\n  refs?: Record<string, unknown>;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/report/0.1/",
      "markdown": "https://toip.tools/spec/agents/report/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L13",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agents/task",
      "uri": "https://toip.tools/spec/agents/task/0.1",
      "family": "agents",
      "purpose": "A principal or a delegating agent gives an agent work in words. It becomes the first message of the agent's model loop.",
      "from": "principal or delegating agent",
      "to": "agent",
      "kind": "one-way",
      "payload": "export interface TaskMessage {\n  text: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agents/task/0.1/",
      "markdown": "https://toip.tools/spec/agents/task/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/src/protocol/tasks.ts#L15",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "agora/demo/issue",
      "uri": "https://toip.tools/spec/agora/demo/issue/0.1",
      "family": "agora",
      "purpose": "In the demo only, a member asks a demo issuer (a nursing board, a city) for the credential that later gates their forums, such as a registered-nurse license with its claims.",
      "from": "member",
      "to": "demo issuer",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/agora/demo/issue/0.1#response",
      "payload": "export interface DemoIssueRequest {\n  credentialType: string;\n  claims: Record<string, string>;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/agora/demo/issue/0.1/",
      "markdown": "https://toip.tools/spec/agora/demo/issue/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/src/protocol/specs.ts#L8",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/docs/design.md#76-trust-task-types"
    },
    {
      "name": "agora/group/leave",
      "uri": "https://toip.tools/spec/agora/group/leave/0.1",
      "family": "agora",
      "purpose": "A member asks a registrar to take their leaf out of a group.",
      "from": "member",
      "to": "registrar",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/agora/group/leave/0.1#response",
      "payload": null,
      "response": null,
      "reference": "https://toip.tools/spec/agora/group/leave/0.1/",
      "markdown": "https://toip.tools/spec/agora/group/leave/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/src/protocol/specs.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/docs/design.md#76-trust-task-types"
    },
    {
      "name": "agora/group/receipt",
      "uri": "https://toip.tools/spec/agora/group/receipt/0.1",
      "family": "agora",
      "purpose": "A member asks a registrar for a signed receipt that they are in a group, to restore their membership on a new device from a backup code.",
      "from": "member",
      "to": "registrar",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/agora/group/receipt/0.1#response",
      "payload": null,
      "response": "/** The receipt a registrar keeps for a member, and sends only to them (design §7.6). */\nexport interface GroupReceipt {\n  type: \"agora/group-receipt\";\n  issuer: string;\n  issuedAt: string;\n  group: string;\n  subject: string;\n  index: number;\n  leaf: { commitment: string; schemaId: string; validUntilDay: number; registeredDay: number; attrs: string[] };\n  /** The credential's plain values per slot, so the member's client can explain the gate in words. */\n  values: Record<string, string>;\n  proof?: unknown;\n}",
      "reference": "https://toip.tools/spec/agora/group/receipt/0.1/",
      "markdown": "https://toip.tools/spec/agora/group/receipt/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/src/protocol/specs.ts#L10",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/docs/design.md#76-trust-task-types"
    },
    {
      "name": "anon-membership/enroll",
      "uri": "https://toip.tools/spec/anon-membership/enroll/0.1",
      "family": "anon-membership",
      "purpose": "A member's wallet, from the member's own DID, sends a group's issuer a commitment to its secret for that group, optionally with a credential. The issuer's admit() decides whether that DID may join; if so, the issuer appends the commitment as a leaf in the group's tree. It answers with the leaf's index, the first epoch whose root will hold it, and the leaf, which the wallet checks.",
      "from": "member's wallet",
      "to": "group issuer",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/anon-membership/enroll/0.1#response",
      "payload": "export interface EnrollRequest {\n  group: string;\n  commitment: string;\n  /** Anything the issuer's admit() needs to decide and to fill the leaf's attributes, such as a credential. */\n  credential?: unknown;\n  /** The member asks to replace a leaf they already have, with a new commitment (a rotation). admit() decides. (Additive.) */\n  replace?: boolean;\n}",
      "response": "export interface EnrollResponse {\n  group: string;\n  index: number;\n  /** The first epoch whose root will hold the leaf. */\n  firstEpoch: string;\n  leaf: LeafJson;\n}",
      "reference": "https://toip.tools/spec/anon-membership/enroll/0.1/",
      "markdown": "https://toip.tools/spec/anon-membership/enroll/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/anon-membership/src/issuer.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "mandates/approval/deny",
      "uri": "https://toip.tools/spec/mandates/approval/deny/0.1",
      "family": "mandates",
      "purpose": "The approver tells the delegate it refused a pending request, with an optional reason.",
      "from": "approver (a principal)",
      "to": "delegate (an agent)",
      "kind": "one-way",
      "payload": "export interface ApprovalDenyPayload {\n  request: string;\n  reason?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/mandates/approval/deny/0.1/",
      "markdown": "https://toip.tools/spec/mandates/approval/deny/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L21",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#93-the-exchange"
    },
    {
      "name": "mandates/approval/grant",
      "uri": "https://toip.tools/spec/mandates/approval/grant/0.1",
      "family": "mandates",
      "purpose": "The approver returns a signed approval for a pending request. The receiver checks that the sender signed it over the action's hash, then passes it to the decision.",
      "from": "approver (a principal)",
      "to": "delegate (an agent)",
      "kind": "one-way",
      "payload": "export interface ApprovalGrantPayload {\n  request: string;\n  approval: Approval;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/mandates/approval/grant/0.1/",
      "markdown": "https://toip.tools/spec/mandates/approval/grant/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L19",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#93-the-exchange"
    },
    {
      "name": "mandates/approval/request",
      "uri": "https://toip.tools/spec/mandates/approval/request/0.1",
      "family": "mandates",
      "purpose": "A delegate asks an approver to allow one action its mandate chain doesn't allow by itself. The request carries the action, its hash, the chain, the decision and, optionally, the delegate's own justification. The receiver checks that the action matches its hash and that the chain verifies for the sender.",
      "from": "delegate (an agent)",
      "to": "approver (its principal)",
      "kind": "one-way",
      "payload": "export interface ApprovalRequestPayload {\n  request: string;\n  action: Action;\n  actionHash: string;\n  chain: Mandate[];\n  decision: Decision;\n  /** The delegate's words (a model's, for an agent). Show them as such. */\n  justification?: string;\n  expiresAt: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/mandates/approval/request/0.1/",
      "markdown": "https://toip.tools/spec/mandates/approval/request/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L17",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#93-the-exchange"
    },
    {
      "name": "mandates/issue",
      "uri": "https://toip.tools/spec/mandates/issue/0.1",
      "family": "mandates",
      "purpose": "A delegator sends its delegate a new mandate, with the chain of mandates above it. The receiver checks that the sender issued the mandate and that the whole chain verifies and only narrows. With a status resolver, it checks the chain's status lists too.",
      "from": "delegator (a principal, or an agent delegating to a sub-agent)",
      "to": "delegate",
      "kind": "one-way",
      "payload": "export interface IssuePayload {\n  mandate: Mandate;\n  chain: Mandate[];\n}",
      "response": null,
      "reference": "https://toip.tools/spec/mandates/issue/0.1/",
      "markdown": "https://toip.tools/spec/mandates/issue/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L13",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "mandates/revoked",
      "uri": "https://toip.tools/spec/mandates/revoked/0.1",
      "family": "mandates",
      "purpose": "A delegator tells its delegate that a mandate was revoked, with the mandate's id and the delegator's newly signed status list. The receiver checks the sender signed the list, then checks its own mandate against it.",
      "from": "delegator",
      "to": "delegate",
      "kind": "one-way",
      "payload": "export interface RevokedPayload {\n  mandate: string;\n  statusList: StatusListDoc;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/mandates/revoked/0.1/",
      "markdown": "https://toip.tools/spec/mandates/revoked/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L15",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types"
    },
    {
      "name": "mesh-demo/door/open",
      "uri": "https://toip.tools/spec/mesh-demo/door/open/0.1",
      "family": "mesh-demo",
      "purpose": "A guest asks a door to open, with no internet. The request carries a guest pass (a credential the building issued) and the nonce from the door's signed challenge beacon, so the signed request can't be replayed later. The door checks the pass offline: its signature, that the sender holds it, that it's for this door, the cached revocation list and its age, and the time window. It answers open or refused, with a reason.",
      "from": "guest",
      "to": "door",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/mesh-demo/door/open/0.1#response",
      "payload": "export interface DoorRequest {\n  credential: GuestPass;\n  /** The beacon's nonce, base64url. Signing the request signs it with the pass key. */\n  challenge: string;\n}",
      "response": "export interface DoorAnswer {\n  open: boolean;\n  reason?: string;\n}",
      "reference": "https://toip.tools/spec/mesh-demo/door/open/0.1/",
      "markdown": "https://toip.tools/spec/mesh-demo/door/open/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/mesh/src/door.ts#L23",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/mesh/docs/design.md#42-the-mvp-demo"
    },
    {
      "name": "settle/arbiter/ruling",
      "uri": "https://toip.tools/spec/settle/arbiter/ruling/0.1",
      "family": "settle",
      "purpose": "The arbiter sends its signed ruling on a disputed payment, with the evidence it relied on and its own outcome signature. Each party runs its policy on the ruling and, if the policy allows, signs the same outcome. The processor logs the ruling and counts the arbiter's signature toward the threshold.",
      "from": "arbiter",
      "to": "payer's party, payee's party and processor",
      "kind": "one-way",
      "payload": "export interface RulingPayload {\n  ruling: Ruling;\n  evidence: Evidence;\n  signature: OutcomeSignature;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/arbiter/ruling/0.1/",
      "markdown": "https://toip.tools/spec/settle/arbiter/ruling/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L14",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/checkout/start",
      "uri": "https://toip.tools/spec/settle/checkout/start/0.1",
      "family": "settle",
      "purpose": "A payer who opens a payment link sends the link back to its issuer and asks for an invoice under the link's conditions. The payee checks that the link is its own, unchanged and not archived, then sends a settle/payment/request with those conditions.",
      "from": "payer's party",
      "to": "payee's party (the link's issuer)",
      "kind": "one-way",
      "payload": "{ link: PaymentLink; checkout: string; name?: string }",
      "response": null,
      "reference": "https://toip.tools/spec/settle/checkout/start/0.1/",
      "markdown": "https://toip.tools/spec/settle/checkout/start/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L24",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#17-the-app-platform-parties-payment-links-2026-11-06"
    },
    {
      "name": "settle/escrow/attest",
      "uri": "https://toip.tools/spec/settle/escrow/attest/0.1",
      "family": "settle",
      "purpose": "The attester named in the terms sends a signed claim that the work is complete or not complete, with an optional note. The payer, the payee and the arbiter verify it and record it as input to their release policies.",
      "from": "attester",
      "to": "payer's party, payee's party and arbiter",
      "kind": "one-way",
      "payload": "export interface Attestation {\n  type: \"settle/attestation\";\n  issuer: string;\n  termsHash: string;\n  claim: \"complete\" | \"not-complete\";\n  note?: string;\n  at: string;\n  proof?: unknown;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/attest/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/attest/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L11",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/escrow/dispute",
      "uri": "https://toip.tools/spec/settle/escrow/dispute/0.1",
      "family": "settle",
      "purpose": "The payer or the payee sends a signed dispute with a reason. The arbiter records it and signs a hold, so the payer can't reclaim before a ruling. The other party records it, and the processor logs it by role and hash.",
      "from": "payer's or payee's party",
      "to": "arbiter, the other party and processor",
      "kind": "one-way",
      "payload": "export interface Dispute {\n  type: \"settle/dispute\";\n  issuer: string;\n  termsHash: string;\n  reason: string;\n  at: string;\n  proof?: unknown;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/dispute/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/dispute/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L13",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/escrow/hold",
      "uri": "https://toip.tools/spec/settle/escrow/hold/0.1",
      "family": "settle",
      "purpose": "On a dispute, the arbiter signs a hold that pushes back the escrow's reclaim deadline, so the payer can't wait out the deadline before a ruling. The processor checks the arbiter's signature against the escrow's arbiter key and submits the hold on-chain.",
      "from": "arbiter",
      "to": "processor",
      "kind": "one-way",
      "payload": "export interface HoldPayload {\n  escrow: Address;\n  until: string;\n  signature: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/hold/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/hold/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L17",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#16-security-review-and-escrow-program-v2-2026-11-06"
    },
    {
      "name": "settle/escrow/opened",
      "uri": "https://toip.tools/spec/settle/escrow/opened/0.1",
      "family": "settle",
      "purpose": "After the escrow opens on-chain, the payer announces it with the terms, both acceptances, the escrow address and the opening transaction signature. The payee checks the escrow on-chain, field by field. The attester and the arbiter accept it only if it comes from the payer, carries both acceptances and matches the chain. The processor records it in its transparency log.",
      "from": "payer's party",
      "to": "payee's party, attester, arbiter and processor",
      "kind": "one-way",
      "payload": "export interface OpenedPayload {\n  terms: Terms;\n  acceptances: Acceptance[];\n  escrow: Address;\n  transaction: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/opened/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/opened/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L10",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/escrow/settled",
      "uri": "https://toip.tools/spec/settle/escrow/settled/0.1",
      "family": "settle",
      "purpose": "After it submits the resolve transaction, the processor tells everyone the escrow settled, with the transaction signature, the payee's share and the evidence hash. Each party confirms the settlement against the chain. The payee then sends the payer a receipt.",
      "from": "processor",
      "to": "payer's party, payee's party and arbiter",
      "kind": "one-way",
      "payload": "export interface SettledPayload {\n  termsHash: string;\n  escrow: Address;\n  transaction: string;\n  payeeUnits: string;\n  evidenceHash: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/settled/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/settled/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L15",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/escrow/sign",
      "uri": "https://toip.tools/spec/settle/escrow/sign/0.1",
      "family": "settle",
      "purpose": "A party sends its signature over an escrow outcome (how much of the price goes to the payee), with the evidence the outcome rests on. The processor collects these and submits the on-chain resolve once enough distinct allowed keys sign the same outcome. When the payee sends one to the payer, it asks for a release or a refund, which the payer checks against its policy.",
      "from": "payer's or payee's party",
      "to": "processor, and the payer's party when the payee asks for a release or refund",
      "kind": "one-way",
      "payload": "/** The signed outcome a party sends the processor (design §7, escrow/sign). */\nexport interface OutcomeSignature {\n  termsHash: string;\n  escrow: Address;\n  payeeUnits: string;\n  evidence: Evidence;\n  signer: Address;\n  signature: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/escrow/sign/0.1/",
      "markdown": "https://toip.tools/spec/settle/escrow/sign/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/payment/receipt",
      "uri": "https://toip.tools/spec/settle/payment/receipt/0.1",
      "family": "settle",
      "purpose": "After settlement, the payee sends the payer a signed receipt credential (SettlePaymentReceipt). It ties together the terms hash, the escrow address, the settlement transaction, the amount paid and the purpose. The payer verifies it and keeps it.",
      "from": "payee's party",
      "to": "payer's party",
      "kind": "one-way",
      "payload": "export interface Credential {\n  \"@context\": string[];\n  id: string;\n  type: string[];\n  issuer: string;\n  validFrom: string;\n  validUntil?: string;\n  credentialSubject: { id: string; [k: string]: unknown };\n  credentialStatus?: { type: \"BitstringStatusListEntry\"; statusListIndex: number; statusListCredential: string };\n  proof?: Proof;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/payment/receipt/0.1/",
      "markdown": "https://toip.tools/spec/settle/payment/receipt/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L18",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/payment/request",
      "uri": "https://toip.tools/spec/settle/payment/request/0.1",
      "family": "settle",
      "purpose": "The payee sends an invoice to the payer. It carries the price, the purpose, a new payment key bound to the payee's DID, and the payee's credentials. The payer checks the key binding and the credentials and records the invoice. If the invoice answers one of its own checkouts, the payer then proposes terms without a click.",
      "from": "payee's party",
      "to": "payer's party",
      "kind": "one-way",
      "payload": "export interface OfferPayload {\n  payment: string;\n  purpose: string;\n  units: string;\n  payee: TermsParty;\n  credentials: Credential[];\n  /** The payee's own name for itself (shown to people, never trusted). */\n  name?: string;\n  /** Set when the invoice answers a checkout from a payment link. */\n  link?: string;\n  checkout?: string;\n  /** The release conditions the payment link fixed; the payee accepts only terms that use them. */\n  conditions?: { attester: string; disputeWindowDays: number };\n}",
      "response": null,
      "reference": "https://toip.tools/spec/settle/payment/request/0.1/",
      "markdown": "https://toip.tools/spec/settle/payment/request/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L7",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/payment/terms/accept",
      "uri": "https://toip.tools/spec/settle/payment/terms/accept/0.1",
      "family": "settle",
      "purpose": "The payee returns the agreed terms with its own signed acceptance. The payer checks that the terms are the ones it proposed and that the payee signed them. It then opens the escrow through the processor.",
      "from": "payee's party",
      "to": "payer's party",
      "kind": "one-way",
      "payload": "{ terms: Terms; acceptance: Acceptance }",
      "response": null,
      "reference": "https://toip.tools/spec/settle/payment/terms/accept/0.1/",
      "markdown": "https://toip.tools/spec/settle/payment/terms/accept/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L9",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/payment/terms/propose",
      "uri": "https://toip.tools/spec/settle/payment/terms/propose/0.1",
      "family": "settle",
      "purpose": "The payer sends the full terms document with its own signed acceptance. The payee checks the terms against its invoice and its limits: price, purpose, token, arbiter, fee, threshold, reclaim deadline, payment-link conditions and the payer's key binding. If everything checks out, it accepts.",
      "from": "payer's party",
      "to": "payee's party",
      "kind": "one-way",
      "payload": "{ terms: Terms; acceptance: Acceptance }",
      "response": null,
      "reference": "https://toip.tools/spec/settle/payment/terms/propose/0.1/",
      "markdown": "https://toip.tools/spec/settle/payment/terms/propose/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L8",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks"
    },
    {
      "name": "settle/processor/log",
      "uri": "https://toip.tools/spec/settle/processor/log/0.1",
      "family": "settle",
      "purpose": "Anyone can ask the processor for its transparency log. The reply holds every entry (openings, signatures, disputes, rulings, holds and settlements, recorded as roles and hashes) and the processor's signed head.",
      "from": "anyone",
      "to": "processor",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/settle/processor/log/0.1#response",
      "payload": "Record<string, never>",
      "response": "{ entries: LogEntry[]; head: LogHead }",
      "reference": "https://toip.tools/spec/settle/processor/log/0.1/",
      "markdown": "https://toip.tools/spec/settle/processor/log/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L22",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#9-arbitration-transparency-privacy"
    },
    {
      "name": "settle/processor/submit",
      "uri": "https://toip.tools/spec/settle/processor/submit/0.1",
      "family": "settle",
      "purpose": "A party sends the processor a partly signed transaction: an escrow open, reclaim or claim. The processor checks that it holds one Settle instruction that uses the processor's key only for fees and rent, and, for an open, that it matches terms both parties signed. Then it co-signs as fee payer and submits it.",
      "from": "payer's or payee's party",
      "to": "processor",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/settle/processor/submit/0.1#response",
      "payload": "export interface SubmitPayload {\n  transaction: string;\n  /** For an open: the terms and both acceptances, which the processor checks before paying for anything. */\n  terms?: Terms;\n  acceptances?: Acceptance[];\n}",
      "response": "export type SubmitResult = { ok: boolean; signature?: string; error?: string };",
      "reference": "https://toip.tools/spec/settle/processor/submit/0.1/",
      "markdown": "https://toip.tools/spec/settle/processor/submit/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L20",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#15-implementation-notes-2026-11-06"
    },
    {
      "name": "tipline/message",
      "uri": "https://toip.tools/spec/tipline/message/0.1",
      "family": "tipline",
      "purpose": "A reply or a follow-up in a tip's conversation, in either direction.",
      "from": "source or drop box",
      "to": "the other",
      "kind": "one-way",
      "payload": "export interface MessagePayload {\n  tipId: string;\n  /** Unique per message, so a resent thread doesn't show a message twice. */\n  id: string;\n  text: string;\n  /** Set when the drop box resends the thread: who first wrote this message, and when (to the hour). */\n  from?: \"source\" | \"dropbox\";\n  at?: string;\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/message/0.1/",
      "markdown": "https://toip.tools/spec/tipline/message/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L14",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/proof/present",
      "uri": "https://toip.tools/spec/tipline/proof/present/0.1",
      "family": "tipline",
      "purpose": "The source answers a proof request with a fresh membership proof bound to the challenge.",
      "from": "source's tip DID",
      "to": "drop box",
      "kind": "one-way",
      "payload": "export interface ProofPresentPayload {\n  tipId: string;\n  challenge: string;\n  membership: MembershipProof;\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/proof/present/0.1/",
      "markdown": "https://toip.tools/spec/tipline/proof/present/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L17",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/proof/request",
      "uri": "https://toip.tools/spec/tipline/proof/request/0.1",
      "family": "tipline",
      "purpose": "The drop box asks a source for a fresh membership proof, for example against a newer group root, with a challenge to bind it to.",
      "from": "drop box",
      "to": "source's tip DID",
      "kind": "one-way",
      "payload": "export interface ProofRequestPayload {\n  tipId: string;\n  challenge: string;\n  /** The story the tip was for, so a source who kept nothing knows which proof to make. */\n  story: string;\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/proof/request/0.1/",
      "markdown": "https://toip.tools/spec/tipline/proof/request/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L16",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/thread/request",
      "uri": "https://toip.tools/spec/tipline/thread/request/0.1",
      "family": "tipline",
      "purpose": "A source who kept nothing comes back with their tip code and asks the drop box to resend the conversation.",
      "from": "source's tip DID",
      "to": "drop box",
      "kind": "one-way",
      "payload": "export interface ThreadRequestPayload {\n  tipId: string;\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/thread/request/0.1/",
      "markdown": "https://toip.tools/spec/tipline/thread/request/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L15",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/tip/chunk",
      "uri": "https://toip.tools/spec/tipline/tip/chunk/0.1",
      "family": "tipline",
      "purpose": "One piece of one attachment, sent after the submit. Dummy chunks pad the count, so the number of messages doesn't reveal the files' sizes.",
      "from": "source's tip DID",
      "to": "drop box",
      "kind": "one-way",
      "payload": "export interface ChunkPayload {\n  tipId: string;\n  /** An attachment id, or \"pad\" for a dummy chunk. */\n  attachment: string;\n  index: number;\n  count: number;\n  data: string;\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/tip/chunk/0.1/",
      "markdown": "https://toip.tools/spec/tipline/tip/chunk/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/tip/receipt",
      "uri": "https://toip.tools/spec/tipline/tip/receipt/0.1",
      "family": "tipline",
      "purpose": "The drop box tells the source whether the tip was verified or rejected, and why, and asks again for any chunks that didn't arrive.",
      "from": "drop box",
      "to": "source's tip DID",
      "kind": "one-way",
      "payload": "export interface ReceiptPayload {\n  tipId: string;\n  status: \"verified\" | \"rejected\";\n  reason?: ReceiptReason;\n  missing?: { attachment: string; index: number }[];\n  padding?: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/tip/receipt/0.1/",
      "markdown": "https://toip.tools/spec/tipline/tip/receipt/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L13",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "tipline/tip/submit",
      "uri": "https://toip.tools/spec/tipline/tip/submit/0.1",
      "family": "tipline",
      "purpose": "A source sends a tip from a fresh DID made from their tip code: the story it's for, the text, a list of attachments, and a zero-knowledge proof that they belong to the organization's group. The proof is bound to this drop box, story and tip, and its nullifier lets the inbox recognize the same source again without knowing who they are.",
      "from": "source's tip DID",
      "to": "drop box (the journalist's inbox)",
      "kind": "one-way",
      "payload": "export interface SubmitPayload {\n  v: 1;\n  tipId: string;\n  story: string;\n  body: TipBody;\n  attachments: AttachmentInfo[];\n  /** Sealed chunk messages that follow, dummy ones included. */\n  chunks: number;\n  membership: MembershipProof;\n  padding: string;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/tipline/tip/submit/0.1/",
      "markdown": "https://toip.tools/spec/tipline/tip/submit/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/src/protocol/messages.ts#L11",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/tipline/docs/design.md#71-message-types"
    },
    {
      "name": "todo/ack",
      "uri": "https://toip.tools/spec/todo/ack/0.1",
      "family": "todo",
      "purpose": "A new member sends the admin a signed acknowledgement credential (TodoListMembershipAcknowledgement) after accepting the welcome. The admin verifies it and records that the member acknowledged.",
      "from": "new member's device",
      "to": "admin's device",
      "kind": "one-way",
      "payload": "{ acknowledgement: Credential }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/ack/0.1/",
      "markdown": "https://toip.tools/spec/todo/ack/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L7",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/join",
      "uri": "https://toip.tools/spec/todo/join/0.1",
      "family": "todo",
      "purpose": "A device holding an invitation asks the inviting admin to join the list, with the invitation code, the list's DID and a display name. The admin checks the code, adds the member to a newly signed roster and issues a membership credential, or refuses.",
      "from": "joining device",
      "to": "inviting admin's device",
      "kind": "one-way",
      "payload": "{ code: string; list: string; name: string }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/join/0.1/",
      "markdown": "https://toip.tools/spec/todo/join/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L4",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/join-refused",
      "uri": "https://toip.tools/spec/todo/join-refused/0.1",
      "family": "todo",
      "purpose": "The admin tells a joiner why it won't admit them: the invitation is unknown, used or expired, the joiner is already a member, or this device doesn't run the list. The joiner records the reason against its pending join.",
      "from": "admin's device",
      "to": "joining device",
      "kind": "one-way",
      "payload": "{ list: string; reason: string }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/join-refused/0.1/",
      "markdown": "https://toip.tools/spec/todo/join-refused/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L6",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/leave",
      "uri": "https://toip.tools/spec/todo/leave/0.1",
      "family": "todo",
      "purpose": "A member who isn't the admin tells the list's admins they are leaving. The admin's device removes them and sends a newly signed roster.",
      "from": "member's device",
      "to": "every admin's device",
      "kind": "one-way",
      "payload": "{ list: string }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/leave/0.1/",
      "markdown": "https://toip.tools/spec/todo/leave/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/op",
      "uri": "https://toip.tools/spec/todo/op/0.1",
      "family": "todo",
      "purpose": "A member who adds, edits, checks, unchecks or deletes an item sends the signed operation, with their membership credential, to every other current member. Each device checks it against the roster, the credential and the policy before applying it.",
      "from": "author's device",
      "to": "every other current member's device",
      "kind": "one-way",
      "payload": "export interface OpMessage {\n  op: Op;\n  membership?: Credential;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/todo/op/0.1/",
      "markdown": "https://toip.tools/spec/todo/op/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L8",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/roster",
      "uri": "https://toip.tools/spec/todo/roster/0.1",
      "family": "todo",
      "purpose": "The admin sends the list's newly signed roster after someone joins or is removed. A device adopts a roster only if the list's key signed it, its version is higher, and it keeps every earlier removal.",
      "from": "admin's device",
      "to": "every current member's device, and once to a member just removed",
      "kind": "one-way",
      "payload": "{ roster: RosterDoc }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/roster/0.1/",
      "markdown": "https://toip.tools/spec/todo/roster/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L9",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/sync",
      "uri": "https://toip.tools/spec/todo/sync/0.1",
      "family": "todo",
      "purpose": "A device sends one page of a list's history: the current signed roster, up to 100 operations, and the membership credentials those operations need. The receiver adopts the roster as it would any roster and checks each operation as if it had arrived on its own.",
      "from": "member's device",
      "to": "member's device",
      "kind": "one-way",
      "payload": "/** One page of a list's history, in a welcome follow-up or a sync reply. */\ninterface HistoryPage {\n  list: string;\n  roster: RosterDoc;\n  memberships: Record<string, Credential>;\n  ops: Op[];\n  page: number;\n  last: boolean;\n}",
      "response": null,
      "reference": "https://toip.tools/spec/todo/sync/0.1/",
      "markdown": "https://toip.tools/spec/todo/sync/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L11",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "todo/sync-request",
      "uri": "https://toip.tools/spec/todo/sync-request/0.1",
      "family": "todo",
      "purpose": "On start and on reconnect, a device asks one other current member (a different one each time) for everything it holds for a list. The receiver answers with todo/sync pages if the requester is a current member.",
      "from": "member's device",
      "to": "one other current member's device",
      "kind": "one-way",
      "payload": "{ list: string }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/sync-request/0.1/",
      "markdown": "https://toip.tools/spec/todo/sync-request/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L10",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#49-catching-up"
    },
    {
      "name": "todo/welcome",
      "uri": "https://toip.tools/spec/todo/welcome/0.1",
      "family": "todo",
      "purpose": "The admin admits a joiner. It sends the list's name, the joiner's membership credential and the current signed roster. The joiner verifies all three and replies with todo/ack. The list's history follows as todo/sync pages.",
      "from": "admin's device",
      "to": "joining device",
      "kind": "one-way",
      "payload": "{ listName: string; membership: Credential; roster: RosterDoc }",
      "response": null,
      "reference": "https://toip.tools/spec/todo/welcome/0.1/",
      "markdown": "https://toip.tools/spec/todo/welcome/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/src/todo/specs.ts#L5",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/shared-todo/docs/design.md#43-messages"
    },
    {
      "name": "trail/disclose",
      "uri": "https://toip.tools/spec/trail/disclose/0.1",
      "family": "trail",
      "purpose": "A log's controller sends a reader a bundle: the KEL, the chosen trails with the bodies picked for this reader, and the DID bindings. The reader verifies the bundle and reviews the entries, and replies with an empty object.",
      "from": "log controller (for example an agent)",
      "to": "reader (for example the agent's principal)",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/disclose/0.1#response",
      "payload": "{ bundle: Bundle }",
      "response": "Record<string, never>",
      "reference": "https://toip.tools/spec/trail/disclose/0.1/",
      "markdown": "https://toip.tools/spec/trail/disclose/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L16",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#121-projectsagents-the-main-consumer"
    },
    {
      "name": "trail/duplicity",
      "uri": "https://toip.tools/spec/trail/duplicity/0.1",
      "family": "trail",
      "purpose": "Whoever catches duplicity sends the evidence to someone who relies on the log: two conflicting signed versions at the same position, from the controller or from a witness. The evidence proves itself against the controller's KEL. The receiver replies with an empty object.",
      "from": "whoever caught it (a watcher, controller or verifier)",
      "to": "a party that relies on the log",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/duplicity/0.1#response",
      "payload": "{ evidence: StoredEvidence }",
      "response": "Record<string, never>",
      "reference": "https://toip.tools/spec/trail/duplicity/0.1/",
      "markdown": "https://toip.tools/spec/trail/duplicity/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L17",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#102-evidence"
    },
    {
      "name": "trail/head",
      "uri": "https://toip.tools/spec/trail/head/0.1",
      "family": "trail",
      "purpose": "A watcher or verifier asks a witness for the head of a log: the latest receipt that witness signed. Watchers compare heads to catch forks and truncated bundles.",
      "from": "watcher or verifier",
      "to": "witness",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/head/0.1#response",
      "payload": "{ logId: Qb64 }",
      "response": "{ receipt: string | null }",
      "reference": "https://toip.tools/spec/trail/head/0.1/",
      "markdown": "https://toip.tools/spec/trail/head/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L15",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#103-watchers"
    },
    {
      "name": "trail/query",
      "uri": "https://toip.tools/spec/trail/query/0.1",
      "family": "trail",
      "purpose": "A watcher or verifier asks a witness for a log's messages and receipts, optionally for a range of sequence numbers. The witness returns them as a CESR text stream.",
      "from": "watcher or verifier",
      "to": "witness",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/query/0.1#response",
      "payload": "{ logId: Qb64; from?: number; to?: number }",
      "response": "{ stream: string }",
      "reference": "https://toip.tools/spec/trail/query/0.1/",
      "markdown": "https://toip.tools/spec/trail/query/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L14",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#103-watchers"
    },
    {
      "name": "trail/witness/receipts",
      "uri": "https://toip.tools/spec/trail/witness/receipts/0.1",
      "family": "trail",
      "purpose": "A log's controller passes each witness the receipts the other witnesses signed, so every witness ends up holding every receipt. The witness stores them and replies with an empty object.",
      "from": "log controller",
      "to": "witness",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/witness/receipts/0.1#response",
      "payload": "{ stream: string }",
      "response": "Record<string, never>",
      "reference": "https://toip.tools/spec/trail/witness/receipts/0.1/",
      "markdown": "https://toip.tools/spec/trail/witness/receipts/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L13",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#93-getting-receipts-around"
    },
    {
      "name": "trail/witness/submit",
      "uri": "https://toip.tools/spec/trail/witness/submit/0.1",
      "family": "trail",
      "purpose": "A log's controller sends a witness KEL events or trail messages to witness. The witness verifies each one, keeps the first version it sees at each position, and returns receipts. If it refuses, it says why, and on duplicity it returns the version it saw first.",
      "from": "log controller",
      "to": "witness",
      "kind": "request/response",
      "responseUri": "https://toip.tools/spec/trail/witness/submit/0.1#response",
      "payload": "{ stream: string }",
      "response": "export type SubmitResult =\n  | { ok: true; receipts: string }\n  /** `receipts` holds receipts for messages before the refused one. (Additive.) */\n  | { ok: false; refusal: Refusal; problems: Problem[]; firstSeen?: string; receipts?: string };",
      "reference": "https://toip.tools/spec/trail/witness/submit/0.1/",
      "markdown": "https://toip.tools/spec/trail/witness/submit/0.1/index.md",
      "definedIn": "https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L12",
      "design": "https://github.com/yourbuddyconner/toip-tools/blob/main/projects/trail/docs/design.md#92-what-it-does"
    }
  ]
}
