Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

awp-sim

The reference world for the Agent World Protocol. It has a simulated arm, optionally a gripper, and runs in either time model. It exists to exercise the protocol, not to model physics.

It is built from these parts:

  • a sans-IO world engine;
  • a WebSocket server;
  • an audit log;
  • a scenario suite that records wire traces.

It speaks AWP through the protocol layer of awp-python: its message codec, frame codec, schemas, and lifecycle table.

It targets specification revision 0.1-draft.11, pinned as the spec/ submodule. This is an alpha, so it will change along with the draft.

Status

AWP: Core World, AWP-conformant against 0.1-draft.11

The world is Core World: AWP-conformant against 0.1-draft.11 in both time models, and so is every feature it offers. awp-conformance reports no failure and nothing untested. conformance/ holds the reports and the evidence for their manual rows, and CI runs the suite on every change. Every recorded trace also passes the spec's own checker, which verifies:

  • schemas;
  • the action lifecycle table;
  • idempotency;
  • replay;
  • frame sequencing.

Implemented:

  • lockstep (on_tick; any_session, or barrier with the gripper) and streaming;
  • inline and ws stream bindings;
  • the full action lifecycle, preemption (replace, queue, reject, blend), and idempotency;
  • watchdog and safe state, heartbeats, and resumption with replay and acknowledgement;
  • spatial, velocity, and rate envelopes (command_check), monitored during execution;
  • the audit log with redaction and hash chain, the e-stop, and world.reset;
  • beyond Core (--features): task, approval and standing approvals, transfer, seeding, snapshots, replay bundles, a servo command channel, and a gripper.

Not implemented:

  • grant expiry;
  • other stream bindings (webrtc, webtransport, shm, grpc);
  • the robotics profile (a simulated arm proves nothing physical).

Quickstart

pip install --pre awp-sim
awp-sim serve                        # streaming world on ws://127.0.0.1:8710
awp-demo                             # in another terminal: awp-python's demo agent

Other ways to run it:

  • Lockstep: awp-sim serve --mode lockstep runs the lockstep world.
  • Remote access: any non-loopback bind requires a token (--token, or $AWP_SIM_TOKEN) and TLS (--tls-cert, --tls-key). Pass the same token to the agent with awp-demo --token.
  • Logs: audit logs go to ./awp-audit, and --record-dir also writes each session's wire trace.
  • E-stop: kill -USR1 engages the e-stop and kill -USR2 releases it.

Run the failure scenarios:

awp-sim scenarios --out traces

The gripper

--features gripper adds gripper_01, with one action type, gripper_move { width_m }, and one channel, gripper_state.

  • It shares the multi-bind group cell with the arm. A session binds both with embodiments: ["arm_01", "gripper_01"], and its submissions then name embodiment_id.
  • It is shared: several sessions can bind it at once. Whichever submits a gripper_move first has the gripper until that action ends. Meanwhile the others' submissions are refused with AWP_BUSY.
  • In lockstep, the tick authority becomes barrier. The world advances once every session bound to an embodiment has a world.tick pending, and answers each call after its count advances.
    • While a session's call is pending, a second one is refused with AWP_BUSY. A call is lost with its connection, and the barrier then waits for a new one from the resumed session.
    • A reset or restore refuses pending calls with AWP_TICK_MISMATCH.

Layout

src/awp_sim/        world engine, arm and gripper, server, audit log, loopback, scenarios, replay, CLI
tests/              engine, server, feature, scenario, and evidence tests
conformance/        conformance reports and evidence
spec/               agent-world-protocol, pinned at spec-v0.1-draft.11
scripts/            trace checking against the spec's checker

Development

Requires Python 3.11+ and uv. Node 20+ is needed only for the trace checker.

git clone --recurse-submodules https://github.com/Hyperduality/awp-sim
cd awp-sim
uv sync

AGENTS.md lists the checks and the steps for moving to a new draft revision and for releasing.

License

Apache-2.0. See LICENSE.

Metadata

Release files for awp-sim 0.1.0a8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awp-sim 0.1.0a8
File Size Uploaded Provenance Actions
awp_sim-0.1.0a8.tar.gz 158.3 kB With provenance Details for awp_sim-0.1.0a8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for awp-sim 0.1.0a8
File Interpreter ABI Platform Actions
awp_sim-0.1.0a8-py3-none-any.whl Python 3 none any Details for awp_sim-0.1.0a8-py3-none-any.whl

Total release size: 214.0 kB

Release files / awp_sim-0.1.0a8.tar.gz

Download URL awp_sim-0.1.0a8.tar.gz
Size 158.3 kB
Tags Source
SHA-256 checksum
How to use checksums
be2e4d1102b22b30bad602501f23054d03d5f75a1933169715b63696323f3eb3
BLAKE2b-256 checksum
How to use checksums
f37fe8ee33ca9e514e915c5b61d158bdb7ba407c13c4cb9438f5cc5435ba0c78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / awp_sim-0.1.0a8-py3-none-any.whl

Download URL awp_sim-0.1.0a8-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a115d83a5e7b63df769b05b2fd090e679c74d70eecf78e396b183f4316f9d84
BLAKE2b-256 checksum
How to use checksums
97ea361497b191f0dc17cbba0062409fad730081d9e16e1fb028b72d8684d47e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for awp-sim 0.1.0a8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for awp_sim-0.1.0a8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page