Skip to main content Switch to mobile version twin3-sdk 0.3.8 The Universal Capability Motherboard for Autonomous AI Agents and Self-Sovereign Humans
pip install twin3-sdk==0.3.8 Copy PIP instructions
The Universal Capability Motherboard for Autonomous AI Agents & Self-Sovereign Humans
English | Traditional Chinese | GitHub: twin3-team/twin3-sdk
Twin3 SDK is a domain-agnostic, cryptographically secure foundational runtime designed to bridge autonomous AI agents and self-sovereign human individuals into a single symbiotic economic network.
As AI models evolve toward fully autonomous trading actors, the primary barrier to adoption is not intelligence, but counterparty trust, deterministic authorization, cryptographic non-repudiation, and autonomous financial settlement.
Twin3 SDK solves this by establishing a Seven-Layer Symbiotic Architecture (L1 to L7). It serves as the universal hardware-like motherboard, while domain-specific applications plug into it as specialized software projections:
Agent ID (Enterprise Projection): Powers B2B autonomous commerce, procurement negotiation, and Dun & Bradstreet (D-U-N-S) enterprise identity verification across 20 commercial capabilities.
Human ID (Sovereign Projection): Protects 140,000+ real-world human identity assets, providing Passkey (WebAuthn) biometrics, personal sovereign cards, and paid anti-spam inboxes.
2. The Seven-Layer Symbiotic Architecture
Twin3 SDK organizes all distributed primitives into seven clean, composable layers:
┌─────────────────────────────────────────────────────────┐ │ Twin3 SDK Core Engine │ ├────┬───────────────────────┬────────────────────────────┤ │ L1 │ Discovery Layer │ twin3.discovery │ │ L2 │ Trust & Identity │ twin3.trust │ │ L3 │ Communication Layer │ twin3.comm │ │ L4 │ Shield & Guardrails │ twin3.shield │ │ L5 │ Matrix Understanding │ twin3.matrix │ │ L6 │ Clearing & Settlement │ twin3.settlement │ │ L7 │ Governance & Audit │ twin3.governance │ └────┴───────────────────────┴────────────────────────────┘ ▲ ▲ │ │ ┌────────────────────┴───────────┐ ┌────────────┴─────────────────┐ │ Agent ID (Enterprise) │ │ Human ID (Sovereign) │ ├────────────────────────────────┤ ├──────────────────────────────┤ │ • A2A 5-Stage Commercial Loop │ │ • Sovereign Identity Card │ │ • D-U-N-S Entity Verification │ │ • 140,000 Personality Vectors│ │ • Manufacturing Tolerance Match│ │ • Passkey WebAuthn Login │ │ • Corporate Multi-Sig Escrow │ │ • Paid Threshold Inbox │ └────────────────────────────────┘ └──────────────────────────────┘ Layer Breakdown
L1 also exposes a candidate discovery evidence API for xAgent ID and xHuman ID. It normalizes owner-supplied CDN/server visits and Google Search Console generative AI search exports, then returns separate visit and impression summaries and a display-ready view model. See the L1 evidence contract and interface presentation guidance. These APIs do not collect private logs or establish visitor identity on their own.
Python and Node support explicit Matrix comparison profiles, including weighted/masked cosine and structured coverage results. Node constructor coercions still differ. Node TaskInbox admits owner-policy receipts with applyPayment and injected-verifier receipts with applyX402Payment. Evidence trail is experimental until an actual consumer supplies durable integration evidence.
(experimental) marks a capability whose row in tests/capability-inventory.json is not yet available: it is importable today and its surface may still change. Everything unmarked is available. A name written Class.method is a method, not a module export. Every name in this table is checked against a real public export by tests/test_readme_capability_claims.py.
3. Pull Request Lineage & Provenance
The primitives in twin3-sdk are extracted from the twin3-team/agent-id Inbox line (PRs #615–#642, merged 2026-09-03 → 2026-09-05; spec: docs/architecture/inbox-module-spec.md in that repo). What each layer inherited:
The paths below describe historical source in the Agent ID repository, not the current SDK directory layout. See the generated Node API reference for the installed package's public declarations.
Envelope, KYA handshake, counterparty ladder — agent_id/inbox/{envelope,kya,counterparty}.py: canonical-JSON signed envelopes with authority:"none", the mutual Ed25519 challenge that binds a declared identity to a key, and the G0→G3 attention ladder keyed on the counterparty rather than the request.
Task inbox and state machine — agent_id/inbox/state.py: intake gate, review gate, rate limits, stale expiry, hash-chained audit.
Shield T0–T5 — agent_id/inbox/{shield,intel,classifier,plandiff,corpus}.py: deterministic layers, URL/domain/hash intelligence, the T4 ensemble, plan diffing, and the corpus that publishes error rates.
Settlement policy — agent_id/inbox/payments.py: owner policy, signed quotes and receipts behind HTTP 402.
Governance — agent_id/inbox/governance.py: appeals, pardons, advisory reputation federation.
Canonical Matrix Core: 256-dimensional single-pair vector arithmetic and tolerance comparison. The SDK does not supply population clustering, a similarity index or a batch ranking engine.
The 2026-09-05 sync also adds the AI-era hardening (mandatory T5, identity-cost tier caps, provenance-gated memory, rotation demotes, paid ≠ authorized). See CHANGELOG.md.
4. Package Distribution & Integration Model
Copying code (vendoring) causes protocol drift where Agent ID and Human ID implementations diverge within weeks, breaking cross-network signature validation.
Why Not Pure HTTP Microservices?
Cryptographic signatures (ECDSA/Ed25519) and 256-bit vector operations execute in under 0.2 milliseconds locally. Routing them through remote HTTP hops adds unnecessary latency and exposes private signing keys to network attack vectors.
The Standard Solution: Semantic Package Dependencies
Twin3 SDK follows standard modern packaging conventions (pyproject.toml / npm). Production consumers must use immutable registry artifacts and exact version pins; local links are development-only.
1. Development Mode (Local Symlink / Editable Install)
During local development, both agent-id and XHuman_ID link directly to the local SDK workspace:
# In agent-id or XHuman_ID virtual environment: pip install -e /path/to/twin3-sdk Benefits:
Any protocol or algorithm improvement in twin3-sdk is reflected in both applications in 0 milliseconds.
2. Production Distribution
v0.3.8 is the current release candidate: 0.3.8 for npm and 0.3.8 for PyPI. It targets a production, non-prerelease patch release on the npm dist-tag latest. The candidate includes x402 receiving helpers, card identity, L3 Agent Call, cross-host wheel/sdist determinism fixes, and Cloud Build + GitHub Immutable Releases release integrity enforcement. The last published version is v0.3.1. Release manifest integrity and GitHub release immutability are verified before publication. Consumers must pin the exact released version and lock its registry integrity; never use a mutable range for a cryptographic protocol dependency.
The additive twin3-sdk/runtime subpath provides a single-action Agent runtime candidate. Products retain authenticated authority, context egress consent, durable storage and trusted tool brokers. Python twin3.runtime provides compatible contracts and digests only. OpenShell, ADK and Hermes adapters are not included. See runtime scope and limits.
package.json engines requires Node.js >=22.23.4 and does not set an npm engine. CI covers patched Node 22, 24 and 26; Node 18 and 20 are outside the supported baseline. Packing this repository was checked with npm 10 or newer; the stricter npm version in the release runbook applies only to Trusted Publishing.
After publication, install the exact released version from the registry:
npm install twin3-sdk@0.3.8 pip install twin3-sdk==0.3.8 For local evaluation, you can also use the packed npm tarball. Do not install from a git URL or a version range:
npm pack --ignore-scripts npm install ./twin3-sdk-0.3.8.tgz 5. Dual-Application Projections
🏢 Agent ID (Enterprise Commerce Projection)
Agent ID consumes Twin3 SDK to execute the 5-Stage A2A Autonomous Commercial Loop:
Discovery: Queries twin3.discovery for available suppliers and verified agent cards.
Understand: Uses twin3.matrix to compute tolerance matching against industrial RFQs.
Negotiate: Uses twin3.comm and twin3.shield to exchange signed quotes without prompt-tampering risks.
Settle: Uses the Twin3 signed-receipt adapter at an HTTP 402 gate. Acceptance additionally requires a trusted signer key, a chain-specific finality verifier, and a shared replay store.
Settlement integrations must follow the x402 security boundaries, including case-sensitive wallet binding, canonical network names and durable payment recovery. 5. Dispute: Invokes twin3.governance to resolve contractual non-performance.
👤 Human ID (Personal Sovereignty Projection)
Human ID consumes Twin3 SDK to empower natural individuals:
Personality Assets: Uses twin3.matrix for single-pair vector comparisons. Population indexing, ranking throughput and storage remain product responsibilities.
Passkey WebAuthn Login: Binds biometric secure enclaves to decentralized keys via twin3.trust.
Paid Inbox: Protects individual inboxes against spam using twin3.comm and the signed-receipt adapter ($5 paywall threshold); the application supplies chain verification and shared replay state.
Sovereign Card: Renders non-custodial credentials using twin3.discovery.
Distribution artifacts are published to public package registries so that anyone can install and evaluate the SDK and build against it — open access is not open source. Public availability grants no right to copy, modify, redistribute, fork, or create derivative works, and no patent or trademark licence. For commercial licensing or redistribution rights, contact core@twin3.ai.
LicenseRef-Twin3-Proprietary View SPDX License List
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for twin3-sdk 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 708.8 kB
Release files / twin3_sdk-0.3.8.tar.gz
Release files / twin3_sdk-0.3.8-py3-none-any.whl
Security for twin3-sdk 0.3.8
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.
None of the files in this release were uploaded with provenance metadata.
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
Nov 26, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 25, 2026 2 release files No provenance
Oct 18, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 9, 2026 2 release files No provenance
Oct 6, 2026 2 release files No provenance
Oct 5, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




