Skip to content

MailboxRPC 3/7: contract notes (non-normative) - #87

Merged
Roasbeef merged 1 commit into
mainfrom
mailbox-contract-docs
Feb 10, 2026
Merged

MailboxRPC 3/7: contract notes (non-normative)#87
Roasbeef merged 1 commit into
mainfrom
mailbox-contract-docs

Conversation

@bhandras

Copy link
Copy Markdown
Member

Summary

Adds RPC_MAILBOX_CONTRACT.md: non-normative contract notes that complement the
implementation-ready spec in lightninglabs/darepo#71.

Motivation

Review churn on the core contract is high right now. Keeping these notes in the
public client repo makes it easier to iterate without referencing private repos
or local scratchpads.

References

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @bhandras, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new documentation file, RPC_MAILBOX_CONTRACT.md, which outlines non-normative contract notes for an RPC-over-mailbox transport. The primary goal is to provide a public and accessible reference for design considerations and constraints, thereby streamlining the development and review process by reducing reliance on internal documentation and accelerating iteration on the core contract.

Highlights

  • New Documentation Added: A new document, RPC_MAILBOX_CONTRACT.md, has been added to the repository.
  • RPC-over-Mailbox Contract Notes: The new document provides non-normative contract notes and design constraints for an RPC-over-mailbox transport, serving as a 'scratchpad' companion to an existing implementation-ready specification.
  • Reduced Review Churn: The motivation for adding these notes to the public client repository is to make it easier to iterate on the core contract and reduce review churn by avoiding references to private repositories or local artifacts.
  • Detailed Contract Aspects: The document thoroughly covers various aspects of the RPC-over-mailbox contract, including its scope, high-level model, addressing and routing, idempotency and retries, correlation, ordering, ack watermark behavior, long-poll pull, payload encoding, error handling, and versioning/extensibility.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces RPC_MAILBOX_CONTRACT.md, a non-normative document outlining the design and constraints for an RPC-over-mailbox transport. The document is well-structured and clearly explains the high-level model, idempotency, correlation, ordering, and other important aspects of the contract. My review includes a couple of suggestions to enhance clarity regarding the relationship between idempotency keys and correlation IDs, and the location of the idempotency key within the envelope. Overall, this is a valuable addition that will help developers understand the system.

Comment thread RPC_MAILBOX_CONTRACT.md Outdated
Comment thread docs/RPC_MAILBOX_CONTRACT.md
@bhandras
bhandras force-pushed the mailbox-contract-docs branch from d362252 to 7864dfe Compare January 16, 2026 16:45
@bhandras bhandras changed the title docs: add RPC mailbox contract notes MailboxRPC 3/8: contract notes (non-normative) Jan 16, 2026
@bhandras bhandras changed the title MailboxRPC 3/8: contract notes (non-normative) MailboxRPC 3/7: contract notes (non-normative) Jan 17, 2026
@bhandras
bhandras force-pushed the mailbox-contract-docs branch from 7864dfe to 8e5affc Compare January 17, 2026 09:15
@bhandras
bhandras force-pushed the mailbox-contract-docs branch from 8e5affc to 32f02e6 Compare January 17, 2026 09:56
@bhandras
bhandras force-pushed the mailbox-contract-docs branch 2 times, most recently from 7959213 to af6a475 Compare January 17, 2026 13:54
@bhandras
bhandras force-pushed the mailbox-contract-docs branch from af6a475 to 9252589 Compare January 17, 2026 14:51
@bhandras

Copy link
Copy Markdown
Member Author

@codex review pls

@chatgpt-codex-connector

Copy link
Copy Markdown

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

@litbot-9000

Copy link
Copy Markdown
Collaborator

@bhandras, remember to re-request review from reviewers when ready

@Roasbeef
Roasbeef changed the base branch from mailbox-contract to main February 10, 2026 22:39
@Roasbeef
Roasbeef force-pushed the mailbox-contract-docs branch from 9252589 to 48ba332 Compare February 10, 2026 22:41

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 🐸

@Roasbeef
Roasbeef merged commit e548f43 into main Feb 10, 2026
17 checks passed
@bhandras
bhandras deleted the mailbox-contract-docs branch February 20, 2026 16:20
ellemouton pushed a commit that referenced this pull request Mar 17, 2026
ci: fix workflow to trigger on master branch
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.

3 participants