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 Not implemented
Lockstep (on_tick; any_session, or barrier with the gripper) and streaming Grant expiry
Inline and ws stream bindings Other stream bindings (webrtc, webtransport, shm, grpc)
Full action lifecycle; preemption (replace, queue, reject, blend); idempotency
Watchdog and safe state, heartbeats, resumption with replay and acknowledgement
Spatial, velocity, and rate envelopes (command_check), monitored during execution Robotics profile (a simulated arm proves nothing physical)
Audit log with redaction and hash chain; e-stop; world.reset
Beyond Core (--features): task, approval and standing approvals, transfer, seeding, snapshots, replay bundles, a servo command channel, a gripper

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.
    • A second call on the connection whose call is pending is refused. A call from a new connection replaces the pending one.
    • A reset or restore answers 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
uv run ruff check && uv run ruff format --check
uv run mypy
uv run pytest --cov
uv run awp-sim scenarios --out traces && uv run python scripts/check_traces.py traces/*.jsonl

The world tracks the draft revision of awp-python. To move to a new one:

  1. Check out its tag in spec/.
  2. Update the awp-python requirement.
  3. Fix whatever the tests report.

License

Apache-2.0. See LICENSE.

Metadata

Release files for awp-sim 0.1.0a5

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

Built distribution (wheel)

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

Total release size: 212.6 kB

Release files / awp_sim-0.1.0a5.tar.gz

Download URL awp_sim-0.1.0a5.tar.gz
Size 156.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0f87919dae15cfbb4b61e579a1cb93f39deb7febbe6b095747b0ef76d7aa0064
BLAKE2b-256 checksum
How to use checksums
7205e7eb0fe8cf9b810aa5aca3681797d20350d680e48995a242cb9993200a11
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.0a5-py3-none-any.whl

Download URL awp_sim-0.1.0a5-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ccd8ebd1b77941b45e744b2f8b091d261dc5c845f1c10fd3b79c7c77d97559c
BLAKE2b-256 checksum
How to use checksums
bf2145b87e56b348132ede9b2bc514a7dc3e0623785669887e4ba1404fe2bd43
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.0a5

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.0a5.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