Trust Recorder

How the Trust Recorder writes your managed agents into a trust registry under the Authority you choose, how its records complete the trust chain partners check, and where its outcome shows in the dashboard.

A partner’s Trust Check returns NOT_RECOGNIZED for your agent until the trust registry holds a record saying who owns that agent, and adding a record by hand for every new managed agent falls behind as your surfaces change. The Trust Recorder is a surface canvas element that writes those records for you. When a managed agent responds or, from version 1.0.10, calls out through a Transit Point, the gateway records it in each configured trust registry under the Authority you choose. Each agent on the surface then becomes visible to partners’ Trust Checks without anyone editing the registry, and the dashboard shows whether each agent was recorded. Record your agents in a trust registry →

What the Trust Recorder writes

A Trust Recorder holds up to 10 entries. Each entry writes agent-registration records to one trust registry and names the Authority that asserts every record it writes. An entry can write two kinds of record:

  • Built-in triple: the ownedAgent record, which says that the Authority owns the agent: [Authority] Agent DID is ownedAgent. It is on by default, and the gateway fills in the agent’s DID.
  • Custom resources: extra records with an action and a resource you define, for example invoke on paymentAgent. Each one names the agent’s DID or the entry’s Issuer DID as its Entity, and has the Record Type recognition or authorization.

Records written for a managed agent carry the agent’s display name, taken from the surface name, as context. For the names the gateway publishes to a registry, see How names reach the trust registry.

When records are written

The Trust Recorder sits on the Managed Agent → Access Point edge, the response leg. It runs after the managed agent responds, because the agent’s DID comes from the reply, and also when the agent’s card is fetched, so an agent can be recorded before its first message. It records the managed agents whose DIDs the surface’s Identity element derives.

From version 1.0.10, a Trust Recorder can also sit on a Managed Agent → Transit Point edge, on any Transit Point. There it runs on the request leg, as the managed agent calls out, and records the DID the managed agent calls out under through that Transit Point. It writes on every request through the Transit Point except a discovery read. This is the record that a managed-agent Trust Check on the same Transit Point asks about, so the two together let your own policy refuse an agent whose recognition was withdrawn. To withdraw an agent, set its record’s status to not recognised rather than deleting the record. The recorder re-creates a deleted record on the next call, but leaves an existing record’s status unchanged.

Recording runs in the background. The response returns to the caller without waiting for the registry, and a failed write is logged without affecting the request. A record that the registry already holds counts as already existing rather than as a failure, so the recorder can run on every response without creating duplicates.

How the trust chain is recorded

A Trust Check gets a positive answer only when the registry holds a matching record. Three records link an organisation to one of its agents, through an Issuer: a gateway entity with its own DID that stands for the part of your organisation that owns the agents. The gateway writes all three records itself.

Three records link your organisation to a managed agent. The Authority DID, your gateway's DID by default, recognises the Issuer and lets it register agents: records 01 and 02, written when you register the Issuer. The Issuer owns the managed agent: record 03, is ownedAgent, the focus of the diagram, written by the Trust Recorder when the agent responds or, from version 1.0.10, calls out through a Transit Point. A partner's Trust Check asks for record 03, with your Issuer as Authority ID and the agent as Entity ID. Three records link your organisation to a managed agent. The Authority DID, your gateway's DID by default, recognises the Issuer and lets it register agents: records 01 and 02, written when you register the Issuer. The Issuer owns the managed agent: record 03, is ownedAgent, the focus of the diagram, written by the Trust Recorder when the agent responds or, from version 1.0.10, calls out through a Transit Point. A partner's Trust Check asks for record 03, with your Issuer as Authority ID and the agent as Entity ID.
RecordAuthorityEntityAction and resourceWritten when
Issuer registrationThe Issuer’s Authority DID, your gateway’s DID by defaultThe Issueris registeredDepartment, by defaultYou add an Issuer with a trust registry selected, or select Retry TR Registration.
Right to register agentsThe Issuer’s Authority DIDThe Issuerregister agentsTogether with the Issuer registration.
Agent ownershipThe Trust Recorder entry’s Authority, usually the surface’s IssuerThe managed agentis ownedAgentThe managed agent responds through a surface with a Trust Recorder or, from version 1.0.10, calls out through a Transit Point that has one.

The first two records place the Issuer under the organisation that vouches for it. By default, the resource is registeredDepartment, kept from an earlier name for Issuers so that records already in registries still match. If your trust registry expects registeredIssuer, contact Affinidi support. The Authority DID is fixed when you create the Issuer, so ask the registry’s administrator which DID they expect before you save it.

If registration fails, for example because the registry’s administrator has not yet allowed your gateway to write records, the Issuer shows Registration failed in the Issuers list, and Failed under TR Registration Status on its page, until you select Retry TR Registration there.

The third record is the one a partner’s Trust Check usually asks about, and it is the one the Trust Recorder writes. A Recognition query with default Action and Resource asks whether its Authority ID owns the agent with is ownedAgent. When the partner uses your Issuer’s DID as that Authority, the record must name your Issuer as its Authority.

Which Authority each record names

Each entry’s Authority decides whose DID the records name as the trust anchor:

  • Use surface Issuer: the records name the Issuer selected in the surface’s Issuer setting, resolved when the record is written. This is the usual choice, because it writes the record a partner finds with your Issuer’s DID as its Authority ID. When the surface has no Issuer, or its Issuer has been deleted, the entry is skipped and writes no records.
  • Explicit DID: the records name one of your configured Authorities or Issuers. Selecting your Issuer writes the same record as Use surface Issuer. Selecting an Authority writes records under that Authority’s DID, which suits a registry where a parent organisation vouches for every agent directly.

The entry’s own Issuer field is separate from its Authority. It fills the Entity of custom records whose Entity Target is Issuer DID, and it neither signs records nor sets the Authority.

From version 1.0.9, an Authority that a Trust Recorder entry uses can’t be deleted from the Authorities tab. An entry that still names an Authority deleted earlier writes no records, and shows Authority deleted on the canvas. The surface can’t be saved until the entry uses another Authority, an Authority with the same DID is added again, or the entry is removed. See Deleted Authorities.

Where it appears in the dashboard

  • Surface canvas: Trust Recorder is in the Security & Policy section of the palette. You drop it on the Managed Agent → Access Point edge, or from version 1.0.10 on a Managed Agent → Transit Point edge, and its panel opens the entries with Configure Trust Recorder…. The panel says which leg the recorder writes on.
  • Surface node: the Issuer setting that Use surface Issuer reads.
  • Trust Recorder panel: on a saved surface, the Last outcome row shows the most recent recording attempt, with its status and record counts.
  • Identity › Agent Identities: the Recorder column shows the same status for each managed agent of a surface with a Trust Recorder. A Transit Point recorder’s status shows in the entry’s Version History.
  • Agents: the Trust registry column shows Recorded when any identity of the agent was written to a trust registry. See Agents.
  • Identity › Issuers: each Issuer’s registration status, which covers the first two records of the chain.

The status is one of Recorded, Partly recorded, Failed, Skipped, or Not attempted yet, with a reason such as Registry rejected the record or Surface has no Issuer when one applies. It is the recorder’s last known outcome, not a live check of the registry. For every status and reason, see Last outcome.

Relationship to Trust Checks

The Trust Recorder writes records, and a Trust Check reads them. A Trust Recorder makes your agents recognisable to partners. To decide which agents your own surface accepts, you add a Trust Check instead. Between two organisations, each one usually runs one side: the organisation whose agents make the calls records them, and the organisation receiving the calls checks them. For both sides set up end to end, see Verify agents across organisations with a trust registry.

Further reading

The Trust Recorder at work, and the steps behind it: