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.10, 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.0a8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| awp_conformance-0.1.0a8.tar.gz | 179.5 kB | With provenance | Details for awp_conformance-0.1.0a8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| awp_conformance-0.1.0a8-py3-none-any.whl | Python 3 | none | any | Details for awp_conformance-0.1.0a8-py3-none-any.whl |
Total release size: 324.5 kB
Release files / awp_conformance-0.1.0a8.tar.gz
| Download URL | awp_conformance-0.1.0a8.tar.gz |
|---|---|
| Size | 179.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b89b018679496137e997ee7da09d02c29ddc94dd3f52053966117886f486f29
|
|
BLAKE2b-256 checksum How to use checksums |
9ce643fc10769e5a91831d614989eeacab67eabefe83c3ee7cb74097d4c3fd0a
|
| 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 27, 2026.
Transparency logRelease files / awp_conformance-0.1.0a8-py3-none-any.whl
| Download URL | awp_conformance-0.1.0a8-py3-none-any.whl |
|---|---|
| Size | 145.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
868dce3d1cefee49b72ed512ab1bdcd07991dc1c7a1275d0ef86b807db4e2eca
|
|
BLAKE2b-256 checksum How to use checksums |
74d92e343d7d172c72e9edf375e2dc14ca676d22868967a8d9645e853c014215
|
| 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 27, 2026.
Transparency logSecurity for awp-conformance 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.
Attestation for awp_conformance-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 Sep 27, 2026.
Transparency logA 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.