mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The managed "Active Agents" table in ~/.buzz/AGENTS.md was rendered from every managed-agent record with no filtering, so archived duplicate instances and records pinned to defunct relays kept appearing under the active relay's header. Two independent, separately-tested predicates now gate each record: - Relay scope: a local check that the record's relay_url equals the active workspace relay (normalized: trim, drop trailing slash, lowercase). Unconditional — there is no fetch to fail open on. - Identity archive: skip pubkeys present in the relay's kind:13535 snapshot. Local records can't tell — they all carry is_active: true (archived *definition*, not identity-archived), so archive truth lives only relay-side. Fails open: an unreachable relay yields an empty set and hides no one. The archive read is async, so try_regenerate_nest spawns the regen as a fire-and-forget task (matching its existing contract) rather than changing its 12 sync call sites. A just-archived agent may linger one regen cycle. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>