Introducing a new way to review your PRs.

Read the announcement

solana-foundation / pay

CLI for Agentic payments (x402, MPP, AP2).

View on GitHub

30 documents · Updated Nov 11, 2026

docs / runtime-api-and-workers

Payment API and settlement workers

The payment API and settlement workers provide the runtime service layer for Solana payments. The API turns HTTP requests into checked payment, sponsorship, redemption, and transfer actions. The workers reconcile durable payment records with channel state, complete channel lifecycles, and remove resources that no longer support a payment.

Service boundary

The service boundary separates fast client requests from work that depends on delayed chain state or retries. rust/crates/pay-api serves HTTP requests and starts the confidential-send settlement loops needed by the API. rust/crates/pay-worker runs scheduled or continuous maintenance jobs. Both use the shared payment contracts and chain access model so Redis state and Solana state describe the same channels.

Pay-api service

The pay-api service is the public HTTP boundary for wallet and payment actions. It loads network and stablecoin policy at startup. It then exposes only the actions whose signer, store, and provider needs are safe to satisfy.

The service keeps request state read-only after boot. This lets each handler use the same resolved RPC, stablecoin, replay-store, signer, and feature settings across API replicas (rust/…/state.rs• L18-59, rust/…/state.rs• L61-149).

References: rust/…/main.rs• L20-80 rust/…/state.rs• L18-59 rust/…/state.rs• L61-149

Shared API core

The shared API core gives the API and worker layers one view of RPC access, stablecoin data, token accounts, receipts, and payment errors. Its RPC client reuses one connection pool and presents chain reads, transaction history, transaction submission, and confirmation through one error model. This keeps client responses and worker chain reads aligned without making the HTTP service responsible for every lifecycle task (rust/…/rpc.rs• L14-33, rust/…/rpc.rs• L141-190, rust/…/rpc.rs• L244-345, rust/…/rpc.rs• L537-639).

References: rust/…/lib.rs• L1-19 rust/…/rpc.rs• L14-33 rust/…/rpc.rs• L141-190 rust/…/rpc.rs• L537-639 rust/…/lib.rs• L1-3 rust/…/lib.rs• L44-116 rust/…/Cargo.toml• L19-25

HTTP API

The HTTP API combines read paths with protected payment actions. Read paths expose chain and provider state. Protected paths first describe the action and its charge, then accept a credential that is bound to that same action.

Read endpoints

Read endpoints give clients wallet and payment information without direct RPC access. Balance responses combine wallet-owned stablecoins with configured program credits. Receipt paths explain the payment meaning of a transaction. Onramp paths start and complete the hosted purchase flow.

EndpointProduct purpose
GET /healthReports service readiness.
GET /v1/balance/stablecoinsShows stablecoin balances, credits, and channel balances.
GET /v1/receipt, /v1/receipts, /v1/receipts/{signature}Shows the payment result for a transaction.
GET /v1/onramp/startStarts hosted MoonPay checkout.
GET /v1/onramp/completeHandles the browser return page.

References: rust/…/main.rs• L35-53 rust/…/default.yaml• L20-79

Paid actions use a two-step challenge flow. The first request returns 402 Payment Required with the action terms. The client pays that exact charge and repeats the request with a payment credential. The API checks the credential against the resolved network, currency, amount, recipient, signer role, and action identifier before it signs or broadcasts.

The flow connects payment collection to the chain action it funds.

sequenceDiagram
    participant Client
    participant API as pay-api
    participant Signer as operator signer
    participant Chain as Solana RPC

    Client->>API: Action request
    API-->>Client: 402 challenge and action terms
    Client->>API: Same action plus credential
    API->>API: Bind credential to action
    API->>Signer: Sign or co-sign when required
    API->>Chain: Broadcast checked transaction
    Chain-->>API: Signature and confirmation
    API-->>Client: Result and receipt

References: rust/…/send.rs• L149-202 rust/…/channels.rs• L105-163 rust/…/subscriptions.rs• L170-217 rust/…/main.rs• L55-64

Stablecoin send endpoint

POST /v1/send turns a recipient, amount, currency, network, and optional memo into a protected stablecoin transfer. The challenge states whether the fee is added to the requested amount or taken from it. It also accounts for recipient token-account creation when the API must fund that account.

Normal sends return a receipt after payment verification and transfer settlement. Confidential sends use a supported Token-2022 mint and a separate settlement path. That path sends the requested amount without a fee split. It reports whether the challenged amount was verified when the operator explicitly allows unverified confidential amounts (rust/…/send.rs• L205-303, rust/…/send.rs• L347-442).

The credential binds the transfer shape to the resolved mint, token program, network, fee payer, memo, recipient, and amount. A valid payment therefore cannot authorize a changed transfer (rust/…/send.rs• L750-876).

References: rust/…/send.rs• L61-77 rust/…/send.rs• L149-303 rust/…/send.rs• L347-442 rust/…/send.rs• L750-903

Channel close endpoint

POST /v1/channels/close lets a channel payer request closure while the API pays the SOL fee. Discovery checks the live channel and returns a stablecoin charge with the sponsor identity and price. The follow-up request carries the payer-signed close transaction. The API verifies its scope and fee, adds the operator signature, broadcasts it, and waits for confirmation.

The live channel account and its derived address bind the charge to the channel that the payer intends to close. This prevents a credential for one open channel from funding a different lifecycle action (rust/…/channels.rs• L236-301, rust/…/channels.rs• L304-410).

References: rust/…/channels.rs• L1-7 rust/…/channels.rs• L105-233 rust/…/channels.rs• L236-410

Activation redemption endpoint

POST /v1/redeem exchanges an activation code for a campaign-specific stablecoin grant. The endpoint checks the old hot-wallet history, claims the code in shared durable storage, signs the payout, and reports success only after final confirmation. A pending signature remains linked to the claim so a retry can reconcile it instead of paying twice (rust/…/redeem.rs• L1-14, rust/…/redeem.rs• L135-179, rust/…/redeem.rs• L248-313).

Campaign configuration can assign different grants to separate code groups. The history check scans only the frozen pre-claim-store range and verifies a matching memo, signer, token transfer, and successful transaction. Redis is the authority for new claims and stores the payout state across replicas and restarts (rust/…/config.rs• L397-468, rust/…/config.rs• L534-575, rust/…/redeem.rs• L618-777).

The claim moves through a small terminal state model. A claim can be new, awaiting a known payout, or confirmed. The API releases it only when the chain proves that the payout cannot land. An unknown broadcast result keeps the claim pending (rust/…/redeem.rs• L316-403, rust/…/redeem.rs• L431-553, rust/…/redeem.rs• L779-891).

References: rust/…/redeem.rs• L92-179 rust/…/redeem.rs• L181-313 rust/…/redeem.rs• L316-403 rust/…/redeem.rs• L618-777 rust/…/redeem.rs• L779-891 rust/…/config.rs• L641-724

Subscription cancellation endpoint

POST /v1/subscriptions/cancel charges a service fee in exchange for sponsored SOL gas. Discovery binds the charge to the subscription PDA. The authenticated request carries the subscriber-signed cancellation transaction. The API accepts only the intended cancellation action, adds the operator signature, broadcasts it, and returns the cancellation signature with the payment receipt (rust/…/subscriptions.rs• L13-23, rust/…/subscriptions.rs• L170-340).

The API reserves one cancellation per subscription across replicas. It keeps that reservation while the broadcast result is uncertain, which prevents concurrent requests from spending the sponsor's SOL twice (rust/…/subscriptions.rs• L220-367).

References: rust/…/subscriptions.rs• L57-168 rust/…/subscriptions.rs• L170-340 rust/…/subscriptions.rs• L343-377 rust/…/subscriptions.rs• L448-539

Transfer batch capability

The transfer-batch capability is configured and prepared for gasless bulk payouts, but it is not public in the router. Caller authentication and sponsor reimbursement must be in place before exposure because each batch can spend sponsor SOL and token-account rent (rust/…/main.rs• L65-68, rust/…/config.rs• L182-251).

References: rust/…/main.rs• L65-68 rust/…/config.rs• L182-251

Settlement workers

The pay-worker crate runs jobs that move durable payment records and on-chain channels toward a terminal state. close-channels performs operator channel maintenance. settle-sessions reconciles MPP session channels and x402 batch channels. Resource cleanup is a separate provider action that does not itself start financial settlement.

Channel closing

close-channels advances channels through the program lifecycle when the configured signer has the required role. Open payer-owned channels enter the close grace period. Expired closing channels are sealed and distributed. Distributed channels become eligible for rent recovery after the chain slot gate.

The job discovers distributed channels when no address list is supplied. Redis ownership records and per-channel leases stop overlapping live runs. Dry run is the default. Only an explicit non-dry-run setting permits signing and broadcast (rust/…/close_channels.rs• L214-365, rust/…/close_channels.rs• L472-557).

The state machine keeps dependent lifecycle steps separate. Distribution uses the original payout plan and checks its on-chain hash before it sends funds. If the transaction cannot carry a close and its distribution together, the worker sends the close first and retries distribution later (rust/…/close_channels.rs• L559-729, rust/…/channel.rs• L437-510, rust/…/channel.rs• L876-915).

References: rust/…/close_channels.rs• L214-365 rust/…/close_channels.rs• L472-557 rust/…/close_channels.rs• L559-729 rust/…/channel.rs• L158-180 rust/…/channel.rs• L437-510 rust/…/channel.rs• L876-915

Atomic V2 rent recovery

Atomic V2 charges have a reclaim-only path because they do not carry the session snapshot used for payment settlement. On supported development networks, automatic discovery can reclaim distributed V2 channels whose immutable rent payer is the configured signer.

This path checks the account owner, version, guard, status, payer, and slot gate again before reclaim. It does not seal, distribute, fund, or settle a channel. It stays separate from explicit-address maintenance and from session settlement (rust/…/close_channels.rs• L258-341).

References: rust/…/close_channels.rs• L258-341 rust/…/channel.rs• L283-368

Session settlement

settle-sessions reconciles two durable channel schemes from Redis against Solana. MPP records use accepted cumulative vouchers as their settlement watermark. x402 records use stored vouchers and channel state to claim funds, pay out deltas, finish forced closes, and reclaim rent.

The worker takes separate Redis leases for the MPP and x402 schemes. It reads chain state before it plans work and updates Redis only after confirmation. It uses confirmed reads for planning and finalized evidence before it marks a close or distribution as terminal. It supports one-shot execution and a continuous mode with a health endpoint. Dry run reports candidates without broadcasting (rust/…/settle_sessions.rs• L166-258, rust/…/settle_sessions.rs• L444-587, rust/…/settle_sessions.rs• L854-1175, rust/…/settle_sessions.rs• L1379-1501).

The reconciliation path turns durable voucher state into confirmed chain state.

flowchart LR
    A[Accepted voucher and lifecycle record] --> B[Scheme Redis namespace]
    B --> C[settle-sessions reconciliation]
    C --> D[Read channel on Solana]
    D -->|new watermark| E[Claim or settle]
    D -->|idle or forced close| F[Seal and distribute]
    D -->|distributed and unlocked| G[Reclaim rent]
    E --> H[Confirm transaction]
    F --> H
    G --> H
    H --> I[Update or retain Redis record]

MPP cleanup waits for terminal chain evidence and provider cleanup before it removes the durable record. x402 due-work rules use active-settlement policy, idle time, distribution thresholds, and snapshot age (rust/…/settle_sessions.rs• L1045-1125, rust/…/settle_sessions.rs• L1504-1817, rust/…/settle_sessions.rs• L2046-2225, rust/…/settle_sessions.rs• L2387-2415).

References: rust/…/settle_sessions.rs• L854-1175 rust/…/settle_sessions.rs• L1379-1501 rust/…/settle_sessions.rs• L1504-1817 rust/…/settle_sessions.rs• L1820-2007 rust/…/settle_sessions.rs• L2046-2225 rust/…/settle_sessions.rs• L2387-2415

Bound session recovery

Bound sessions retain the deployment and payout terms that funded the channel. Settlement restores that snapshot from the durable record and checks it against the channel before it acts. An incomplete or invalid binding stops the channel rather than falling back to legacy settlement (rust/…/settle_sessions.rs• L595-725, rust/…/settle_sessions.rs• L784-851).

Pending opens recover from durable records. Bound close ownership is renewed while chain work runs and is checked again before submission. Bound records stay out of legacy fleet cleanup and static batch settlement so chain discovery cannot adopt them under a different policy (rust/…/settle_sessions.rs• L727-753, rust/…/settle_sessions.rs• L1000-1013, rust/…/settle_sessions.rs• L1193-1327).

References: rust/…/settle_sessions.rs• L595-725 rust/…/settle_sessions.rs• L727-753 rust/…/settle_sessions.rs• L784-851 rust/…/settle_sessions.rs• L1000-1013 rust/…/settle_sessions.rs• L1193-1327

Provider resource cleanup

Provider resource cleanup removes compute, data, and trigger resources that an unusable legacy MPP channel funded. The worker keeps the Redis record as a retry anchor until provider scans stay empty for the configured quiet period. Bound deployment sessions do not enter this legacy cleanup path (rust/…/settle_sessions.rs• L2082-2143).

reconcile-resources is an isolated one-shot job for orphaned compute resources. It loads only the selected cleanup drivers and defaults to dry run. Unknown, empty, or duplicate driver declarations fail startup instead of hiding a cleanup gap (rust/…/resource_cleanup.rs• L31-60, rust/…/resource_cleanup.rs• L84-123).

Cleanup revokes triggers before compute and data resources. A failure in one driver does not stop the other drivers from running, but the worker retains the retry anchor when any part fails (rust/…/resource_cleanup.rs• L129-163).

References: rust/…/settle_sessions.rs• L2041-2143 rust/…/resource_cleanup.rs• L31-60 rust/…/resource_cleanup.rs• L84-163

Configuration and signing

Configuration selects networks, stablecoins, feature gates, Redis namespaces, settlement thresholds, provider drivers, and signer roles. Startup validation rejects an enabled feature that lacks the state or identity needed to protect funds.

API configuration

The API loads rust/…/default.yaml, overlays PAY_API_ values with __ as the nesting separator, and honors PORT plus selected compatibility variables. Network RPC URLs and stablecoin definitions are required. Send, channel sponsorship, redemption, subscription cancellation, and transfer-batch support are independent feature areas (rust/…/config.rs• L783-803, rust/…/config.rs• L991-1248).

All charge endpoints require one shared replay store while enabled. Redis provides replica-safe state. memory:// is an explicit single-process choice for local work. Namespaces separate charge replay, subscription reservations, confidential settlement, and redemption claims. Charge records and their appended generations share a seven-day retention window (rust/…/store.rs• L14-55, rust/…/store.rs• L74-83, rust/…/store.rs• L173-225).

Redemption uses a mainnet history provider for bounded legacy checks and a Redis claim store for current claims. Campaign documents can replace the legacy flat code list while preserving migration support. The claim store can use PAY_MPP_REDIS_URL when no separate URL is set (rust/…/config.rs• L623-724, rust/…/config.rs• L844-918).

References: rust/…/default.yaml• L20-127 rust/…/config.rs• L397-468 rust/…/config.rs• L783-918 rust/…/config.rs• L991-1248 rust/…/store.rs• L14-55 rust/…/store.rs• L74-83 rust/…/store.rs• L173-225

Worker configuration

Workers select the active RPC and treasury through NETWORK, then overlay shared signer settings and job-specific environment values. Settlement also selects MPP and x402 Redis URLs and prefixes, independent leases, retention, dry-run mode, cadence, idle limits, distribution thresholds, snapshot age, concurrency, and cleanup timing (rust/…/README.md• L37-72, rust/…/settle_sessions.rs• L444-587).

The MPP and x402 prefixes are part of the gateway-worker contract. A wrong prefix makes the worker reconcile a different durable channel set. Active x402 settlement is off by default. Resource cleanup must name every driver or explicitly declare none (rust/…/settle_sessions.rs• L520-569, rust/…/resource_cleanup.rs• L166-205).

References: rust/…/README.md• L37-72 rust/…/settle_sessions.rs• L444-587 rust/…/resource_cleanup.rs• L166-205

Signer roles

The operator signer pays SOL and signs actions that the service owns. Production normally uses a GCP KMS key and configured public key. Local runs can use a private key, but the derived public key must match the configured identity before either service signs (rust/…/signer.rs• L29-68, rust/…/signer.rs• L21-69).

The role changes with the flow. The signer can sponsor an API action, pay worker transaction fees, or serve as the operator allowed to settle a channel. The worker does not adopt work when its identity does not match the required payer, payee, rent payer, or authority role.

References: rust/…/signer.rs• L29-68 rust/…/signer.rs• L21-69 rust/…/settle_sessions.rs• L468-484 rust/…/settle_sessions.rs• L2672-2677

Telemetry and operations

Telemetry connects HTTP outcomes, worker runs, chain watermarks, escrow state, and cleanup progress. It helps operators find a stuck or failed flow. It does not replace payment validation or chain confirmation.

API observability

The API emits structured request logs and endpoint signals for balance, receipt, onramp, send, and protected actions. When an OTLP sidecar is configured it exports traces and metrics. If export is not available, local structured logs remain the fallback (rust/…/observability.rs• L42-111, rust/…/telemetry.rs• L5-11).

Balance signals separate a wallet lookup failure from a credit or channel lookup failure. Receipt and action signals carry the payment intent and endpoint context needed to join an HTTP result to a chain operation (rust/…/telemetry.rs• L72-152).

References: rust/…/observability.rs• L42-111 rust/…/telemetry.rs• L5-11 rust/…/telemetry.rs• L72-152

Worker telemetry

Worker telemetry reports the scheme, run outcome, lease contention, scanned channels, planned actions, confirmed transactions, failures, settlement amounts, watermarks, and escrow state. MPP and x402 use separate labels so their Redis and chain views can be compared without mixing accounting (rust/…/settle_sessions.rs• L282-335, rust/…/settle_sessions.rs• L2089-2120).

Workers export metrics to the configured OTLP destination when its credentials are complete. Otherwise they keep structured JSON logs. This fallback keeps one-shot jobs and continuous jobs visible during telemetry outages (rust/…/telemetry.rs• L30-89, rust/…/telemetry.rs• L91-220, rust/…/telemetry.rs• L228-333).

References: rust/…/settle_sessions.rs• L282-335 rust/…/settle_sessions.rs• L2089-2120 rust/…/telemetry.rs• L30-89 rust/…/telemetry.rs• L91-220 rust/…/telemetry.rs• L228-333

Operational roles

The API operator owns endpoint policy, RPC access, stablecoin and credit definitions, provider credentials, challenge secrets, and signer access. The settlement operator owns Redis health, worker cadence, dry-run review, scheme thresholds, cleanup policy, and signer funding.

The API runs as one HTTP service. The worker image provides close-channels, settle-sessions, and reconcile-resources; deployment chooses the command, schedule, identity, health checks, and secret injection. Continuous settlement also exposes /health and stops its loop on shutdown (rust/…/settle_sessions.rs• L164-258).

For client request behavior, see Runtime client payment flows. For request enforcement, see Payment gateway and request enforcement. For channel and voucher state, see Session channels and metering. For the wider service relationship, see Rust payment runtime.

References: rust/…/main.rs• L20-80 rust/…/Cargo.toml• L7-17 rust/…/settle_sessions.rs• L164-258 rust/…/README.md• L354-369

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the API challenge terms, credential bindings, receipts, and client-visible fee layout aligned across send, channel close, redemption, and cancellation actions.
  • Keep stablecoin, mint owner, token-program, network, and signer settings aligned across API reads, API broadcasts, confidential settlement, redemption payouts, and worker payouts.
  • Keep MPP and x402 Redis URLs, prefixes, watermarks, lifecycle markers, and lease keys aligned with the gateway.
  • Keep worker due-work rules aligned with active settlement, idle limits, distribution thresholds, snapshot age, and gateway activity timestamps.
  • Keep channel ownership checks separate for legacy fleet work, bound session recovery, and V2 rent-only recovery.
  • Keep distribution recovery aligned with the opening transaction, the on-chain distribution hash, and the original recipient order.
  • Keep redemption campaign codes, claim states, history cutoffs, payout memos, and durable claim transitions aligned.
  • Keep cleanup driver declarations, provider identity metadata, retry markers, trigger order, and quiet-period rules aligned.
  • Keep the API and worker signer public keys aligned with KMS identities and secret injection.
  • Keep RPC commitment choices aligned with the state transition they protect. Confirmed evidence can drive retry work, but finalized evidence is needed for terminal records.
  • Keep scheme labels and watermark, escrow, claim, payout, close, and reclaim metrics stable for dashboards.

Important failure modes

TriggerConsequenceGuard
An enabled API feature lacks its shared store, signer, secret, network, or provider stateStartup refuses to serve the unsafe featureFeature-specific configuration validation runs at boot (rust/…/config.rs• L991-1248)
Charge replicas use process-local memory instead of the shared storeA challenge or cancellation reservation can be replayed on another replicaRedis is required for enabled charge features; memory:// is explicit and local-only (rust/…/store.rs• L24-43, rust/…/config.rs• L1102-1107)
A paid credential changes the send, close, or cancellation actionThe API refuses to sign or sponsor the changed actionCredential fields and external identifiers are checked against the resolved request (rust/…/send.rs• L750-876, rust/…/channels.rs• L447-454, rust/…/subscriptions.rs• L607-623)
A sponsored transaction contains an unexpected program, signer, budget, or feeThe operator will not co-sign itNarrow instruction scope and fee limits fail closed (rust/…/channels.rs• L304-374, rust/…/subscriptions.rs• L457-539)
A confidential send uses an unsupported mint or lacks an amount policyThe send is rejected or the receipt cannot attest the challenged amountToken-2022 capability and auditor or explicit unverified policy are checked (rust/…/send.rs• L347-376, rust/…/state.rs• L168-186)
Redemption history cannot reach the frozen legacy boundaryThe code is not treated as unusedThe dedup scan fails closed when its provider credential, page range, or candidate proof is incomplete (rust/…/redeem.rs• L606-699)
A redemption payout is broadcast but its result is uncertainThe code remains pending instead of being paid againThe signed signature stays in the claim until chain proof allows confirmation or release (rust/…/redeem.rs• L248-294, rust/…/redeem.rs• L431-473)
A close worker lacks a proven legacy owner recordThe worker skips fleet reclamationRedis ownership must be present and unbound; bound records use session settlement (rust/…/close_channels.rs• L343-365)
A V2 channel is sent through the V1 worker pathThe worker refuses the account instead of misreading its layoutV1 decoding rejects V2 owners and prefixes (rust/…/channel.rs• L311-368)
A distribution plan cannot be recovered, exceeds the transaction limit, or its hash differsDistribution is skipped or deferred rather than sending to an uncertain recipient setThe opening transaction or persisted snapshot must reproduce the on-chain hash and fit the transaction limits (rust/…/channel.rs• L448-510, rust/…/channel.rs• L587-642, rust/…/channel.rs• L1500-1529)
A settlement or reclaim lease is lostThe current work stops or is skipped and a later run can retryRedis leases renew only for their owner and expire by TTL (rust/…/settle_sessions.rs• L57-163, rust/…/close_channels.rs• L45-158)
A transaction confirms but is not finalRedis state stays open for a later finalized readTerminal records change only after the required confirmation level (rust/…/settle_sessions.rs• L1395-1468, rust/…/settle_sessions.rs• L1889-1969, rust/…/rpc.rs• L569-639)
A chain read returns an account owned by another program or an RPC null result is treated as proof of absenceThe worker could act on or delete a channel it cannot ownOwner-aware reads reject foreign accounts, and absence needs finalized slot or tombstone proof (rust/…/channel.rs• L219-280, rust/…/channel.rs• L350-368)
Provider cleanup is partial or reports a late resourceThe channel record remains as a retry anchorCleanup runs all drivers and requires a quiet empty period before deletion (rust/…/resource_cleanup.rs• L129-163, rust/…/settle_sessions.rs• L2164-2225)
Cleanup drivers are missing, unknown, or duplicatedThe worker fails startup instead of silently leaking resourcesDriver declaration is explicit and validated (rust/…/resource_cleanup.rs• L166-205)

Key files

FileWhy to read it
rust/…/main.rsShows the public HTTP routes and service lifecycle.
rust/…/state.rsShows the shared API state, stores, and confidential worker startup.
rust/…/config.rsDefines feature gates, networks, campaign settings, replay stores, and startup checks.
rust/…/store.rsDefines shared replay namespaces, retention, and cross-replica reservations.
rust/…/rpc.rsDefines the shared chain read, history, transaction, and confirmation boundary.
rust/…/send.rsShows the paid transfer contract and confidential-send split.
rust/…/channels.rsShows sponsored channel closure and live-channel binding.
rust/…/redeem.rsShows campaign grants, legacy dedup, durable claims, payout confirmation, and retry safety.
rust/…/subscriptions.rsShows sponsored subscription cancellation and per-subscription reservations.
rust/…/close_channels.rsShows channel lifecycle planning, dry-run safety, ownership checks, and rent recovery.
rust/…/settle_sessions.rsShows MPP and x402 reconciliation, leases, confirmation, bound recovery, and cleanup.
rust/…/channel.rsShows channel decoding, finalized absence checks, distribution-plan recovery, and V1/V2 separation.
rust/…/resource_cleanup.rsShows provider driver selection and retry-safe cleanup.
rust/…/README.mdGives the operator view of safety, environment contracts, job modes, and deployment.