INDB: The Epistemological Engine
Inhale. Exhale. Axiom.
"When everyone lies, INDB remembers what you saw."
Version: 0.7.0
Status: β
Production-Ready
Last Updated: March 4, 2026
π― What is INDB?
INDB is not a database. It is an Epistemological Engine β a system designed to preserve truth in the age of manipulation.
The Problem: How do you maintain objective reality when collective gaslighting can rewrite history?
INDB's Solution: Treat data as a biological process β metabolism, not storage. Modeled after human memory: inhale, exhale, axiom, hidden zones.
π« The Core Philosophy
Inhale β Exhale β Axiom
1. INHALE (Ingestion)
Accept reality as it is: raw, chaotic, unfiltered.
- Multi-protocol intake (UDP, gRPC, HTTP, WebSocket)
- No judgment, only observation
- Performance: <1ms latency, 1000+ events/sec
2. EXHALE (Fusion & Decay)
Compress truth. Purge noise. Reputation is gravity.
- 1000 lies from bots (rep 0.01) β Mass = 0.1
- 1 truth from sensor (rep 0.99) β Mass = 0.98
The system "exhales" the lies as waste heat.
3. AXIOM (Irrefutable Core)
What remains is cryptographically signed, immutable truth.
π§ Intelligence Modules
Ways of recalling: Prism interprets, Echo resonates, Instinct reflexes, Deduction chains β Blind is what we store but never read.
Prism β Paradox-aware Synthesis
Transforms raw events into meaning. Returns not a single answer β returns its confidence and all competing readings.
curl -X POST http://localhost:8000/api/v2/prism/synthesize \
-H "Content-Type: application/json" \
-d '{
"query": "would have died",
"observer_context": {
"token_weights": {"silence": 2.0},
"vocabulary": {"Subjective": ["scream", "felt"]},
"harmonic_weights": {"emotion": 0.8}
}
}'
Response includes the Perception Paradox:
| Field | Meaning |
|---|---|
meaning |
Primary reading |
alternative_readings |
Competing readings β preserved, not discarded |
perception_gap |
0.0 = clear Β· 1.0 = maximum ambiguity |
is_paradoxical |
True when gap β₯ 0.25 β the system cannot decide |
has_unread_essence |
True when blind_payload present β reality may differ |
What you see may not be what it is.
Status: β Production (100% success, ~20ms latency)
Echo β Resonance Detection
Finds similar events through harmonic analysis.
Harmonic Weights: - Token similarity: 20% - Emotion similarity: 30% - Meta (location): 50%
Status: β Production (<30ms latency)
Instinct β Adrenaline Reflexes
Adaptive response based on urgency.
Three Modes: - Analytical (0.0): Deep analysis, ~10% confidence - Alert (0.5): Balanced, ~46% confidence - Instinctive (1.0): Meta-only, ~82% confidence
Reflex Triggers: - Location Match: +0.7 - Owner Signature: +0.5 - Critical Tokens: +0.3
Status: β Production (100% success, ~25ms latency)
Deduction β Sherlock Holmes Thinking
Infers conclusions from evidence chains. Given facts (events), what can we deduce?
Pipeline: 1. Resolve seeds (event IDs or text query) 2. Expand via Echo resonance β evidence cloud 3. Build chain (temporal, spatial, token inference) 4. Synthesize conclusion
curl -X POST http://localhost:8000/api/v2/deduction/deduce \
-H "Content-Type: application/json" \
-d '{"query": "birthday cheese"}'
Or with explicit seeds:
curl -X POST http://localhost:8000/api/v2/deduction/deduce \
-H "Content-Type: application/json" \
-d '{"seed_event_ids": ["evt-1", "evt-2"]}'
Status: β Production
ποΈ Architecture
Distributed Raft Cluster
graph TD
Client[Client] -->|HTTP/gRPC/UDP| LB[HAProxy :8080]
LB --> Node1[Node 1 :8000<br/>Leader]
LB --> Node2[Node 2 :8004<br/>Follower]
LB --> Node3[Node 3 :8005<br/>Follower]
Node1 <-.->|Raft Consensus| Node2
Node2 <-.->|Raft Consensus| Node3
Node3 <-.->|Raft Consensus| Node1
Node1 --> Data1[(data-node-1/)]
Node2 --> Data2[(data-node-2/)]
Node3 --> Data3[(data-node-3/)]
Features: - β Automatic leader election - β Data replication across all nodes - β Synchronous commits - β Fault tolerance (survives single node failures) - β Stable: 4800% improvement (zero re-elections over 5+ minutes)
π Verified Performance
Cluster Performance (3-Node Raft)
| Metric | Value |
|---|---|
| Throughput | 19-28 events/sec sustained |
| Success Rate | 99.7% (997/1000 events) |
| Latency | 50-250ms per request |
| Data Persistence | 100% (survives restarts) |
| Stability | Zero re-elections (5+ min) |
Module Performance
| Module | Success Rate | Latency | Status |
|---|---|---|---|
| Prism | 100% (50/50) | ~20ms | β Production |
| Echo | 100% | <30ms | β Production |
| Instinct | 100% (50/50) | ~25ms | β Production |
| Deduction | 100% | <50ms | β Production |
| Fusion | Real-time | N/A | β Production |
Standalone Performance
- Ingestion: <1ms per event
- Query: <10ms for 1000 events
- Fusion: Real-time semantic deduplication
π Quick Start
Docker Deployment (Recommended)
# Start 3-node cluster
docker-compose up -d
# Wait for initialization
sleep 20
# Verify cluster
curl http://localhost:8080/raft/status
# Ingest event
curl -X POST http://localhost:8080/api/v2/events \
-H "Content-Type: application/json" \
-d '{
"raw_data_anchor": ["test", "event"],
"location": "test/demo",
"ttl": 86400
}'
Standalone Mode
# Start single node
docker-compose -f docker-compose.standalone.yml up -d
# Access at http://localhost:8000
π Protocol Stack
| Protocol | Port | Type | Use Case |
|---|---|---|---|
| HTTP/REST | 8000 | Interface | Standard API, queries |
| gRPC | 50051 | Stream | Binary streams, service-to-service |
| UDP | 9001 | Inhale | Fire-and-forget IoT ingestion |
| WebSocket | 8001 | Live | Real-time event broadcasting |
| GraphQL | 8000 | Flexible | Schema introspection |
| MCP | 8000 | AI | Model Context Protocol |
π Key Features
β Distributed Consensus (Raft)
- 3-node cluster with automatic leader election
- Data replication across all nodes
- Synchronous commits
- Fault tolerance
- Recent Fix: 4800% stability improvement
π Contextual Lens
- Adjustable spectrum ratios (10/90, 30/70, 50/50, 70/30, 90/10)
- Dynamic context blending (recent/historical, simple/complex)
- Cognitive zoom (child vs adult mode)
- Zero duplication (virtual "Third Half")
π§ Neural Fusion Engine
- Semantic deduplication
- Adaptive frequency tracking
- Penalty system (prevents fusion spam)
- Temporal awareness
π Security
- Encryption: AES-256-GCM (at rest), TLS/SSL (in transit)
- Signatures: Ed25519
- Auth: API keys + RBAC
π API Examples
Prism (Paradox-aware Synthesis)
# With observer context
curl -X POST http://localhost:8000/api/v2/prism/synthesize \
-H "Content-Type: application/json" \
-d '{
"query": "6dede7d7-82fb-41cc-95fe-8c534f82ad4e",
"observer_context": {
"token_weights": {"pain": 3.0},
"vocabulary": {"Personal": ["felt", "almost"]},
"harmonic_weights": {"emotion": 0.9}
}
}'
# Without observer context (system defaults apply)
curl -X POST http://localhost:8000/api/v2/prism/synthesize \
-H "Content-Type: application/json" \
-d '{"query": "amsterdam bicycle evening"}'
Instinct (Adrenaline Reflexes)
curl -X POST http://localhost:8000/api/v2/prism/instinct \
-H "Content-Type: application/json" \
-d '{
"seed_event_id": "6dede7d7-82fb-41cc-95fe-8c534f82ad4e",
"adrenaline": 0.7,
"cloud_size": 10
}'
Echo (Resonance Detection)
curl -X POST http://localhost:8000/api/v2/echo/resonate \
-H "Content-Type: application/json" \
-d '{
"seed_event_id": "6dede7d7-82fb-41cc-95fe-8c534f82ad4e",
"cloud_size": 10
}'
Contextual Lens (Adaptive Queries)
# Balanced view (50/50)
curl -X POST http://localhost:8000/api/v2/lens/query \
-H "Content-Type: application/json" \
-d '{
"context_a": "recent",
"context_b": "historical",
"ratio": [0.5, 0.5],
"mode": "sharp",
"limit": 20
}'
π― Use Cases
1. Reality Guard ("Truth Mirror")
Coordinated attack claims server is down.
- Crowd: 10k messages "Down!" (Rep 0.01) β Mass 10
- Axiom: 1 heartbeat "Up." (Rep 0.99) β Mass 0.98
- Verdict: Data Conflict. Axiom stands.
2. Digital Ghost ("Black Box")
Autonomous agent records life history.
- Routine logs fuse into "Habit" events
- Critical anomalies remain distinct Axioms
- Memory remembers meaning, not just files
3. Literary Analysis
Analyze themes across Dostoevsky's works.
- Ingest all books as events
- Prism finds significant passages
- Echo finds thematically similar content
- Instinct for rapid pattern matching
4. Threat Detection
Monitor system for anomalies.
- Ingest logs in real-time
- Fusion compresses normal patterns
- Instinct (adrenaline=1.0) triggers on anomalies
- Prism analyzes significance
π Interactive Documentation
API Documentation
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- GraphQL Playground: http://localhost:8000/graphql
MkDocs Site
π§ͺ Testing
# Run all tests
pytest
# Run specific suites
pytest tests/unit/
pytest tests/integration/
pytest tests/e2e/
# With coverage
pytest --cov=core --cov-report=html
π Recent Achievements (March 2026 Β· v0.7.0)
Paradox of Perception β
- Prism no longer resolves contradictions β it surfaces them
perception_gap,is_paradoxical,alternative_readings,has_unread_essence- What you see may not be what it is
Observer Context β
- Meaning is now observer-dependent, not hardcoded
- Pass
token_weights,vocabulary,harmonic_weightsto Prism - Same event β different readings for different observers
Signed Memory β
- Every API response signed with Ed25519
- System cannot disown what it said β mathematically
- Stable key via
SIGNING_PRIVATE_KEYenv variable
Black Box Contract β
blind_payloadvalidated at protocol levellocation+timestampmandatory whenblind_payloadis set- No backdoor: engine has no key β architecturally, not by policy
Zero Hardcoded Values β
- All thresholds and labels extracted to
core/constants.py - Observer context replaces fixed
context_labeldefaults
π Conceptual Alignment
See docs/CONCEPTUAL_ALIGNMENT.md for the integrity check: Inhale-Exhale-Axiom mapping, Hermes vs REST flow, constants-driven design, Interpret vs Lens.
πΊοΈ Roadmap
Q1 2026 (Current)
- β Raft stability fixes
- β Prism/Echo/Instinct modules
- β Production deployment
- π Performance optimization
- π Monitoring dashboard
Q2 2026
- Advanced fusion patterns
- ML-based pattern detection
- Multi-region replication
- Real-time analytics
Q3 2026
- Blockchain integration (optional)
- Advanced encryption modes
- Federated learning
- Edge deployment
π‘ Core Principles
1. Truth Through Metabolism
Data is not static. It lives, breathes, fuses, and decays.
2. Reputation as Gravity
Not all data is equal. Trust shapes reality.
3. Axioms Resist Gaslighting
What is signed and witnessed cannot be rewritten.
π License
Proprietary - All Rights Reserved
π Summary
INDB is: - β A distributed epistemological engine - β Production-ready (verified under load) - β Semantically intelligent (Prism/Echo/Instinct) - β Fault-tolerant (Raft consensus) - β Secure (encryption + signatures) - β Fast (<1ms ingestion, <30ms queries)
INDB solves: - Information overload (Fusion) - Collective gaslighting (Axioms) - Context loss (Prism) - Pattern blindness (Echo) - Slow response (Instinct)
Built with β€οΈ for Truth in the Age of Manipulation
"Inhale the chaos. Exhale the noise. Remember the Axiom."