Skip to main content

Open Semantic Agent (OSA)

OpenSSF Best Practices DOI PyPI License

An open spec for publish/subscribe that routes messages by what they mean.

Website: https://opensemanticagent.org · Spec: spec/SPEC.md

OSA sits on top of the message transport you already run (Kafka, NATS, Redis Streams, SQS) and works with whichever model you choose. Each message goes through three checks in order: a free topic match, a cheap similarity check, and an AI judge only when the first two are unsure, under token budgets. Every decision is audited and replayable.

Conventional broker Open Semantic Agent
String topics Semantic subscriptions: subscribe by meaning
Payload delivered as-is Schema mediation: each subscriber gets its own contract
Dedupe by message ID Semantic dedupe: 40 alerts about one incident become 1
Static priority Reasoned urgency, with a recorded rationale
Slow consumer → lag or drop Backlog summarization: a digest instead of a loss
Dead-letter queue Self-healing DLQ: diagnose, repair, retry or escalate
Replay the raw log Briefings: "catch me up on order 123 since Monday"
One reply Consensus fan-in: ask N agents, reconcile the answers
Per-topic ACLs Per-subscriber redaction by clearance
Opaque routing Every decision audited and replayable

Use it from an AI assistant

The spec ships as a small MCP server, so any MCP client (Claude, Cursor, VS Code and others) can read it and check documents against it:

uvx open-semantic-agent          # or: pip install open-semantic-agent

Tools, all read-only: osa_list_sections, osa_get_section, osa_search_spec, osa_get_schema, osa_validate (envelope, subscription manifest, audit record, stream message), osa_list_fixtures, osa_get_fixture. It is listed in the MCP Registry as io.github.opensemanticagent/opensemanticagent.

What's here

Path What it is
spec/SPEC.md The specification (0.4, draft)
schemas/ JSON Schemas for the envelope, subscription manifest, audit record and stream messages. Each $id resolves on the website.
conformance/fixtures/ Routing test vectors that implementations run against
osa/, tests/ The MCP server and its tests. The package bundles the spec, schemas and fixtures.
tools/build_site.py, docs/ The website. pip install markdown && python3 tools/build_site.py rebuilds docs/, which GitHub Pages serves.

Implementations

Building one? Open an issue and we'll list it here.

Contributing

See CONTRIBUTING.md. Spec changes go through a pull request against spec/SPEC.md; changes that affect routing add or update fixtures in conformance/fixtures/. Questions and ideas go to Discussions. Security issues: see SECURITY.md.

If you cite the spec, use CITATION.cff or DOI 10.5281/zenodo.24417032 (all versions).

License

Apache-2.0.

Metadata

Release files for open-semantic-agent 0.4.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 open-semantic-agent 0.4.0
File Size Uploaded Provenance Actions
open_semantic_agent-0.4.0.tar.gz 57.5 kB With provenance Details for open_semantic_agent-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-semantic-agent 0.4.0
File Interpreter ABI Platform Actions
open_semantic_agent-0.4.0-py3-none-any.whl Python 3 none any Details for open_semantic_agent-0.4.0-py3-none-any.whl

Total release size: 100.1 kB

Release files / open_semantic_agent-0.4.0.tar.gz

Download URL open_semantic_agent-0.4.0.tar.gz
Size 57.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b740241b95cae9008fd294e30207250da69bf92e7ccbbd1dbe5a3aff72ea6e3c
BLAKE2b-256 checksum
How to use checksums
6036822b8eaedbae373fb3e056d6803fd55ccd6650f3b8c1ec1b4b9c50af259c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / open_semantic_agent-0.4.0-py3-none-any.whl

Download URL open_semantic_agent-0.4.0-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19b4644401a304dcb325d8f45aa68edd29172de5e3ad316413e1a605ea5bf60a
BLAKE2b-256 checksum
How to use checksums
3f50a035d4cb814948b22a79ded6797f1c1b6241245332d83bb804ad12620ffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for open-semantic-agent 0.4.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for open_semantic_agent-0.4.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 Nov 23, 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