Skip to content

Shared conversation enhancement#18

Merged
dvf merged 3 commits into
masterfrom
conversation-enhancement
May 23, 2026
Merged

Shared conversation enhancement#18
dvf merged 3 commits into
masterfrom
conversation-enhancement

Conversation

@dvf
Copy link
Copy Markdown
Owner

@dvf dvf commented May 23, 2026

Main changes:

  • synapse_p2p/types.py
    • Added ConversationEvent.
  • synapse_p2p/node.py
    • Added local conversation event log: node.conversation(...).
    • Added node.emit_conversation_event(...).
    • Added opt-in node.ack(...).
    • Added _synapse.conversation.event endpoint with dedupe + gossip.
    • Broadcasts now create a message event.
    • Replies now create reply conversation events.
    • Lifecycle hooks now support:
      • conversation.event
      • conversation.ack
      • conversation.reply
      • etc. based on event kind.
  • synapse_p2p/init.py
    • Exported ConversationEvent.
  • synapse_p2p/tests/test_broadcast.py
    • Added tests for message/reply event recording, ACK propagation, and event dedupe.
  • README.md
    • Added docs/examples for ACK and conversation events.
  • Updated CLI stuff

Important design stuff:

  • ACK is opt-in, not automatic.
  • Synapse does not decide who should reply.
  • Nodes can wade in or stay silent.
  • Higher-level agent frameworks can add their own event kinds.

dvf added 3 commits May 23, 2026 14:48
- Introduced `_ask` function to facilitate task requests to swarm nodes.
- Added `_loopback_only` and `_parse_key_value` helper functions for seed handling.
- Updated CLI command `ask` to broadcast tasks and stream ACKs/replies.
- Enhanced README with usage examples for the new ask functionality.
- Added tests for the new ask command and its behavior with replies and timeouts.
@dvf dvf added the feature label May 23, 2026
@dvf dvf merged commit 18bfb87 into master May 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant