Skip to main content

Canonical JSON Schemas for the WasmAgent Agent Evidence Protocol (AEP) and compliance contracts. Single source of truth across the WasmAgent org.

Project description

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.2 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

Versioning & stability

  • Each schema carries a version string (see the registry).
  • Additive changes (new optional field) → minor package bump.
  • Breaking changes (removed/renamed field, tightened required) → major package bump and a new version value, 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 jsonschema
python3 tests/conformance.py

License

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wasmagent_protocol-0.1.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wasmagent_protocol-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file wasmagent_protocol-0.1.0.tar.gz.

File metadata

  • Download URL: wasmagent_protocol-0.1.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for wasmagent_protocol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8dcb7fdbd18f1faef1037fa6ac8ff248f020ecca4ca0fd64ed90fa5677758bcf
MD5 dd8030589c4818564e0fe4795a6acbbc
BLAKE2b-256 1e73b7c7f99157624ae914735411f6d1b44fca1cf0b24f38bd67cb0611c40e3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wasmagent_protocol-0.1.0.tar.gz:

Publisher: release.yml on WasmAgent/wasmagent-protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wasmagent_protocol-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wasmagent_protocol-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b582b46f79a4ffd40d7c059040343eea08cab26842a695da06af6a9393b3faeb
MD5 67255e69e671298da414d66114fac8e3
BLAKE2b-256 2e275e4dd625fc183efc6c9cf088f629c4e51008465973c5b22a58f19c9aedf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for wasmagent_protocol-0.1.0-py3-none-any.whl:

Publisher: release.yml on WasmAgent/wasmagent-protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page