Skip to content

feat(dvm): add NIP-89 handler recommendation and information kinds - #737

Open
Priyanshubhartistm wants to merge 2 commits into
cameri:mainfrom
Priyanshubhartistm:feat/dvm-nip89-discovery
Open

feat(dvm): add NIP-89 handler recommendation and information kinds#737
Priyanshubhartistm wants to merge 2 commits into
cameri:mainfrom
Priyanshubhartistm:feat/dvm-nip89-discovery

Conversation

@Priyanshubhartistm

@Priyanshubhartistm Priyanshubhartistm commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds NIP-89 discovery for DVM job requests: named EventKinds constants HANDLER_RECOMMENDATION = 31989 and HANDLER_INFORMATION = 31990, plus tests confirming both are already passively accepted, served, and replaced correctly.

  • Both kinds sit inside the existing parameterized-replaceable range (30000-39999), so
    ParameterizedReplaceableEventStrategy already handles create/replace/serve for them no new handler code, only named constants for clarity.
  • The relay does not author its own kind-31990 on behalf of locally-registered workers, and there is no heartbeat/withdraw-on-crash publishing subsystem — confirmed out of scope for passive-only discovery.
  • 2 unit tests in event-strategy-factory.spec.ts confirm both kinds route to
    ParameterizedReplaceableEventStrategy.
  • 6 integration scenarios (test/integration/features/nip-89/) cover, for each kind: create + serve, replace-on-d-tag-collision, and kind-only REQ filter discovery.

Related Issue

Part of #639. Closes #736.

Motivation and Context

Job requests (#729), persistence (#727), and dispatch (#731) exist, but there was no way for clients to discover which DVMs a relay's workers can talk to. Passive accept-and-serve (over relay-authored handler-info with a heartbeat) was the scope confirmed with the maintainer.

Signed-off-by: Priyanshubhartistm <bhartipriyanshustm@gmail.com>
Signed-off-by: Priyanshubhartistm <bhartipriyanshustm@gmail.com>
@changeset-bot

changeset-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d41f8c6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nostream Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 71.001% (+0.008%) from 70.993% — Priyanshubhartistm:feat/dvm-nip89-discovery into cameri:main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support NIP-89 discovery for DVM job requests (kind-31989 / kind-31990)

2 participants