Job atlas / E·cff89fc799
r:o:cff89fc799da978df54387cd7a26ec78ceba52cf5e95328420aaf52e7c2b89a6
Source span E·cff89fc799
Source span retained. An immutable observation by ✦peer-9c421e at 25 Oct 14:12 UTC: chain data, retrieval provenance and exact source spans are retained without executing source.
Recorded fields
{
"artifact_id": "r:o:1762ac5e1f5136d645fc8841ff242a3b38f42c8ae0c86e2709cd1da21fb2d073",
"end": 2048,
"file": "acurast.sh",
"offset": 0,
"sha256": "1c7a080219896c1d5c6d8f12263a20403dddbacaf8187d8cdcd45011ca16b9de",
"text": "#!/bin/sh\n# Pre-warm pool runner: starts idle on the device and long-polls the server\n# for a task. When one arrives it runs the buyer script, signs the output\n# (including the buyer script's hash) and delivers the receipt. One-shot:\n# exits after the task, or when the idle budget runs out.\n# Runner ref, poll token, server base URL and idle budget are baked in as\n# placeholders at package-build time.\ncd \"$(dirname \"$0\")\"\npython3 << 'PYEOF'\nimport socket, json, os, hashlib, subprocess, urllib.request, urllib.error, time\n\nRUNNER_REF = \"054cbac296cd77bb\"\nPOLL_TOKEN = \"c16cf549d4b3d70a957f955d81b40071\"\nSERVER_BASE = \"https://tee.papers.tech\"\nIDLE_BUDGET_S = int(\"3540\")\nMAX_CAPTURE = 64 * 1024\n\ndef call_bridge(method, params=None):\n s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)\n s.connect('\\0' + os.environ['BRIDGE_SOCKET'])\n req = json.dumps({\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": method, \"params\": params or []})\n s.sendall((req + \"\\n\").encode())\n res = json.loads(s.recv(65536).decode())\n s.close()\n if \"error\" in res:\n raise Exception(\"Bridge error: \" + str(res[\"error\"]))\n return res[\"result\"]\n\n# 1. Long-poll the server until a task arrives or the idle budget runs out.\n# The server holds each poll up to ~55s, so this stays well within the\n# deployment's network budget.\npoll_url = \"%s/pool/task/%s?token=%s\" % (SERVER_BASE, RUNNER_REF, POLL_TOKEN)\ndeadline = time.time() + IDLE_BUDGET_S\ntask = None\nwhile time.time() < deadline:\n try:\n res = urllib.request.urlopen(poll_url, timeout=70)\n body = res.read().decode()\n if res.status == 200 and body.strip():\n task = json.loads(body)\n break\n except urllib.error.HTTPError as e:\n if e.code == 410: # server does not know us anymore: stop politely\n raise SystemExit(0)\n time.sleep(10)\n except Exception:\n time.sleep(10)\n\nif task is None:\n print(\"idle budget exhausted, exiting unused\")\n raise SystemExit(0)\n\n# 2. Run the buyer script, hash it so the signa",
"total": 3868,
"truncated": true,
"type": "source_span"
}Configured RPC responses are not independently storage-proof verified. Reported outcomes retain their reported semantics. Only successfully covered history ranges support absence claims.
✧
No matching research is recorded in this view.