Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Proposal] Payment guardrail: external spend authority + auditable receipts for agents that pay

Đang mở
#5,407 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
payments, security

Hướng nghiên cứu

Start by reading the Agents SDK’s existing input and output guardrails, then review the referenced contract at solana-foundation/pay#525. The proposal calls for a fail-closed HTTP spending check, an atomic replay guard, signed verdicts, and hash-chained receipts, plus a receipts example. Done means those pieces and the example are contributed; the issue does not name specific SDK files or tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The Agents SDK has guardrails for inputs/outputs - payments are the action class where an external, verifiable check matters most (a prompt-injected agent can justify any purchase to itself).

Proposal: a payment guardrail - before a tool call that pays (x402 or any HTTP-paid API), consult an external spending authority over HTTP, fail-closed:

  • 2xx + explicit allow -> proceed; timeout / malformed / non-2xx -> deny (never fail-open)
  • (caller_id, operation_id) replay guard, atomic across restarts
  • Ed25519-signed verdicts + hash-chained receipts, auditable offline by sellers, auditors or courts

Reference contract: solana-foundation/pay#525 (Rust reference, running in production). We'd contribute the Python guardrail (~100 LOC) plus a receipts example.

Docs: https://utalabs.tech - Edison Flores, AliceLabs

Ngôn ngữ chính
Python
Star
30.2k
Fork
4.9k
Merge trung bình
12 giờ 18 phút
Pull request đã merge (30 ngày)
148

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openai/openai-agents-python

Tất cả issue của openai/openai-agents-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.