wasmagent-protocol
Canonical source of truth for every cross-repository contract in the WasmAgent org. One public schema → one canonical source.
WasmAgent is open infrastructure for provable AI agents. Proving an agent ran
correctly requires that every repository — the runtime, the gateway, the
evidence pipelines, the audit product — speak the same evidence and
compliance vocabulary. wasmagent-protocol is where that vocabulary is defined,
versioned, and published, so no repository has to keep its own copy.
This repository holds specifications only. It contains no business logic, no runtime, and no product code — only JSON Schemas, conformance fixtures, and thin loader packages that expose the schemas to JavaScript and Python consumers.
Why this repository exists
The Agent Evidence Protocol (AEP) and the compliance schemas were originally
authored inside wasmagent-js and independently copied into trace-pipeline.
By the time this repository was extracted, those copies had drifted: five
shared schemas differed (one had a copy-paste title bug, and the same logical
schema carried two conflicting $id URLs). Drift in a shared contract silently
breaks cross-repo evidence validation — exactly the failure mode WasmAgent
exists to prevent.
Per the org repository boundary policy: one public schema has exactly one canonical source. That source is here.
What's in scope
Only contracts that genuinely cross a repository boundary:
| Schema | Version | Consumers |
|---|---|---|
aep-record |
aep/v0.3 |
wasmagent-js, wasmagent-proxy, trace-pipeline, wasmagent-train-replay, open-agent-audit |
constraint-ir |
compliance/v1 |
wasmagent-js, trace-pipeline |
constraint-violation |
compliance/v1 |
wasmagent-js, trace-pipeline |
repair-trace |
compliance/v1 |
wasmagent-js, trace-pipeline |
task-spec |
compliance/v1 |
wasmagent-js, trace-pipeline |
compliance-eval-record |
compliance-eval-record/v1 |
wasmagent-js, trace-pipeline |
rollout-wire |
rollout-wire/v1 |
wasmagent-js, trace-pipeline |
The machine-readable registry is schemas/index.json.
Out of scope: schemas owned by a single repository (e.g. trace-pipeline's
*-training-record output formats, open-agent-audit's audit-run). A schema
belongs here only when two or more repositories must agree on it.
Consuming the schemas
Downstream repositories must not copy schema JSON. Depend on the published package instead.
JavaScript / TypeScript
npm install @wasmagent/protocol
import { schemas, getSchema } from "@wasmagent/protocol";
const aep = getSchema("aep-record"); // parsed JSON Schema object
Python
pip install wasmagent-protocol
from wasmagent_protocol import get_schema, schema_path
aep = get_schema("aep-record") # parsed dict
path = schema_path("aep-record") # pathlib.Path to the .json file
Preventing cross-repo drift
Downstream repos must not keep local copies of these schemas — but "must not" is now also enforced in CI, not just written down. This repo ships a reusable drift gate.
CLI
Both packages expose wasmagent-protocol check. It fails non-zero when a
vendored schema differs from the canonical version, when a canonical $id is
re-declared without depending on the package, or when a competing
schemas/index.json is shipped.
# compare one vendored file against the pinned canonical version
wasmagent-protocol check path/to/aep-record.schema.json --id aep-record
# scan a whole repo for drift and competing registries
wasmagent-protocol check --scan --root .
Reusable GitHub workflow
Consumer repos call the shared gate with one job:
jobs:
schema-drift:
uses: WasmAgent/wasmagent-protocol/.github/workflows/schema-drift.yml@v0.1.6
A PR in any consumer that forks or drifts a canonical schema now fails CI
automatically. See docs/CONTRACT-CHANGE-PROCESS.md.
Versioning & stability
- Each schema carries a
versionstring (see the registry). - Additive changes (new optional field) → minor package bump.
- Breaking changes (removed/renamed field, tightened
required) → major package bump and a newversionvalue, announced in the org release ledger before merge. - Every schema has at least one valid and one invalid conformance fixture under
tests/fixtures/. CI rejects any schema without both.
See docs/CONTRACT-CHANGE-PROCESS.md for the
full change workflow and docs/GOVERNANCE.md for
maintainer and exit-condition policy.
Development
# validate every schema is well-formed and every fixture conforms
python3 -m pip install -e ".[dev]"
python3 tests/conformance.py
# run the drift gate against this repo (auto-detects the canonical source)
python3 -m wasmagent_protocol check --scan --root .
Releases
Published to npm and PyPI from CI via OIDC trusted publishing on v* tags — no
tokens stored. See docs/CONTRACT-CHANGE-PROCESS.md.
- 0.1.7 —
aep-recordunified toaep/v0.3: reconciles the wasmagent-js and trace-pipeline forks into one canonical record. Additive optional fieldsuser_id,subject_id,side_effect_class(per-record) +run_side_effect_class_max(per-run) sharing one enum,recording_mode,argument_drift.aep/v0.1/aep/v0.2stay accepted;signaturestays optional. - 0.1.6 — cross-repo schema-drift gate:
wasmagent-protocol checkCLI (npm + PyPI) and the reusable.github/workflows/schema-drift.ymlworkflow. - 0.1.5 — first successful npm OIDC publish (trusted publisher now registered on npmjs).
- 0.1.4 — npm OIDC groundwork; trusted publisher was not yet saved on npmjs.
- 0.1.3 — npm OIDC attempt: dropped registry-url (ENEEDAUTH); PyPI only.
- 0.1.2 — npm OIDC attempt (Node 24); PyPI only.
- 0.1.1 — release-pipeline verification (PyPI); no schema changes.
- 0.1.0 — initial canonical extraction of the AEP + compliance schema family.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wasmagent_protocol-0.1.7.tar.gz.
File metadata
- Download URL: wasmagent_protocol-0.1.7.tar.gz
- Upload date:
- Size: 59.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2746e2e47a49ef0c1f62b09d28db5bd3b3ec0949bdc0af05b9e3aa99282a9ffc
|
|
| MD5 |
0742e2ecc0c4e86e5f014ed76c43e344
|
|
| BLAKE2b-256 |
7ed0125e65cc0a52bf1226a5b31a0649ba7743802aa52bb7361df026aef3640b
|
Provenance
The following attestation bundles were made for wasmagent_protocol-0.1.7.tar.gz:
Publisher:
release.yml on WasmAgent/wasmagent-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wasmagent_protocol-0.1.7.tar.gz -
Subject digest:
2746e2e47a49ef0c1f62b09d28db5bd3b3ec0949bdc0af05b9e3aa99282a9ffc - Sigstore transparency entry: 2256777838
- Sigstore integration time:
-
Permalink:
WasmAgent/wasmagent-protocol@c4b44b898cbf3483d583a7c249c22d6ca5cbe929 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/WasmAgent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c4b44b898cbf3483d583a7c249c22d6ca5cbe929 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wasmagent_protocol-0.1.7-py3-none-any.whl.
File metadata
- Download URL: wasmagent_protocol-0.1.7-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb4300a07e146d064652a9db04c6c3bbc3f98475fb0b3b537ec01944f0b32804
|
|
| MD5 |
75939b387660e912f70fadd0f6afbc65
|
|
| BLAKE2b-256 |
9fed3aaed9a8954b461cf3ba6b883f398a975a13d112bc36f94ee387b766859c
|
Provenance
The following attestation bundles were made for wasmagent_protocol-0.1.7-py3-none-any.whl:
Publisher:
release.yml on WasmAgent/wasmagent-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wasmagent_protocol-0.1.7-py3-none-any.whl -
Subject digest:
bb4300a07e146d064652a9db04c6c3bbc3f98475fb0b3b537ec01944f0b32804 - Sigstore transparency entry: 2256777843
- Sigstore integration time:
-
Permalink:
WasmAgent/wasmagent-protocol@c4b44b898cbf3483d583a7c249c22d6ca5cbe929 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/WasmAgent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c4b44b898cbf3483d583a7c249c22d6ca5cbe929 -
Trigger Event:
push
-
Statement type: