Metadata-Version: 2.4
Name: autogen-nti
Version: 0.1.2
Summary: Full 5-pillar NTI post-quantum security for AutoGen and Microsoft Agent Framework.
Author-email: Abisheak <abisheakp197@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://abisheakp197.github.io/Neutral-Trust-Infrastructure/
Project-URL: Repository, https://github.com/abisheakp197/autogen-nti
Project-URL: Issues, https://github.com/abisheakp197/autogen-nti/issues
Keywords: autogen,microsoft-agent-framework,ai-agents,post-quantum-cryptography,pqc,dilithium5,kyber1024,zero-trust,bft-consensus,merkle-audit,agent-mesh,ai-security
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: autogen-agentchat>=0.2.0
Requires-Dist: ube-foundation>=0.1.9
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Dynamic: license-file

[![NTI Verified](https://img.shields.io/badge/NTI_Score-98%2F100-brightgreen)](https://nti-registry.vercel.app)

# autogen-nti

[![License](https://img.shields.io/badge/License-Apache%202.0-blue)](https://www.apache.org/licenses/LICENSE-2.0)

Drop-in post-quantum security for AutoGen and Microsoft Agent Framework, powered by NTI (Neutral Trust Infrastructure).

## Install

pip install autogen-nti

## Usage

from autogen_nti import NTISecurityWrapper

wrapper = NTISecurityWrapper(agent_id="finance_agent")
wrapper.grant_capability("execute_transfer")

# Verify an incoming message before processing
is_allowed = wrapper.verify_message(
    capability="execute_transfer",
    message={"action": "transfer", "amount": 100}
)

## What it enforces (all 5 pillars)

1. Zero-Trust Capability Enforcement
2. NIST Post-Quantum Cryptography (Dilithium5 / Kyber1024)
3. BFT Multi-Agent Consensus
4. Merkle-Chained Audit Trails
5. P2P Agent Mesh & State Persistence

## License

Apache License 2.0. See LICENSE.

## Links

- Core SDK: https://pypi.org/project/ube-foundation/
- Homepage: https://abisheakp197.github.io/Neutral-Trust-Infrastructure/

## Architecture

```mermaid
graph TD
    subgraph AutoGen["AutoGen Framework"]
        Sender["Sender Agent (ConversableAgent)"]
        MsgLoop["GroupChat / Message Loop"]
        Receiver["Receiver Agent (ConversableAgent)"]
    end

    subgraph NTILayer["NTI Security Layer"]
        Interceptor["Message Interceptor (NTIAgentWrapper)"]
        Wrapper["NTISecurityWrapper"]
        PolicyCheck["Signature & Capability Evaluation"]
        FailClosed["Fail-Closed Logic & Security Logger"]
    end

    subgraph CryptoEngine["Crypto Engine"]
        PQCKey["PqcKeyPair (Dilithium5 / Kyber1024)"]
        TrustEng["TrustEngine (Capability Policy Engine)"]
    end

    %% Flow
    Sender -->|"1. Sign message payload"| PQCKey
    Sender -->|"2. Send message into loop"| MsgLoop
    MsgLoop -->|"3. Intercept on_messages()"| Interceptor
    Interceptor -->|"4. Pass message to verification"| Wrapper

    Wrapper -->|"5. Verify Dilithium5 signature"| PQCKey
    Wrapper -->|"6. Evaluate capability request"| TrustEng
    TrustEng --> PolicyCheck

    PolicyCheck -->|"7a. Valid & Authorized"| Receiver
    PolicyCheck -->|"7b. Unsigned / Spoofed / Unauthorized"| FailClosed
    FailClosed -->|"Block Message & Log Security Event"| MsgLoop
```
