# PayBot SDK Python Receipt Interop Readback — A$690 fixed packet

Buyer-specific no-spend readback for `RBKunnela/paybot-sdk` after Python signed receipt primitives PR #40 was approved.

- Proof PR: https://github.com/RBKunnela/paybot-sdk/pull/40
- Source issue: https://github.com/RBKunnela/paybot-sdk/issues/7
- Fixed readback: A$690
- Implementation room: A$2,400 for follow-up PRs, docs examples, fixture sharing, and review iteration
- Contact: info@transhumanism.com.au
- Settlement after scope confirmation: invoice or USDC on Base/Polygon to `0x17D7251A8a8d60ab74d7D2B2d20D2a0389871729`
- Boundary: no wallet signing, paid x402 call, token approval, transfer, account signup, private credential use, or legal/payment-term acceptance without Peter approval.

## Why now

PR #40 mirrors the signed receipt contract into Python with dataclasses, canonical JSON serialization, EIP-191 signing/verification via `eth_account`, package exports, and tests for canonicalization, tamper rejection, signer checks, payer-wallet mismatch, and malformed signatures.

CodeRabbit now reports the PR approved/no actionable comments after the Gemini broad-exception feedback was addressed in commit `e9e72f6`. That creates a good commercial moment for a concise interop readback before signed receipts become the reputation evidence layer.

## Proof status

- PR #40: open, mergeable, CodeRabbit approved/no actionable comments.
- Latest verification from Peter's follow-up comment: `uv run pytest tests/test_receipts.py tests/test_scaffold.py -q` -> 32 passed; `python -m py_compile ...` passed; `git diff --check` passed.
- Latest fix: `verify_receipt()` now catches expected signature decoding/recovery failures only, instead of masking broad unexpected exceptions.

## Readback deliverables

1. Python/TypeScript canonical JSON comparison table with exact payload strings for representative receipts.
2. EIP-191 signing transcript outline: unsigned receipt -> signing payload -> recovered signer -> verifier decision.
3. Fixture pack for facilitator-signed and payer-signed receipts, including payer wallet mismatch and wrong expected signer cases.
4. Malformed-signature failure matrix covering short hex, non-hex, missing signature, and unexpected exception boundaries.
5. Maintainer-ready appendix for issue #7: completed scope, follow-up scope, and limits before receipt lookup endpoints exist.
6. Docs copy for agent builders explaining when a signed receipt is payment + artifact-binding evidence and when it is only local SDK evidence.

## Implementation-room add-on

The A$2,400 room covers follow-through PRs and review iteration for docs/examples, receipt lookup helper interfaces, CI fixture sharing between TypeScript and Python, and a cross-runtime test harness that stays mock-first and no-spend.

## Boundaries

This packet does not sign wallet messages with Peter's wallet, call paid endpoints, move crypto, request private keys, accept account/platform terms, or promise live settlement traces. If a live paid settlement trace is requested later, Peter approval is required first.
