Skip to content

docs: add generic session intent#280

Open
brendanjryan wants to merge 2 commits into
mainfrom
brendanjryan/generic-session-intent
Open

docs: add generic session intent#280
brendanjryan wants to merge 2 commits into
mainfrom
brendanjryan/generic-session-intent

Conversation

@brendanjryan

@brendanjryan brendanjryan commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add a generic session intent spec with minimal shared request fields, lifecycle semantics, transport guidance, receipts, errors, and security considerations

Over the last few months since launch of MPP and specifically the session intent, we have seen a lot of interest in expanding this to new payment methods, including blockchains and cards. A shared intent will help implementors maintain parity with the core control flows while allowing individual payment methods to extend with their own functionality and invariants.

In addition, this PR aligns the two existing session intents, Tempo and Lightning, specs to reference the generic session intent instead of re-registering it

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Spec Preview

Spec Changed Artifacts
draft-card-charge-00 - HTML · TXT · XML · PDF
draft-evm-charge-00 - HTML · TXT · XML · PDF
draft-hedera-charge-00 - HTML · TXT · XML · PDF
draft-httpauth-payment-00 - HTML · TXT · XML · PDF
draft-lightning-charge-00 - HTML · TXT · XML · PDF
draft-lightning-session-00 Yes HTML · TXT · XML · PDF
draft-payment-discovery-00 - HTML · TXT · XML · PDF
draft-payment-intent-charge-00 - HTML · TXT · XML · PDF
draft-payment-intent-session-00 New HTML · TXT · XML · PDF
draft-payment-transport-mcp-00 - HTML · TXT · XML · PDF
draft-solana-charge-00 - HTML · TXT · XML · PDF
draft-stellar-charge-00 - HTML · TXT · XML · PDF
draft-stripe-charge-00 - HTML · TXT · XML · PDF
draft-tempo-charge-00 - HTML · TXT · XML · PDF
draft-tempo-session-00 Yes HTML · TXT · XML · PDF

Browse preview release assets

@brendanjryan brendanjryan marked this pull request as ready for review June 10, 2026 19:51

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d24a35e06

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +307 to +310
All payment methods implementing the "session" intent MUST support these
shared fields. Payment methods MAY require additional fields in
`methodDetails` or elevate OPTIONAL shared fields to REQUIRED in their
method specification.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow method-specific request fields used by methods

After this commit, the Lightning and Tempo session drafts are changed to reference this generic intent, but their request schemas still define method-specific top-level fields (depositInvoice/paymentHash in specs/methods/lightning/draft-lightning-session-00.md lines 321-328 and suggestedDeposit in specs/methods/tempo/draft-tempo-session-00.md line 517). Requiring additional fields to live only in methodDetails makes those existing method documents non-conformant and can lead clients to encode incompatible requests; either allow method specs to define top-level extensions or move the existing fields under methodDetails.

Useful? React with 👍 / 👎.

Comment on lines +707 to +708
| `intent` | string | The string `"session"` |
| `reference` | string | Stable method-defined session reference |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align Tempo receipts with mandatory session reference

This mandatory reference conflicts with the Tempo session spec that this commit now points at the generic intent: its Receipt section says an optional txHash serves as the core reference and is absent for off-chain voucher updates (specs/methods/tempo/draft-tempo-session-00.md lines 1367-1369). Those successful paid-service/lifecycle responses would be required by this draft to include a stable session reference, so implementers cannot satisfy both specs until Tempo is updated to emit something like channelId as reference or this requirement is relaxed.

Useful? React with 👍 / 👎.

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