Skip to content

f13end/holoXtrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HoloXtrace - AI Audit Infrastructure

English | Türkçe | Español | 简体中文 | Français | Deutsch | 日本語 | Português (BR) | Русский | 한국어 | العربية | हिन्दी

Holochain-based, agent-centric AI audit infrastructure with EU AI Act compliance.

Overview

HoloXtrace provides a decentralized, tamper-proof audit system for AI systems using Holochain's P2P DHT architecture. It eliminates gas fees and provides millisecond latency while maintaining immutability and transparency.

Architecture

Core Components

1. Identity Zome (DeepKey + did:holo)

  • Agent Identity Management: DeepKey-based cryptographic identities
  • DID Resolution: did:holo decentralized identifier support
  • SPIFFE/SPIRE Integration: Dynamic workload identity for secure service authentication
  • Membrane Proof: Sybil-resistant access control with proof-of-work and SPIRE attestation

Key Features:

  • Cryptographic agent verification
  • Key rotation support
  • SPIFFE ID attestation
  • EU AI Act compliance metadata

2. Audit Zome (Hash-chain)

  • Immutable Audit Trail: Source-chain based event logging
  • Hash-chain Integrity: Cryptographically linked audit events
  • EU AI Act Compliance: Decision metadata, human oversight tracking
  • Compliance Reporting: Automated compliance analysis

Key Features:

  • Tamper-proof event logging
  • Chain integrity verification
  • AI system activity tracking
  • Anomaly detection

3. Provenance Zome (C2PA)

  • C2PA Manifest Storage: Detached manifests in DHT
  • Metadata Stripping Protection: Immutable provenance data
  • Chain of Custody: Complete asset history tracking
  • AI Generation Metadata: Training data provenance, model versioning

Key Features:

  • C2PA standard compliance
  • Manifest verification
  • Custody chain tracking
  • Metadata stripping detection

Key Benefits

Zero Gas Fees

Holochain's P2P DHT architecture eliminates transaction fees entirely.

Millisecond Latency

Direct peer-to-peer communication provides near-instant operations.

Immutable Audit Trail

Source-chain cryptography ensures tamper-proof records.

EU AI Act Compliance

Built-in support for transparency, accountability, and human oversight requirements.

Sybil Protection

Membrane proof with SPIRE attestation prevents unauthorized access.

Metadata Protection

C2PA manifests stored in DHT prevent metadata stripping attacks.

Build Instructions

Prerequisites

  • Rust 1.70+
  • Holochain 0.4+ tools (for DNA packaging)
  • wasm32-unknown-unknown target

Note: This implementation uses HDK 0.4 APIs which are stable and production-ready. HDK 0.6+ migration would require significant refactoring of entry type definitions (see KNOWN_ISSUES.md for details).

Building

# Install Rust target
rustup target add wasm32-unknown-unknown

# Check that code compiles
cargo check

# Build WASM
cargo build --target wasm32-unknown-unknown --release

# Package DNA (requires Holochain 0.6 tools)
hc dna pack dnas/holotrace/workdir

See BUILD.md for detailed build instructions.

Note: This implementation uses HDK 0.6.0 (latest stable, November 2025) with full API compatibility.

Usage Examples

Register Agent Identity

use holotrace::identity_coordinator::*;

let identity = AgentIdentity {
    agent_key: my_agent_key,
    did_identifier: "did:holo:12345...".to_string(),
    spiffe_id: Some("spiffe://example.org/workload".to_string()),
    verification_methods: vec![...],
    created_at: sys_time()?,
    compliance_metadata: ComplianceMetadata {
        risk_class: RiskClass::Limited,
        purpose: "AI content moderation".to_string(),
        transparency_level: "High".to_string(),
    },
};

let hash = register_identity(identity)?;

Create Audit Event

use holotrace::audit_coordinator::*;

let event = AuditEvent {
    event_id: "event-001".to_string(),
    event_type: AuditEventType::Inference,
    agent: my_agent_key,
    previous_event_hash: Some(previous_hash),
    payload: serde_json::to_string(&inference_data)?,
    timestamp: sys_time()?,
    ai_system_id: Some("ai-model-v1".to_string()),
    decision_metadata: Some(DecisionMetadata {
        input_hash: "...".to_string(),
        output_hash: "...".to_string(),
        model_version: "1.0.0".to_string(),
        confidence: Some(0.95),
        human_reviewed: false,
        explanation: Some("High confidence prediction".to_string()),
    }),
};

let hash = create_audit_event(event)?;

Store C2PA Manifest

use holotrace::provenance_coordinator::*;

let manifest = C2PAManifest {
    manifest_id: "manifest-001".to_string(),
    asset_hash: compute_hash(&asset_data),
    manifest_data: c2pa_encoded_data,
    creator: my_agent_key,
    created_at: sys_time()?,
    signature: sign_manifest(&manifest_data)?,
    custody_chain: vec![...],
};

let hash = store_c2pa_manifest(manifest)?;

EU AI Act Compliance

Holotrace is designed to help organizations comply with the EU AI Act requirements:

Transparency

  • Immutable audit trails
  • Complete decision logging
  • Human oversight tracking

Accountability

  • Agent-centric architecture
  • Cryptographic signatures
  • Chain of custody

Risk Management

  • Risk classification metadata
  • Automated compliance reporting
  • Anomaly detection

Technical Documentation

  • Model versioning
  • Training data provenance
  • Generation parameters

Security Features

SPIFFE/SPIRE Integration

Dynamic workload identity provides:

  • Automatic credential rotation
  • Mutual TLS authentication
  • Zero-trust security model

Sybil Protection

Membrane proof mechanism:

  • Challenge-response authentication
  • Optional proof-of-work
  • SPIRE attestation validation

Cryptographic Integrity

  • Source-chain validation
  • Hash-chain verification
  • Digital signatures

Performance Characteristics

  • Latency: < 10ms for local operations, < 100ms for DHT operations
  • Throughput: Scales with network size
  • Storage: Distributed across all nodes
  • No Blockchain: Zero gas fees, no mining

Architecture Diagrams

┌─────────────────────────────────────────────────┐
│           Holotrace DNA (Holochain)             │
├─────────────────────────────────────────────────┤
│  ┌────────────┐  ┌───────┐  ┌─────────────┐   │
│  │  Identity  │  │ Audit │  │ Provenance  │   │
│  │   Zome     │  │ Zome  │  │    Zome     │   │
│  │            │  │       │  │             │   │
│  │ DeepKey    │  │ Hash  │  │   C2PA      │   │
│  │ did:holo   │  │ Chain │  │ Manifests   │   │
│  │ SPIFFE/    │  │ EU AI │  │ Custody     │   │
│  │ SPIRE      │  │ Act   │  │ Chain       │   │
│  └────────────┘  └───────┘  └─────────────┘   │
├─────────────────────────────────────────────────┤
│              Holochain DHT Layer                │
│  (P2P, Zero Gas Fees, Millisecond Latency)     │
└─────────────────────────────────────────────────┘

Contributing

Contributions are welcome! Please ensure:

  • All tests pass
  • Code follows Rust best practices
  • EU AI Act compliance is maintained
  • Security considerations are addressed

License

See LICENSE file for details.

References

Documentation

All documentation is available in multiple languages. Click on your preferred language in each document.

Primary Documentation 🌐

Specialized Guides 🌐

Additional Resources

  • IMPLEMENTATION_SUMMARY.md - What has been implemented
  • KNOWN_ISSUES.md - Known issues and limitations
  • FINAL_SUMMARY.md - Project summary

🌐 = Available in 12 languages: English (primary), Türkçe, Español, 简体中文, Français, Deutsch, 日本語, Português (BR), Русский, 한국어, العربية, हिन्दी

About

Holochain-based, agent-centric AI audit infrastructure with EU AI Act compliance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages