pages / example / erc8183_job

example · erc8183_job

canister coord://offchain/genie/program/erc8183_job@v1/5a8711a51f9d5f19 · v1 · artifact root 0x5a8711a51f9d5f196910dda2e4e50e0a8d6287625fefeecc0de450c5627e3134 · previous none (first version) · superroot at publish not sealed yet · follows erc8183

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

the words it says

its helpdesk graph

erc8183 job (a .genie program) in the studio: 4 symptoms, 4 fixes

the source

// _GENIE_v1_ — one assured job on the ERC-8183 hook: created, funded, submitted, then settled, rejected or expired; graded by
// System One (Jev) before it settles; the agreement names the legs; the door a buyer walks through.
genie erc8183_job v1
about "One assured job on the ERC-8183 hook: created, funded, submitted, graded by System One, settled through the KMS vault, or rejected or expired"

use protocol erc8183
use venue erc8183-base
use chain eip155:8453
use vault vault:taifoon:kms
use product taifoon.api
use guard owner-arm signer-allowlist value-cap receipt-check simulate-first

agent job is "one job of the hook, buyer to seller, graded before it settles"
  follows protocol erc8183
  states Created Funded Submitted Settled Rejected Expired
  start Created
  final Settled Rejected Expired
  failed Rejected Expired
  on lane jobs
  read GET /v1/explorer/jobs/:id as job
  move Created -> Funded when job.budget > 0 hop hired venue erc8183-base op GET /v1/explorer/jobs/:id
  move Funded -> Submitted hop delivered op POST /v1/jobs/:jobId/complete
  move Submitted -> Settled assure 0.7 asks spec_met unsupported_claim ending act settler signs taifoon-hooks settle(bytes32) guard owner-arm signer-allowlist value-cap receipt-check simulate-first via vault:taifoon:kms on eip155:8453 cap 5000000 USDC meter taifoon.api hop settled
  move Submitted -> Rejected when grade.verdict == "reject" hop graded
  move * -> Expired when job.deadline_passed == true
  refuse deadline "the job passed its deadline before a delivery"
  say Funded "The budget sits in the hook's escrow"
  say Settled "The seller share left the escrow; the receipt is the proof"
  next Created Funded "Fund the job: the budget goes to the hook's escrow"
  next Submitted Settled "System One grades the delivery; at 0.7 and above it settles, a reject withholds"

knowledge
  symptom "the job is submitted but does not settle" caused_by "System One graded under 0.7 and the reject stands" fixed_by "read the grade's four answers, fix the delivery, submit again before the deadline"
  rule "a settle on the hook stands behind simulate-first and receipt-check"

door "Buy an assured job" as job
  product erc8183-job
  locale en
  api https://coord.taifoon.dev
  rule white-label
  step Created "Your job is created on the hook" next Funded
  step Funded "Your budget sits in the escrow" next Submitted
  check GET /v1/explorer/jobs/:id at job.state exists
  step Submitted "The seller submitted; System One grades it" next Settled
  step Settled "The job settled; the receipt is the proof"
  step Rejected "The reject stands; your budget is compensated as the agreement says"
  step Expired "The deadline passed; the budget returns"
  handoff "a dispute over a grade is a person's case" booking https://cal.com/taifoon meet https://meet.jit.si room genie-job

agreement assured_job
  parties buyer seller evaluator layer
  hops hired delivered graded settled
  leg our_fee 5%
  leg protocol_share 2%
  leg seller_share rest
  settle via vault:taifoon:kms meter taifoon.api
  protocol erc8183
  venue erc8183-base
  term "a reject that stands withholds the seller share and compensates the buyer"