BitMaskOS: A Capability-Native Operating System Abstraction for AI Service Meshes
Abstract
ANKR Research Papers #85. BitMaskOS (BMOS) is an operating system abstraction for AI service meshes, replacing probabilistic capability discovery with O(1) bitwise proof. Drawing on classical OS primitives — process descriptors, capability tables, syscall gates, fault isolation, and init systems — BMOS maps each to a bitmask equivalent: codex.json (process descriptor), AnkrCodex (process table), trust_mask (process capabilities), perm_mask (thread capabilities), KAVACH (kernel syscall gate), and gate valve (fault isolation without restart). The paper introduces BMOS-Authorize: a 12-line service-level authorization endpoint that checks capability intersection at call time, completing the OS analogy. KAVACH handles agent-level (thread) enforcement; BMOS-Authorize handles service-level (process) enforcement. Two layers, same primitive: bitwise AND. The system enforces 15 SHASTRA statutes (BMOS-001 to BMOS-015) governing bit schema immutability, child mask AND invariant, gate valve transition ordering, and human-release-only LOCKED state. Validated across 233 ANKR services with declared trust_masks.
Fields of Study & Subjects
Software System Performance and Reliability
Security and Verification in Computing
Distributed systems and fault tolerance
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 29 April 2026