Skip to content

feat(tempo): support refundable machine-token sessions - #800

Draft
parvahuja wants to merge 32 commits into
wevm:mainfrom
parvahuja:parv/machineusd-session-support
Draft

feat(tempo): support refundable machine-token sessions#800
parvahuja wants to merge 32 commits into
wevm:mainfrom
parvahuja:parv/machineusd-session-support

Conversation

@parvahuja

@parvahuja parvahuja commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Why

Merchants should accept machineUSD-funded Tempo charges and sessions without changing the payout token or recipient they advertise, while clients keep the same PathUSD and USDC workflow. Existing direct sessions and Mercator behavior must remain compatible.

What

  • Advertise machine-token support server-side and automatically select a verified, funded machineUSD route; otherwise use the challenged token directly.
  • Keep the selected session rail sticky and persist only the logical merchant/token scope when the physical descriptor differs.
  • Split charge and session helpers, preserve deployed charge routes for mixed-version clients, and use the unified router for sessions on mainnet and Moderato.
  • Enforce router authorization, exact close capture, full-deposit refund authorization, and PathUSD session fees.

@pkg-pr-new

pkg-pr-new Bot commented Aug 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@800

commit: 5c1769e

@parvahuja parvahuja changed the title feat: support machine-token sessions feat: simplify machine-token sessions Aug 14, 2026
@parvahuja parvahuja changed the title feat: simplify machine-token sessions feat(tempo): support refundable machine-token sessions Aug 15, 2026
@parvahuja
parvahuja force-pushed the parv/machineusd-session-support branch from a41dcee to 6ec5fe2 Compare August 18, 2026 16:55
Comment thread .agents/friction-log/20260818134157-headless-server-imports/friction.md Outdated
Comment thread .changeset/lightweight-server-entrypoints.md
Comment thread src/tempo/server/ChargeHtml.ts Outdated
Comment thread src/tempo/internal/defaults.ts Outdated
Comment thread src/tempo/internal/machine-token.ts Outdated
Comment thread src/tempo/internal/machine-token.ts Outdated
Comment thread src/tempo/internal/signature-envelope.ts
Comment thread src/tempo/server/headless.ts Outdated
Comment thread src/tempo/session/client/ChannelOps.ts
Comment thread src/tempo/session/server/CredentialVerification.ts Outdated
@parvahuja
parvahuja force-pushed the parv/machineusd-session-support branch from 6a9d22d to 6668151 Compare August 19, 2026 00:13
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