MONOGRAPH VOL. XV · ISSUE 01 / DEDICATED TO ABŪ BAKR AL-RĀZĪ (865–925 CE) / SOVEREIGN OPEN SOURCE · APACHE 2.0
READING DEPTH:

AL—RAZZI OS · VOL. XV ARCHITECTURAL MONOGRAPH

Engineering
autonomy,
governed by evidence.

An open-source, local-first cybernetic operating system uniting multi-kernel planning, scoped tools, dual-index memory, and independent judicial verification courts in one observable control loop.

INTERACTIVE 3D CONTROL TOPOLOGY · CONCEPTUAL INSTRUMENT MAP, NOT UNVERIFIED LIVE TELEMETRY

PHASE: DORMANT
EXPLODED VIEW: Y-AXIS MANIFOLD DECOUPLING
ORBIT: θ: 0.0° φ: 0.0° ZOOM: 11.8m
SHADER: 120/120 PBR RATE: 60 FPS COURT: V ≠ P ACTIVE
EVIDENCE CORE / 3D PBR
DRAG TO ORBIT · SCROLL TO ZOOM · CLICK SATELLITE
SELECTED ENGINEERING DOMAIN

Agentic Core

Controlled missions, goal contracts, and verifiable execution loop.

SOURCE ↗
01 / 15

THE 60-SECOND EDITORIAL PRIMER / 000

Why autonomous code needs
clinical skepticism.

Modern AI agents fail silently when the same model that writes a patch is allowed to declare its own work complete. Eleven centuries ago, physician and polymath Abū Bakr Muḥammad ibn Zakariyyā al-Rāzī (Rhazes, 865–925 CE) introduced the clinical control group: no medical claim is valid without an independent empirical check.

Al-Razzi OS brings this exact scientific discipline to software engineering. Every task begins as an immutable Goal Contract, executes inside a blast-radius-bounded sandbox with automatic rollback checkpoints, and must pass an independent Verification Court (V ≠ P) before touching your repository state.

“An unverified model output is a hypothesis, never an outcome. No agent may sit as judge in its own court.”

THE RHAZES EPISTEMIC SEPARATION INVARIANT · V ≠ P
FEDERATED RUNTIME ARCHITECTURE · 39 AI PROVIDERS

The 5-Kernel Sovereign Teaming Mesh

CLICK ANY KERNEL TO INSPECT ITS ROLE & SOURCE

MATHEMATICAL INVARIANTS / 001

An answer is not an outcome. Every autonomous step requires an observable state, a permission boundary, and an independent check.

INVARIANT 1.1 · ACTIVE INFERENCE

Active Divergence Minimization

Every autonomous process executes as an active inference control loop minimizing divergence between desired contract S* and observed state S_t.

min D(S*, Sₜ) = ∑ wₖ · d(vₖ*, vₖ)
INVARIANT 1.2 · ADMISSIBLE MANIFOLD

Bounded State Space

Stochastic actions are restricted to an admissible manifold with bounded blast radius, mandatory rollback checkpoints, and strict authorization tiers.

Sₜ ∈ S_admissible ⟺ BlastRadius(Aₜ) ≤ θ_max
INVARIANT 1.4 · JUDICIAL BARRIER

Epistemic Separation (V ≠ P)

No agent or sub-process may certify its own output. Verification must be conducted by independent judicial courts before factual state promotion.

Certified(C) ⟺ Produced(C, P) ∧ Verified(C, V) ∧ (P ∩ V = ∅)
GOAL CONTRACT → PLAN → ACTION → OBSERVATION → INDEPENDENT VERIFICATION → EVIDENCE THE AL—RAZZI CONTROL SYSTEM

SYSTEM TOPOLOGY / 002

A system of
disciplined layers.

From human intent to cryptographically hashed receipts. Click any stage of the 6-layer execution pipeline or shared substrates to inspect its real Python implementation.

GOVERNED EXECUTION PIPELINE
01 / INTENT Goal Contract Formal objective, constraints & budgets
02 / CONTROL Planning Engine DAG task scheduling & divergence checks
03 / MESH Agent Mesh 5-kernel teaming & specialist routing
04 / EXECUTION Tools & Runtimes Scoped browser, computer & shell tools
05 / CHECKS Verification Courts Epistemic gate array & regression tests
06 / CLOSURE Evidence Ledger Immutable hashes & reproducible artifacts
GOVERNED DUAL-INDEX RAG EPISTEMIC WORLD MODEL RISK VAR MUTATION ENGINE ZERO-DUPLICATION POINTERS ROLLBACK RECOVERY SYSTEM

FOUNDATIONAL FORMALISMS / 003

30 Falsifiable
cybernetic theories.

Formal control theories (T01–T30) governing active inference, POMDP state bounds, entropy budgets, and judicial verification. Click any card for plain-language & formal inspection.

Loading formal theory catalog... EPISTEMIC GRADE: AUTHORED FORMAL PROPOSITIONS · SUBJECT TO TEST FALSIFICATION

GOVERNED EXECUTION / 004

24 Mission
execution protocols.

Deterministic Standard Operating Procedures (P01–P24) enforcing T0–T4 authorization tiers, checkpoint barriers, and evidence receipts across every phase.

Code Protocol & Operational Mechanism Auth Tier Rollback Gate Receipt Artifact Source Spec

ARCHITECTURAL DECISIONS / 005

12 Architectural
decision records.

Transparent engineering trade-off records (ADR-001 to ADR-012) documenting why local-first sovereignty, epistemic separation, and zero-duplication pointers were chosen.

INTERACTIVE WALKTHROUGH / 006

Follow a mission.
Watch the loop live.

Step manually or auto-play a realistic simulation of governed execution while observing the 3D Evidence Core transition from Dormant to Active to Verified.

BROWSER SIMULATION — ZERO LIVE SYSTEM MUTATION
WORKFLOW:
STEP 01 / 06

SOFTWARE ENGINEERING · T2 REVERSIBLE

Goal Contract Formulation

Compile the exact refactoring boundary with rollback checkpoints and zero API breakage.

SIMULATED CONTROL PLANE LOG STATUS: CONTRACT_COMPILED

          

Illustrative walkthrough grounded in Al-Razzi OS specifications; no local shell commands or external API keys are invoked.

SOURCE-MAPPED UNIVERSE / 007

Explore every
system domain.

90 source-referenced capability entries across 15 engineering domains, searchable and linked directly to repository files.

Loading capability catalog... CODE PRESENT ≠ UNATTENDED PRODUCTION CERTIFICATION

ARCHITECTURE SUBSTRATE / 008

1,000 Architectural
specification cards.

10 canonical series × 100 specification cards spanning evaluations, hyperloops, improvement, interfaces, knowledge, laws, protocols, recovery, research, and skills.

Showing architectural specification cards CLICK ANY CARD TO INSPECT SPECIFICATION BOUNDARY

APPLIED INTELLIGENCE / 009

One architecture.
Many workflows.

Concrete engineering workflows grounded in repository modules, always paired with explicit authorization gates and human oversight.

01

Software Modernization

AST codebase analysis, multi-file non-contiguous patch synthesis, and test-driven refactoring with automatic regression rollback barriers.

CODE PRESENT · ADE ENGINE
02

Browser-Assisted Research

Scoped headless navigation, DOM sanitization, and 3-way claim triangulation across public sources with full trace logging.

SCOPED SANDBOX · READ-ONLY DEFAULT
03

Windows Workspace Operator

Governed UI-tree inspection, bounded coordinate automation, and mandatory dry-run user consent checkpoints.

DRY-RUN BY DEFAULT · EXPLICIT CONSENT
04

Dual-Index RAG & Memory

Synchronized dense vector + BM25 lexical retrieval indexing 1,226 chunks with zero-duplication symlinked storage.

CODE PRESENT · 1,226 CHUNKS INDEXED
05

Guarded Cloud Deployments

Zero-downtime container rollouts with pre-flight health checks, TLS verification, and deterministic rollback on failure.

SPECIFICATION & HARNESS IMPLEMENTED
06

Long-Horizon Scientific Audit

Multi-session hypothesis tracking, contradiction detection, and reproducible benchmark verification in SQLite ledgers.

LOCAL SQLITE FTS5 · UNIT TESTED

TRUST & TRANSPARENCY / 010

Evidence over
assertion.

Source files, formal specifications, unit tests, and external benchmarks are never conflated. We publish both our immutable invariants and our known engineering gaps.

01 / SOURCE VERIFIABILITY

Every Claim Has a File

All 90 public capabilities map to inspectable Python modules in the open-source repository.

Inspect GitHub repository tree ↗
02 / DOCUMENTED GAPS

Documented Practical Gaps

Honest disclosure of event-bus burst limits, Windows MAX_PATH constraints, and cold-start trade-offs.

Open full gap register →
03 / EMPIRICAL BOUNDS

Reproducible Harnesses

Local pytest and AST sandbox harnesses let any engineer verify claims without cloud lock-in.

Inspect benchmark scripts ↗

SYSTEM INVARIANTS ARCHITECTURE_INVARIANTS.json

Invariant ID Enforcement Rule Status
INV_01_CONSTITUTIONAL_PRECEDENCE Applicable Law > Auth > AGENTS.md > Goal IMMUTABLE
INV_02_ZERO_DUPLICATION_POINTER Canonical KB pointers without local file bloat IMMUTABLE
INV_03_MODEL_RAM_BOUND Context strictly bounded ≤ 16k tokens CRITICAL
INV_04_E5_EVOLUTION_BARRIER No auto-mutation of security policies without human IMMUTABLE
INV_05_ANTI_SILENT_PROMOTION Factual claims cannot promote without empirical proof CRITICAL

DOCUMENTED GAPS & CAVEATS PRACTICAL_GAP_AUDIT.json

Gap ID Description Severity
GAP-ARCH-01 Event bus backpressure under 10k+ burst events LOW
GAP-ARCH-02 Cross-harness session switch checkout latency LOW
GAP-ARCH-03 Windows path length limit (MAX_PATH 260 chars) MEDIUM
GAP-ARCH-04 Dynamic tool transition prior cold-start LOW

REALITY CHECK: HONEST RELEASE STATUS BOUNDARIES reality_check.json · ZERO HYPE VERIFICATION

Subsystem / Layer Current Status Empirical Proof Remaining Engineering Scope
i

Constitutional Truth Policy:
A repository file proves authored code, not unconstrained production perfection. Sensitive browser, shell, and desktop actions remain strictly gated behind local T2/T3 approvals.

DEVELOPER ONBOARDING / 011

Build your
sovereign harness.

Clone locally, bind any of 39 local or BYOK cloud model providers, run the 185-gate verification suite, and launch Desktop Studio.

STEP 01 · INSTALL

Clone Repository

Clone the Apache-2.0 repository and install the editable Python package.

git clone https://github.com/xnetwoork/al-razzi-os.git
cd al-razzi-os
pip install -e .
STEP 02 · PROVIDERS

Configure Providers

Map local Ollama or BYOK endpoints in local-only configuration.

al-razzi provider hermes-scan
al-razzi provider catalog
STEP 03 · VERIFY

Run Golden Tests

Execute the local invariant suite to verify judicial gates pass.

pytest evals/ -v
al-razzi doctor
STEP 04 · STUDIO

Launch Studio ADE

Start the local control plane GUI on localhost:8765 or run CLI missions.

python -m alrazzi.studio.server
# http://127.0.0.1:8765

OPEN FOR EMPIRICAL INSPECTION

The next era of agents
must be verifiable.

Inspect the source modules, test the mathematical bounds, and deploy sovereign engineering workflows on your own terms.