File size: 802 Bytes
0b2210a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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.