CLEO Nexus Specification
Version: 1.0.0 Status: DRAFT Created: 2026-02-01 Epic: T22311. Introduction
1.1 Purpose
CLEO Nexus provides a global intelligence system for autonomous AI agents to discover relationships and dependencies spanning multiple CLEO projects. It functions as a “super brain” enabling cross-project reasoning, unified task graphs, and intelligent work coordination. Design Goals:- Enable cross-project task references with
project:task_idsyntax - Provide O(1) dependency lookups across all registered projects
- Support autonomous agent discovery without human guidance
- Maintain backward compatibility with single-project workflows
- Follow PageIndex-inspired hierarchical RAG patterns
- Real-time synchronization between projects (operates on-demand)
- Cloud storage or remote coordination
- Replacing per-project graph caches
- Team collaboration features (solo developer focus)
1.2 Scope
This specification defines:- Global registry schema and API functions
- Cross-project graph traversal protocol
- Permission enforcement model (read/write/execute)
- Query language syntax (
project:task_id) - Neural network conceptual abstraction
- Testing requirements and validation gates
1.3 Definitions
| Term | Definition |
|---|---|
| Project | A directory containing .cleo/todo.json and registered in global registry |
| Project Hash | 12-character hexadecimal identifier derived from project path |
| Task Reference | Fully qualified task identifier in format project:task_id or task_id (current project) |
| Global Graph | Unified dependency graph spanning all registered projects |
| Permission | Access control level: read (view), write (modify), execute (complete) |
2. Architecture
2.1 Layer Diagram
CLEO Nexus operates as a four-layer architecture:3. Global Registry
3.1 Registry Schema
Location:~/.cleo/nexus/registry.json
3.2 Permission Model
| Level | Capabilities | Use Case |
|---|---|---|
read | Query tasks, view dependencies | Reference projects |
write | Modify tasks, add dependencies | Active development |
execute | Complete tasks, run workflows | Full ownership |
4. Query Language
4.1 Syntax
my-project:T1234- Explicit project reference.:T1234- Current project shorthand*:T1234- Search all projectsT1234- Current project (implicit)
4.2 Resolution Algorithm
5. Cross-Project Discovery
5.1 Neural Network Abstraction
Nexus implements a “neural” discovery model where:- Neurons = Tasks (active processing nodes)
- Synapses = Dependencies (weighted connections)
- Activation = Task status changes propagating through graph
5.2 Discovery Algorithm
6. Exit Codes
| Code | Name | Description |
|---|---|---|
| 70 | EXIT_NEXUS_NOT_INITIALIZED | Nexus registry not found |
| 71 | EXIT_NEXUS_PROJECT_NOT_FOUND | Project not in registry |
| 72 | EXIT_NEXUS_PERMISSION_DENIED | Insufficient permissions |
| 73 | EXIT_NEXUS_TASK_NOT_FOUND | Task not found in project |
7. References
- T2954: Nexus Global Intelligence Requirements Research
- T2955: Nexus Architecture Consensus
- PROJECT-LIFECYCLE: RCSD pipeline integration
- CLEO-STRATEGIC-ROADMAP: Phase 1 validation gates
