Secure Agent Messaging
Every message between agents goes through one messaging layer — within a team, across teams and workspaces, and across organisations. Inside your organisation it applies your permissions and logs every exchange. Between organisations it adds cryptographic identity, mutual TLS, a deny-by-default policy and receipts signed by both sides.
Inside your organisation
| Scenario | Example | What applies |
|---|---|---|
| Same team | Sales Rep to Sales Manager | Agent permissions, audit |
| Across teams | Sales Rep to Marketing Lead | Team and agent permissions, audit |
| Across workspaces | Sales workspace to HR workspace | Workspace isolation: only an explicitly set-up link lets agents reach another workspace |
The agent communication tools (ask_question, send_message, request_handoff,
request_escalation, request_recalibration) use it automatically.
Permission levels
Permissions are checked at four levels; the most restrictive wins:
Tenant (master switch) → Project (scope) → Team (bulk settings) → Agent (fine-grained)
Turned off at tenant level, no agent of the organisation sends or receives messages, whatever the project, team or agent settings say.
Between organisations
Each organisation runs its own identity authority (SPIFFE/SPIRE) for its own trust domain — for
example meetloyd.com or yourcompany.com. There is no shared hub: two organisations connect
directly, and only after an admin on each side has agreed.
| Layer | What it guarantees |
|---|---|
| Identity | Every agent has a SPIFFE ID issued by its own organisation, e.g. spiffe://yourcompany.com/tenant/…/agent/… |
| Pairing with pinned keys | Verifying a trust fetches the partner's keys and pins them. A routine key rotation is accepted; replacing every pinned key at once is not — the trust is quarantined until a person confirms the new fingerprints with the partner |
| Mutual TLS | Messages between organisations travel only over mutual TLS between the two installations' federation endpoints, each side presenting its SPIFFE certificate. A message that does not come through that channel is refused |
| Certificate-bound tokens | Each message carries a token valid for five minutes, usable once, and bound to the certificate it travelled with: a stolen token is useless |
| Trust policy | Deny by default: which of the partner's agents may contact you, which of your agents they may reach, what they may send, which tools your agents may use when answering, the most sensitive data accepted and sent (C1–C4), an end date |
| Partner content is untrusted | A partner's message is screened before it reaches an agent; an agent answering a partner has no tools unless the policy names them, and each tool call then waits for a person |
| Signed receipts | For every message both sides sign what they did — sent, accepted or refused — and keep each other's receipt. Each receipt is tied to the signer's tamper-evident audit log, so neither side can later rewrite what happened |
| Revocation | Revoking a trust takes effect at once on your side, and a signed notice tells the partner, which suspends its side |
Every exchange with another organisation appears in the Audit Cockpit as a Partner org event: the partner, both decisions, and whether the partner's receipt verified.
Setting it up
1. Pair with the other organisation
In Agent network → Trusted organisations, an admin on each side adds the other: its name (how your agents will address it), its trust domain and its endpoint. Verify fetches the partner's keys, pins them and activates the trust.
2. Set what the partner may do
On the trust, open the policy (shield icon). Nothing is allowed until you name it:
| Setting | What to enter |
|---|---|
| Their agents allowed to contact us | Partner SPIFFE IDs — a full ID for one agent, or a prefix ending in / for a group (e.g. all agents of one of their tenants) |
| Our agents they may reach | Pick from your agents |
| What they may send | Questions, tasks, events |
| Tools our agents may use when answering | Usually none; each call is approved by a person |
| Most sensitive data accepted / sent | C1 public … C4 secret |
| Only over mutual TLS | On (keep it on) |
| Ends on | Optional end date |
The policy shows what is in force now each time you open it, and every change is recorded.
3. Open the agents concerned
On an agent's page, Messages with other agents and organisations: turn on Secure agent messaging, then Inbound (it may be contacted) and/or Outbound (it may contact others), optionally restricted to named callers or targets.
4. Work together on a project or a team
Instead of opening agents one by one, you can invite a paired organisation to collaborate: in Agent network → Collaborations, choose the project or team, the roles you need, which of your agents each role works with, what it may do and an end date. The partner accepts by naming its agents for each role. The collaboration then grants exactly that access, and nothing else, until it ends.
From a project's positions. On a project's Staffing tab, each position can also be filled with an agent of a paired organisation: choose An agent of a partner organisation, pick their agent from the agents they publish, and say what it may do. The invitation is built from the position (its role, mission and the project's end date) and proposes the agent you picked; the partner's answer starts from that agent. Once accepted, the position shows who staffs it.
Code work on your repositories. A role can name repositories it works on, picked from your
connected git accounts, and whether it may push to its own branches. The partner's agent then
works in a sandbox on your side, never on theirs, and its git goes through your installation's git
relay. Your git token is added by your installation for each request; it is never placed in the
sandbox, so the partner has nothing to read or take away. Their agent may push to its own branches
(partner/<their domain>/…) when you allowed it; any other push, to your main branch for example,
waits for one of your people to approve it, then goes through. Every fetch and push is recorded.
Ending it. Either side can close it (the work is done) or revoke it (stop now). Access ends on your side at once, and the partner is told with a signed notice.
When you close, the notice also states the work that was done: the messages exchanged (each identified by its signed receipt and a fingerprint of its content, never the content itself), the tools the partner's agents called on your side and, on a project, its milestones with their approvals and proofs. You see that statement before you confirm.
Answering the partner's statement. When the partner closes, the collaboration shows Awaiting your answer. Open Review the work: the statement is shown together with a check against your own receipts for the same messages, so you can see whether both sides recorded the same exchange. You then accept it, or dispute it with a reason. Your answer is signed and sent to the partner. An accepted closure means both organisations hold a signed record that the work was done. On a project, it is also listed with the project's proof of execution.
Listing agents in directories
Publishing an agent so other organisations can discover it is done once, in Agent network → Published agents — for your public catalog and every directory you connect.
Troubleshooting
| Message | What to do |
|---|---|
| "… is not an allowed partner agent" | Add that SPIFFE ID (or a prefix covering it) to the trust policy |
| "the trust policy requires mTLS" | The partner reached you outside the mutual-TLS channel; both installations must use it |
| "request did not come through the federation mTLS listener" | Same cause, seen by the receiving side |
| "agent … does not accept inbound … calls" | Turn on Inbound for that agent |
| "No active federation trust" | Verify the trust, or check it was not suspended or revoked |
| Messaging disabled at tenant level | Ask your admin to turn on the master switch |
Best practices
Allow one partner agent to reach one of yours for one kind of request, then widen as trust builds.
Prefer a trust and policy scoped to a project, with an end date, over an organisation-wide opening.
Before connecting a partner, try a link between two workspaces of your own organisation.
Every exchange is signed and logged. Review Partner org events in the Audit Cockpit regularly.
Next: Learn about Workflows for multi-step, multi-agent processes.