fix(marmot-interop): prompt operator to set DM Inbox relays too

Test 03 (wn creates a group, invites Amethyst) was failing at the
operator-visible level — "I don't see Interop-03 on Amethyst" — with
no clear signal in the Amethyst logcat because no kind:1059 welcome
gift wrap ever arrived.

Root cause: when wn invites Amethyst it fetches A's kind:10050 inbox
list and publishes the welcome gift wrap there. Amethyst's built-in
DM inbox defaults advertise auth.nostr1.com + relay.0xchat.com, which
wn (connected only to the five harness public relays) cannot reach.
Unless the operator manually adds the harness relays to Amethyst's
DM Inbox list, the gift wrap lands on relays the reader isn't
subscribed to, and the invite is silently dropped.

Confirmed empirically by adding wss://nostr.bitcoiner.social (one of
the harness relays) to Amethyst's DM Inbox list and watching
Interop-03 appear on the next wn create.

Update `instruct_amethyst_setup` to make the DM Inbox step explicit
and call out the specific failure mode it prevents. Also add a nudge
to verify NIP-65 + kind:10050 were actually republished after the
relay list edits.
This commit is contained in:
Claude
2026-04-22 20:42:44 +00:00
parent f0eaff638e
commit 34f6be225f
+12 -2
View File
@@ -420,8 +420,18 @@ instruct_amethyst_setup() {
1. Settings -> Relays: add the following as READ+WRITE
$list
2. Settings -> Key Package Relays: add the SAME URLs
3. Trigger key-package publish (toggle KP relay on/off if needed)
4. Confirm your Amethyst account is logged in with npub: $A_NPUB"
3. Settings -> DM Inbox Relays (NIP-17/kind:10050): add the SAME URLs.
CRITICAL for Test 03+: when wn invites Amethyst it fetches A's
kind:10050 and publishes the welcome gift wrap there. Amethyst's
built-in DM inbox defaults (auth.nostr1.com, relay.0xchat.com)
are not reachable from the wn daemon in this harness, so unless
the five harness relays are in the 10050 list the gift wrap lands
on relays Amethyst-the-reader isn't subscribed to.
4. Trigger key-package publish (toggle KP relay on/off if needed).
5. Re-publish the NIP-65 + DM-inbox lists if Amethyst hasn't already
(relay toggles usually republish automatically; verify by looking
for kind:10002 / 10050 in any relay inspector).
6. Confirm your Amethyst account is logged in with npub: $A_NPUB"
}
# ==== tests ==================================================================