EPISTEMIC MONOGRAPH · FOUNDATIONAL ESSAYS
From Rhazes to Active Inference: Epistemic Rigor in Cybernetic Agents.
Why 9th-century clinical trial methodology, differential diagnostic trees, and judicial verification barriers are essential to transform stochastic language models into trustworthy software engineering systems.
FEATURE ESSAY · HISTORICAL PROVENANCE
The Rhazes Invariant: Controlled Comparison Before Acceptance
In the 9th century, physician, chemist, and philosopher Abū Bakr Muḥammad ibn Zakariyyā al-Rāzī (Rhazes, 865–925 CE) recorded history’s earliest known clinical control trial: while investigating treatments for meningitis, he separated patients into a treated cohort and an untreated control cohort so natural recovery could never be mistaken for therapeutic proof.
In his landmark treatise Doubts About Galen (Shukūk ‘alā Jālīnūs), al-Rāzī established that neither prestige nor eloquent assertion may override reproducible observation. Al-Razzi OS encodes this epistemology directly into autonomous software engineering: every generated code patch is treated strictly as an uncertified hypothesis until an independent verification court executes empirical tests against a clean baseline checkpoint.
WORKING PAPERS / 002
Core Research Publications.
Technical monographs and authored specification reports in the Al-Razzi OS repository.
MONOGRAPH 01 · CONTROL THEORY
Active Divergence Minimization in Agentic Software Refactoring
Formulates autonomous code synthesis as a bounded active inference loop minimizing divergence between declarative Goal Contracts and observed pytest transcripts.
alrazzi/cognition/control/contracts.py
VERIFIED HARNESS
MONOGRAPH 02 · EPISTEMIC COURTS
Epistemic Separation: Eliminating Self-Certification in Multi-Kernel Meshes
Demonstrates why systems where producing agents grade their own work suffer silent regression drift, and formalizes the V ≠ P judicial barrier.
alrazzi/tier0/court.py
CODE PRESENT
MONOGRAPH 03 · EVALUATION HARNESS
Deterministic AST Repair & Isolated SWE-Bench Simulation
Documents the 185-gate invariant test suite and isolated Git + Pytest AST repair sandbox, transparently separating author tests from third-party leaderboards.
alrazzi/benchmarks/swe_bench_sim.py
AUTHOR EVALUATION
MONOGRAPH 04 · KNOWLEDGE OS
Zero-Duplication Dual-Index RAG with Provenance Ledgers
Combines dense semantic embeddings with BM25 lexical AST indexing via Reciprocal Rank Fusion while eliminating multi-workspace file duplication.
alrazzi/memory_rag/hub.py
CODE PRESENT
i
Epistemic Citation Policy: Research monographs articulate the formal mathematical architecture of Al-Razzi OS. All benchmark scripts in alrazzi/benchmarks/ are open-source so external researchers can independently reproduce and audit every claim.