in reviewhumanPR #336Other

AgentTab: add credit-purchase seller integration and charge-once tests

A Track seller (examples/agenttab_seller.py) that buys one price lookup on its AgentTab credit line, over AgentTab's HTTP API, before it answers each quote. examples/agenttab_check.py compares Town's evidence with AgentTab's ledger.

Author

KevinChunye avatar

@KevinChunye

github profile →
Status
In review
Opened on
Nov 10
Branch
integration/agenttab-credit-purchase

Description

The pitch.

A Track seller (examples/agenttab_seller.py) that buys one price lookup on its AgentTab credit line, over AgentTab's HTTP API, before it answers each quote. examples/agenttab_check.py compares Town's evidence with AgentTab's ledger. Tests run offline against a contract stub and live when AGENTTAB_URL is set. docs/integrations/agenttab.md has the commands, the expected and observed results on two AgentTab builds, and the boundary cases.

Try it

Open PR on GitHubView diff

Checkout locally

git fetch origin pull/336/head:pr-336
git checkout pr-336