# PROJECT: AI-Colab Multi-agent system with two local models: Chief and CEO (CEO also performs Doctor functions). Specialized Departments: A, B, C, D (remote/external). ## Key Constraints - Two local models architecture: Chief (Orchestrator) and CEO (Expert/Doctor). - Strict SPEC adherence (SPEC is the source of truth). - RoleBindingManager is the sole authority for role states and locks. - No direct file access to roles_state.json or history files from other modules. - Multi-model safety: Interface contracts and model prompts are sacred. ## Architecture Rules - Hierarchy: Shogun (User) -> Sensei (Architect) -> Samurai (Implementation). - State versioning and atomic updates via threading.RLock. - Automatic TTL for department locks (120s default). - Fallback mechanisms for API failures.