Overview
Nexus is an active alpha research project investigating whether an AI engineering assistant can maintain a durable, trustworthy model of a software project across sessions. Conventional assistants rely on transient conversation history, causing them to lose context regarding architectural constraints or prior task outcomes. Nexus addresses this by building persistent, grounded memory from project state, git history, and verified runtime observations.
Research Motivation
The core hypothesis is that long-lived AI assistance requires four simultaneous properties: provenance-aware memory, grounded context assembly, decoupled subsystem boundaries, and a universal safety boundary. Nexus tests if autonomy can be safely scaled by extending a central capability gate, rather than granting models unrestricted access to the user's environment.
Architecture
Nexus is a Python 3.13 monorepo using FastAPI as the composition root. Leaf services are isolated via structural protocols, preventing direct dependency on API or database implementations. The system flow processes requests through a context assembler, a provider-neutral model router, and a governed tool loop that includes policy checks, confirmation steps, and checkpointing.
CLI / REST request -> FastAPI -> ContextAssembler -> ModelRouter -> ToolLoop (policy/checkpoint/execution) -> Observation LedgerCurrent Capabilities
- End-to-end project lifecycle: initialization, scanning, planning, and task persistence.
- Provider-neutral model routing supporting Anthropic, Ollama, and null fallback.
- Uniform tool execution lifecycle: schema validation, capability checks, and audit-ledger logging.
- Cognitive memory pipeline that promotes significant observations to persistent storage.
- Shadow-git checkpoints that enable repository rollback.
Engineering Challenges and Lessons
The project has identified that truth in agent systems requires strict lifecycle awareness. Memory formation must account for rollback semantics; recording a successful mutation before confirming it survives a rollback creates false beliefs. Furthermore, human confirmation is only effective when tied to a recomputed effect preview, preventing drift between what the user approves and what the agent executes.
Current Limitations
- In-progress state: The Sprint 15 branch contains uncommitted work and is not a clean release snapshot.
- Blocking I/O: Git and ripgrep subprocesses currently block within async runtime paths.
- Incomplete implementation: General write_file and run_command bodies remain deferred pending safety validation.
- Process-local caching: The context cache is not suitable for multi-worker deployments.
Future Work
The roadmap focuses on completing the Personal Intelligence module, implementing bounded parallel read execution, and finalizing the safety review for mutation tools. Future sprints will introduce a Conscience Engine for reasoned policy evaluation and transition the process-local cache to Redis.
Graduation Criteria
Success for Nexus is defined by the ability to maintain a reliable, tamper-evident audit ledger of autonomous actions that can survive multiple sessions. The project will graduate from alpha when the safety gate is fully verified for all mutation types and the system can demonstrate long-term coherence in planning and task execution without human intervention for trivial steps.
