Skip to content

v0.22.0

Latest

Choose a tag to compare

@tempo-github-sts tempo-github-sts released this 23 Nov 15:28
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.
adc7347

Minor Changes

  • Changed the MCP client to pay only the best-ranked offer and return its error, as mppx does, instead of paying another offer after a failure that might already have moved funds. Added MppError::UnknownPaymentOutcome so providers of any method can report an unknown outcome without a transaction hash. (by @rkrasiuk, #739)
  • Added Zone payments to the Tempo charge method, as mppx does: servers accept them with TempoBuilder::zones (and, with TempoBuilder::zone_credential_grace, a late zone Credential whose withdrawal settled before its Challenge expired) and verify the new zone Credential against the Zone portal's settlement on Tempo, and clients pay from a Zone balance with TempoProvider::with_zone, resuming an outstanding withdrawal instead of paying the same terms twice. TempoMethodDetails gained a zones field and PayloadType a Zone variant, so exhaustive literals and matches need updating. (by @rkrasiuk, #739)
  • Added TIP-1166 configurable account vouchers for TIP-1034 sessions: servers opt in with SessionMethod::with_configurable_vouchers (advertised as configurableVouchers) and track each channel's opening_commitment, and clients sign with TempoSessionProvider::with_configurable_voucher_signer. Session snapshot recovery checks a configurable voucher against the channel's opening commitment (hydrate_session_snapshot_with_opening_commitment). Defaults are unchanged. ChannelState gains the public opening_commitment field, so code that builds it with a struct literal must set it (None when unknown). (by @rkrasiuk, #739)

Patch Changes

  • Fixed session restoration authorizing an extra request and recovered payments exceeding the local spending cap, while preserving close of previously authorized amounts. Bounded management error response bodies. (by @rkrasiuk, #739)
  • Rejected received challenges and echoed credentials whose header auth-param is anything but Payment-Authorization in any case (including an explicit Authorization or an empty value), skipping such challenges so another challenge in the same response can still be paid, as mppx does. A locally built challenge or echo whose header is Authorization in any case now serializes without it, as mppx does, and serializing any other unsupported value fails. mcp::extract_result_challenges now returns an empty list instead of None when every challenge was rejected for its header, so McpClient rolls back a paid retry answered that way instead of committing it. (by @rkrasiuk, #739)
  • The HTTP and MCP clients resent the same Credential when the server offered the Challenge it had just answered again, and the MCP client paid a new Challenge offered after a refused Credential, as mppx does. Any MCP answer other than payment required, such as a server error, ended the call without paying again, and adapters report it through the new ToolCaller::payment_answer_from_error and ToolCaller::payment_answer_from_output hooks. On a Challenge offered again, the previous Credential's session lease is released before a challenge.received callback runs, so a callback paying through the same session provider is not left waiting on it; the previous Credential is rolled back only when the callback returns its own, and is resent when the callback returns None. (by @rkrasiuk, #739)
  • Bound a session open Credential's source to the payer its signed transaction authenticates (a direct payer signature, an access key the transaction authorizes for this chain, or an unrevoked, unexpired access key of the payer on chain), as mppx does. Credentials without a source are unchanged. (by @rkrasiuk, #739)
  • Fixed Receipt parsing to reject an explicit null externalId or subscriptionId instead of reading it as absent, as mppx does. (by @rkrasiuk, #739)
  • Fixed Tempo transactions that also authorize the signing access key failing with "intrinsic gas too low" or a failed gas estimate: installing a key can cost over 18,000,000 gas. A sponsored session open, top-up or charge, and a legacy session open, now declare 20,000,000 gas when they carry a key authorization (within the 25,000,000 that fee payers such as Tempo Gateway sponsor), and an unsponsored one estimates its gas under that limit rather than 3,000,000. Transactions without a key authorization are unchanged. (by @rkrasiuk, #739)
  • Changed Zone payments to resume a pending withdrawal instead of withdrawing again, as mppx does: a Credential made after its Challenge expired is reused only for that Challenge, other Challenges with the same terms fail with ZoneSettlementPending until its redemption window ends, and an expired Challenge is refused before paying. Servers now honor zone_credential_grace only for Challenges issued with it, which carry the _mppx_expiry_grace marker in their opaque, and refuse it with a relay. Mpp::new also honors a charge method's own grace and relay, read through the new ChargeMethod::zone_credential_grace and verifies_zone_credentials hooks. A Zone payment dropped before its withdrawal was sent no longer sends it. A Zone payment for a Challenge without a readable recipient no longer leaves a pending withdrawal behind, and a refused payment never forgets a withdrawal another payment may be sending. (by @rkrasiuk, #739)
What's Changed
  • fix: bound session recovery authorization and management errors by @brendanjryan in #728
  • fix(tempo): declare enough gas for a sponsored session open that authorizes its key by @gakonst in #726
  • ci: remove the pr-audit workflow by @grandizzy in #724
  • fix(receipt): reject null externalId and subscriptionId (mpp-tools#346) by @brendanjryan in #703
  • feat(tempo): add Zone payments to the charge method (mppx#1216, mppx#1313) by @brendanjryan in #734
  • fix(mcp): pay only the best-ranked offer, as mppx does by @brendanjryan in #733
  • fix(core): reject challenges selecting a credential header other than Payment-Authorization by @brendanjryan in #732
  • fix(client): pay a new challenge offered after a rejected credential by @brendanjryan in #736
  • feat(tempo): accept TIP-1166 configurable account vouchers by @brendanjryan in #731
  • fix: bind session open credential source to the transaction payer (mppx#1300) by @brendanjryan in #735
  • chore(deps): bump url to 2.5.9 (RUSTSEC-2026-0592) by @rkrasiuk in #739
  • Release v0.22.0 by @tempo-github-sts[bot] in #729

New Contributors

Full Changelog: v0.21.0...v0.22.0