Give managed agents persistent cryptographic identities (#15352)

Give agents persistent Ed25519 identities encrypted with the existing instance master key. Create keys transactionally for new agents and lazily before supported managed runs, expose public identities in the API and agent UI, and protect private material during runtime delivery and output persistence.

Preserve identities in recovery backups while giving imported and development-cloned agents fresh keys.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-10-06 13:57:03 -05:00
1 parent d9f600043f
commit a590ab769d
73 files changed
+2014 -63

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
import type { AgentPublicIdentity } from "@paperclipai/shared";
import type {
Agent,
ConnectionIntentInteraction,
@@ -109,6 +110,8 @@ function agentPath(id: string, companyId?: string, suffix = "") {
}
export const agentsApi = {
getIdentity: (id: string, companyId?: string) =>
api.get<AgentPublicIdentity | null>(agentPath(id, companyId, "/identity")),
adoptAiConnection: (agentId: string, interactionId: string, connectionId: string, companyId: string) =>
api.post<ConnectionIntentInteraction>(withCompanyScope(`/agents/${agentId}/connection-intents/${interactionId}/adopt`, companyId), { connectionId }),