mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 00:48:44 +01:00
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:
1 parent
d9f600043f
commit
a590ab769d
73 files changed
+2014
-63
No files matched your search
@@ -511,7 +511,8 @@ describe("worktree helpers", () => {
|
||||
expect(minimal.excludedTables).toContain("agent_task_sessions");
|
||||
expect(minimal.nullifyColumns.issues).toEqual(["checkout_run_id", "execution_run_id"]);
|
||||
|
||||
expect(full.excludedTables).toEqual([]);
|
||||
expect(full.excludedTables).toEqual(["agent_identity_keys"]);
|
||||
expect(minimal.excludedTables).toContain("agent_identity_keys");
|
||||
expect(full.nullifyColumns).toEqual({});
|
||||
});
|
||||
|
||||
@@ -2045,8 +2046,8 @@ describe("worktree helpers", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("uses streaming backup selection for full seeds and transformed backup selection for minimal seeds", () => {
|
||||
expect(resolveWorktreeSeedBackupEngine(resolveWorktreeSeedPlan("full"))).toBe("auto");
|
||||
it("uses transformed backups for both seed modes to omit agent identities", () => {
|
||||
expect(resolveWorktreeSeedBackupEngine(resolveWorktreeSeedPlan("full"))).toBe("javascript");
|
||||
expect(resolveWorktreeSeedBackupEngine(resolveWorktreeSeedPlan("minimal"))).toBe("javascript");
|
||||
});
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ export type WorktreeSeedPlan = {
|
||||
};
|
||||
|
||||
const MINIMAL_WORKTREE_EXCLUDED_TABLES = [
|
||||
"agent_identity_keys",
|
||||
"activity_log",
|
||||
"agent_runtime_state",
|
||||
"agent_task_sessions",
|
||||
@@ -118,7 +119,7 @@ export function resolveWorktreeSeedPlan(mode: WorktreeSeedMode): WorktreeSeedPla
|
||||
if (mode === "full") {
|
||||
return {
|
||||
mode,
|
||||
excludedTables: [],
|
||||
excludedTables: ["agent_identity_keys"],
|
||||
nullifyColumns: {},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user