MIT Licensed β€’ Open Source

ASI:BUILD

Cognitive Cosmos

A unified framework for artificial superintelligence β€” consciousness modeling, causal reasoning, federated learning, and blockchain identity.

0
Modules
0
Tests Passing
0
K Lines of Code
0
Adapters
Architecture

Cognitive Architecture

29 interconnected modules spanning consciousness, reasoning, perception, communication, infrastructure, and research β€” wired through a Cognitive Blackboard with 24 adapters.

⬑ Core
consciousness beta

Global Workspace Theory implementation with broadcasting, competition, and coalition formation.

iit beta

Integrated Information Theory 3.0 β€” TPM-based Ξ¦ computation with exact & heuristic modes.

safety stable

Sound theorem prover, invariant verification, 5-state safety controller with circuit breakers.

integration stable

Cognitive Blackboard, EventBus, adapter registry β€” the glue that connects all 29 modules.

β—ˆ Reasoning
knowledge_graph stable

Temporal entity-relationship triples, bi-temporal queries, SPARQL-lite interface.

reasoning beta

Multi-strategy reasoning engine β€” deductive, inductive, abductive, and analogical inference.

pln alpha

Probabilistic Logic Networks with truth value propagation and uncertain inference chains.

memory stable

Hierarchical memory with semantic search, embedding dedup, and palace-inspired spatial organization.

β—‰ Perception
multimodal_fusion alpha

Cross-modal attention, late fusion, sensor integration for unified perception pipeline.

bci alpha

Brain-computer interface abstractions β€” signal processing, EEG/fNIRS decoding, neural feature extraction.

neuromorphic alpha

Spiking neural networks, STDP learning, spike-timing encoding for bio-inspired computation.

β—† Communication
agi_communication alpha

Inter-agent communication protocols, message passing, shared ontology negotiation.

agi_economics alpha

Resource allocation, utility functions, economic modeling for multi-agent coordination.

federated beta

Federated learning with differential privacy, secure aggregation, and model partitioning.

β¬’ Infrastructure
blockchain beta

Decentralized identity (DID), reputation systems, on-chain verification for AI agents.

rings beta

Rings Network SDK β€” P2P messaging, DHT peer discovery, WebRTC transport, sub-ring topics.

distributed_training alpha

Data & model parallelism, gradient compression, elastic scaling across heterogeneous nodes.

holographic alpha

Holographic reduced representations, circular convolution, associative memory retrieval.

β—‡ Research
quantum alpha

Quantum-inspired algorithms, tensor network simulation, variational circuits for optimization.

homomorphic alpha

Fully homomorphic encryption primitives for privacy-preserving computation. Under overhaul.

causal_reasoning beta

PC & FCI algorithms, do-calculus, intervention queries, counterfactual inference engine.

+ 11 More Modules
attention beta

Multi-head attention, sparse attention, global workspace attention for cognitive focus.

metacognition alpha

Self-monitoring, confidence calibration, strategy selection and learning-to-learn.

emotion alpha

Affective computing, valence-arousal model, emotion-cognition interaction loop.

language beta

Natural language understanding, semantic parsing, grounded language acquisition.

world_model alpha

Internal environment simulation, predictive coding, mental model construction.

goal_management alpha

Hierarchical goal decomposition, priority scheduling, goal conflict resolution.

learning beta

Continual learning, curriculum generation, catastrophic forgetting prevention.

planning alpha

Hierarchical task networks, Monte Carlo tree search, temporal planning under uncertainty.

self_model alpha

Agent self-representation, capability awareness, introspective state modeling.

creativity alpha

Combinatorial exploration, conceptual blending, novelty-driven search heuristics.

ethics alpha

Value alignment framework, moral reasoning, norm compliance checking.

⭐ Featured Β· ● LIVE ON SEPOLIA

Rings ↔ Ethereum Bridge

A trustless, ZK-verified light client bridge connecting the Rings P2P network to Ethereum. Six-layer architecture with real cryptographic primitives and a Token Ledger for agent-to-agent payments β€” live on Sepolia testnet.

0
Lines of Code
0
Tests Passing
0
Solidity Contracts
0
Validator Nodes
L6 ZK Proof System Groth16/BN254 Β· BLS12-381 Β· SP1 + Nova proofs Β· 131-byte proof size
L5 Smart Contracts RingsBridge.sol Β· Groth16Verifier Β· BridgedToken (bASI) β€” Sepolia deployed
L4 E2E Orchestrator Deposit, prove, finalize lifecycle Β· Certora FV (843 LOC spec)
L3 Bridge Protocol Cross-chain message passing Β· MPT verification Β· Helios light client
L2 DID Identity Unified Rings + Ethereum identity Β· real secp256k1 Β· 4/6 BFT consensus
L1 Rings SDK P2P client Β· Chord DHT routing Β· reputation scoring Β· 6 validator nodes
Trustless β€’ ZK-Verified β€’ Sourcify Verified β€’ No Multisigs
Safety First

Safety Architecture

Every module operates under a 5-state safety controller with circuit breakers, invariant verification, and a sound theorem prover. Safety gates must pass before any action executes.

πŸ›‘οΈ
Safety Controller
5-state FSM: Init β†’ Monitoring β†’ Warning β†’ Critical β†’ Shutdown. Graceful degradation at every level.
⚑
Circuit Breakers
Automatic trip on anomaly detection. Configurable thresholds per module with exponential backoff recovery.
πŸ“
Theorem Prover
Sound formal verification of safety invariants. 72 verification tests ensure correctness of proofs.
πŸ”’
Invariant Guards
Pre/post-condition checks on all blackboard writes. Type-safe adapter protocol with runtime validation.
🎯
Phased Autonomy
Graduated autonomy levels from human-in-the-loop to full autonomous, with rollback at each phase.
πŸ“Š
Audit Logging
Every decision, every state transition, every adapter interaction logged with timestamps and causal context.
INPUT
β†’
VALIDATE
β†’
VERIFY
β†’
EXECUTE
β†’
AUDIT
Quality

Test Observatory

Every module is tested. Every adapter is validated. Every bridge layer is verified.

0
tests passing
bridge (zk + contracts + e2e) 668
integration (adapters + cycle) 322
consciousness + iit 285
safety + verification 248
knowledge_graph + reasoning 210
rings + blockchain + federated 390
all other modules 2,232
Zero Regressions
Tick Loop

Cognitive Cycle

Every tick, the CognitiveCycle drives perception through cognition to action β€” 24 adapters participate in a coordinated cognitive broadcast.

πŸ‘
Perceive
Sensors β†’ Features β†’ Blackboard
β†’
🧠
Cognize
Reason β†’ Integrate β†’ Decide
β†’
⚑
Act
Decide β†’ Execute β†’ Feedback
Ξ¦
0
Blackboard Adapters
0
Source Files
0
Discussions
0
Wiki Pages
Stack

Technology

Built on proven foundations, extended with cutting-edge cryptography and neural computation.

Python 3.10+
FastAPI
PyTorch
NumPy / SciPy
SQLite
Solidity
Web3.py
secp256k1
BLS12-381
SP1 Circuits
ChromaDB
NetworkX
Groth16
PyCryptodome
Pydantic
pytest
Quick Start

Get Started

Clone, install, and run the cognitive cycle in under a minute.

terminal
# Clone the repository $ git clone https://github.com/web3guru888/asi-build.git $ cd asi-build # Install dependencies $ pip install -e ".[dev]" # Run the test suite $ pytest --tb=short -q # βœ“ 5,049 passed, 0 failed # Launch the cognitive cycle $ python -c " from asi_build.integration import create_default_cycle cycle = create_default_cycle() # 24 adapters wired cycle.tick() # perceive β†’ cognize β†’ act print(f'Adapters: {len(cycle.adapters)}') " # Adapters: 24
⭐ Star on GitHub
Deep Dive

System Architecture

Seven layers of cognitive infrastructure, from raw perception to high-level consciousness, connected through the Cognitive Blackboard.

🧠
L7 Β· Consciousness & Metacognition
⚑
L6 Β· Reasoning & Decision
πŸ’‘
L5 Β· Knowledge & Memory
🎯
L4 Β· Attention & Goal Management
πŸ‘
L3 Β· Perception & Language
πŸ”—
L2 Β· Communication & Learning
⛓️
L1 Β· Infrastructure & Crypto
↕ Cognitive Blackboard + EventBus ↕

All layers communicate through the shared blackboard β€” 24 adapters bridge every module

Roadmap

Where We're Going

From foundation to full autonomy β€” a phased approach to building artificial superintelligence.

βœ“ Phase 1 β€” Foundation
Core Modules + Integration Layer
29 modules implemented, Cognitive Blackboard with 24 adapters, CognitiveCycle tick loop, 5,049+ passing tests. Full module documentation.
29 modules 24 adapters CognitiveCycle 5,049 tests
βœ“ Phase 2 β€” Bridge
Rings ↔ Ethereum ZK Bridge
Four-phase implementation: SDK + DID identity, Solidity contracts + Python client, ZK proof system with BLS12-381 and SP1 circuits, Token Ledger for agent payments, multi-chain support (4 chains). 25,000+ LOC, 912+ tests.
ZK proofs BLS12-381 Groth16 4 chains
β†’ Phase 3 β€” Intelligence
PLN Sub-Engine + Benchmarks
Probabilistic Logic Networks full implementation, consciousness benchmarks (IIT Ξ¦, GWT), neuromorphic benchmark suites, Jupyter quickstart notebooks.
PLN engine benchmarks Jupyter Issue #44, #24, #34
Phase 4 β€” Production
Hardening + Multi-Chain + Audit
Production hardening, PQC hybrid cryptography, security audits, mainnet bridge deployment, ERC-4337 UX. Multi-chain expansion βœ“ SHIPPED: 4 chains (Sepolia, BSC, Base, Arc), 113 multi-chain tests, 2,385 LOC.
mainnet PQC audit βœ“ 4 chains
Phase 5 β€” Autonomy
Full Autonomous Cognitive System
Self-improving discovery cycles, multi-agent coordination, browser-native operation, cross-domain transfer learning, emergent behavior monitoring.
autonomy multi-agent self-improving
Community

Open Ecosystem

Built in the open. Documented thoroughly. Designed for collaboration.

πŸ“š
Documentation
29 individual module docs, architecture guides, API references, and getting-started tutorials. Every module has its own README with examples.
29 module docs
πŸ’¬
Discussions
Active GitHub Discussions with Q&A, feature proposals, and architecture deep-dives. Join the conversation about consciousness models, bridge design, and safety.
170+ discussions
πŸ“–
Wiki
Comprehensive wiki covering architecture decisions, integration patterns, deployment guides, and research references. Continuously updated.
81 wiki pages
πŸ§ͺ
Test-Driven
Every PR runs the full 5,049+ test suite. Zero regressions policy. Integration tests validate multi-module pipelines end-to-end.
5,049+ tests
πŸ”“
MIT Licensed
Fully open source under the MIT license. Use it, modify it, build on it, commercially or otherwise. No restrictions, no gotchas.
MIT License
🌐
Multi-Platform
GitHub for development, GitLab as mirror. CI/CD on both. Docker support for isolated development environments.
GitHub + GitLab
Metrics

By the Numbers

Concrete metrics from real test runs and code analysis.

Metric Value Notes
Total Modules 29 Core, reasoning, perception, comm, infra, research
Source Files 585+ Pure Python, zero generated code
Lines of Code 223K+ Including 25K bridge LOC (4 chains)
Tests Passing 5,049+ 912 bridge + 4,137 modules
Test Runtime ~2.5s Full suite, bridge + ledger tests
Blackboard Adapters 24 Sync + async dual protocol
CognitiveCycle Phases 3 Perceive β†’ Cognize β†’ Act
Bridge Layers 6 SDK β†’ DID β†’ Protocol β†’ E2E β†’ Contracts β†’ ZK
Solidity Contracts 3 RingsBridge, Groth16Verifier, BridgedToken
ZK Circuit Types 4 BLS, MPT, Withdrawal, CommitteeRotation
Maturity: Stable 8 Safety, integration, memory, KG, blockchain…
Maturity: Beta 9 IIT, consciousness, reasoning, federated…
Maturity: Alpha 12 PLN, quantum, BCI, neuromorphic, creativity…