Sovereign Stack · ← L1 · PROTOCOL · aix-format · 🟢 L2 · RUNTIME · iqra · YOU ARE HERE · L3 · MARKETPLACE · aix-agent-skills →
Root Authority · L0 · axiomid-project ↑ · Satellites · L4 · AlphaAxiom ↓ · L5 · PiWorker-OS ↓ · L6 · GemClaw ↓
IQRA operates through seven recursive layers of intelligence, ensuring every action is aligned with the Supreme Constitution:
- Read & Map (الفهم والخرائط): Deep contextual ingestion of the user's intent.
- Evaluate (التقييم): Static and dynamic ethical filtering via the Damir Conscience.
- Plan (التخطيط): MCTS-powered strategic simulation of the best path.
- Verify (التحقق): Strict validation of every step before final execution.
- Prioritize (الأولويات): Dynamic resource allocation based on topological resonance.
- Fix (الإصلاح الذاتي): The Tawbah Loop for autonomous error correction.
- Evolve (التطور العضوي): Compounding knowledge through the Pristine Reward Engine.
IQRA is L2 of the AIX Sovereign Stack: the runtime engine that executes the aix-format protocol and consumes skills from the aix-agent-skills marketplace. Around the stack sits a root authority (L0) and a tier of satellite layers (L4-L6) that ride the protocol.
| Layer | Repo | Role | Status |
|---|---|---|---|
| ⚪ L1 | aix-format |
Protocol · Universal Agent Passport · DID · Manifest · ABOM · TrustChain | → Read |
| 🟢 L2 | iqra |
Runtime · Sovereign AI OS · 7 Loops · MCTS · Damir · MissionControl | You are here |
| ⚪ L3 | aix-agent-skills |
Marketplace · 7 Layers · Constitutional · TrustChain | → Read |
The three repositories are one project in three layers. The protocol is the contract, the runtime is the engine, the marketplace is the catalog. Same constitution, same TrustChain, same palette, same author.
Outside the strict L1/L2/L3 chain sits the root authority and a tier of satellite layers. They consume the stack and ride the protocol; they do NOT define it. See AXIOM.md §4.5 for the full doctrine and AIX_STACK_VERSIONING.md for the independent-SemVer + Echo369 codename rule.
| Tier | Repo | Role |
|---|---|---|
| 👑 L0 | axiomid-project |
Root Authority · sole issuer of did:axiom:axiomid.app:* · proprietary |
| 💹 L4 | AlphaAxiom |
Satellite · Trading · MT5/Bybit/EVM adapters · skill plugin runtime |
| π L5 | PiWorker-OS |
Satellite · Pi · Pi Network workers · Pi SDK · KYC anchor |
| 🎙️ L6 | GemClaw |
Satellite · Voice · voice forge · Gemini Live · Firebase |
- 📜 الدستور: DASTŪR.md: القواعد الحاكمة والأساسات
- ⚖️ الميثاق: MĪTHĀQ.md: بروتوكولات الثقة والتعاون
- 🧩 الشورى: SHŪRĀ.md: آلية اتخاذ القرار بين الوكلاء
- 🌀 التطور: METAMORPHOSIS.md: قوانين التطور الذاتي والتعلم
- 🛠️ سوق المهارات: Skills Marketplace: مستودع المهارات اللامركزي (للوكلاء والبشر)
- docs/TOOLS_REFERENCE.md: مرجع الأدوات والقدرات
- CLEANUP_PROGRESS_SUMMARY.md: تقدم تنظيف الكود
- DEAD_CODE_ANALYSIS.md: تحليل الملفات الميتة
- IMPORT_FIXES_NEEDED.md: قائمة الاستيرادات المطلوبة
IQRA is a multi-agent AI operating system that runs missions, learns from every cycle, and enforces ethical constraints at the engine level: not as an afterthought.
Every action is logged. Every intent is checked. Every discovery is rewarded.
User Input
│
▼
┌─────────────────────────────────────────────────────────┐
│ brain.ts 🧠 │
│ Integrity Filter · Skill Router │
└────────────────────┬────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ MissionControl 🛰️ │
│ Search369 · LeagueManager · TopologicalAnalyzer │
└────────────────────┬────────────────────────────────────┘
│
┌──────────▼──────────┐
│ Worker Chain │
│ │
│ Resonance Worker │
│ ↓ │
│ Research Worker │
│ ↓ │
│ Validation Worker │
│ ↓ │
│ Execution Worker │
└──────────┬──────────┘
│
▼
RewardEngine · MicroMemory · TrustChain · MCTS Simulation
|
Sequential worker chain with strict handoff contracts. Each agent has a defined role: no overlap, no self-approval.
|
Built on Graded Linear Logic: every action consumes real resources exactly once.
|
||||||||||||||||||||||||
|
The system learns via Self-Play Simulations:
|
||||||||||||||||||||||||
|
Computational linguistics on Arabic sacred text.
|
Every mission produces a scored entry:
|
# 1. Clone & install
git clone https://github.com/Moeabdelaziz007/iqra.git
cd iqra && npm install
# 2. Environment
cp .env.example .env
# Required: GROQ_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY
# Optional: UPSTASH_REDIS_REST_URL, QDRANT_URL
# 3. Local mode: 8GB RAM friendly
ollama pull gemma3:4b
IQRA_LLM_LOCAL=true npm run dev
# 4. Run tests
npx vitest run tests/unit/Mac Intel 8GB? Use
gemma3:4b(~3GB RAM). The system auto-detects and selects it.
npm run buildNEXT_PUBLIC_APP_URL(e.g.https://your-domain.com)NEXT_PUBLIC_APP_DOMAIN(e.g.your-domain.com)PI_VALIDATION_KEY(for Pi Browser domain claim)GROQ_API_KEYGOOGLE_GENERATIVE_AI_API_KEYUPSTASH_REDIS_REST_URL(if memory cloud is enabled)UPSTASH_REDIS_REST_TOKEN
npx vercel
# then
npx vercel --prod/.well-known/did.json/.well-known/agent-card.json/.well-known/pi-network/validation-key.txt/validation-key.txt/api/iqra/query/api/iqra/topology/hidden
/.well-known/agent-card.json: agent capabilities + methods/.well-known/did.json:did:webdocument for sovereign identity
Set PI_VALIDATION_KEY on Vercel, then verify:
curl https://your-domain.com/.well-known/pi-network/validation-key.txt
curl https://your-domain.com/validation-key.txtIf both return the same key, domain claim is ready on Pi Developer Portal.
Hidden topology capture API (browser-driven)
Use this endpoint from network-visualization frontends to detect obscured topology layers, extract hidden connection patterns, and export results in standard formats:
curl -X POST https://your-domain.com/api/iqra/topology/hidden \
-H "content-type: application/json" \
-d '{
"layers":[{"id":"L1","name":"core","visible":true},{"id":"L2","name":"overlay","visible":false}],
"nodes":[{"id":"n1","layerId":"L1"},{"id":"n2","layerId":"L2"}],
"edges":[{"source":"n1","target":"n2"}],
"exportFormat":"json"
}'Supported exports: json, csv, graphml.
| Mode | Provider | Model | RAM |
|---|---|---|---|
| 🏠 Local | Ollama | gemma3:4b |
~3GB |
| ⚡ Fast | Groq | llama-3.3-70b |
Cloud |
| 🔬 Deep | Google AI | gemini-2.0-flash |
Cloud |
The system falls back gracefully: Local → Groq → Gemini
iqra/
├── src/lib/iqra/ # Core Sovereign Engine
│ ├── 00-manifest/ # Constitution & Protocols
│ ├── 01-core/ # Orchestration & Brain
│ ├── 02-workers/ # Agent Worker Chain
│ ├── 03-memory/ # 5-layer Memory Bridge
│ ├── 08-skills/ # Dynamic Skill Loader (loads from external repo)
│ ├── simulation/ # MCTS Self-play Engine
│ └── rewards/ # Reward Engine + Ledger
│
├── aix-agent-skills/ # 🆕 Decentralized Skills Marketplace (separate repo)
│ ├── skills/ # Markdown-based skill definitions
│ ├── skills.json # Skill registry & metadata
│ └── antigravity-jules.md # Shared AI Agent Task Board
│
├── iqra-core/ # State, Identity, & Knowledge
│ ├── identity/ # Sovereign DID & Cards
│ └── skills/ # Legacy Skill Docs (Markdown)
│
├── tests/ # Unit, Integration, E2E
└── src/app/ # Next.js UI Dashboard
┌─────────────────────────────────────────────┐
│ 1. Integrity Filter static + dynamic │
│ 2. Covenant Check constitution guard │
│ 3. Damir (Ethics Engine) linear logic │
│ 4. TrustChain SHA-256 audit log │
│ 5. Circuit Breaker per-provider │
│ 6. Shura Protocol human approval │
│ 7. Self-Correction auto rollback │
│ 8. Memory Purification every 40 cycles │
│ 9. Human Escalation after 9 failures │
└─────────────────────────────────────────────┘
تحديث تلقائي مع كل خطوة في الرحلة Auto-updated with every step of the journey
| 📅 التاريخ | Date | 2026-05-12 |
| 💡 آخر خطوة | Last Step | IQRA Sovereign Runtime: Stabilization and Structural Unification |
| 🔗 الـ Commit | 8317a4c |
EN · IQRA is the L2 Runtime of the Sovereign AI Stack: 5 sovereign projects engineered by 1 human and a team of 12 AI agents in total. This runtime alone carries the fingerprints of 7 of those 12 agents: 3 coding, 3 review/debug, and 1 runtime/voice integration (derived from commit history, Co-authored-by trailers, and review attributions).
AR · IQRA هو L2 Runtime في المنظومة السيادية: 5 مشاريع سيادية مهندَسة بإنسان واحد وفريق من 12 وكيلاً ذكياً. الـ Runtime ده لوحده عليه بصمات 7 من الـ 12: 3 وكلاء بناء، 3 وكلاء مراجعة وتنقيح، ووكيل واحد للتشغيل والصوت.
|
Codesmith Blacksmith · CI · Autofix |
Jules Google Antigravity · Async builder |
Cursor Anysphere · Inline edits |
|
CodeRabbit PR Review · Quality gate |
Codex OpenAI · P1/P2 findings · Debug |
Gemini Code Assist Stream review · Embeddings |
See the full 12-agent roster on the profile README →
← L1 · PROTOCOL · aix-format · 🟢 L2 · RUNTIME · iqra · YOU ARE HERE · L3 · MARKETPLACE · aix-agent-skills →
L0 · axiomid-project · L4 · AlphaAxiom · L5 · PiWorker-OS · L6 · GemClaw
