┌─────────────────────────────────────────────────────────────────────────────┐
│ AIngle Network │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Full Node │ │ Minimal Node │ │ Smart Node │ │
│ │ (Server) │ │ (IoT Device) │ │ (AI Agent) │ │
│ ├─────────────────┤ ├─────────────────┤ ├─────────────────┤ │
│ │ • Full DAG │ │ • Pruned DAG │ │ • MinimalNode │ │
│ │ • Validation │ │ • CoAP Transport│ │ • Kaneru Agent │ │
│ │ • Websocket API │ │ • Gossip Sync │ │ • Policy Engine │ │
│ │ • App Hosting │ │ • <1MB RAM │ │ • Learning │ │
│ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
│ │ │ │ │
│ └────────────────────┼────────────────────┘ │
│ │ │
│ ┌───────────▼───────────┐ │
│ │ P2P Network │ │
│ │ ┌─────────────────┐ │ │
│ │ │ Kitsune Protocol │ │ │
│ │ │ (QUIC/WebRTC) │ │ │
│ │ └─────────────────┘ │ │
│ │ ┌─────────────────┐ │ │
│ │ │ CoAP Protocol │ │ │
│ │ │ (UDP/Multicast) │ │ │
│ │ └─────────────────┘ │ │
│ └───────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
AIngle uses a Directed Acyclic Graph (DAG) instead of a blockchain for data storage.
Genesis
│
┌───────────┼───────────┐
│ │ │
Agent A Agent B Agent C
│ │ │
┌──┴──┐ ┌──┴──┐ ┌──┴──┐
│ │ │ │ │ │
A1 A2 B1 B2 C1 C2
│ │ │ │ │ │
└──┬──┘ │ │ └──┬──┘
│ │ │ │
A3 ───────┴─────┴─────── C3
│ │
└───────────┬───────────┘
│
Merge
-
Entries: Data units stored in the DAG
- App entries: Application data
- Agent entries: Identity/capability data
- Links: References between entries
-
Actions: Operations on entries
- Create: Add new entry
- Update: Modify existing entry
- Delete: Mark entry as deleted
-
Records: Entry + Action pairs with signatures
aingle (main conductor)
├── aingle_types # Core types and traits
├── aingle_keystore # Cryptographic key management
├── aingle_state # State and database management
├── aingle_conductor_api # Conductor HTTP/WebSocket API
├── aingle_websocket # WebSocket implementation
├── aingle_p2p # Peer-to-peer networking (Kitsune)
├── aingle_ai # AI integration layer
├── aingle_minimal # Lightweight IoT node
│ ├── coap # CoAP transport (RFC 7252)
│ ├── gossip # Optimized gossip protocol
│ └── smart # SmartNode (with Kaneru agents)
├── kaneru # Kaneru agent framework
└── ineru # Neural memory system
Application
│
▼
Conductor API
│
▼
Validation (Sys → App)
│
▼
Local Storage (DAG)
│
▼
Gossip Network
│
▼
Remote Nodes
Application
│
▼
Conductor API
│
▼
Local Storage
│
└──► Cache Hit ──► Return
│
▼
Network Query (if not found)
│
▼
Remote Nodes
│
▼
Validation
│
▼
Return to Application
┌─────────────────────────────────────────────────────────────┐
│ Minimal Node │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ Memory Budget: 512KB │
│ │ Sensors │ ┌─────────────────────────────────────┐ │
│ │ ────────────┤ │ Runtime: 128KB │ │
│ │ • Temperature│ │ Crypto: 64KB │ │
│ │ • Humidity │ │ Network: 128KB │ │
│ │ • Motion │ │ Storage: 128KB │ │
│ │ • GPS │ │ App: 64KB │ │
│ └──────┬───────┘ └─────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ Observation │────▶│ SmartNode │ │
│ │ Buffer │ │ (Optional) │ │
│ └──────────────┘ └──────┬───────┘ │
│ │ │
│ ┌────────────────────┼────────────────────┐ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Storage │ │ Network │ │ Actions │ │
│ │ (SQLite) │ │ (CoAP) │ │ (Actuators) │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
Node A Node B
│ │
│──── Ping ──────────────▶│
│ │
│◀─── Pong + Seq ─────────│
│ │
│──── GossipRequest ─────▶│
│ (from_seq, limit) │
│ │
│◀─── GossipResponse ─────│
│ (records) │
│ │
Node A Node B
│ │
│──── BloomFilter ───────▶│
│ (known hashes) │
│ │
│◀─── Missing Hashes ─────│
│ │
│──── Records ───────────▶│
│ │
-
Cryptographic Signing
- Ed25519 signatures for all actions
- BLAKE3 hashing for content addressing
-
Capability-Based Access
- Grants for delegating permissions
- Revocation through the DAG
-
Validation Rules
- System validation (structural integrity)
- Application validation (business logic)
AIngle uses eventual consistency with adaptive thresholds:
- AI-Enhanced Thresholds: The AI layer can adjust consensus thresholds based on network conditions
- Validation Receipts: Peers send receipts when they validate data
- Confidence Scoring: Entries gain confidence as more validations accumulate
Entry Created ──▶ Local Validation ──▶ Gossip ──▶ Remote Validations
│
▼
Confidence Threshold
│
▼
Considered Valid