Test Coverage & Implementation Status
Last updated: 2026-01-13
92
Core Tests
394
Workspace Tests
5
Doc Tests
Phase 1: ProcessSupervisor + Runtime Skeleton
ProcessSupervisor
✓ Implemented & Tested
- Types:
ProcessId,ProcessType,ProcessConfigdefined. - Tests (8): Coverage for ID generation, state transitions (Running/Completed/Failed), and config defaults.
Runtime Skeleton
✓ Implemented & Tested
- Tests (6): Covers independent runtimes, shutdown token propagation, manager cloning, and debug formatting.
Phase 2: Permission Gate
✓ Implemented & Tested
- Risk Levels: Low, Medium, High, Critical
- Components:
PermissionRequest,PermissionDecision,PermissionGatetrait. - Tests (5): JSON roundtrip, tool-specific rules, unique ID generation.
Service Managers
LSP Manager
Full lifecycle management for Language Server Protocols.
- Server spawn and lifecycle control
- Status transitions (Starting → Running → Stopped)
- Protocol compatibility checks
Shell Manager
Robust shell execution environment.
- Shell spawn and kill operations
- Output capture (stdout/stderr) with limit enforcement
- Environment variable injection
- Special character handling
Task Runner
Concurrency-aware task execution.
- Concurrent task limits
- Cancellation propagation
- Status reporting
Summary by Phase
| Phase | Component | Tests | Status |
|---|---|---|---|
| 1 | ProcessSupervisor | 8 | Done |
| 1 | Runtime Skeleton | 6 | Done |
| 2 | Permission Gate | 7 | Done |
| - | LSP Manager | 7 | Done |
| - | Shell Manager | 6 | Done |
| - | Task Runner | N/A | Done |
Next Steps
- PTY Implementation: Port portable-pty code from legacy runtime.
- ProcessSupervisor Impl: Complete spawn/kill/timeout logic.
- PermissionGate Impl: Implement decision caching and "stop-the-world" UI prompts.
- Indexing: Integrate BM25 + File Watcher.
- Tree-sitter: Add parser layer and grammars.