Metadata-Version: 2.4
Name: attestix
Version: 0.2.0
Summary: Attestix - Attestation Infrastructure for AI Agents. DID-based agent identity, W3C Verifiable Credentials, EU AI Act compliance, delegation chains, and reputation scoring. 47 MCP tools across 9 modules.
Author-email: "VibeTensor Inc." <hello@vibetensor.com>
License:                                  Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
           1. Definitions.
        
              "License" shall mean the terms and conditions for use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to the Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by the Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Derivative Works; and
        
              (d) If the Work includes a "NOTICE" text file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding any notices that do not
                  pertain to any part of the Derivative Works, in at least one
                  of the following places: within a NOTICE text file distributed
                  as part of the Derivative Works; within the Source form or
                  documentation, if provided along with the Derivative Works; or,
                  within a display generated by the Derivative Works, if and
                  wherever such third-party notices normally appear. The contents
                  of the NOTICE file are for informational purposes only and
                  do not modify the License. You may add Your own attribution
                  notices within Derivative Works that You distribute, alongside
                  or as an addendum to the NOTICE text from the Work, provided
                  that such additional attribution notices cannot be construed
                  as modifying the License.
        
              You may add Your own copyright statement to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement you may have executed
              with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and customary use in describing the
              origin of the Work and reproducing the content of the NOTICE file.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contributor provides its Contributions) on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
              implied, including, without limitation, any warranties or conditions
              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
              PARTICULAR PURPOSE. You are solely responsible for determining the
              appropriateness of using or redistributing the Work and assume any
              risks associated with Your exercise of permissions under this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for damages, including any direct, indirect, special,
              incidental, or consequential damages of any character arising as a
              result of this License or out of the use or inability to use the
              Work (including but not limited to damages for loss of goodwill,
              work stoppage, computer failure or malfunction, or any and all
              other commercial damages or losses), even if such Contributor
              has been advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may choose to offer,
              and charge a fee for, acceptance of support, warranty, indemnity,
              or other liability obligations and/or rights consistent with this
              License. However, in accepting such obligations, You may act only
              on Your own behalf and on Your sole responsibility, not on behalf
              of any other Contributor, and only if You agree to indemnify,
              defend, and hold each Contributor harmless for any liability
              incurred by, or claims asserted against, such Contributor by reason
              of your accepting any such warranty or additional liability.
        
           END OF TERMS AND CONDITIONS
        
           Copyright 2026 VibeTensor Inc.
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Project-URL: Homepage, https://github.com/VibeTensor/attestix
Project-URL: Documentation, https://attestix.vibetensor.com/
Project-URL: Repository, https://github.com/VibeTensor/attestix
Project-URL: Issues, https://github.com/VibeTensor/attestix/issues
Keywords: attestix,ai-agents,agent-identity,attestation,verifiable-credentials,verifiable-presentations,eu-ai-act,mcp,mcp-server,did,ucan,compliance,ed25519,blockchain,gdpr,reputation,w3c
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp[cli]>=1.8.0
Requires-Dist: cryptography>=44.0.0
Requires-Dist: PyJWT[crypto]>=2.9.0
Requires-Dist: base58>=2.1.1
Requires-Dist: httpx>=0.28.0
Requires-Dist: python-dotenv>=1.1.0
Requires-Dist: nest-asyncio>=1.6.0
Requires-Dist: python-json-logger>=3.3.0
Requires-Dist: filelock>=3.13.0
Provides-Extra: blockchain
Requires-Dist: web3>=7.0.0; extra == "blockchain"
Provides-Extra: test
Requires-Dist: pytest>=8.0; extra == "test"
Requires-Dist: pytest-asyncio>=0.24; extra == "test"
Requires-Dist: respx>=0.22; extra == "test"
Dynamic: license-file

# Attestix

**Attestation Infrastructure for AI Agents**

The compliance identity layer for the EU AI Act era. Attestix gives every AI agent a verifiable identity, proves its regulatory compliance, tracks its provenance, and scores its trustworthiness. All locally, vendor-neutrally, and natively within MCP.

---

## Why This Exists

On **August 2, 2026**, the EU AI Act's transparency enforcement begins. Fines reach up to EUR 35M or 7% of global revenue. Every high-risk AI system deployed in EU markets must demonstrate compliance with Articles 10-12 (data governance, technical documentation, record-keeping), undergo conformity assessments (Article 43), and produce Annex V declarations of conformity.

The existing compliance tools (Credo AI, Holistic AI, Vanta, IBM OpenPages) all operate as **organizational dashboards**. They help a company document compliance internally. But none of them produce a **machine-readable, cryptographically verifiable proof** that an AI agent can present to another agent, regulator, or system.

Meanwhile, agent identity is fragmenting across walled gardens:
- **Microsoft Entra Agent ID** - Azure-locked
- **AWS Bedrock AgentCore** - AWS-locked
- **Google A2A** - communication protocol, not identity/compliance
- **ERC-8004** - requires Ethereum blockchain

No single tool combines **agent identity + EU AI Act compliance + verifiable credentials** in one protocol. Attestix fills this gap.

---

## What Attestix Does

Attestix is an MCP server providing **47 tools across 9 modules**:

### Identity & Trust (21 tools)

| Module | Tools | Purpose |
|--------|-------|---------|
| **Identity** | 8 | Unified Agent Identity Tokens (UAITs) bridging MCP OAuth, A2A, DIDs, and API keys. Includes GDPR Article 17 erasure |
| **Agent Cards** | 3 | Parse, generate, and discover Google A2A-compatible agent cards |
| **DID** | 3 | Create and resolve W3C Decentralized Identifiers (did:key, did:web) |
| **Delegation** | 4 | UCAN-style capability delegation with EdDSA-signed JWT tokens, revocation |
| **Reputation** | 3 | Recency-weighted trust scoring (0.0-1.0) with category breakdown |

### EU AI Act Compliance (20 tools)

| Module | Tools | Purpose |
|--------|-------|---------|
| **Compliance** | 7 | Risk categorization, conformity assessments (Article 43), Annex V declarations, profile updates |
| **Credentials** | 8 | W3C Verifiable Credentials (VC Data Model 1.1) with Ed25519Signature2020 proofs, external verification, Verifiable Presentations |
| **Provenance** | 5 | Training data provenance (Article 10), model lineage (Article 11), hash-chained audit trail (Article 12) |

### Blockchain Anchoring (6 tools)

| Module | Tools | Purpose |
|--------|-------|---------|
| **Blockchain** | 6 | Anchor artifact hashes to Base L2 via Ethereum Attestation Service (EAS), Merkle batch anchoring, cost estimation |

---

## The Problem No One Else Solves

```
                Compliance Dashboards          Agent Identity Platforms
                (Credo AI, Vanta, etc.)        (Entra, AWS, Okta)
                         |                              |
                    Org-level only                  Vendor-locked
                    No machine proofs               No compliance
                    No agent identity               No VCs
                         |                              |
                         +--------- GAP ----------------+
                                     |
                              Attestix
                         Agent-level compliance
                       Cryptographic VC proofs
                        Vendor-neutral DIDs
                     Works locally, no cloud dependency
```

### Competitive Gap Map

| Capability | Credo AI | Vanta | Okta | Entra | AWS | A2A | ERC-8004 | Dock.io | **Attestix** |
|-----------|---------|-------|------|-------|-----|-----|----------|---------|---------|
| Agent Identity (DID) | - | - | - | - | - | - | On-chain | Yes | **Yes** |
| EU AI Act Compliance | Yes | Yes | - | - | - | - | - | - | **Yes** |
| W3C Verifiable Credentials | - | - | - | - | - | - | - | Yes | **Yes** |
| Compliance-as-a-VC | - | - | - | - | - | - | - | - | **Only Attestix** |
| Reputation Scoring | - | - | - | - | - | - | On-chain | - | **Yes** |
| Delegation Chains | - | - | OAuth | OAuth | IAM | - | - | - | **UCAN** |
| Training Data Provenance | - | - | - | - | - | - | - | - | **Yes** |
| Model Lineage | - | - | - | - | - | - | - | - | **Yes** |
| Vendor Neutral | - | - | - | - | - | Yes | Yes | Partial | **Yes** |
| Works Offline | - | - | - | - | - | - | - | - | **Yes** |
| MCP Native | - | - | - | - | - | - | - | - | **Yes** |

---

## Architecture

```
attestix/
  auth/
    crypto.py          # Ed25519 signing, did:key creation, signature verification
    ssrf.py            # SSRF protection for URL fetching (private IP blocking)
    token_parser.py    # Auto-detect JWT, DID, API key, URL tokens
  blockchain/
    merkle.py          # Merkle tree construction for batch anchoring
  services/
    identity_service.py    # UAIT lifecycle (create, verify, translate, revoke, purge)
    agent_card_service.py  # A2A Agent Card operations
    did_service.py         # DID resolution (did:key, did:web, Universal Resolver)
    delegation_service.py  # UCAN delegation token management
    reputation_service.py  # Recency-weighted trust scoring
    compliance_service.py  # EU AI Act profiles, assessments, Annex V declarations
    credential_service.py  # W3C VC issuance, verification, presentations
    provenance_service.py  # Training data, model lineage, hash-chained audit trail
    blockchain_service.py  # Base L2 anchoring via Ethereum Attestation Service
    cache.py               # Service instance cache with TTL
  tools/
    identity_tools.py      # 8 MCP tools (includes GDPR erasure)
    agent_card_tools.py    # 3 MCP tools
    did_tools.py           # 3 MCP tools
    delegation_tools.py    # 4 MCP tools
    reputation_tools.py    # 3 MCP tools
    compliance_tools.py    # 7 MCP tools
    credential_tools.py    # 8 MCP tools (includes external verification)
    provenance_tools.py    # 5 MCP tools
    blockchain_tools.py    # 6 MCP tools
  config.py       # Storage paths, environment, defaults
  errors.py       # Centralized error handling with JSON logging
  main.py         # FastMCP server entry point
```

### Key Design Decisions

- **Ed25519 cryptography** - Same algorithm used by Solana, Cosmos, SSH. Auto-generated keypair stored in `.signing_key.json`
- **JSON file storage** - No database dependency. Files created lazily on first use
- **Hash-chained audit trail** - SHA-256 chain hashes on every audit entry for tamper-evident logging
- **SSRF protection** - Private IP blocking on all URL-fetching operations (DID resolution, agent discovery)
- **Lazy service initialization** - Services instantiated on first tool call, cached with TTL
- **stderr-safe** - All print() redirected to stderr to protect MCP JSON-RPC on stdout
- **Modular registration** - Each tool module exposes a `register(mcp)` function

---

## Quick Start

### Install from PyPI

```bash
pip install attestix
```

Or install from source:

```bash
git clone https://github.com/VibeTensor/attestix.git
cd attestix
pip install -r requirements.txt
```

### Run Standalone

```bash
python main.py
```

### Configure as MCP Server

Add to your Claude Code config (`~/.claude.json`):

```json
{
  "mcpServers": {
    "attestix": {
      "type": "stdio",
      "command": "python",
      "args": ["/path/to/attestix/main.py"]
    }
  }
}
```

Restart Claude Code. You now have 47 Attestix tools available.

### Run Examples

```bash
python examples/01_basic_identity.py        # Create and verify an agent identity
python examples/02_full_compliance.py        # Full EU AI Act compliance workflow
python examples/03_delegation_chain.py       # UCAN-style capability delegation
python examples/04_verifiable_credentials.py # W3C VC issuance and verification
python examples/05_audit_trail.py            # Article 12 audit logging
```

---

## End-to-End Example: EU AI Act Compliance

This walkthrough takes a high-risk medical AI agent from zero to fully compliant.

### 1. Create Agent Identity

```
create_agent_identity(
  display_name="MedAssist-AI",
  capabilities="medical_diagnosis,patient_triage",
  description="AI-assisted medical diagnosis for clinical decision support",
  issuer_name="VibeTensor Inc."
)
--> agent_id: attestix:f9bdb7a94ccb40f1
--> eu_compliance: null
```

### 2. Record Training Data Provenance (Article 10)

```
record_training_data(
  agent_id="attestix:f9bdb7a94ccb40f1",
  dataset_name="PubMed Central Open Access",
  license="CC-BY-4.0",
  contains_personal_data=false,
  data_governance_measures="Peer-reviewed only, quality-checked"
)
```

### 3. Record Model Lineage (Article 11)

```
record_model_lineage(
  agent_id="attestix:f9bdb7a94ccb40f1",
  base_model="claude-opus-4-6",
  base_model_provider="Anthropic",
  fine_tuning_method="LoRA + RLHF with physician feedback",
  evaluation_metrics_json='{"diagnostic_accuracy": 0.94}'
)
```

### 4. Create Compliance Profile

```
create_compliance_profile(
  agent_id="attestix:f9bdb7a94ccb40f1",
  risk_category="high",
  provider_name="VibeTensor Inc.",
  intended_purpose="Medical diagnosis assistance",
  transparency_obligations="Discloses AI-generated content, provides confidence scores",
  human_oversight_measures="Physician approval required for all treatment recommendations"
)
--> 12 required obligations listed for high-risk
```

### 5. Check Compliance Status (Gap Analysis)

```
get_compliance_status(agent_id="attestix:f9bdb7a94ccb40f1")
--> completion_pct: 75.0%
--> missing: ["conformity_assessment_passed", "declaration_of_conformity_issued"]
```

### 6. Record Conformity Assessment (Article 43)

High-risk systems require third-party assessment. Self-assessment is blocked:

```
record_conformity_assessment(
  agent_id="attestix:f9bdb7a94ccb40f1",
  assessment_type="self", ...
)
--> ERROR: "High-risk AI systems require third_party conformity assessment (Article 43)."

record_conformity_assessment(
  agent_id="attestix:f9bdb7a94ccb40f1",
  assessment_type="third_party",
  assessor_name="TUV Rheinland AG",
  result="pass",
  ce_marking_eligible=true
)
--> PASS
```

### 7. Generate Declaration of Conformity (Annex V)

```
generate_declaration_of_conformity(agent_id="attestix:f9bdb7a94ccb40f1")
--> Annex V declaration with 10 required fields
--> Auto-issues EUAIActComplianceCredential (W3C Verifiable Credential)
```

### 8. Verify Full Compliance

```
get_compliance_status(agent_id="attestix:f9bdb7a94ccb40f1")
--> compliant: true
--> completion_pct: 100.0%
--> eu_compliance: "comp:14f05fb98b20" (linked on UAIT)
```

### 9. Present Compliance to a Verifier

```
create_verifiable_presentation(
  agent_id="attestix:f9bdb7a94ccb40f1",
  credential_ids="urn:uuid:7161cb5e-...",
  audience_did="did:web:eu-regulator.europa.eu"
)
--> Signed VP with embedded VCs, ready for cryptographic verification
```

---

## All 47 Tools Reference

<details>
<summary>Identity (8 tools)</summary>

| Tool | Description |
|------|-------------|
| `create_agent_identity` | Create a UAIT from any identity source |
| `resolve_identity` | Auto-detect token type and register |
| `verify_identity` | Check existence, revocation, expiry, signature |
| `translate_identity` | Convert to A2A, DID Document, OAuth, or summary |
| `list_identities` | List UAITs with protocol/revocation filters |
| `get_identity` | Get full UAIT details |
| `revoke_identity` | Mark a UAIT as revoked |
| `purge_agent_data` | GDPR Article 17 right to erasure across all stores |

</details>

<details>
<summary>Agent Cards (3 tools)</summary>

| Tool | Description |
|------|-------------|
| `parse_agent_card` | Parse an A2A Agent Card JSON |
| `generate_agent_card` | Generate agent.json for hosting |
| `discover_agent` | Fetch /.well-known/agent.json from a URL |

</details>

<details>
<summary>DID (3 tools)</summary>

| Tool | Description |
|------|-------------|
| `create_did_key` | Generate ephemeral did:key with Ed25519 keypair |
| `create_did_web` | Generate did:web DID Document for self-hosting |
| `resolve_did` | Resolve any DID to its DID Document |

</details>

<details>
<summary>Delegation (4 tools)</summary>

| Tool | Description |
|------|-------------|
| `create_delegation` | UCAN-style capability delegation token |
| `verify_delegation` | Verify JWT signature, expiry, structure |
| `list_delegations` | List delegations by agent and role |
| `revoke_delegation` | Revoke a delegation token |

</details>

<details>
<summary>Reputation (3 tools)</summary>

| Tool | Description |
|------|-------------|
| `record_interaction` | Record outcome and update trust score |
| `get_reputation` | Get score with category breakdown |
| `query_reputation` | Search agents by reputation criteria |

</details>

<details>
<summary>Compliance (7 tools)</summary>

| Tool | Description |
|------|-------------|
| `create_compliance_profile` | Create EU AI Act profile with risk categorization |
| `get_compliance_profile` | Retrieve full compliance profile |
| `update_compliance_profile` | Update an existing compliance profile |
| `get_compliance_status` | Gap analysis: completed vs missing requirements |
| `record_conformity_assessment` | Record self or third-party assessment (Article 43) |
| `generate_declaration_of_conformity` | Generate Annex V declaration + auto-issue VC |
| `list_compliance_profiles` | Filter by risk category and compliance status |

</details>

<details>
<summary>Credentials (8 tools)</summary>

| Tool | Description |
|------|-------------|
| `issue_credential` | Issue W3C VC with Ed25519Signature2020 proof |
| `verify_credential` | Check signature, expiry, revocation (local credentials) |
| `verify_credential_external` | Verify any VC JSON from an external source |
| `revoke_credential` | Revoke a Verifiable Credential |
| `get_credential` | Get full VC details |
| `list_credentials` | Filter by agent, type, validity |
| `create_verifiable_presentation` | Bundle VCs into a signed VP for a verifier |
| `verify_presentation` | Verify a VP with embedded credentials |

</details>

<details>
<summary>Provenance (5 tools)</summary>

| Tool | Description |
|------|-------------|
| `record_training_data` | Record training data source (Article 10) |
| `record_model_lineage` | Record model chain and evaluation metrics (Article 11) |
| `log_action` | Log agent action with hash-chained audit trail (Article 12) |
| `get_provenance` | Get full provenance record |
| `get_audit_trail` | Query audit log with filters |

</details>

<details>
<summary>Blockchain (6 tools)</summary>

| Tool | Description |
|------|-------------|
| `anchor_identity` | Anchor identity hash to Base L2 via EAS |
| `anchor_credential` | Anchor credential hash to Base L2 via EAS |
| `anchor_audit_batch` | Merkle batch anchor of audit log entries |
| `verify_anchor` | Verify an on-chain anchor against local data |
| `get_anchor_status` | Get anchoring status for an artifact |
| `estimate_anchor_cost` | Estimate gas cost for anchoring |

</details>

---

## Roadmap

### Completed

- **Identity & Trust** - 21 tools for agent identity, DID, delegation, reputation, agent cards
- **EU AI Act Compliance** - 20 tools for risk profiles, conformity assessments, Annex V declarations, W3C VCs
- **Blockchain Anchoring** - 6 tools for Base L2 anchoring via EAS, Merkle batch anchoring
- **GDPR Compliance** - Article 17 right to erasure across all data stores
- **External Verification** - Third-party VP and credential verification without internal access
- **Hash-Chained Audit Trail** - Tamper-evident SHA-256 chain hashes on all audit entries
- **SSRF Protection** - Private IP blocking on DID resolution and agent discovery

### Next: Ecosystem Bridges

- ERC-8004 Identity Registry adapter (UAIT <-> ERC-721)
- A2A Agent Card auto-sync
- ANS (Agent Name Service) resolution
- Polygon ID zero-knowledge credential support

---

## Documentation

| Document | Description |
|----------|-------------|
| [Getting Started](docs/getting-started.md) | Installation and first identity in 5 minutes |
| [EU AI Act Compliance](docs/eu-ai-act-compliance.md) | Step-by-step compliance workflow |
| [Risk Classification](docs/risk-classification.md) | How to determine your AI system's risk category |
| [Concepts](docs/concepts.md) | UAIT, DID, VC, VP, UCAN, Ed25519 explained |
| [API Reference](docs/api-reference.md) | All 47 tools with full parameter tables |
| [Integration Guide](docs/integration-guide.md) | LangChain, CrewAI, AutoGen, MCP client patterns |
| [FAQ](docs/faq.md) | Common questions answered |

---

## Important Disclaimer

Attestix generates machine-readable, cryptographically signed compliance documentation for AI agents. It is a documentation and evidence tooling system.

**Attestix does not replace legal counsel, notified body assessments, or official regulatory submissions.** The declarations and artifacts produced by Attestix are structured evidence to support your compliance process, not legally binding regulatory filings on their own. Always consult qualified legal professionals for compliance decisions.

---

## Security

- **Ed25519** signatures on all UAITs, VCs, assessments, declarations, and audit entries
- **Hash-chained audit trail** with SHA-256 chain hashes for tamper-evident logging
- **SSRF protection** blocks private IPs, metadata endpoints, and DNS rebinding on all URL operations
- **did:key** identifiers derived from server signing key (multicodec 0xed01)
- **Encrypted key storage** with AES-256-GCM when `ATTESTIX_KEY_PASSWORD` is set
- Private keys never returned in tool responses (stored locally)
- Signing key stored in `.signing_key.json` (excluded from git)
- No external API calls required for core operations
- All sensitive files excluded via `.gitignore`: `.env`, `.signing_key.json`, `.keypairs.json`, runtime data files

---

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.

---

## License

Apache License 2.0. See [LICENSE](LICENSE) for details.

---

Built by [VibeTensor](https://vibetensor.com)
