APEX:基于策略的自主代理API访问支付执行
APEX: Agent Payment Execution with Policy for Autonomous Agent API Access
AI总结:
APEX提出了一种适应法币系统的自主代理支付框架,通过HMAC签名短时令牌实现安全支付流程,实验显示政策控制可减少27.3%的总支出并保持52.8%的合法请求成功率。
摘要:
自主代理正从简单检索任务发展为经济主体,调用API、序列化工作流并做出实时决策。随着这一转变加速,API提供者需要请求级货币化和程序化支出治理。HTTP 402协议将支付视为第一类协议事件,但大多数实现依赖于加密货币轨道。在许多部署环境中,尤其是像UPI这样的国家拥有强实时法币系统时,这一假设与监管和基础设施现实不一致。我们提出了APEX,一个实现完整的研究系统,它适应HTTP 402风格的支付门控到类似UPI的法币流程,同时保持政策治理的支出控制、令牌化访问验证和重放抵抗性。我们实现了一种挑战-结算-消费生命周期,包含HMAC签名的短生命周期令牌、去重结算处理和政策感知的支付批准。该系统使用FastAPI、SQLite和Python标准库,使其透明、可检查且可重复使用。我们评估了APEX在三个基线和六个场景中的表现,样本量比初始实验大2-4倍(每场景N=20-40)。结果表明,政策执行可减少27.3%的总支出,同时保持52.8%的合法请求成功率。安全机制对重放攻击和无效令牌的阻止率均为100%,延迟开销低(19.6ms平均)。多个试验运行显示在不同场景中波动小,证明了高可重复性(95%置信区间)。主要贡献是可控的代理支付基础设施和参考架构,展示了如何将代理访问货币化适应法币系统而不放弃安全性和政策保证。
英文摘要:
Autonomous agents are moving beyond simple retrieval tasks to become economic actors that invoke APIs, sequence workflows, and make real-time decisions. As this shift accelerates, API providers need request-level monetization with programmatic spend governance. The HTTP 402 protocol addresses this by treating payment as a first-class protocol event, but most implementations rely on cryptocurrency rails. In many deployment contexts, especially countries with strong real-time fiat systems like UPI, this assumption is misaligned with regulatory and infrastructure realities. We present APEX, an implementation-complete research system that adapts HTTP 402-style payment gating to UPI-like fiat workflows while preserving policy-governed spend control, tokenized access verification, and replay resistance. We implement a challenge-settle-consume lifecycle with HMAC-signed short-lived tokens, idempotent settlement handling, and policy-aware payment approval. The system uses FastAPI, SQLite, and Python standard libraries, making it transparent, inspectable, and reproducible. We evaluate APEX across three baselines and six scenarios using sample sizes 2-4x larger than initial experiments (N=20-40 per scenario). Results show that policy enforcement reduces total spending by 27.3% while maintaining 52.8% success rate for legitimate requests. Security mechanisms achieve 100% block rate for both replay attacks and invalid tokens with low latency overhead (19.6ms average). Multiple trial runs show low variance across scenarios, demonstrating high reproducibility with 95% confidence intervals. The primary contribution is a controlled agent-payment infrastructure and reference architecture that demonstrates how agentic access monetization can be adapted to fiat systems without discarding security and policy guarantees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。