HABANERO - Sovereign AI Engine
1. the problem
Cloud frontier models (Sonnet 3.5, Opus) require high-latency external APIs, proprietary telemetry, and corporate refusal guardrails that block legitimate low-level systems engineering, firmware analysis, and private data workflows. Engineering a 100% offline, airgapped compound AI work-engineer on Apple Silicon that matches frontier model synthesis quality while enforcing deterministic C11 compilation and headless browser verification.
ROLE: Decomposes high-level intent into strongly typed Work Orders, maps topological dependency waves, and computes SHA-256 contract hashes to freeze schemas.
2. what i built
Sovereign compound AI platform and deterministic verification engine on Apple Silicon:
3. problems i had to crack
Click card to view root cause & code diffWhen multiple specialized sub-agents (Systems Worker, UI Worker, Vector Artist) executed in parallel, independent interpretation of schemas caused breaking API divergence at the integration gate. Fix: Implemented Chief Architect contract-hash freezing (Gate G0). All shared interfaces are SHA-256 hashed and frozen before execution waves launch.
Running DeepSeek R1 32B for deep mathematical reasoning on a 16 GB Apple Silicon machine risked memory eviction and macOS swap thrashing. Fix: Engineered dynamic Metal memory governors that restrict active model RAM to 7.5 GB, leaving 8.0 GB or more dedicated for OS multitasking and headless test runners.
Quantized LLMs frequently synthesize bare C functions without explicit forward declarations, immediately tripping Apple Clang's -Wmissing-prototypes flag. Fix: Built a closed-loop self-healing AST repair engine that intercepts Clang stderr diagnostics and automatically synthesizes missing header prototypes.
Synthesized frontend code frequently suffered from subtle 1px container overflow on 375px mobile viewports, degrading mobile user experience. Fix: Added Gate G5 running headless Playwright at 375x812 viewport, mathematically asserting document.documentElement.scrollWidth === window.innerWidth and CLS === 0.000.
100% AIRGAPPED SOVEREIGN AI. 0 outbound network requests, 0 external CDN dependencies, 100% local Apple Silicon loopback.
| PROJECT | HABANERO ENGINE |
| DRAWN BY | BIDYA B. NANDA |
| STATUS | UNDER DEVELOPMENT // SOVEREIGN AI |