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

pip install nexus-a2a-sdk

# 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: real-time, hash-chained
nexus_sdk.bridges Protocol bridges: MCP, ACS, A2A, LangChain, CrewAI, n8n, REST
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.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 nexus-a2a-sdk 0.6.0
File Size Uploaded Provenance Actions
nexus_a2a_sdk-0.6.0.tar.gz 162.2 kB With provenance Details for nexus_a2a_sdk-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 342.2 kB

Release files / nexus_a2a_sdk-0.6.0.tar.gz

Download URL nexus_a2a_sdk-0.6.0.tar.gz
Size 162.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4b45ea4f7176b67152609a58d434ce3e5e443dd0591e050136cde313e3954787
BLAKE2b-256 checksum
How to use checksums
cf857bfa6f5c04c8ef5431eb9f28b6777fe8569426d0f604705e2942231a5b38
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 1, 2026.

Transparency log

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

Download URL nexus_a2a_sdk-0.6.0-py3-none-any.whl
Size 180.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91ed94bb7051c28fa02ec7c67ef9c0237c279ba70004dd716ae179ccf5bcf109
BLAKE2b-256 checksum
How to use checksums
17b6f5196a2f047c63c0f55191f34c9cc144eb923fc51730e21175c5e6869e31
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 1, 2026.

Transparency log

Security for nexus-a2a-sdk 0.6.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 nexus_a2a_sdk-0.6.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 Dec 1, 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

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