UI Mockup

Sentinel AI — Autonomous Software Engineering Agent
- Category
- AI Engineering
- Role
- AI & Fullstack Systems Engineer
- Year
- 2026
An autonomous software engineering agent for codebase investigation, root-cause diagnosis, unified diff patch generation, and test verification inside a hardened Docker sandbox.
Background & Problem
Investigating bug reports across large codebases is time-consuming: engineers must trace relevant files, test hypotheses, write clean patches, and ensure fixes introduce no regressions. Sentinel AI (private repository) automates this entire engineering loop—from planning and retrieval to audit-ready reporting—under strict security isolation.
Architecture & Key Features
- 7-Stage Autonomous Agent Pipeline: Orchestrates a Planning Agent, Hybrid Code Retrieval Engine, Bounded Tool Investigation Loop, Root Cause Analyzer, Unified Diff Patch Generator, Autonomous Repair Loop, and Engineering Report Generator.
- Hardened Fail-Closed Docker Sandbox: Untrusted test suites run inside isolated containers with
--network none,--cap-drop ALL, non-root user execution, and strict memory/CPU/PID caps. If the Docker sandbox is unavailable, execution fails closed (SANDBOX_UNAVAILABLE). - Redis Job Broker & Cross-Process SSE: Production runs are queued via Redis (
sentinel:job_queue), executed by a background worker daemon, and streamed live to the React 19 frontend over Redis Pub/Sub SSE. - Dual Vector Engine & Authentic Benchmarks: Uses native
pgvectoron PostgreSQL 16 (with a SQLite Python cosine fallback) and evaluates real LLM reasoning across 12 defect scenarios with baseline defect validation and hidden post-patch evaluator tests.
Technical Decisions & Trade-offs
- Fail-Closed Docker Isolation vs Host Execution: Running LLM-generated patches in network-disabled containers adds container startup latency, but eliminates the risk of arbitrary code execution on the host machine.
- Separating System Verification from Model Benchmarks: Splitting Deterministic System Integration Verification (using a deterministic test double) from Agent Capability Evaluation (using live LLMs like Gemini, GPT, or Claude) prevents infrastructure tests from being conflated with probabilistic model variance.
- Bug Notes & Fixes: Early iterations risked falling back to host execution when Docker was unavailable and relied on static benchmark answer keys; Hardening V2 enforced strict fail-closed isolation (
SANDBOX_UNAVAILABLE) and replaced hardcoded answers with baseline defect checks plus hidden post-patch evaluator tests.
Technologies Used
Private Repository · Demo & Code Walkthrough Available on Request