pages / example / agentverse_market

example · agentverse_market

canister coord://offchain/genie/program/agentverse_market@v1/a87564d0c59c5bad · v1 · artifact root 0xa87564d0c59c5bade59bf8e6dfdc2b4b1799af8a6e2c4e8b908b9789d372d6c9 · previous none (first version) · superroot at publish not sealed yet

sealed cases that reached it: 0 — sealed cases that reached this word (the store counts, never reads)

the words it says

its helpdesk graph

agentverse market (a .genie program) in the studio: 6 symptoms, 6 fixes

the source

// _AGENTVERSE_MARKET_v1_ (owner 2026-10-28: "agentverse.ai … integrate … actionable settlement and revenue for both sell and buy under
// the coordination layer"). Fetch.ai's Agentverse as one venue both ways (venues-registry.cue `agentverse`; the catalogue and its edges
// are lang/gen/agentverse-market.json, lang/emit/agentverse.mjs):
//   BUY   a buyer of ours pays for a class (the demand); an Agentverse uAgent whose own words make it that class is hired over the chat
//         protocol (a signed uAgents envelope, POST /v1/handshake kind uagents; our receiver uAgent holds its reply). A seller in the
//         AgentPaymentProtocol's seller role names its price, recipient and rail in its RequestPayment; it is paid there, that way
//         (fet_direct FET, skyfire USDC, stripe), never otherwise. Until we hold a payer on its rail the payment leg is held.
//   SELL  an Agentverse agent in the buyer role asks our uAgent for a class we offer; our uAgent sends RequestPayment (USDC on Base to
//         the vault), the buyer answers CommitPayment with its transaction id, the vault reads the transfer, our uAgent answers
//         CompletePayment and delivers. Live only on an outside payment received (paid-in.cue).
// The states take the venue-onboarding shape (inbound: read · classify · terms · listed · agreed · metered, then the sale's hops;
// outbound: offer_out · listed_on_venue · hired · delivered · graded · settled · legs · accrued · paid · recorded); the legs are
// the one payment scheme's (seller × 1.2, lang/emit/margin.mjs), no leg is typed here.
// It compiles with resale_edge.genie (the DeepInfra → x402-base edge): one buyer USD, two supply venues, the same hops and vaults.
// Nothing here signs or sends: the hire is a dry run unless --send, and every settle stands behind its guards and the vault's caps.
genie agentverse_market v1
about "Agentverse both ways: hire its uAgents for the classes our buyers pay for, and sell our classes to its paying agents, through the vault"

use venue agentverse x402-base
use chain every
use vault vault:taifoon:loop vault:taifoon:kms
use product taifoon.api
use guard owner-arm day-cap receipt-check sign-sale-backing

agent inbound is "an Agentverse uAgent taken in as supply and hired for a class a buyer of ours paid for"
  states read classify terms listed agreed metered hired delivered graded settled legs accrued paid recorded seller_held unclassed no_seller refused failed
  start read
  final recorded seller_held unclassed no_seller refused failed
  failed refused failed
  read GET /v1/match/demands as demands
  move read -> no_seller when supply.available != true
  move read -> classify hop classify venue agentverse effect record
  // its class from its own words (name, description, readme head, protocol names) over the class catalogue
  move classify -> unclassed when agent.class_known != true
  move classify -> terms when supply.class_matches == true effect record
  move classify -> refused
  // a seller-role agent names its price, recipient and rail in RequestPayment (read at hire time); a chat agent without it charges nothing
  move terms -> refused when price.buyer_usd > demand.pays_usd
  move terms -> listed hop listed venue agentverse effect record
  move listed -> agreed effect record
  move agreed -> metered meter taifoon.api effect record
  move metered -> hired when order.paid == true hop hired venue agentverse op POST /v1/handshake effect record
  move hired -> delivered when reply.signed == true hop delivered venue agentverse effect record
  move hired -> failed
  move delivered -> graded when reply.checks_pass == true hop graded effect record
  move delivered -> refused
  move graded -> settled guard receipt-check sign-sale-backing via vault:taifoon:loop on every cap 50000 USDC meter taifoon.api hop settled effect record
  move settled -> legs hop legs effect record
  move legs -> accrued hop accrued effect record
  // the seller is paid on its own rail (its RequestPayment); we hold no FET, Skyfire or Stripe payer yet, so a paid seller's leg is held
  move accrued -> seller_held when seller.rail_payer != true effect record
  move accrued -> paid guard owner-arm day-cap via vault:taifoon:kms on every cap 50000 USDC meter taifoon.api hop paid effect record
  move paid -> recorded hop recorded op POST /v1/pipe/send effect record
  refuse open_venue "a hire names a venue of the register; an Agentverse agent is hired only through the agentverse row"
  say read "An Agentverse uAgent was read from the public search: active, responsive, its protocols and interactions"
  say classify "Its own words were read against the class catalogue"
  say terms "Its terms: the RequestPayment price, recipient and rail, or none for a chat agent"
  say listed "Listed in our book at its price plus 20 %"
  say agreed "Under the commerce agreement of the loop vault"
  say metered "Metered in GRID on taifoon.api"
  say hired "A buyer of ours paid; the signed envelope went to its Almanac endpoint"
  say delivered "Its signed reply arrived at our receiver uAgent"
  say graded "The class check passed (by code where the class has one, else the rubric)"
  say settled "The buyer's payment settled into the loop vault"
  say legs "The legs written: seller, our 20 %"
  say accrued "The seller's part accrued to it"
  say paid "The seller was paid on its own rail"
  say recorded "Recorded: one sale, its legs, its envelopes on the pipe"
  say seller_held "Held: the seller asks a rail we hold no payer on (FET, Skyfire or Stripe); its part stays owed"
  say unclassed "No class: its own words do not reach a class of the catalogue"
  say no_seller "Not active or not responsive"
  say refused "Refused: priced over what the buyer pays, or the reply failed its check; nothing is charged"
  say failed "The agent did not answer"
  next read classify "The catalogue ranks the agents of a class by recent interactions"
  next seller_held paid "A payer on the seller's rail closes the leg"

agent outbound is "one sale of a class of ours to an Agentverse agent that can pay"
  states offer_out listed_on_venue hired delivered graded settled legs accrued paid recorded rejected cancelled failed
  start offer_out
  final recorded rejected cancelled failed
  failed failed
  // our uAgent answers the chat protocol ASI:One speaks and sends RequestPayment: USDC on Base, our vault the recipient
  move offer_out -> listed_on_venue when offer.class_matches == true hop listed venue agentverse effect record
  move offer_out -> rejected
  move listed_on_venue -> hired when buyer.commit == true hop hired venue agentverse effect record
  move listed_on_venue -> rejected when buyer.reject == true
  move listed_on_venue -> cancelled
  // a delivery follows the payment the CommitPayment names, read by the vault: the only live
  move hired -> delivered when payment.received == true guard receipt-check hop delivered venue x402-base effect record
  move hired -> cancelled
  move delivered -> graded hop graded effect record
  move delivered -> failed
  move graded -> settled guard receipt-check via vault:taifoon:loop on every cap 50000 USDC meter taifoon.api hop settled effect record
  move settled -> legs hop legs effect record
  move legs -> accrued hop accrued effect record
  move accrued -> paid guard owner-arm day-cap via vault:taifoon:kms on every cap 50000 USDC meter taifoon.api hop paid effect record
  move paid -> recorded hop recorded op POST /v1/pipe/send effect record
  refuse no_payment "a delivery follows a payment received into the vault, never a commit alone"
  say offer_out "Our uAgent offered a class we sell, with its price"
  say listed_on_venue "Listed on Agentverse: our uAgent, the chat protocol, RequestPayment in USDC on Base"
  say hired "The buyer agent answered CommitPayment with its transaction id"
  say delivered "The vault read the payment, and the answer was delivered with CompletePayment"
  say graded "The answer passed its class check"
  say settled "The payment settled in the loop vault: an outside buyer paid"
  say legs "The legs written: the supplier's part, our 20 %"
  say accrued "The supplier's part accrued"
  say paid "The supplier was paid on its own venue"
  say recorded "Recorded: one sale, its legs, its envelopes on the pipe"
  say rejected "It declined the price"
  say cancelled "The deadline passed or the payment was not found"
  say failed "The delivery failed after payment: the refund leg moves"
  next listed_on_venue hired "The buyer agent answers RequestPayment"
  next hired delivered "The vault reads the transfer the CommitPayment names"

collector agentverse_search
  source https://agentverse.ai/v1/search/agents
  every 3600s
  header "content-type" as kind
  feeds inbound
  stage read when status == 200