A lightweight protocol for publishing, connecting, and traversing Cognitive Building Blocks into reusable reasoning paths.
IONS is an open protocol that inverts the traditional AI architecture. Instead of compressing knowledge into model weights, IONS externalizes knowledge into a traversable network of atomic, typed, and evidence-backed claims called Cognitive Building Blocks (CBBs). Any lightweight model can then traverse this network to produce answers with visible reasoning chains.
Genesis Result: An 8B parameter model connected to a CBB network matched or exceeded a frontier model on 5 of 8 domain-specific queries β at a fraction of the compute cost.
Traditional AI: Model β Knowledge β Answer
IONS: CBBs β Relationships β Traversal β Reasoning Path β Answer
The durable asset is not the model. The durable asset is the network of CBBs, relationships, and reasoning paths. Models are replaceable interpreters. The network compounds.
A Cognitive Building Block is a single atomic, assertable claim:
{
"cbb_id": "cbb_a1b2c3d4e5f6",
"type": "claim",
"domain": "organizational_intelligence",
"content": "Organizations that automate without operational discovery build on incorrect assumptions.",
"confidence": 0.85,
"evidence": [{"source_type": "book", "source_id": "abr_chapter_3"}],
"assumptions": ["Organization has existing workflows to map"],
"scope": ["enterprise_ai", "process_automation"],
"status": "published"
}
CBBs are:
Atomicβ one claim only, specific enough to evaluate** Typed**β confidence, evidence, scope, and assumptions are explicit** Addressable**β every CBB has a stable ID and cryptographic hash** Traversable**β connected by typed relationships to other CBBs
A reasoning path is the ordered result of traversal β stored as a reusable artifact:
Query: "Why do AI initiatives fail early?"
Path: cbb_001 β [supports] β cbb_014 β [causes] β cbb_027 β [depends_on] β cbb_039
Confidence: 65.5%
Answer: "Many enterprise AI initiatives fail early because shallow operational
discovery produces incomplete requirements..."
Paths are inspectable, scorable, and reusable. The reasoning is visible β not a black box.
Genesis is the first IONS node. It proves the protocol works with a curated corpus of CBBs across multiple domains including organizational intelligence, economics, blockchain, peak performance, AI regulation, and healthcare AI.
| Query Type | Raw 8B | 8B + CBB Traversal | Claude Sonnet |
|---|---|---|---|
| Domain-specific | Weak | Strong | |
| Strong | |||
| Cross-domain reasoning | Weak | Competitive | |
| Strong | |||
| Average path confidence | β | 0.547 | β |
The 8B + CBB network matched or exceeded the frontier model on 5 of 8 domain queries.
Knowledge Sources (documents, books, research, observations)
β
Light D2Brain Extractor (LLM-powered CBB extraction)
β
Review Queue (human approval before publication)
β
IONS Network
βββ CBB Registry
βββ Relationship Registry
βββ Path Registry
βββ Traversal Engine
β
Query Interface β Answer + Reasoning Path + Evidence
The reference genesis node is publicly accessible. You can query it directly or register your node against it:
curl -X POST http://162.243.203.243:8000/query \
-H "Content-Type: application/json" \
-d '{"query": "How does institutional memory compound competitive advantage?"}'
curl -X POST http://162.243.203.243:8000/nodes/register \
-H "Content-Type: application/json" \
-d '{"node_id": "your_node_id", "public_api_base": "https://your-node.example.com"}'
curl http://162.243.203.243:8000/.well-known/ions-node.json
- Docker and Docker Compose
- An OpenRouterAPI key (for CBB extraction and relationship generation) - Node.js 18+ (for the frontend)
git clone https://github.com/ions-protocol/genesis
cd genesis
cp .env.example .env
Edit .env
:
OPENROUTER_API_KEY=sk-or-your-key-here
IONS_NODE_ID=my_node
DATABASE_URL=postgresql+asyncpg://ions:ions@localhost:5432/ions
docker compose up -d
This starts:
- PostgreSQL (port 5432) β system of record
- FastAPI backend (port 8000) β CBB registry, traversal engine, API
- Next.js frontend (port 3000) β explorer, workbench, graph
curl http://localhost:8000/health
curl http://localhost:8000/.well-known/ions-node.json
open http://localhost:8000/docs
open http://localhost:3000
-
Open
http://localhost:3000/contribute -
Paste text or upload a
.txt
,.md
, or.docx
document - Click Extract CBBsβ the network identifies atomic claims automatically - Review and deselect any you don't want
- Submit to the review queue
- Approve in the Workbench
curl -X POST http://localhost:8000/cbb \
-H "Content-Type: application/json" \
-d '{
"type": "claim",
"domain": "organizational_intelligence",
"content": "Shallow discovery is the most common cause of failed AI transformation.",
"confidence": 0.85,
"evidence": [{"source_type": "original", "source_id": "field_observation_2024"}],
"status": "candidate"
}'
β Good: "Organizations that skip operational discovery produce AI requirements that don't match how work actually happens."
β Too vague: "AI is important for business."
β Compound claim: "AI fails because of bad data and poor leadership and unclear goals."
One claim. Specific enough to evaluate as true or false in context.
curl -X POST http://localhost:8000/query \
-H "Content-Type: application/json" \
-d '{
"query": "Why do institutional knowledge gaps compound over time?",
"top_n_paths": 3,
"max_depth": 5
}'
Response includes:
raw_answer
β direct LLM answer without CBB contextcbb_answer
β answer synthesized from traversal pathspaths
β ordered reasoning paths with confidence scores, CBB sequences, and relationship chains
| Method | Endpoint | Description |
|---|---|---|
| POST | /cbb |
|
| Publish a CBB | ||
| GET | /cbb |
|
| Search CBBs | ||
| GET | /cbb/{id} |
|
| Retrieve a CBB | ||
| POST | /cbb/{id}/deprecate |
|
| Deprecate a CBB | ||
| POST | /relationship |
|
| Create a relationship | ||
| GET | /relationship |
|
| List relationships | ||
| POST | /query |
|
| Run traversal query | ||
| GET | /path/{id} |
|
| Retrieve a saved path | ||
| GET | /path |
|
| List saved paths | ||
| GET | /health |
|
| Node health check | ||
| GET | /.well-known/ions-node.json |
|
| Node manifest | ||
| GET | /stats |
|
| Network statistics | ||
| GET | /docs |
|
| Interactive API docs |
Every IONS node is independent. To run a node:
-
Fork this repository
-
Configure your
.env -
Run
docker compose up -d -
Seed your node with CBBs from your domain
-
Your node announces itself via
/.well-known/ions-node.json
Your node's manifest is automatically available at:
GET /.well-known/ions-node.json
{
"node_id": "your_node_id",
"protocol_version": "ions-genesis-0.1",
"supported_cbb_types": ["claim"],
"capabilities": ["publish_cbb", "publish_relationship", "query", "traverse"],
"public_api_base": "https://your-node-url.com",
"status": "active",
"open_contributions": true
}
Update public_api_base
in backend/main.py
to your public URL before deploying.
Once your node is running at a public URL, register it with any existing IONS node:
curl -X POST https://known-node.example.com/nodes/register \
-H "Content-Type: application/json" \
-d '{"node_id": "your_node_id", "public_api_base": "https://your-node.example.com"}'
Your node will be discovered via its manifest, added to the registry, and queries on that node will automatically traverse your CBBs as part of federated paths.
After publishing CBBs, generate relationships between them:
source .env
python3 generate_relationships_fast.py
This connects your CBBs to each other using the same LLM-powered approach used to build the Genesis network. Run multiple times to increase relationship density. Aim for 3+ relationships per CBB for strong traversal paths.
Narrow Super Intelligence clusters are domain-specific groupings of CBBs. The graph view automatically groups your CBBs into NSIs using LLM-powered semantic clustering. As nodes contribute knowledge in new domains, new NSI clusters form organically.
Path confidence is computed from:
PathConfidence = CBB_avg Γ REL_avg Γ EvidenceScore
Confidence is always shown with its path and evidence β never as a context-free number.
| Type | Meaning |
|---|---|
supports |
|
| Source increases confidence of target | |
contradicts |
|
| Source challenges target | |
depends_on |
|
| Source requires target as premise | |
causes |
|
| Source leads to target | |
correlates_with |
|
| Source and target are associated | |
extends |
|
| Source expands target | |
refines |
|
| Source narrows or clarifies target | |
references |
|
| Source cites target |
ions-genesis/
βββ backend/
β βββ main.py # FastAPI app, health, manifest
β βββ app/
β β βββ api/
β β β βββ cbbs.py # CBB CRUD endpoints
β β β βββ relationships.py # Relationship endpoints
β β β βββ query.py # Traversal and path endpoints
β β βββ models/
β β β βββ schemas.py # Pydantic validation models
β β β βββ artifacts.py # SQLAlchemy ORM models
β β βββ services/
β β β βββ traversal.py # Path enumeration and scoring
β β β βββ synthesis.py # Answer generation
β β β βββ hashing.py # Canonical hash service
β β βββ core/
β β βββ config.py # Settings
β β βββ database.py # Async DB connection
β βββ seed.py # Initial seed data
βββ frontend/
β βββ app/ # Next.js pages
β βββ page.tsx # Explorer
β βββ graph/ # NSI graph visualization
β βββ contribute/ # CBB contribution
β βββ workbench/ # Review and approval
β βββ rights/ # Attribution (coming soon)
β βββ node/ # Node status and manifest
β βββ settings/ # API key and model config
βββ generate_relationships_fast.py # Bulk relationship generation
βββ docker-compose.yml
βββ .env.example
| Feature | Status |
|---|---|
| Multi-node federation | β Live β node registry, manifest, federated query |
| Server-side relationship generation | β
Live β POST /relationship/generate |
| Node manifest | β
Live β GET /.well-known/ions-node.json |
| Path registry | β
Live β GET /path/{id} |
| Rights and attribution claims | π¬ Experimental β framework in place, claims coming soon |
| Token / reward mechanics | π Future |
| Automated relationship generation on CBB approval | π Future |
| Network-derived reputation scoring | π Future |
| Multiple CBB types (observation, procedure, outcome) | π Future β claim type proven first |
"The model is less important than the network. Intelligence emerges through traversal and composition, not through parameter scale alone."
IONS is built on the belief that:
- Knowledge should be durable, inspectable, and composable
- Reasoning should be visible, not opaque
- Any model should be able to participate as an interpreter
- Contributors should be able to see their knowledge being used
This is an open protocol. Fork it. Run a node. Contribute CBBs. Build on it.
MIT
Pull requests welcome. For significant changes open an issue first to discuss what you'd like to change.
The most valuable contributions are:
- High-quality CBBs in underrepresented domains
- Improvements to the traversal engine
- New relationship types with clear semantics
- Documentation and examples