Agents in production have to sign things. Decision tokens that will be verified by downstream systems. Receipts that go to the audit record. Agent-to-agent messages that cross trust boundaries. All of them need cryptographic signatures the receiver can verify against a public key the sender publishes.
The naive design hands each agent a long-lived keypair and hopes the key never leaks. The agent carries the key in memory, in a config file, in a secret the deployment platform injects at startup. Over months, keys get rotated badly, copied for debugging, logged by accident, and eventually leaked.
The signing adapter does something simpler and safer: the venue (the running instance of the Covia coordination layer the agent executes within) holds the signing keys. Agents request signatures. The private key never leaves the venue secret store.
This piece explains why agents cannot be trusted with long-lived keys, how the adapter model splits key custody from signature production, how ephemeral per-session keypairs work for message signing, how key rotation and compromise are handled, and what goes into the record.
Why agents cannot be trusted with long-lived keys
The failure modes of giving an agent its own long-lived keypair are familiar in security reviews.
Keys in prompts. Many agent frameworks pass tool-call parameters through the model. If the signing key is injected into the agent's context at startup, every subsequent prompt may contain the key or a derivative. Inference providers log prompts. Training feedback loops can retain prompts. Trace captures snapshot prompts. The key leaks through the model surface, which is a surface the agent operator does not control.
Keys in deployment logs. Secret-management tools fail routinely. A deploy pipeline echoes the secret value into a log by accident. The log is retained for 30 days. Any engineer with log access can retrieve the key.
Keys in process memory the operator does not own. Many agents run as serverless functions, in containers managed by a cloud vendor, or on managed inference platforms. The platform's operators can read process memory under some conditions. The signing key is in process memory.
Keys that outlive the agent. Agents are often ephemeral. The keypair is not. Over months, orphaned keys accumulate. Each orphaned key is a weak point.
A security review that walks these failure modes will not approve a long-lived agent key. The review is right. The design is wrong.
The adapter model: venue holds keys, agent requests signatures
The signing adapter inverts the custody. The venue holds the signing keys in its secret store, a component with narrower access than the agent process. The agent, at the point of action, asks the venue to sign a specific payload. The venue checks the agent's authority to request this signature, performs the signing with the key in the secret store, and returns the signed payload.
{
"operation": "v/ops/crypto/sign",
"input": {
"key_ref": "did:key:z6Mk...",
"payload": "sha256:7c3f...",
"purpose": "decision-token-authority-chain"
}
}The agent never sees the private key. The venue returns only the signature. The signature can be verified by any party with the public key, which the venue publishes through standard channels.
Four properties of this design matter.
The private key stays in the secret store. The secret store is a smaller surface than the agent process. It has fewer entry points, tighter access controls, and no model surface.
Authority is checked per signature. The venue checks whether this agent, at this moment, is permitted to request a signature for this purpose. The check is subject to the same policy and authority model as any other venue operation.
The purpose is in the record. Every signature request names its purpose. The record captures what the signature was for. An auditor can walk the record and reconstruct the chain of signatures, each with its purpose and the agent that requested it.
Key rotation does not require agent redeployment. The venue rotates keys on its own schedule. Agents continue requesting signatures. The venue uses the current key. No agent restart.
Ephemeral per-session keypairs for message signing
Some signing use cases do not need a long-lived identity key. Agent-to-agent messaging, for instance, often needs non-repudiation (the property that the sender cannot later deny they sent the message) within a conversation but not across conversations.
For these cases, the adapter mints an ephemeral keypair at the start of the agent's session. The public key is published to the message counterparty as part of the session handshake. The private key lives in the venue secret store for the session's lifetime. When the session ends, the key is discarded.
{
"operation": "v/ops/crypto/session-key",
"input": {
"session_id": "sess_7c3f...",
"ttl_seconds": 3600,
"purpose": "a2a-message-signing"
}
}Ephemeral keys close one more leak path. Even if the session's signing key were somehow extracted, it is useless after the session expires. The blast radius of an extraction is bounded by the session TTL.
Rotation and compromise
Rotation is a scheduled process the venue runs on its own cadence. For long-lived identity keys (venue DIDs, service DIDs, operator keys), rotation is usually quarterly. The venue publishes the new public key before the old one is retired. Verifiers accept both during the overlap window. New signature requests use the new key.
Compromise is a different scenario. If a key is suspected of compromise, the operator revokes the key in the secret store. Future signature requests under that key fail closed. In-flight requests under that key either complete inside the venue's current invocation or fail closed if they cannot. What the adapter guarantees is that no new work is signed under the compromised key after revocation.
Revocation is published to the same channels the public key was published through. Verifiers that read the revocation stop accepting the key. Anything signed under the key before revocation remains verifiable, which is sometimes the correct behaviour (an audit may still want to verify the pre-compromise signature) and sometimes the wrong one (the audit may want to treat all pre-compromise signatures as suspect). The adapter leaves that policy to the verifier. It exposes the revocation timestamp so the verifier can decide.
What the record contains
Every signature request produces a record entry. The entry names the agent that requested the signature, the key reference (not the key itself), the payload hash, the purpose, the authority check result, and the timestamp. The entry and the signature are written together to the venue's lattice (its signed, immutable record store).
The record stores the payload hash in place of the payload when the payload is large (an A2A message, a document attachment) or when the payload itself should not be retained in the audit trail. For payloads that need full retention, the record carries the payload. The adapter configuration names which operations retain full payloads and which retain hashes.
See the signing adapter documentation for the full operation list, the key-reference schema, and the configuration contract. See DIDs for agents for how the key references compose with Covia's identity model, and the UCAN capability model for how authority is checked per signature.
For the engineer
If the agent in your production system signs anything, the agent should not hold the key. The venue should. The agent requests signatures through the signing adapter, the venue checks authority, the venue signs, the agent gets the signed payload. The private material stays inside the venue secret store.
This pattern is what a serious enterprise security review requires. The alternative, long-lived keys handed to agents, fails on four separate leak paths before the first audit.
Covia's signing adapter implements this pattern as a first-class venue operation. The Covia grid is built around the venue holding cryptographic material and agents requesting operations on it.