Skip to content

NEXUS SDK v0.6.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 20:22
· 6 commits to main since this release
347ec88

🟠 NEXUS SDK v0.6.0 | Denials That Hold

EXECUTION AUTHORITY · SHARED BUDGETS · VERIFIABLE PAYMENT EVIDENCE

Why It Matters · Before and After · What's New · Quick Start · Results · Security · Validation · Release PR

Explore the release · NEXUS Guide · Sovereign Payment Gateway · Authority Tests · PyPI Package


Why it matters

When an agent asks to pay an invoice or buy a service, the business owner needs a decision they can audit. Is this agent authorized to spend? How much can it commit? Is the evidence still fresh? NEXUS SDK 0.6.0 lets gateway operators make those decisions with explicit rules and retain records they can verify later.

For marketplaces and commerce teams, independent agents can work within signed allocations from the same budget. When a payment is disputed, reviewers can verify who signed the evidence and whether a trusted transparency service registered the exact statement.

Before and after

AreaBefore 0.6.0With 0.6.0
Guardian argument checksThe previous policy missed cases involving encoded traversal, credential references, cloud metadata endpoints, and remote code pipes.The inline policy decodes and normalizes arguments before matching. Five detectors are enabled by default. All 33 focused Guardian tests passed after the fixes, compared with 9 of 33 against the assessment baseline.
HEAR reasoning (ACT-3/4)A one-character explanation could satisfy the presence check for a tool call.For tool calls at tiers subject to HEAR, the default policy requires at least 40 characters and five words. Operators can configure both thresholds.
Undeclared ACT tierOmitting the tier skipped the tier-based reasoning check.Without a registered tier, the default policy treats an omitted tier as ACT-4. Breaking change.
ACT tier sourceThe caller supplied the tier.With GuardianPolicy(aim_registry=...), the registered AIM v0.3 tier governs. Guardian denies a higher claim and applies the registered tier’s reasoning requirement to a lower claim.
Remote Guardian without httpxThe client fell back to its local default policy.The client treats the remote Guardian as unavailable and applies the configured fail mode. The default is fail-closed.
Agent Bill of Materials (AgBOM)A changed component in a stored version could still verify. A changed MCP tool manifest could go undetected.Verification recomputes snapshot hashes. Rediscovery quarantines a previously pinned MCP component when its tool-manifest digest changes, pending explicit approval.
OPA authorizationauthorize_tool_call returned no decision for 9 of 13 assessment inputs. A request scope could override a durable write, and deny rules did not gate allow.The rule has a default decision. The most restrictive declared persistence scope wins, and explicit deny blocks allow. The documented matrix tested OPA 0.65.0 and 1.4.2.
nexus-score --v03-checksThe old self-check reported 10/10 from imports and file presence.The scorer exercises behavior and reports NOT ASSESSED when required evidence is missing.

Assessment evidence and baselines · Detailed change history

What’s new

CapabilityWhat it doesDocumentation or artifact
Execution Authority State (EvaluationState)Distinguishes established authority, missing authority, explicit denial, and indeterminate evidence.Authority state contract
Reversibility-Aware Freshness Policy (FinalityFreshnessPolicy)Requires fresher runtime evidence as settlement becomes harder to reverse and records the applied limit in the authorization receipt.Runtime Verifier
Shared Budget Authority (BudgetPartitionIssuer)Allocates signed spending partitions that independent ledgers can reserve, commit, and release.Shared Budget Authority
Transparency Statement Issuer (SCITTSignedStatementIssuer), Registration Service (RFC9162TransparencyService), and Receipt Verifier (SCITTReceiptVerifier)Signs RFC 9943 payment statements, registers them in a reference log, and verifies RFC 9942 inclusion receipts against the trusted service.Transparency evidence
Guardian enforcement (GuardianPolicy)Normalizes tool arguments before matching and reports the rules that triggered a denial.Guardian regression tests

Breaking upgrade. With the default policy and no registered tier, an omitted act_tier receives ACT-4 treatment, which applies HEAR reasoning checks. Declare the intended tier or configure GuardianPolicy(aim_registry=...) to use the agent’s registered AIM v0.3. GuardianPolicy(treat_undeclared_tier_as=None) restores the old omitted-tier behavior. Review integrations that relied on an omitted tier before using 0.6.0 with live traffic.

Quick start

1. Install and verify the version

python -m pip install --upgrade nexus-a2a-sdk==0.6.0
python -c "import nexus_sdk; print(nexus_sdk.__version__)"

Install nexus-a2a-sdk[scitt]==0.6.0 for Ed25519 signing and receipt verification.

2. Evaluate a synthetic tool request

Save this as guardian_demo.py and run python guardian_demo.py.

from nexus_sdk.guardian import GuardianPolicy, NEXUSGuardianClient, build_tool_call_step

guardian = NEXUSGuardianClient(
    inline_policy=GuardianPolicy(blocked_argument_patterns=["private-payments/"]),
    fail_mode=NEXUSGuardianClient.FAIL_CLOSED,
)
step = build_tool_call_step(
    agent_did="did:nexus:agent:demo",
    spiffe_id="spiffe://nexus.example/agent/demo",
    tool_name="read_file",
    tool_arguments={"path": "private-payments/settlement.csv"},
    act_tier=2,
)
verdict = guardian.evaluate(step)
assert not verdict.allowed
print(verdict.decision.value)

3. Inspect the result

The example prints deny. It evaluates an in-memory request against the supplied policy. It makes no payment and reads no files.

SDK walkthrough · Payment authorization walkthrough

Understand the result

Execution authority stateMeaning at the gate
🟢 establishedThe required evidence establishes authority under the configured policy. The gateway can proceed to the next execution gate.
🟠 deniedA rule or constraint explicitly prohibits the action. Stop.
⚪ not_establishedRequired authority evidence is missing. Hold execution and identify what evidence the policy requires.
⚪ indeterminateThe available evidence or evaluator could not resolve the decision. Hold execution and inspect the reason code.

Track settlement separately from the authority decision. In --v03-checks mode, nexus-score exits 1 if any check fails, 2 if evidence is missing and no check fails, and 0 if every check passes. Scorer implementation

Security and evidence boundaries

  • A verified signature establishes the statement’s issuer and integrity. An inclusion receipt establishes registration with the selected service. Settlement, human intent, and the accuracy of the underlying claim require separate evidence.
  • Keep signing keys outside the agent process. Apply a disclosure policy before sending payment evidence to a transparency service. The bundled log runs in memory for reference use. Production deployment needs durable storage, trusted service keys, and independent monitoring.
  • Production budget partitions need a durable atomic allocator and one authoritative ledger per partition. Qualify the live rail and deployment controls before allowing money to move.
  • Guardian’s pattern detectors can miss novel or paraphrased inputs. AgBOM’s ML-DSA-65 signing remains a stub. The MCP adapter at NEXUS/adapters/mcp/adapter.py is fail-closed scaffolding.

Deployment prerequisites · Payment threat model

Validation and compatibility

  • Published to PyPI on December 1, 2026, from commit 347ec884e41f4db615a58925c269d1866ea205fe. Package metadata requires Python 3.10 or newer.
  • The production publish run passed 698 SDK tests on Python 3.12. We matched the SHA-256 hashes of the PyPI wheel and source archive to the build artifacts, installed the published wheel in a clean environment, and verified the GitHub tag against the build commit.

Production qualification · PyPI files and provenance · GitHub release

What comes next

Production transparency needs authenticated remote registration, durable storage, and consistency monitoring. Live payment deployments need evidence for the specific rail, trust roots, and recovery procedures in use. Transparency deployment limits · Payment deployment readiness


Install 0.6.0 and run the local denial example before upgrading an agent that can spend money.

Install from PyPI · Full Changelog · Report a Security Issue