# settle/processor/log

https://toip.tools/spec/settle/processor/log/0.1

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.

- **Sent**: anyone → processor
- **Kind**: Request and response. The response's type is `https://toip.tools/spec/settle/processor/log/0.1#response`.
- **Envelope**: Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
- **Defined in**: [`projects/settle/src/protocol/specs.ts:22`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L22) as `PROCESSOR_LOG`
- **Handled in**: [`projects/settle/src/agents/roles.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/agents/roles.ts)
- **Design**: [9. Arbitration, transparency, privacy](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#9-arbitration-transparency-privacy) in `projects/settle/docs/design.md`

Source documentation: “Request/response: the processor's transparency log.”

## Payload

As the handler declares it, in projects/settle/src/agents/roles.ts:

```ts
Record<string, never>
```

## Response payload

As the handler declares it, in projects/settle/src/agents/roles.ts:

```ts
{ entries: LogEntry[]; head: LogHead }
```

### Types it uses

projects/settle/src/protocol/log.ts:11:

```ts
export interface LogEntry {
  seq: number;
  at: string;
  kind: "opened" | "signature" | "dispute" | "ruling" | "hold" | "settled";
  termsHash: string;
  detail: Record<string, unknown>;
  prev: string;
  hash: string;
}
```

projects/settle/src/protocol/log.ts:21:

```ts
export interface LogHead {
  type: "settle/log-head";
  issuer: string;
  size: number;
  head: string;
  at: string;
  proof?: unknown;
}
```

## Notes

The demo and tests send it. The web app reads the same log over HTTP at /api/log.

## Document envelope

Every Trust Task uses this envelope. Replace `payload` with the structure shown above.

Shape of a document of this type:

```json
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/settle/processor/log/0.1",
  "issuer": "did:key:… (the sender)",
  "recipient": "did:key:… (the receiver)",
  "issuedAt": "2026-11-06T18:00:00.000Z",
  "payload": { … },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "verificationMethod": "did:key:…#…",
    "proofPurpose": "assertionMethod",
    "proofValue": "z…"
  }
}
```

---

This is the Markdown version of https://toip.tools/spec/settle/processor/log/0.1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
