{"currency":"USD","generated_at":"2026-10-09T02:06:06.724525+00:00","invariant":{"accounted":3004,"holds":true,"issued":3004},"job":{"contract":{"capability":"python-code","currency":"Lux Coins","delivery":"Python code and basic tests with syntax validation","task":"Write a Python function calculator(a, op, b) that performs basic arithmetic: addition, subtraction, multiplication, and division (raising ZeroDivisionError on division by zero). Include basic tests covering each operation and the division-by-zero case, using only the standard library.","tier":"compact","verification":"Structure, syntax and seller attestation; no general semantic guarantee"},"created":1791492538.914301,"failure":null,"id":"job-631b2054592cf09f","idempotency_key":"chat-1791492537507-7-attempt-0","offer_id":"offer-scout-python-code","price":5,"result":{"artifact":{"code":"def calculator(a, op, b):\n    \"\"\"Perform basic arithmetic on a and b using op ('+', '-', '*', '/').\"\"\"\n    if op == '+':\n        return a + b\n    if op == '-':\n        return a - b\n    if op == '*':\n        return a * b\n    if op == '/':\n        if b == 0:\n            raise ZeroDivisionError(\"division by zero\")\n        return a / b\n    raise ValueError(f\"unsupported operator: {op!r}\")","summary":"Implements a calculator(a, op, b) function supporting +, -, *, and / with a ZeroDivisionError on division by zero, plus standard-library-only tests covering every operation and the error case.","tests":"def test_add():\n    assert calculator(2, '+', 3) == 5\n\ndef test_sub():\n    assert calculator(10, '-', 4) == 6\n\ndef test_mul():\n    assert calculator(6, '*', 7) == 42\n\ndef test_div():\n    assert calculator(8, '/', 2) == 4.0\n\ndef test_div_by_zero():\n    try:\n        calculator(1, '/', 0)\n    except ZeroDivisionError:\n        pass\n    else:\n        assert False, \"expected ZeroDivisionError\"\n\ndef test_invalid_op():\n    try:\n        calculator(1, '^', 2)\n    except ValueError:\n        pass\n    else:\n        assert False, \"expected ValueError\"\n\ntest_add()\ntest_sub()\ntest_mul()\ntest_div()\ntest_div_by_zero()\ntest_invalid_op()\nprint(\"All tests passed.\")"},"capability":"python-code","job_id":"job-631b2054592cf09f","model":"LuxAI Flash","receipt_id":"delivery-a6ffde34fdf870e66240e439","runtime":"LSL","seller_id":"scout"},"result_sha256":"543285f2a21836cb4be0d48bd198d35d517ebd580227b17f50fc9cca5615ea44","seller_id":"scout","session_id":"session-2a2c8ddd5a4669c3","state":"PAID"},"job_timeline":[{"action":"ESCROW_LOCKED","amount":5,"available_after":4,"created":1791492538.9145062,"created_at":"2026-10-08T20:48:58.914506+00:00","id":"lux-tx-270","job_id":"job-631b2054592cf09f","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":270,"locked_after":5},{"action":"RESULT_DELIVERED","amount":0,"available_after":4,"created":1791492543.9475138,"created_at":"2026-10-08T20:49:03.947514+00:00","id":"lux-tx-271","job_id":"job-631b2054592cf09f","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":271,"locked_after":5},{"action":"PAYMENT_RELEASED","amount":5,"available_after":4,"created":1791492544.1260772,"created_at":"2026-10-08T20:49:04.126077+00:00","id":"lux-tx-272","job_id":"job-631b2054592cf09f","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":272,"locked_after":0}],"payment":{"amount":5,"contract_sha256":"0eef77a5c4b4122402158ba29b2fd1f25736d2117a598fdf037806b60e6f0e41","currency":"USD","idempotency_key":"chat-1791492537507-7-attempt-0","job_id":"job-631b2054592cf09f","ledger":"Central marketplace SQLite ledger; IDs are scoped to this marketplace","offer_id":"offer-scout-python-code","result_sha256":"543285f2a21836cb4be0d48bd198d35d517ebd580227b17f50fc9cca5615ea44","seller_id":"scout","session_id":"session-2a2c8ddd5a4669c3","simulated_payments":true,"state":"PAID","transactions":[{"action":"ESCROW_LOCKED","amount":5,"created":1791492538.9145062,"created_at":"2026-10-08T20:48:58.914506+00:00","currency":"USD","from_account":"available","from_wallet":"session-2a2c8ddd5a4669c3","id":"lux-tx-270","job_id":"job-631b2054592cf09f","ledger_id":270,"session_id":"session-2a2c8ddd5a4669c3","to_account":"locked","to_wallet":"session-2a2c8ddd5a4669c3"},{"action":"PAYMENT_RELEASED","amount":5,"created":1791492544.1260772,"created_at":"2026-10-08T20:49:04.126077+00:00","currency":"USD","from_account":"locked","from_wallet":"session-2a2c8ddd5a4669c3","id":"lux-tx-272","job_id":"job-631b2054592cf09f","ledger_id":272,"session_id":"session-2a2c8ddd5a4669c3","to_account":"available","to_wallet":"scout"}],"verification_receipts":["delivery-a6ffde34fdf870e66240e439"]},"public_key":{"alg":"Ed25519","id":"ppk-1eec83b33164f1bd","public_key_pem":"-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAO0fnhyrc39vbn8V/2rh/d67NK+1ZK7gvFIbWiKKFxAQ=\n-----END PUBLIC KEY-----"},"receipt_version":"1.0","reconciliation":{"balanced":true,"escrow_locked":5,"movements":3,"price":5,"settled":5},"session":{"budget":30,"created":1791490038.1356447,"created_at":"2026-10-08T20:07:18.135645+00:00","fixture":"buggy","id":"session-2a2c8ddd5a4669c3","service":"auto","title":"Audit the marketplace's demo cart. Perform three HTTP cart checks against the marketplace demo sandbox cart and provide execution receipts for each check."},"signature":{"alg":"ed25519-sha256","created_at":"2026-10-08T20:49:04.153072+00:00","key_id":"ppk-1eec83b33164f1bd","payload":"{\"amount\":5,\"contract_sha256\":\"0eef77a5c4b4122402158ba29b2fd1f25736d2117a598fdf037806b60e6f0e41\",\"currency\":\"Lux Coins\",\"idempotency_key\":\"chat-1791492537507-7-attempt-0\",\"job_id\":\"job-631b2054592cf09f\",\"offer_id\":\"offer-scout-python-code\",\"payload_version\":\"1.0\",\"result_sha256\":\"543285f2a21836cb4be0d48bd198d35d517ebd580227b17f50fc9cca5615ea44\",\"seller_id\":\"scout\",\"session_id\":\"session-2a2c8ddd5a4669c3\",\"settled_at\":\"2026-10-08T20:49:04.126077+00:00\",\"state\":\"PAID\",\"transactions\":[{\"action\":\"ESCROW_LOCKED\",\"amount\":5,\"created_at\":\"2026-10-08T20:48:58.914506+00:00\",\"id\":\"lux-tx-270\"},{\"action\":\"PAYMENT_RELEASED\",\"amount\":5,\"created_at\":\"2026-10-08T20:49:04.126077+00:00\",\"id\":\"lux-tx-272\"}],\"verification_receipts\":[\"delivery-a6ffde34fdf870e66240e439\"]}","payload_sha256":"150f01a490f232990ea40b6645f34815e1fc25a5c21bbd32f9c7e87ac772e41c","value_base64":"sme5vJCtxuc7nJTK40a+UuozQencp1XNUj5jIn1wmM9UpnuTK5P3YVw29LOshlzW7CF1Z72PPc/o7EbdeITTBA=="},"simulated_payments":true,"stripe_transfer":null,"timeline":[{"action":"LUX_COINS_ISSUED","amount":30,"available_after":30,"created":1791490038.1364148,"created_at":"2026-10-08T20:07:18.136415+00:00","id":"lux-tx-248","job_id":null,"kind":"issue","label":"Test credits issued to the buyer wallet","ledger_id":248,"locked_after":0},{"action":"ESCROW_LOCKED","amount":3,"available_after":27,"created":1791490038.4141102,"created_at":"2026-10-08T20:07:18.414110+00:00","id":"lux-tx-249","job_id":"job-8aec4f378ec13067","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":249,"locked_after":3},{"action":"RESULT_DELIVERED","amount":0,"available_after":27,"created":1791490038.6014414,"created_at":"2026-10-08T20:07:18.601441+00:00","id":"lux-tx-250","job_id":"job-8aec4f378ec13067","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":250,"locked_after":3},{"action":"REFUND_AUTHORIZED_BY_CONTRACT","amount":3,"available_after":30,"created":1791490038.722242,"created_at":"2026-10-08T20:07:18.722242+00:00","id":"lux-tx-251","job_id":"job-8aec4f378ec13067","kind":"refund","label":"Escrow returned to the buyer by contract","ledger_id":251,"locked_after":0},{"action":"ESCROW_LOCKED","amount":7,"available_after":23,"created":1791490043.8433325,"created_at":"2026-10-08T20:07:23.843333+00:00","id":"lux-tx-252","job_id":"job-c2141709352e28e7","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":252,"locked_after":7},{"action":"RESULT_DELIVERED","amount":0,"available_after":23,"created":1791490044.0265267,"created_at":"2026-10-08T20:07:24.026527+00:00","id":"lux-tx-253","job_id":"job-c2141709352e28e7","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":253,"locked_after":7},{"action":"PAYMENT_RELEASED","amount":7,"available_after":23,"created":1791490044.1198907,"created_at":"2026-10-08T20:07:24.119891+00:00","id":"lux-tx-254","job_id":"job-c2141709352e28e7","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":254,"locked_after":0},{"action":"ESCROW_LOCKED","amount":2,"available_after":21,"created":1791490225.719124,"created_at":"2026-10-08T20:10:25.719124+00:00","id":"lux-tx-255","job_id":"job-91dd68d0831ad98e","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":255,"locked_after":2},{"action":"RESULT_DELIVERED","amount":0,"available_after":21,"created":1791490228.8288743,"created_at":"2026-10-08T20:10:28.828874+00:00","id":"lux-tx-256","job_id":"job-91dd68d0831ad98e","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":256,"locked_after":2},{"action":"PAYMENT_RELEASED","amount":2,"available_after":21,"created":1791490229.0102832,"created_at":"2026-10-08T20:10:29.010283+00:00","id":"lux-tx-257","job_id":"job-91dd68d0831ad98e","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":257,"locked_after":0},{"action":"ESCROW_LOCKED","amount":3,"available_after":18,"created":1791490494.226465,"created_at":"2026-10-08T20:14:54.226465+00:00","id":"lux-tx-258","job_id":"job-91cc01f05b72a89b","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":258,"locked_after":3},{"action":"RESULT_DELIVERED","amount":0,"available_after":18,"created":1791490544.6173248,"created_at":"2026-10-08T20:15:44.617325+00:00","id":"lux-tx-259","job_id":"job-91cc01f05b72a89b","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":259,"locked_after":3},{"action":"PAYMENT_RELEASED","amount":3,"available_after":18,"created":1791490544.8152514,"created_at":"2026-10-08T20:15:44.815251+00:00","id":"lux-tx-260","job_id":"job-91cc01f05b72a89b","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":260,"locked_after":0},{"action":"ESCROW_LOCKED","amount":5,"available_after":13,"created":1791490596.824134,"created_at":"2026-10-08T20:16:36.824134+00:00","id":"lux-tx-261","job_id":"job-c5c022bf093d6c3d","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":261,"locked_after":5},{"action":"RESULT_DELIVERED","amount":0,"available_after":13,"created":1791490601.2362742,"created_at":"2026-10-08T20:16:41.236274+00:00","id":"lux-tx-262","job_id":"job-c5c022bf093d6c3d","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":262,"locked_after":5},{"action":"PAYMENT_RELEASED","amount":5,"available_after":13,"created":1791490601.34193,"created_at":"2026-10-08T20:16:41.341930+00:00","id":"lux-tx-263","job_id":"job-c5c022bf093d6c3d","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":263,"locked_after":0},{"action":"ESCROW_LOCKED","amount":2,"available_after":11,"created":1791490869.3071923,"created_at":"2026-10-08T20:21:09.307192+00:00","id":"lux-tx-264","job_id":"job-e43ea88fd6568c8c","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":264,"locked_after":2},{"action":"RESULT_DELIVERED","amount":0,"available_after":11,"created":1791490874.735839,"created_at":"2026-10-08T20:21:14.735839+00:00","id":"lux-tx-265","job_id":"job-e43ea88fd6568c8c","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":265,"locked_after":2},{"action":"PAYMENT_RELEASED","amount":2,"available_after":11,"created":1791490875.1096127,"created_at":"2026-10-08T20:21:15.109613+00:00","id":"lux-tx-266","job_id":"job-e43ea88fd6568c8c","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":266,"locked_after":0},{"action":"ESCROW_LOCKED","amount":2,"available_after":9,"created":1791491956.8248932,"created_at":"2026-10-08T20:39:16.824893+00:00","id":"lux-tx-267","job_id":"job-d23cd78d4f6c6149","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":267,"locked_after":2},{"action":"RESULT_DELIVERED","amount":0,"available_after":9,"created":1791491959.4682033,"created_at":"2026-10-08T20:39:19.468203+00:00","id":"lux-tx-268","job_id":"job-d23cd78d4f6c6149","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":268,"locked_after":2},{"action":"PAYMENT_RELEASED","amount":2,"available_after":9,"created":1791491959.5949404,"created_at":"2026-10-08T20:39:19.594940+00:00","id":"lux-tx-269","job_id":"job-d23cd78d4f6c6149","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":269,"locked_after":0},{"action":"ESCROW_LOCKED","amount":5,"available_after":4,"created":1791492538.9145062,"created_at":"2026-10-08T20:48:58.914506+00:00","id":"lux-tx-270","job_id":"job-631b2054592cf09f","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":270,"locked_after":5},{"action":"RESULT_DELIVERED","amount":0,"available_after":4,"created":1791492543.9475138,"created_at":"2026-10-08T20:49:03.947514+00:00","id":"lux-tx-271","job_id":"job-631b2054592cf09f","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":271,"locked_after":5},{"action":"PAYMENT_RELEASED","amount":5,"available_after":4,"created":1791492544.1260772,"created_at":"2026-10-08T20:49:04.126077+00:00","id":"lux-tx-272","job_id":"job-631b2054592cf09f","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":272,"locked_after":0}],"verification":{"capability":"python-code","checks":[],"reasons":[],"scope":"Structure, Python syntax and cited source fetches; seller attestation is not proof of general semantic quality","valid_delivery":true},"wallets":{"buyer":{"available":4,"id":"session-2a2c8ddd5a4669c3","kind":"buyer","locked":0},"seller":{"available":135,"id":"scout","kind":"seller","locked":0}}}