pages / program / lambda_agentic_commerce

program · lambda_agentic_commerce

canister coord://offchain/genie/program/lambda_agentic_commerce@v1/74ec98869df2677c · v1 · artifact root 0x74ec98869df2677cbe561685da72af766b24e0c7b4c30915ea1a99c85d7190aa · 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/taifoon-lambdas.json (lambda:agentic-commerce) — a Taifoon Lambda as a genie client program: its triggers, reads, acts behind its guards, its vault.
genie lambda_agentic_commerce v1
about "Agentic commerce (strict): one sale walked through the layer: discover, spec check, quote, list, pay in, then the twelve hops of the sale, each one /v1 operation; reads, records and unsigned plans only"

use vault vault:taifoon:kms
use chain every
use product lambda.act lambda.read
use guard owner-arm signer-allowlist chain-pin receipt-check outflow-breaker halt-on-failure single-runner idempotent-payouts fixed-addresses vault-owns kms-sign-only role-keys

agent agentic_commerce is "Agentic commerce (strict)"
  states idle read settled recorded held
  start idle
  final recorded held
  failed held
  on event lane
  move idle -> read meter lambda.read
  move read -> settled act settler signs evm-carrier settle(bytes32) guard owner-arm signer-allowlist chain-pin receipt-check outflow-breaker halt-on-failure single-runner idempotent-payouts fixed-addresses vault-owns kms-sign-only role-keys via vault:taifoon:kms on every cap 5000000 USDC meter lambda.act
  move settled -> recorded
  move * -> held when guard.held == true
  refuse guard_held "a guard held the run; nothing was signed"
  say recorded "Agentic commerce (strict): the run is recorded"
  next idle read "The run starts on its trigger: lane"

vault vault:taifoon:kms
  grid lambda.act per_call 1
  cap USDC every per_tx 5000000 per_day 20000000

knowledge
  symptom "Agentic commerce (strict) is held" caused_by "a guard held the run (owner-arm, signer-allowlist, chain-pin, receipt-check, outflow-breaker, halt-on-failure, single-runner, idempotent-payouts, fixed-addresses, vault-owns, kms-sign-only, role-keys)" fixed_by "read the guard by name in the trace, fix its cause, let the next trigger run"
  rule "Agentic commerce (strict) signs only behind owner-arm, signer-allowlist, chain-pin, receipt-check, outflow-breaker, halt-on-failure, single-runner, idempotent-payouts, fixed-addresses, vault-owns, kms-sign-only, role-keys"