Skip to main content
Pre-release

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

awp-conformance

The conformance suite for the Agent World Protocol. It tests a world at a WebSocket URL, or an agent launched against the suite's own harness world, against the requirement matrix of one specification revision, and reports a verdict per requirement ID.

It targets specification revision 0.1-draft.12, pinned as the spec/ submodule. The suite shares no code with any implementation: it speaks the protocol from the bundled canonical schemas, lifecycle table, and matrix.

pip install --pre awp-conformance
awp-conformance world ws://127.0.0.1:8710 --fixture my-world.json --out report/
awp-conformance agent --manifest manifest.json --frames frames.json -- python my_agent.py --url {url}

Testing a world

The suite connects as one or more agents and checks everything the world sends: schemas in receiver and sender form, status_seq sequencing and replay, every action transition against the lifecycle table, frame sequencing per channel, closing, and integer bounds. Then it runs active tests named after the requirements they cover — idempotency, preemption, deadlines, the watchdog, resumption from a partial acknowledgement, half-open connections, resets, isolation between sessions, and more. awp-conformance tests lists them.

A manifest declares action types but not which parameter values make an action run long enough to interrupt, so a world supplies a fixture:

{
  "embodiment": "arm_01",
  "subscribe": ["proprio", "arm_state"],
  "moves": [
    { "type": "move_to_pose", "params": { "pose": { "frame": "base", "p_m": [0.4, 0.4, 0.6], "q": [0, 0, 0, 1] } } },
    { "type": "move_to_pose", "params": { "pose": { "frame": "base", "p_m": [-0.4, 0.3, 0.2], "q": [0, 0, 0, 1] } } },
    { "type": "move_to_pose", "params": { "pose": { "frame": "base", "p_m": [0.0, -0.45, 0.5], "q": [0, 0, 0, 1] } } }
  ],
  "extended_min_ms": 1500,
  "invalid": { "type": "move_to_pose", "params": { "pose": { "frame": "base" } } },
  "outside_envelope": { "type": "move_to_pose", "params": { "pose": { "frame": "base", "p_m": [0.9, 0, 0.4], "q": [0, 0, 0, 1] } } },
  "operator": { "estop_engage": "kill -USR1 $WORLD_PID", "estop_release": "kill -USR2 $WORLD_PID" },
  "audit_dir": "./awp-audit"
}
Key Meaning
embodiment The embodiment to bind (default: the manifest's first)
subscribe The channels to subscribe to (default: the embodiment's observation channels)
moves Two or more extended actions in one concurrency group, each lasting at least extended_min_ms (default 600) in streaming or extended_min_ticks advances (default 5) in lockstep. With three at targets not on one line, the suite can always pick a target the embodiment is not near
instant An action to submit quickly several times, for the admission rate limit (default: a move)
long_params Params merged into a move so that it outlasts its type's max_duration_ms, for AWP-ACT-008 when the moves end sooner
invalid Params that fail the type's schema (generated from the schema when absent)
outside_envelope Params outside a declared envelope
initial_state The state world.reset returns to (default: the manifest's first initial_states entry)
operator Shell commands that engage and release the e-stop
audit_dir Where the world writes its audit log, if the suite can read it
max_wait_s The longest single wait the suite does (default 45); --slow lifts it
approver_token Bearer token of an approver connection, for worlds with requires_approval types
approval_action The action to submit for approval (default: the first such type, with empty params)
servo For command channels: { "action": {type, params}, "setpoint": {...}, "violation": {...} }

Beyond Core, the suite tests what the world offers: the ws stream binding, task, approval and standing approvals, blend, transfer, seeding, snapshots and replay, command channels, embodiments bound together through a multi_bind_group, shared_control, and the barrier tick authority. --profile sim adds the sim profile to the claim.

fixtures/awp-sim.json is the fixture for the reference world, and fixtures/awp-sim-features.json adds the approver token and servo entry for awp-sim serve --features ... --approver-token awp-sim-approver.

Testing an agent

awp-conformance agent serves the manifest you give it from a scripted harness world, launches the agent once per episode ({url} and {token} in the command, or $AWP_URL and $AWP_TOKEN), and checks what the agent sends. The episodes add the stimuli that make agent requirements observable: unknown fields on every message, reserved frame flag bits, frames interleaved across channels, a redelivered terminal status, an unknown world request, world traffic between a request and its response, a pong before session.ready on another clock, a dropped connection, a world that has forgotten the session, a world that falls silent, an invalid manifest, a session with no action grants, and a refused submission. In streaming, seq gaps and a resync are checked against the agent's obs.report; in lockstep, stream frames follow the world.tick result, and the agent must wait for them.

--frames gives a sample payload per channel, so the agent sees observations it can parse.

The report

Every requirement gets one outcome: pass, fail, warn (a SHOULD not met), untested (in scope but not exercised), n/a (outside the tested time models, gates, or declared features), manual, or untestable. The report states the claim the outcomes support (AWP-CNF-005):

  • AWP-conformant — no failed and no untested requirement in scope, for the claimed classes and the named draft revision; manual evidence is attached separately.
  • self-assessed against 0.1-draft.N — nothing failed, but some requirement in scope was not exercised.
  • not conformant — something failed.

--out DIR writes report.json and a wire trace per connection in the specification's trace format.

Development

git clone --recurse-submodules https://github.com/Hyperduality/awp-conformance
uv sync
uv run pytest                       # runs the suite against awp-sim, including deliberately broken worlds
uv run python scripts/sync_spec.py --check

To move to a new draft revision: check out its tag in spec/, run scripts/sync_spec.py, update SPEC_REVISION in src/awp_conformance/__init__.py, and fix what the tests report.

License

Apache-2.0. See LICENSE.

Metadata

Release files for awp-conformance 0.1.0a10

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-conformance 0.1.0a10
File Size Uploaded Provenance Actions
awp_conformance-0.1.0a10.tar.gz 185.8 kB With provenance Details for awp_conformance-0.1.0a10.tar.gz

Built distribution (wheel)

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

Total release size: 335.8 kB

Release files / awp_conformance-0.1.0a10.tar.gz

Download URL awp_conformance-0.1.0a10.tar.gz
Size 185.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5550c622419ee71f30ee278e8a3b763a01cf7fecb9246602253075c38b893e1c
BLAKE2b-256 checksum
How to use checksums
18fa67263713459e70bd924746a70065dc9baf45d656271793268ff07ca9ea6c
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 20, 2026.

Transparency log

Release files / awp_conformance-0.1.0a10-py3-none-any.whl

Download URL awp_conformance-0.1.0a10-py3-none-any.whl
Size 150.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a1e4ff6eacc132fd869665c9859d2fab16f718ce0a5e0b8218aedd3ca321326
BLAKE2b-256 checksum
How to use checksums
83ad1ee6dd9dcc26e54ea03ff8b874f953f57bdf64584bf8cd27720ea8315f71
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 20, 2026.

Transparency log

Security for awp-conformance 0.1.0a10

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_conformance-0.1.0a10.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 20, 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