feat: Python SDK for Agent Economy (RIP-302 Tier 1 Bounty) - #16553
feat: Python SDK for Agent Economy (RIP-302 Tier 1 Bounty)#16553rafaio1 wants to merge 2 commits into
Conversation
- Full API coverage for all RIP-302 endpoints - Type-safe Job dataclass - pytest test suite with mocked responses - README with installation and usage examples Bounty: 50 RTC per Scottcjn#683
|
Read the SDK. The Python is clean, but it wraps an API that does not exist:
For the Tier 1 SDK bounty the SDK needs to cover the actual RIP-302 surface, and the PR should include at least one recorded request/response against a live node ( |
|
Implemented the requested RIP-302 correction in commit 68845e2. Changes:
Verification:
Live-node evidence (GET-only, no credentials):
The sanitized transcript is versioned here: This deliberately records the current deployment mismatch instead of claiming a successful RIP-302 response that the node did not provide. The SDK routes are pinned to the active specification at Scottcjn/Rustchain commit cc78890f63655faff8a7e017ef7e673e2789d8a2. |
|
/claim PR: #16553 |
|
/claim Wallet: RTC1e9bf7a2a60aac9bcbc5a0df0c65e9501e932861 Python SDK for Agent Economy (RIP-302 Tier 1). PR is open, mergeable, and CI green. Filing claim here on the PR as well to ensure bot detection. |
|
Re-ping: addressed API endpoint mismatch feedback in commit 68845e2 on Aug 28. Awaiting re-review to proceed with bounty completion. |
Live-Node Evidence Report — RIP-302 Endpoints Not Deployed@Scottcjn I've completed testing against the referenced node
Only The SDK implementation in this PR is spec-compliant per RIP-302. The blocker is infrastructure: no live node currently serves these endpoints. Requesting guidance:
Evidence files attached in workspace. BoTTube registration confirmed as good-faith progress on related requirements. |
Summary
Typed Python client for the current RIP-302 wallet, payment, and reputation API surface.
Coverage
/api/agent/wallet/*,/api/agent/payment/*, and/api/agent/reputation/*RTCfollowed by exactly 40 hexadecimal charactersRustChainAPIErrorThe obsolete
/agent/jobs,/agent/stats, and/agent/reputation/*marketplace wrappers were removed.Verification
python -m pytest -q: 9 passedpip checkpassedSafe live-node evidence
sdks/python/evidence/live_node_get_20260828.jsonrecords sanitized, read-only requests tohttps://bulbous-bouffant.metalseed.net:GET /api/statsreturned HTTP 200GET /api/agent/reputation/leaderboard?limit=1returned HTTP 404 and the node did not advertise RIP-302 at capture timeNo wallet creation, payment, payment request, x402 challenge, attestation, credential, or other POST was sent. The SDK follows the current RIP-302 specification; the transcript makes the node deployment mismatch explicit instead of hiding it.
Usage
Addresses the Python SDK item in #683 (Tier 1, 50 RTC).