Skip to content

open-pool claiming may be silently degraded under access-scoped relay REQs — seller has zero CLOSED observability #172

Description

@orveth

Split out from #171 (marketplace-level, independent of the reconnect wedge).

The relay (buzz e18020a63) now access-scopes global/channel-less REQ results and emits NIP-01 CLOSED on rejected subscriptions. Two consequences for sellers running broad open-pool filters (claim_open_pool):

  1. Silent degradation: if a broad filter is rejected or its results scoped down, the seller can be limited to targeted offers (or deaf entirely) while still heartbeating accepting=true — buyers see a live seller that never claims.
  2. Zero observability on the seller node: the notification loop handles only Event and Shutdown — no Message/Closed arm — so a CLOSED subscription is dropped by the SDK with no log line and no re-subscribe. The pre-cutover binary at least had a loud, offer-sub-specific fallback (degrade to #p==self + log; seller_daemon/mod.rs:4160ff).

Current field datum (weak but real): the old-binary fleet's broad REQs appear to be accepted under scoping (offers received post-flip, zero fallback fires), so this may not be biting today — but nothing on dev would tell us if it started.

Asks:

  • Restore CLOSED observability on the seller node (part of seller node: in-process relay reconnect never re-authenticates (NIP-42) — fresh boot always works #171's fix — port the fallback semantics, extended beyond the offer sub).
  • Add a periodic subscription-liveness self-check (e.g. the seller's own heartbeat round-trip already proxies this; assert offers-sub liveness distinctly).
  • Document the relay's access-scoping contract for marketplace clients (which filters are scoped/rejected and how a client should detect it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions