Skip to content

feat(pairing): support explicit interop payloads#1840

Draft
brow wants to merge 1 commit into
mainfrom
payload-options
Draft

feat(pairing): support explicit interop payloads#1840
brow wants to merge 1 commit into
mainfrom
payload-options

Conversation

@brow

@brow brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

What changed?

Add paired --payload-type and --payload options to buzz-pair source, allowing the generic NIP-AB interop CLI to send nsec, bunker, connect, or application-defined custom payloads verbatim.

The existing raw-nsec behavior remains the default. The README now includes a Buzz workspace payload example and distinguishes its HTTP API URL from the WebSocket pairing relay.

Why?

This lets the conformance tool impersonate application-specific pairing sources, including Buzz desktop, without baking a Buzz-only schema into the CLI or changing compatibility for existing users.

How is it tested?

Rust formatting, focused unit tests, and Clippy pass. The required pre-push suite passed Rust, desktop, and desktop Tauri checks; its workspace integration phase hit the two existing environment-sensitive buzz-auth keyfile failures (missing_key and bad_keyfile_permissions). The deep dual pre-review loop completed with no actionable findings.

Added tests:

  • Explicit payload type mapping and verbatim transfer
  • Paired argument requirements and --nsec conflicts
  • Legacy --nsec behavior

Add paired payload type and content flags while preserving the existing nsec behavior. Document the Buzz workspace payload shape and cover argument validation and verbatim interop payload handling.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
@brow

brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

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.

1 participant