Code Repository

carl-os-sim

Reference Implementation of Carl-OS

AnswerLift-Lab · October 1, 2026 · Machines · 10.5281/zenodo.23090284

← Back to Program

What this is

A reference implementation of the Carl-OS modular agent architecture: the seven-layer recursive control loop, running in simulation. The paper's limitation is stated plainly: Carl-OS has not been implemented. No prototype exists. This repo is the first loop back, a working implementation of the architecture, with its core mechanisms executable and inspectable.

Five experiment groups from the Carl-OS Evaluation Protocol were implemented as runnable code, with an 18-test pytest suite encoding the protocol's falsification conditions as executable assertions, and CI on every push. Four groups returned the protocol's stated positive condition; one returned a negative result reported as-is.

The results: event-driven initiation saved 81.7% of baseline compute with zero missed genuine events at the 0.5 operating threshold. Decentralized duality-sensing formation control degraded gracefully under dropout while centralized error exploded past 0.3 dropout. Under blackout and jammer conditions, decentralized honest-drone error stayed controlled while centralized sensing collapsed. A mid-run modular layer swap executed 300 of 300 governance-stamped calls with zero failures, and 500 adversarial bypass attempts produced 500 refusals with zero ungoverned or over-limit actions. The negative: the predicted non-shrinking scaling gap failed, narrowing from 1.44 to 0.65 as swarm size grew from 6 to 48.

Validation

This code supplements Carl-OS: A Modular Architecture for Intelligent Systems. It implements the experiments in Carl-OS Findings Report 1, under the criteria in the Carl-OS Evaluation Protocol.

Cite this code

AnswerLift-Lab. (2026). AnswerLift-Lab/carl-os-sim: v1.0.0. Zenodo. https://doi.org/10.5281/zenodo.23090284

← Back to Program