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.9, 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.9

The world is Core World: AWP-conformant against 0.1-draft.9 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. 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.9
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.0a6

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.0a6
File Size Uploaded Provenance Actions
awp_sim-0.1.0a6.tar.gz 157.7 kB With provenance Details for awp_sim-0.1.0a6.tar.gz

Built distribution (wheel)

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

Total release size: 213.3 kB

Release files / awp_sim-0.1.0a6.tar.gz

Download URL awp_sim-0.1.0a6.tar.gz
Size 157.7 kB
Tags Source
SHA-256 checksum
How to use checksums
402abe3f7dc0aafcc57c49b8f7950944ff5946e13adf3aa3791c40cef489a75f
BLAKE2b-256 checksum
How to use checksums
a5056d0b2bebc1053442cc03c3a42627e804aaba3b603aa2cfc6a127a451dba8
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 Sep 26, 2026.

Transparency log

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

Download URL awp_sim-0.1.0a6-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
549c9170049a66318624bc8ad823bedb558d6d86f17e3c10e9db1544c38a91a6
BLAKE2b-256 checksum
How to use checksums
c06306d55c8c3415762f0515ed74576af36213efce84b32c60ac6cd0b7ef2e6e
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 Sep 26, 2026.

Transparency log

Security for awp-sim 0.1.0a6

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.0a6.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 Sep 26, 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