Operational Protocols
Arkhein's operational protocols ensure that the system maintains integrity, security, and reliability while providing powerful cognitive capabilities.
Safety & Sovereign Integrity
Silo Guard (Security)
The Silo Guard enforces a strict Managed Folders Boundary. All file operations (read, write, list) are filtered through realpath normalization and boundary checks. This prevents path traversal attacks and unauthorized file access.
Self-Healing Integrity
Arkhein uses a self-healing protocol to maintain the accuracy of its memory.
- Drift Detection: Lightweight disk signatures for autonomous sync.
- Shadow Rebuilds: Zero-downtime vector indexing using shadow directories and atomic swapping.
- HealSiloJob: Automatically triggered to reconcile disk-to-database drift.
Agent Lifecycle & Visibility
Earthbeat Monitor
The Earthbeat Monitor provides real-time visibility into Arkhein's multi-pass background pipeline. Users can monitor indexing progress, reasoning stages, and tool execution states.
Task Registry
The Task Registry maintains a persistent system_tasks table for tracking long-running background processes (e.g., seeding a large folder). This ensures work is never lost if the application is restarted.
Agent Workspace
Each reasoning task occurs within a durable on-disk Scratchpad workspace. This provides a clear audit trail of the agent's intermediate work and allows for physical validation of its reasoning.
Concurrency & Reliability
Re-entrant Locking
Arkhein uses partition-isolated locking with exponential backoff. This ensures high-concurrency safety for database and vector index operations without deadlocking the UI.
Smart Model Matching
To ensure zero-config reliability, Arkhein uses tag-lenient model matching. It will attempt to resolve requested models (e.g., mistral) to their local equivalents (e.g., mistral:latest) automatically.
Debug Checklist
- Managed Folders: Confirm directory is authorized and accessible.
- Knowledge SSOT: Check the
knowledgetable for correct row counts and metadata. - Vektor Integrity: Verify the
vector.binexists and matches model dimensions. - Task Status: Check the Task Registry for stalled or failed background jobs.
- Logs: Review
storage/logs/laravel.logfor execution trace and SLM errors.