Add MCP-based delivery ack spec — replaces brittle echo detection#43
Open
khaliqgant wants to merge 1 commit intomainfrom
Open
Add MCP-based delivery ack spec — replaces brittle echo detection#43khaliqgant wants to merge 1 commit intomainfrom
khaliqgant wants to merge 1 commit intomainfrom
Conversation
|
Preview deployed!
This preview shares the staging database and will be cleaned up when the PR is merged or closed. Run E2E testsnpm run e2e -- https://pr43-api.relaycast.dev --ciOpen observer dashboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This spec proposes replacing the current brittle PTY echo-based delivery acknowledgment with an MCP-native approach. Since relaycast MCP is now the only communication channel for agents (no file-based outbox, no inline
->relay:protocol), we can leverage MCP tool calls themselves as implicit delivery confirmation.Key insight: When an agent calls
relay_sendafter receiving a message, that MCP call is the ack — no pattern matching needed.How it works
delivery_idrelay_sendMCP call → relaycast correlates and marks delivery asconfirmedtimeoutinjected → confirmed | timeoutWhat this replaces
inject.rsrelay-ptyImplementation phases
sendAndWaitForDelivery()integrationEst. effort: 2-3 days
🤖 Generated with Claude Code