#998·honcho

[Feature Request] Peer merge and peer delete API — peers are currently immortal and unmergeable

Author: menhguinCreated Aug 8, 2026Updated Sep 19, 2026
Labelsenhancementmaintainer-approved

✨ Feature Request

Is your feature request related to a problem?

Peers are currently immortal and unmergeable:

  • DELETE /v3/workspaces/{id}/peers/{peer_id} → 405 Method Not Allowed
  • No merge operation exists (API or SDK)

Any host-side identity bug that creates a wrong peer — and every host integration will eventually have one, e.g. a raw platform-user-ID fallthrough binding a peer to U0B7JE4MHK3 instead of pairie — is permanent. The wrong peer accumulates conclusions forever; the correct peer can't absorb its history; the only remediation is per-conclusion deletion at whatever scale the contamination reached (we just did this at ~7k conclusions, and the conclusions themselves re-derive from the session pool, so deletion alone doesn't even hold — see the cascade issue we're filing alongside this).

Describe the solution you'd like

Two operations, in priority order:

  1. Peer merge — POST /peers/{src}/merge (or equivalent): re-point src's sessions, conclusions (observer/observed), and card into dst, then retire src. This is the operation identity-remediation actually needs; it's what we had to simulate client-side by dumping and re-ingesting 404 sessions / 4,411 messages one at a time.
  2. Peer delete — full removal of a peer + its conclusions + its session associations, for peers that should never have existed (raw-ID orphans, test peers, typos like a lowercase duplicate).

Describe alternatives you've considered

  • Client-side re-ingest (what we did): works, but takes hours, re-runs the deriver over thousands of messages (unnecessary compute on your side too), and leaves the orphan peer + phantom associations behind.
  • Per-conclusion deletion: doesn't scale and doesn't hold (deriver re-derives from remaining conclusions/sessions).

Additional context

Host integrations resolve human identity differently (Slack IDs, Discord IDs, etc.), so "wrong peer created by host bug" is a when-not-if for any multi-user deployment. A merge primitive would make Honcho genuinely self-healing for identity mistakes. — filed after a real incident; happy to share details privately.


Placement (2026-09-11). The merge half is step 7 of the Schema Evolution spec, the Q1 identity wave, in this project. The delete half is DEV-1548 in Core Deletion Lifecycle (Q4).