Skip to content

Specify content-based GossipSub message IDs and shared vectors - #32

Merged
akru merged 4 commits into
masterfrom
copilot/define-content-based-gossip-sub-message-id
Dec 5, 2026
Merged

akru merged 4 commits into
masterfrom
copilot/define-content-based-gossip-sub-message-id

Conversation

@akru

@akru akru commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Identical signed telemetry envelopes should share a GossipSub ID across primary and fallback publishers, while non-sensors.social topics retain legacy behavior.

  • Protocol rule: Define full SHA-256 IDs over the domain separator, big-endian UTF-8 topic length, exact topic, and raw payload. Specify namespace boundaries and unchanged legacy callback delegation.
  • Integration guidance: Add JS/Rust reference calculations, byte-preserving publication requirements, and explicit separation of duplicate suppression from validation and acknowledgements.
  • Conformance fixtures: Add shared vectors covering peer independence, topic/payload differences, Unicode, length encoding, binary data, signed envelopes, and legacy selection.
  • Scope: Document the real primary/fallback GossipSub integration-test contract. Node implementations and executable integration tests remain work for their respective repositories.

@akru akru assigned Copilot and akru Dec 5, 2026
Copilot AI linked an issue Dec 5, 2026 that may be closed by this pull request
7 tasks
@akru akru changed the title [WIP] Define deterministic GossipSub message ID for sensors.social Specify content-based GossipSub message IDs and shared vectors Dec 5, 2026
Comment thread README.md Resolved
@akru
akru marked this pull request as ready for review December 5, 2026 06:02
@akru
akru requested a lite review from Copilot December 5, 2026 06:02
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 5, 2026, 6:08 AM

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Because this schema/documentation-only checkout cannot validate the required JS/Rust callback behavior, byte preservation, or real GossipSub primary/fallback deduplication across peers.

No open issues 🎉

What changed in this PR

Defines a content-based GossipSub Message ID v1 for sensors.social topics while preserving legacy behavior elsewhere.

Changes:

  • Documents topic-aware SHA-256 construction and namespace rules.
  • Adds JS/Rust reference calculations and integration guidance.
  • Adds shared content, Unicode, binary, signed-envelope, and legacy-selection vectors.
File Description
transport/​pubsub/​message-id-v1.json Provides shared GossipSub message ID conformance vectors for content hashing and legacy behavior.
README.md Documents Message ID v1, compatibility rules, reference calculations, and integration requirements.

Review effort: Lite

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@akru
akru merged commit 415e978 into master Dec 5, 2026
2 checks passed
@akru
akru deleted the copilot/define-content-based-gossip-sub-message-id branch December 5, 2026 06:08
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.

Content-based GossipSub Message IDs

3 participants