pages / program / flow_inference_resale

program · flow_inference_resale

canister coord://offchain/genie/program/flow_inference_resale@v1/39d712a45674d978 · v1 · artifact root 0x39d712a45674d97806ae66592d393591866adba36770cc8129198265aaae9c42 · 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/lambda-flows.json (flow:inference-resale) — a lambda flow as a genie machine: every node a state, every edge a move; a guard node's edge carries its pass; an act node's entry signs behind the lambda's standard arm.
genie flow_inference_resale v1
about "GPU inference resold under a key: ask → balance → quote → reserve → serve → meter → split → receipt: RELEASE-1-PLAN §4, the one lane closed end to end: a paid request (the wall with X-API-Key, x402, or MCP) → the key's GRID balance and the vault's caps → the gate's list price for the request's tokens → the …"

use chain eip155:8453

agent inference_resale is "GPU inference resold under a key: ask → balance → quote → reserve → serve → meter → split → receipt"
  states start pay_in balance quote guard_node serve meter_node receipt
  start start
  final receipt
  on event ask_node
  move start -> balance component coord-rpc
  move start -> pay_in component pay-in
  move pay_in -> quote component inference-gate
  move balance -> quote component inference-gate
  move quote -> guard_node component vault-signer
  move guard_node -> serve component inference-gate
  move serve -> meter_node component grid-meter
  move meter_node -> receipt component coord-stream
  next pay_in quote "then quote"
  next balance quote "then quote"
  next quote guard_node "then guard"
  next guard_node serve "then serve"
  next serve meter_node "then meter"
  next meter_node receipt "then receipt"

knowledge
  symptom "GPU inference resold under a key: ask → balance → quote → reserve → serve → meter → …" caused_by "a guard node did not pass" fixed_by "read the guard's expect in the flow, fix the input, run again"
  rule "GPU inference resold under a key: ask → balance → quote → reserve → serve → meter → …"