mirror of
https://github.com/block/buzz.git
synced 2026-11-01 06:51:17 +00:00
The agent harness now subscribes to its own gift-wrap inbox (kind 1059, #p = agent) alongside membership notifications, unwraps each, recovers the inner kind-9 rumor (verified sender + h tag), and forwards it as a normal SproutEvent. The respond-to allowlist gate and rule matching run unchanged — so an agent in an encrypted private channel only responds to blessed npubs, exactly as on the Sprout server. - send_gift_wrap_subscribe (mirrors observer-control), tied to membership sub (active + reconnect restore) - dispatch: 1059 on GIFT_WRAP_SUB_ID -> UnwrappedGift -> rumor_to_event - rumor_to_event: UnsignedEvent -> Event (seal already verified sender; pipeline never reads .sig) - nip59 enabled workspace-wide; unit test covers unwrap->channel event