Skip to main content

nexus-a2a-sdk

Framework context: v3.5 Framework home | Topic map | Mapping validation | Component status | Agent routes

NEXUS Python SDK: deterministic governance for agent, tool, and payment execution.

Version License Python

The Python SDK for NEXUS, an optional AI SAFE² reference implementation for governed agent actions.

Install

This source tree contains SDK 0.6.1. Check the PyPI release history for available versions. To evaluate this source revision, use pip install ./NEXUS from a reviewed repository checkout. See component versions for the repository’s release status.

What you need Start here
Check the install Run python -c "import nexus_sdk; print(nexus_sdk.__version__)" in the environment where you installed the SDK.
Connect to a known A2A HTTPS peer Install the a2a extra and follow Compatible Agent Route. Use the exact HTTPS message:send URL supplied by the peer operator.
Connect enrolled peers with post-quantum protection Build the native transport from the same reviewed revision and run the route check. See installed qualification and SDK runtime compatibility.
Add an MCP tool decision Use the repository reference adapter with a verified principal, policy data, and your deployment's tool dispatch path.
pip install nexus-a2a-sdk

# Explicit A2A HTTPS compatibility
pip install "nexus-a2a-sdk[a2a]"

# RFC 9943 Signed Statements and Ed25519 verification
pip install "nexus-a2a-sdk[scitt]"

# Full production stack (embeddings + OPA + OpenTelemetry + SCITT signing)
pip install "nexus-a2a-sdk[full]"

What's Included

Module What it does
nexus_sdk.cael CAEL envelope, APEM message types, JouleWork economic accounting
nexus_sdk.memory Memory Vaccine: injection detection, drift scoring, provenance
nexus_sdk.guardian Guardian Integration Profile: per-call argument inspection
nexus_sdk.otel NOR output receipts, OpenTelemetry/OCSF audit export
nexus_sdk.agbom Dynamic Agent Bill of Materials with versioned component inventory and cryptographic inventory links.
nexus_sdk.bridges Protocol bridges: MCP, ACS, A2A, LangChain, CrewAI, n8n, REST
nexus_sdk.pq_channel Experimental Post-Quantum Agent Channel (nexus-a2a-pq/1). Check a route, send, receive, send to several agents, recover an uncertain delivery, or capture transport evidence.
nexus_sdk.pq_evidence Experimental Signed Transport Inventory with detached ML-DSA-65 and Ed25519 signatures. Available with the pq-evidence extra.
nexus_sdk.payments Sovereign Payment Gateway contracts, deterministic controls, evidence, and readiness gates
nexus_sdk.payments.scitt RFC 9943 payment-evidence Signed Statements and independent issuer verification
nexus_sdk.payments.scitt_receipts RFC 9162 transparency registration and RFC 9942 inclusion-receipt verification

The human-readable Transparency Statement Issuer, technically SCITTSignedStatementIssuer, creates COSE_Sign1 statements from canonical evidence. Bind it to a protected Ed25519 signing service in production. Its verifier reports issuer-signature validity separately from transparency-service receipt verification, so an attached but unverified receipt cannot become a false registration claim. See the Sovereign Payment Gateway.

The Transparency Registration Service, technically RFC9162TransparencyService, is an in-memory reference service that registers the exact Signed Statement and returns an RFC 9942 inclusion receipt. The Transparency Receipt Verifier, technically SCITTReceiptVerifier, verifies the RFC 9162 Merkle proof and trusted service signature. By default it accepts statement envelopes up to 1,200,000 bytes and at most 16 attached receipts. Registration uses the statement verifier's envelope limit and defaults to the same receipt count. The reference log caches Merkle subtree hashes. Keep the signed statement and receipt for later verification. Production assurance requires a durable, independently operated service and protected keys.

Quick Example

from nexus_sdk.guardian import GuardianPolicy, NEXUSGuardianClient, build_tool_call_step

policy   = GuardianPolicy(blocked_argument_patterns=["../"])
guardian = NEXUSGuardianClient(inline_policy=policy,
                               fail_mode=NEXUSGuardianClient.FAIL_CLOSED)

step    = build_tool_call_step(
    agent_did="did:nexus:agent:my-agent",
    spiffe_id="spiffe://nexus.local/agent/my-agent",
    tool_name="read_file",
    tool_arguments={"path": "../../etc/passwd"},
    act_tier=2,
)
verdict = guardian.evaluate(step)
print(verdict.decision)   # deny

Documentation

Full documentation, reference deployment, OPA policies, JSON schemas, and the IETF draft: github.com/CyberStrategyInstitute/ai-safe2-framework/NEXUS

License

Apache 2.0. See LICENSE.

Metadata

Release files for nexus-a2a-sdk 0.6.1

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

Source distribution (sdist)

Source distribution for nexus-a2a-sdk 0.6.1
File Size Uploaded Provenance Actions
nexus_a2a_sdk-0.6.1.tar.gz 179.3 kB With provenance Details for nexus_a2a_sdk-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexus-a2a-sdk 0.6.1
File Interpreter ABI Platform Actions
nexus_a2a_sdk-0.6.1-py3-none-any.whl Python 3 none any Details for nexus_a2a_sdk-0.6.1-py3-none-any.whl

Total release size: 377.5 kB

Release files / nexus_a2a_sdk-0.6.1.tar.gz

Download URL nexus_a2a_sdk-0.6.1.tar.gz
Size 179.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aa4a8e90defe6f008dfcd47b34e9f7b5528e3dd2da4886d7fad9611152f6a35e
BLAKE2b-256 checksum
How to use checksums
5fa9c13077502cf54842b318ac0b505bbae4d3744d7762d6047545d9f0c3b9dc
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 Dec 5, 2026.

Transparency log

Release files / nexus_a2a_sdk-0.6.1-py3-none-any.whl

Download URL nexus_a2a_sdk-0.6.1-py3-none-any.whl
Size 198.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b347d81e09a09b3ff8a640329f54f01463b0d7829888ccd4a4fffac66d6cc96e
BLAKE2b-256 checksum
How to use checksums
81a67ac7b73d01726c35c9f070f13ac6a078b637704c89bc87fb6836be759715
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 Dec 5, 2026.

Transparency log

Security for nexus-a2a-sdk 0.6.1

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 nexus_a2a_sdk-0.6.1.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 Dec 5, 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