Conversation
- Add a "Fast path" section: one free catalog GET, one quote, one paid call, then poll. Tells the agent not to probe each machine type with a POST, which is where most of the round trips were going. - Price column is now plain USD; a Tokens paragraph states that USDC and USDT are the only values the pinned CLI can sign for, and that the gateway's third accepts entry (Tether America USD) must not be offered or passed with @celo/buy@0.5.0. - Attestation: read `attestationRequired` from the catalog instead of inferring it from a missing `extra.selfRequirements` on a per-type 402. - `insufficient_balance` row: the message names only the selected token; retry with `--token USDT` / `token: "USDT"` before asking to fund. - Wallet section: buy pays only from a wallet it generated; declare that address wherever an agent wallet was already declared. Closes #12 (items 1-3; item 4 is in a separate PR). Refs #11. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Sep 11, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Three findings in #12 and one in #11, all confirmed against the live gateway and the published
@celo/buy@0.5.0tarball today:GET /gcloud/catalogreturnstokens: ["USDC","USDT","USAT"]and the 402 carries threeaccepts, but@celo/buy-core@0.5.0has addresses only for USDC and USDT. The skill said "USDC or USDT" in every price cell and never stated what--tokenaccepts, so an agent could neither know the valid values nor explain the third entry.attestationRequiredper machine type. The skill told agents to discover it by POSTing each type and reasoning from an absentextra.selfRequirements, which costs a request per type.insufficient_balancenames only the selected token (USDC by default), so a USDT-only wallet is told to go fund USDC when--token USDTwould settle immediately.setupcannot import a key, so anyone who declared an agent wallet elsewhere ends up paying from a second, undeclared address.Beyond the issues, the skill had no single place saying how few calls a purchase needs. Agents were probing per type and re-quoting, which is most of the latency between "rent me a VM" and a result.
What
skills/order-compute/SKILL.mdonly.USDCandUSDTare the only values for--token/token; the gateway's third entry (Tether America USD) is accepted upstream but not signable with the pinned release, so do not offer or pass it.attestationRequiredfrom the catalog; the 402 stays as the confirmation for the exact body.insufficient_balancerow: check balances, retry with the other accepted token before asking the user to fund.The third token is deliberately named by its display name rather than its symbol so that PR #10's token check (which fails on any mention of a symbol the pinned CLI cannot sign for) passes; once a release ships the address, that same check will flag the skill for not documenting it.
Verification
curl https://usebuy.ai/gcloud/catalog— prices andattestationRequiredmatch the table.scripts/check-against-gateway.mjsrun against this branch:@celo/buy-core@0.5.0dist/chains.jsTOKENS.celohasUSDCandUSDTonly.Closes #12 (items 1–3; item 4 is a
file-feedbackfix in its own PR). Refs #11 (the CLI-side fix is tracked upstream).🤖 Generated with Claude Code