Start with the registry entry.
An at:Agent can have several identity records. A registry entry refers to an identity through at:entryFor, identifies the registering agent through at:registeredBy and links to a signed agent card through at:entryCard. A reader can follow those links to see who was described and who supplied the record.
The card advertises a capability through at:advertisesSkill. A skill describes how to perform an operation that realizes that capability. These relationships give the studio a way to discover an ability across versions of a skill.
Keep the query and its candidates together.
A discovery service searches an agent registry. A particular at:AgentDiscovery links to its query through at:answersQuery and to the candidate set through at:generatedAgentCandidateSet. Each at:candidateAgent link identifies an agent in that set.
The studio can explain why it considered a supplier. Its advertised capability matched the question under the selection policy used for this search. A different policy can yield a different shortlist.
Check authority for the actual request.
The card describes what the agent offers. The studio must still decide which payee, asset and amount it is willing to authorize. Before moving funds, the executor checks the current mandate against those exact terms. A receipt can then connect the observed action to the mandate used.
Read about delegation or change the mandate in the payment walkthrough.