0 cumulative citations
View corpus contextA payment-aware Thompson-sampling selector helps autonomous agents save budget while preserving service quality: in an 823-task frozen-replay benchmark PA-DCT cut wallet use to about 39–43% while retaining competitive quality and reallocating spend during price and reliability shocks.
Citation observations
Cumulative provider counts captured on specific dates; providers are never combined.
Programmable-payment protocols such as x402 enable per-request micropayments, but they do not determine which payable service an autonomous agent should buy under a finite wallet. We formulate this buyer-side problem as agent-native payment decision-making: contextual provider selection under wallet pressure, chosen-only paid feedback, and changing market conditions. We propose 402Pilot, a protocol-agnostic buyer-side decision layer between autonomous agents and payment execution that implements purchasing policies for selecting among payable providers. We instantiate it with PA-DCT, a payment-aware discounted contextual Thompson-sampling policy that adapts purchasing decisions under wallet pressure while learning from post-payment feedback. To evaluate buyer-side payment policies, we introduce 402Pilot-Bench, a frozen-replay benchmark spanning 823 tasks, five heterogeneous provider pipelines, and three market regimes, each evaluated over 30 paired seeds. PA-DCT achieves the strongest fixed-wallet adaptive trade-off among non-oracle policies: it maintains competitive service quality while spending only 39 to 43 percent of the wallet and reallocates spending as market conditions change. It attains the best non-oracle PA-gap/T under the price shock and the best mean and worst-case ranks across the nine scenario-metric combinations of quality, ROI, and PA-gap/T. Comparisons with learning baselines and component ablations further support the effectiveness and design of the proposed decision policy. These results suggest that programmable payment must be complemented by buyer-side decision-making capable of learning service value and adapting purchasing decisions accordingly.
Summary
Main Finding
402Pilot introduces a buyer-side decision layer for autonomous-agent micropayments and demonstrates that a payment-aware, discounted contextual Thompson-sampling policy (PA‑DCT) can learn provider value under a finite wallet and shifting market conditions, spending substantially less of the budget while maintaining competitive service quality. In the benchmarked scenarios PA‑DCT used only about 39–43% of the wallet (non-oracle best trade-off), reallocated spend appropriately after shocks, and achieved the best mean/worst-case rank among non-oracle policies across combined metrics.
Key Points
- Problem formulation
- Agent-native payment decision-making: repeated, irreversible provider selection under (1) finite wallet/wallet pressure, (2) chosen-only paid feedback (you see outcome only for selected provider), and (3) nonstationary provider performance/prices.
- Objective: maximize cumulative payment-aware reward rt = (1−λnorm)·utility − λnorm·normalized_cost where λnorm captures wallet pressure.
- 402Pilot
- Protocol-agnostic decision layer sitting between an autonomous agent and the payment stack (e.g., x402), enforcing affordable choices, computing wallet pressure, and turning receipts/outcomes into learning feedback.
- PA‑DCT policy
- Discounted Bayesian posteriors per provider×context cell for realized utility and realized cost; discounting (γ) gives adaptivity to drift.
- Thompson sampling draws for both utility and cost; selection maximizes a sampled payment-aware reward that trades off utility vs. cost according to current wallet pressure.
- Learns only from chosen outcomes and observed receipt costs; updates only the selected provider–context cell each round.
- Empirical performance
- Benchmark: 402Pilot‑Bench (frozen-replay) with 823 tasks, 5 heterogeneous providers, 3 market regimes, T=10,000 rounds, budget=$50, and 30 paired seeds per scenario.
- PA‑DCT maintained competitive quality while spending only ~39–43% of the wallet among non-oracle policies, reallocated spend after reliability and price shocks, and achieved best mean rank (3.3/10) and best worst-case rank (6/10) across nine scenario–metric comparisons (quality, ROI, PA-gap/T).
- Ablations and baselines (non-learning rules, Contextual DS-TS, budgeted TS, PM‑Greedy, LinCBwK‑Adapt) indicate the importance of (i) joint modeling of cost and utility, (ii) discounting for drift, and (iii) wallet-pressure-aware selection.
- Reproducibility
- Frozen-replay design (cached responses per task–provider) ensures reproducible comparisons; code/data released.
Data & Methods
- 402Pilot‑Bench
- Tasks: 823 effective tasks drawn from HumanEval (164), HotpotQA (220), TriviaQA-web (219), OpenAssistant (220). Utilities normalized per dataset metric.
- Providers (K=5): P‑cheap ($0.0005), P‑mid ($0.002), P‑premium ($0.01), P‑adv ($0.002; adversarial prompts producing plausible-but-wrong answers), P‑flaky ($0.002; injected timeouts billed as failures).
- For each task–provider pair: five pre-generated responses with precomputed utility scores → 20,575 scored responses cached for frozen replay.
- Scenarios
- S1: stationary.
- S2: reliability shock — P‑mid forced 30% failure between rounds 3,000–5,500.
- S3: price shock — P‑premium price drops from $0.01 to $0.002 at round 1,000.
- Experimental protocol
- Horizon T = 10,000 rounds, budget B = $50 (binding), 30 paired seeds (same task order and draws per seed across policies).
- PA‑DCT specifics
- Context discretized into buckets; per (provider, context) keep discounted counts and sums for utility and cost.
- Discount γ = 0.999 (≈ memory ~10^3 rounds); paid-non-delivery penalty ν = 0.5; cost normalizer cmax = $0.01.
- Wallet pressure λt computed from realized spending vs. plan (exponential formula), normalized as λ/(1+λ) to weight cost vs. utility.
- Comparators and metrics
- Non-learning: Random, fixed-arm policies, BudgetRule (hand-tuned switching by budget thresholds).
- Learning baselines: Contextual DS‑TS (drift-aware but no wallet pressure), Contextual BTS (budgeted TS w/o discounting), PM‑Greedy (routes by listed prices), LinCBwK‑Adapt (context + knapsack but no discounting).
- Oracle: replay True Oracle (unattainable upper bound that selects best realized payment-aware reward).
- Metrics: service quality, wallet consumption, ROI/spending efficiency, PA‑gap/T and rank summaries across scenario–metric combos (reported mean and worst-case ranks).
Implications for AI Economics
- Programmable payments alone are insufficient: protocol-level per-request payments (x402-style) must be paired with buyer-side decision layers that learn service value under finite budgets and adapt to market dynamics.
- Micropayments enable high-frequency learning signals for buyers. Autonomous buyers can exploit frequent low-cost purchases to infer provider reliability and realized cost, shifting demand quickly after shocks; this changes how markets converge on prices/quality.
- Market dynamics and incentives
- Providers with identical posted prices can differentiate via realized behavior (flaky, adversarial). Buyers that learn realized value impose economic pressure that rewards stable, truthful providers and penalizes flaky or deceptive ones.
- Sellers may respond strategically (e.g., temporarily improve service to gain positive posterior) — highlighting the need for multi-agent analyses and mechanism design to prevent gaming.
- Platform and mechanism-design considerations
- Platforms exposing per-request metadata and receipts should consider surfacing richer signals (e.g., standardized reliability metrics) to reduce learning costs and improve allocative efficiency.
- Design choices (posted price transparency, discovery, payment timing, refundability for billed failures) materially affect buyer learning and welfare.
- Policy and welfare
- Autonomous agents as repeat buyers may concentrate demand-sensitive effects (e.g., rapid switching) and could amplify provider incentives toward short-term manipulation; regulation or platform rules may be needed to protect buyers and ensure market stability.
- Research directions
- Extend to multi-buyer settings and strategic providers (bidding, dynamic pricing) — how do buyer-side learning policies interact with provider incentives?
- Study alternative wallet-pressure formulations, richer utility models (multi-dimensional utility), and different payment architectures (subscriptions vs per-request).
- Field experiments with live programmable-payment systems to validate frozen-replay findings and quantify welfare impacts in real markets.
Limitations to note: evaluation is single-buyer and uses frozen-replay (no live provider strategic responses), providers use posted prices (no strategic bidding), and utilities are dataset-normalized—so external-market validation and multi-agent extensions are necessary next steps.
Code/data: authors provide a public repository (https://github.com/MCCodeAI/402Pilot).
Assessment
Claims (10)
| Claim | Direction | Outcome | Confidence & Evidence | Details |
|---|---|---|---|---|
| 402Pilot is introduced as a protocol-agnostic buyer-side decision layer between autonomous agents and the payment stack for selecting payable providers. Task Allocation | positive | Buyer-side provider selection and payment decision-making |
Reading fidelity
high
Study strength
medium
|
not reported
|
| PA-DCT maintains competitive service quality while spending only 39–43% of the available wallet across the three evaluated market scenarios. Consumer Welfare | mixed | Service quality and wallet consumption |
Reading fidelity
high
Study strength
medium
|
n=30
39–43% of the wallet
|
| PA-DCT reallocates spending when market conditions change, including changes in provider reliability and prices. Task Allocation | positive | Adaptation of provider spending allocations to market shocks |
Reading fidelity
high
Study strength
medium
|
n=30
|
| Among non-oracle policies, PA-DCT achieves the best PA-gap/T under the price-shock scenario. Consumer Welfare | positive | Payment-aware performance gap per served round under a price shock |
Reading fidelity
high
Study strength
medium
|
n=30
|
| PA-DCT has the best mean rank, 3.3/10, and best worst-case rank, 6/10, across nine scenario–metric comparisons involving quality, ROI, and PA-gap/T. Consumer Welfare | positive | Relative policy performance across quality, return on investment, and payment-aware reward-gap metrics |
Reading fidelity
high
Study strength
medium
|
n=30
best mean rank 3.3/10; best worst-case rank 6/10
|
| 402Pilot-Bench contains 823 effective tasks, five heterogeneous provider pipelines, and three market regimes. Other | positive | Benchmark coverage of tasks, providers, and market conditions |
Reading fidelity
high
Study strength
high
|
n=823
823 tasks; five providers; three scenarios
|
| The benchmark contains 20,575 scored responses generated from 823 tasks, five providers, and five cached responses per task–provider pair. Other | positive | Number of pre-generated scored task-provider responses |
Reading fidelity
high
Study strength
high
|
n=20575
20,575 scored responses
|
| The evaluation uses a fixed $50 budget over 10,000 rounds, and each policy is evaluated over 30 paired seeds. Consumer Welfare | mixed | Policy performance under a finite wallet and repeated purchasing horizon |
Reading fidelity
high
Study strength
high
|
n=30
$50 budget; 10,000 rounds; 30 paired seeds
|
| In the reliability-shock scenario, P-mid is subjected to a 30% forced-failure rate from rounds 3,000 to 5,500 before recovering. Error Rate | negative | Provider reliability and paid non-delivery rate |
Reading fidelity
high
Study strength
high
|
n=30
30% forced-failure rate
|
| In the price-shock scenario, P-premium's price decreases from $0.01 to $0.002 at round 1,000. Consumer Welfare | negative | Provider price and relative service affordability |
Reading fidelity
high
Study strength
high
|
n=30
price drops from $0.01 to $0.002
|