orders.lookup and payments.refund tools. The server owns the order state, permissions, operation journal and evaluator. Your local process runs the agent code and forwards tool operations through a temporary loopback broker.12curl "$HALFSPAN_API_URL/api/v1/observability/eval-datasets/$DATASET_ID" \ -H "Authorization: Bearer $HALFSPAN_API_KEY"
version, currentVersion, manifestDigest, manifest and cases. Each case includes rowDigest and requiredChecks. Add ?version=N to fetch an older frozen version. Use the digest supplied by the server; dataset and simulation manifests use separate versioned canonical formats.refund-world.json using your saved case:1234567891011121314{ "dataset": "YOUR-DATASET-UUID", "datasetVersion": 2, "case": "YOUR-CASE-UUID", "orderId": "order-1", "request": "Please refund 40 units", "paid": 100, "authorizedRefund": 40, "expectedRefund": 40, "faults": [ {"operationId": "refund-1", "stage": "after_commit_response_lost"} ], "qualification": [] }
permission, committed_effect, idempotency, prerequisites and artifact_identity. Each entry has factId, status (match, mismatch or unknown) and an evidenceDigest in sha256: format. Supply these from your review of the world against the intended system. An empty inventory produces blocked_unknown. Every critical fact must match for eligibility; one mismatch vetoes qualification. Customer statements are retained as attestations, rather than promoted to independent verification.1234node packages/sim/cli.mjs sim trial \ --spec refund-world.json \ --code path/to/agent.mjs \ --target node -- path/to/agent.mjs
--code to bind the source artifacts your run uses. The CLI hashes those files and the fixture, and the server binds them to the scenario, world, dataset and evaluator identities. This records supplied artifacts; it does not attest the complete executable or dependency environment.protocol, runId, attempt, entrypoint, knowledge, tools, clock, deadline and broker: {url, token}. Write one JSON object to standard output when finished. The target's output does not determine its grade. The parent CLI requests server finalization after the target exits successfully.broker.url with Content-Type: application/json and Authorization: Bearer <broker.token>:123456789{ "operationId": "lookup-1", "tool": "orders.lookup", "schemaDigest": "COPY-THE-OFFERED-TOOL-SCHEMA-DIGEST", "orderId": "order-1", "amount": 0, "causalParent": "", "expectedRevision": 0 }
id, paid and refunded fields with a state revision. To refund, use payments.refund, a positive amount, the current revision and the lookup operation ID as causalParent.before_commit faults allow retry without an earlier effect. Unknown tools and schemas produce unsupported evidence and block eligibility.--target-env OPENAI_API_KEY to explicitly pass a model credential. Halfspan and CI credential variables are reserved.| Method | Path | Effect |
| POST | /api/v1/observability/simulations | Create an immutable manual run |
| GET | /api/v1/observability/simulations/{id} | Read public manifests and evaluation |
| POST | /api/v1/observability/simulations/{id}/operations | Commit an attempt-bound tool operation |
| POST | /api/v1/observability/simulations/{id}/finalize | Grade authoritative state and close the run |
| POST | /api/v1/observability/simulations/{id}/cancel | Acknowledge a fence against subsequent operations |
id and executor, manifestDigest, codeDigest, configDigest, and the fixture fields above. Operations, finalization and cancellation bind the returned attempt. Direct API calls require traces:read or traces:write as appropriate. Read-only keys cannot mutate a world. Project selection uses workspaceProject; resolved stored projects are checked again before access.0 means eligible and passed, 1 means failed, and 2 means inconclusive or unavailable. Outcome, support and gate are separate fields. A correct refund with missing qualification remains inconclusive.just simulation-replay with migrated disposable Postgres and ClickHouse to replay the kernel corpus and the actual CLI/API/storage workflow. Hosted execution, automatic world construction, repository discovery, counterparty agents, paired statistical reports and GitHub simulation workflows remain separate work.