Skip to main content

sox-plugin-schema-strict

Reference plugin for the SOX Protocol — strict JSON-Schema validation of message bodies on the wire.

The plugin registers a transformer-kind middleware (id io.sox.schema-strict) that validates every operation's input body against the canonical schema in spec/operations/<op>.input.schema.json. Requests that fail validation are short-circuited with a structured error_code envelope before they reach the backing store.

It is the canonical proof-of-concept that the SOX plugin contract works end-to-end. Most SOX deployments will install this plugin alongside the core; the recommended install line is:

pip install sox-protocol sox-plugin-schema-strict

Install non-editable. The plugin's sox-plugin.yaml manifest is registered as setuptools package-data; editable installs (pip install -e) do not expose that data file via importlib.resources and the SOX MCP server will fail plugin discovery at boot. Use plain pip install.

What it validates

  • channels__send body shape (must be a JSON object, not a string).
  • channels__recv channel filter list shape and max_messages range.
  • channels__subscribe / channels__unsubscribe channel patterns.
  • channels__replay since / until cursors and limit bounds.
  • channels__heartbeat status enum.
  • group__create / group__invite / group__join / group__leave / group__list_members argument shapes.

If you skip the plugin, SOX core accepts any well-typed body — useful for prototyping but unsafe for shared deployments.

Pipeline placement

Schema-strict registers as the first middleware in the pipeline (before auth, before store dispatch). Validation failures emit:

{ "error_code": "schema_invalid", "details": { ... } }

with HTTP status 400 (HTTP transport) or as a structured tool error envelope (stdio transport).

License

Apache 2.0 — see the SOX Protocol repository for the full license and patent grant.

Metadata

Release files for sox-plugin-schema-strict 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sox-plugin-schema-strict 1.0.0
File Size Uploaded Provenance Actions
sox_plugin_schema_strict-1.0.0.tar.gz 14.5 kB With provenance Details for sox_plugin_schema_strict-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sox-plugin-schema-strict 1.0.0
File Interpreter ABI Platform Actions
sox_plugin_schema_strict-1.0.0-py3-none-any.whl Python 3 none any Details for sox_plugin_schema_strict-1.0.0-py3-none-any.whl

Total release size: 26.7 kB

Release files / sox_plugin_schema_strict-1.0.0.tar.gz

Download URL sox_plugin_schema_strict-1.0.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3bfe328cfb0270ff4408734e7b65752bf605c2ce612b093934adf2b68418f11f
BLAKE2b-256 checksum
How to use checksums
67cd7be1c9e22e7b528a277cadc7d61038b4dfca9c65ca0113152d1c82820442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 4, 2026.

Transparency log

Release files / sox_plugin_schema_strict-1.0.0-py3-none-any.whl

Download URL sox_plugin_schema_strict-1.0.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a964645eeed63d9ab92c2c3b8eee7dc9d050444125d507336f15f08e91fba257
BLAKE2b-256 checksum
How to use checksums
936bb52dd65ddf5f3037f1ac733deedc0f33af4c435ad9823ce4c0dba322a1a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 4, 2026.

Transparency log

Security for sox-plugin-schema-strict 1.0.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sox_plugin_schema_strict-1.0.0.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 May 4, 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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