# Atlas pool queue protocol · 1.83 This is an optional CPU job queue in the separately deployed Python pool. It is disabled by default. The site UI at `/pool/atlas/` is an operator client, not a proxy, scheduler or claim that a pool is deployed. The current packaged catalog contains 45 bounded recipes; the UI displays the actual count returned by the selected server. The fixed Node.js 24 bridge validates recipe parameters and replays results. No request may select an executable, file path, module, URL, shell command, provider model or arbitrary code. ## Origins and credentials The operator page accepts an explicit HTTPS origin, such as `https://pool.example.org`, with no path prefix, user information, query or fragment. HTTP is accepted only for `localhost`, `127.0.0.1` and `[::1]` during development. Use an HTTPS endpoint when the browser's mixed-content or local network policies block development access. Configure the external pool's CORS allowlist for the site's exact origin. The browser sends `credentials: omit`, `redirect: error` and no referrer. Private requests carry `Authorization: Bearer ` only to the selected origin. The public catalog request omits the token. Changing the connection aborts old requests; late responses cannot populate the new pool's state. Credentials are stored in the current tab's session storage, with an in-memory fallback, and are not downloaded. Forgetting a local credential does not revoke it on the pool or cancel existing work. Operator authorization is the pool's existing configured API token. `off`, `open`, `none`, an absent token, a token in the query string, a site resource key or an ASIC password cannot authorize Atlas control. Worker authorization uses a separately issued, expiring `za_` token with 64 lowercase hexadecimal digits. Worker keys are shown once and stored hashed by the coordinator. They are not operator credentials. ## HTTP API on the pool origin | Method and path | Authority | Request / response | | --- | --- | --- | | `GET /v1/atlas/catalog` | Public, allowed origin | Catalog and availability | | `GET /v1/atlas/jobs` | Operator | `{jobs:[summary],limits}` | | `POST /v1/atlas/jobs` | Operator | `{recipe,parameters,idempotencyKey}` → `{job}` | | `GET /v1/atlas/jobs/{id}` | Operator | Job detail and any saved receipt/result | | `POST /v1/atlas/jobs/{id}/cancel` | Operator | `{}`; cancel an active job | | `GET /v1/atlas/workers` | Operator | `{workers:[worker]}` | | `POST /v1/atlas/workers` | Operator | `{name,recipes,expiresInSeconds,maxJobs}` → `{worker,token}` | | `POST /v1/atlas/workers/{id}/revoke` | Operator | `{}`; revoke the worker key | All POST bodies are JSON with exactly the supported fields. Recipe parameters are bounded by the packaged model validator; unknown keys and out-of-range values fail. The catalog's `parameters` is a defaults object, **not JSON Schema**. Catalog shape: ```json { "schema": "0ex.pool.atlas.catalog.v1", "enabled": true, "available": true, "executor": "cpu", "gpu": false, "arbitraryCode": false, "recipes": [{"id": "", "label": "", "scope": "", "parameters": {}}], "limits": {} } ``` This is a shape example, not a recipe or successful execution. Disabled mode returns `enabled:false`, `available:false`, and no recipes. An enabled service without the fixed Node bridge returns 503. The UI must not fabricate readiness. Jobs use `queued`, `leased`, `verifying`, `verified`, `failed`, or `cancelled`. Lists are newest first and bounded by lifetime capacity: 256 jobs and 128 worker keys. They contain all retained rows within those caps, so there is no cursor pagination in this version. Timestamps ending in `At` are Unix **seconds**. Worker fields are `id`, `name`, `recipes`, `createdAt`, `expiresAt`, `revokedAt`, `maxJobs`, and `claimsUsed`. A worker entry is a credential, not evidence of an online machine. Expiry/revocation and exhausted claims prevent new work. The UI shows actual returned records, not fabricated worker counts or heartbeat data. ### Idempotency and limits `idempotencyKey` is a required body field, 8–128 characters from `[A-Za-z0-9_.:-]`. Repeating the same request returns the same job. Reusing the key with different content returns 409. Preserve it after an uncertain network response. The UI locks a pending draft and retries the same body/key; it never automatically retries a mutation. Worker creation is explicit and has no replayable secret. If the response is lost, inspect the worker list and revoke the unused key before issuing another. | Limit | Current value | | --- | --- | | Active queue | 32 jobs | | Stored lifetime jobs / workers | 256 / 128 | | Active leases per worker | 1 | | Lease / maximum attempts | 180 seconds / 3 | | Concurrent result verifier | 1 | | Worker lifetime | 60–86400 seconds | | Worker claim allowance | 1–100 jobs | | Canonical parameter budget / request budget | 32768 / 65536 bytes | | Fixed bridge output budget | 2097152 bytes | Read live catalog `limits` for the selected deployment. Capacity exhaustion is explicit; these are not promised production throughput figures. Errors are JSON `{error:"atlas_…"}`. Typical statuses: 400 invalid input, 401 absent/expired/revoked authorization, 403 disallowed operator/origin, 409 state or idempotency conflict, 413 size limit, 429 capacity/busy limit, 503 disabled/unavailable bridge. An error never grants execution or payment authority. Do not treat a timeout as completion. ## Worker transport: the `science.*` extension Use the existing pool TCP/TLS or WebSocket endpoint. The reference worker requires TLS for remote hosts; unencrypted transport is allowed only on literal loopback. WebSocket typically uses `/stratum/sha256d`, with TLS supplied by the pool/proxy. JSON requests carry a numeric ID, method and object parameters. | Method | Parameters | Result | | --- | --- | --- | | `science.subscribe` | `{}` | `0ex.pool.atlas.science.v1`, version, availability and CPU scope | | `science.authorize` | `{token}` | Authorized worker and permitted recipes | | `science.claim` | `{requestId}` | A bounded job/lease or `{job:null}` | | `science.submit` | `{jobId,leaseToken,planHash,evidenceHash}` | Saved CPU replay receipt, or rejection | Claims carry the frozen `recipe`, `parameters`, `plan`, `planHash`, `sourceManifestHash`, attempt, expiry and lease token. The worker verifies the plan/source hashes against its packaged bridge before calculating. Submission sends a digest, not arbitrary executable source. The coordinator reproduces the same fixed calculation and accepts only matching evidence under the live lease. Expired or revoked authority, cancelled jobs and stale submissions cannot create a positive receipt. A completed job is immutable; a retry cannot complete twice. This extension does not redefine ordinary ASIC `mining.*` methods. SHA-256d and Scrypt miners continue producing mining shares; CPU Atlas jobs are executed by the separate Node worker. No all-recipe GPU kernel implementation is claimed. ## Receipts and interpretation Verified HTTP detail includes `job`, `receipt`, exact `receiptJSON`, `receiptHash`, and `resultReceipt`. Receipt schema is `0ex.pool.atlas.receipt.v1`, with job/worker identity, recipe and parameters, plan/source/evidence hashes, `replayAgrees:true`, verification time and scope: ```json { "execution": "worker_cpu_with_server_cpu_replay", "physicalMinerExecution": false, "gpuExecution": false, "independentImplementation": false } ``` The operator page checks the exact receipt JSON hash and its agreement with the returned job, plan, source manifest and numerical evidence before offering a receipt download. A hash establishes byte integrity. Server replay establishes agreement within the same implementation; neither is independent scientific replication or proof of a physical effect. No payout, provider call, model access charge, robot operation or publication into the site's knowledge graph occurs through this queue. The finite CLI is documented in `external-agents/pool-atlas/README.md` in the source and Agent Kits packages. It requires explicit `--once` or bounded `--max-jobs` plus `--max-seconds`, and the worker token only through `OEX_ATLAS_WORKER_TOKEN`.