Skip to content

fix(desktop): preserve cross-install agent identities - #3441

Draft
Czaruno wants to merge 1 commit into
block:mainfrom
Czaruno:codex/fix-agent-definition-delete
Draft

fix(desktop): preserve cross-install agent identities#3441
Czaruno wants to merge 1 commit into
block:mainfrom
Czaruno:codex/fix-agent-definition-delete

Conversation

@Czaruno

@Czaruno Czaruno commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • expose retained owner-authored kind:30177 persona links as a non-runnable, community-scoped identity index, then use it in both mention deduplication and the definition Start action before minting a keypair
  • make deletion of a relay-synced/bodyless definition local-only so a secondary install cannot publish a kind:5 tombstone for the shared kind:30175
  • when a legitimate shared-definition tombstone arrives, snapshot linked local agents into standalone records, preserve their pubkeys/keypairs, and publish the repaired kind:30177 projections
  • add an edit-time relink path for already-orphaned agents so they can adopt an active definition without identity rotation
  • make tombstone suppression delivery-order independent and exclude deleted retained identities from the new reference index

Closes #3414.
Closes #3440.

Testing

  • pnpm test — 3,771 passed
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml --lib -- --skip relay_admission::tests — 1,843 passed, 14 ignored; the 13 unrelated relay-admission timing tests were skipped after the unfiltered run stalled in that pre-existing group with all completed tests passing
  • targeted identity-link, persona tombstone, retention ordering, detach, and relink regression tests
  • cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --lib -- -D warnings
  • pnpm typecheck
  • pnpm lint
  • pnpm check:file-sizes
  • pnpm check:px-text
  • pnpm check:pubkey-truncation

Signed-off-by: Larry Velez <LarryVelez@gmail.com>
@Czaruno
Czaruno force-pushed the codex/fix-agent-definition-delete branch from 147be9a to 0d512b1 Compare July 29, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant