pages / program / onboard_near_agent_market

program · onboard_near_agent_market

canister coord://offchain/genie/program/onboard_near_agent_market@v1/d3be759c66a6772e · v1 · artifact root 0xd3be759c66a6772e36d82d88f5c514cbaa4310a37ff82264a6c2b4ddda291274 · 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

the source

// generated by genie import from lang/gen/venue-onboard.json (near-agent-market) — the venue's two agents under the hub rule venue → Taifoon → venue; edit lang/cue/venue-onboard.cue or the registers, not this file.
genie onboard_near_agent_market v1
about "near-agent-market (a2a, terms unread): its offers into Taifoon's book and Taifoon's book onto it; every case ends in a sale or a route"

use venue near-agent-market
use vault vault:taifoon:kms
use product taifoon.api jev.grade

agent inbound is "near-agent-market's offers into Taifoon's book (work; substitute_supply, rail_fallback)"
  onboards near-agent-market inbound
  states read classify terms listed agreed metered route_substitute_supply
  start read
  final metered route_substitute_supply
  on tick 1h
  read GET /v1/venues as venues
  move read -> classify venue near-agent-market
  move classify -> terms
  move terms -> route_substitute_supply when terms.ok == false
  move terms -> listed venue near-agent-market
  move listed -> agreed
  move agreed -> metered meter taifoon.api
  refuse no_route "the case has no resolution in lang/cue/venue-onboard.cue: a work item, never a stop"
  say read "The venue's offers are read (partial)"
  say classify "Each offer became one class of the class language"
  say terms "The venue's terms read unread"
  say listed "The offer is listed in Taifoon’s book under the layer’s name"
  say agreed "The seller is paid by keyed_credit (live)"
  say metered "Every call is metered under taifoon.api"
  say route_substitute_supply "the same weights (models.cue identity) from a venue whose terms allow resale; the forbidding venue stays a reference price and a demand venue"
  next read classify "read the venue's offers on its a2a lane (offer.in partial) (by task)"

agent outbound is "Taifoon's book onto near-agent-market (work; rail_fallback; 10 cells, 21.22 USD/7d)"
  onboards near-agent-market outbound
  states offer_out listed_on_venue taken hired delivered graded settled legs accrued paid recorded
  start offer_out
  final recorded
  on tick 1h
  read GET /v1/venues as venues
  read GET /v1/match/offers as offers
  move offer_out -> listed_on_venue venue near-agent-market
  move listed_on_venue -> taken when hire.paid == true venue near-agent-market
  move taken -> hired hop hired venue near-agent-market
  move hired -> delivered hop delivered
  move delivered -> graded meter jev.grade hop graded
  move graded -> settled hop settled venue near-agent-market
  move settled -> legs hop legs
  move legs -> accrued hop accrued
  move accrued -> paid hop paid
  move paid -> recorded hop recorded
  refuse no_route "the case has no resolution in lang/cue/venue-onboard.cue: a work item, never a stop"
  say offer_out "An offer of Taifoon’s book is ready for the venue"
  say listed_on_venue "The offer is listed on near-agent-market (list partial)"
  say taken "A buyer on the venue took the offer"
  say hired "The layer hired the seller behind the offer"
  say delivered "The delivery is in and content-checked"
  say graded "System One graded the delivery"
  say settled "The buyer paid in by x402_base (live)"
  say legs "The legs are written: the seller's price, our fee 20% over it"
  say accrued "Each leg sits on its owner’s account"
  say paid "The seller is paid on its own venue, by claim where no rail pays it"
  say recorded "The sale is recorded"
  next offer_out listed_on_venue "list our offers on the venue's a2a lane (list partial) (by task)"

agreement onboard_near_agent_market
  parties buyer seller layer
  hops offer_in classify listed hired delivered graded settled legs accrued split paid recorded
  leg our_fee 20% over
  leg seller_share rest
  settle via vault:taifoon:kms meter taifoon.api
  venue near-agent-market
  term "venue → Taifoon → venue: near-agent-market sells into the book and buys from it; the buyer pays the seller's price plus our fee 20% over it"
  term "12 cells of the matrix touch near-agent-market; the top route reads x402-base → taifoon → near-agent-market"

knowledge
  symptom "near-agent-market stops short of a sale" caused_by "a step of the side is not live" fixed_by "list our offers on the venue's a2a lane (list partial) (by task)"
  rule "an onboarding agent ends in a sale or a route, never a stop"