How hrithik373/auto--remediation-agent- works
Sentinel is a safety-gated AIOps remediation agent. Its intended workflow gathers and compacts incident context, proposes an action, verifies it before execution, and records the run for evaluation. The README says only P0 schemas, offline support, and the deterministic envelope verifier are implemented; most other modules are typed stubs. The graph preserves the documented product branches, but omits unsupported environment adapters absent from the supplied tree. Dashed links indicate documented or intended relationships whose implementation is incomplete.
Main entry points: run.py Run records · loop.py Orchestrator · action.py Action contract · policy.py Combined policy
Components 30
Incident context
- Incident context
src/sentinel/schemas/incident.py - Context builder
src/sentinel/context/builder.py - Telemetry selectors
src/sentinel/context/retrievers.py
Diagnosis and safety
- Diagnosis agent
src/sentinel/agent/react.py - Agent tools
src/sentinel/agent/tools.py - Action proposal
src/sentinel/agent/propose.py - Action contract
src/sentinel/schemas/action.py - Verifier interface
src/sentinel/verifier/base.py - Envelope gate
src/sentinel/verifier/envelope.py - Combined policy
src/sentinel/verifier/policy.py - LLM judge
src/sentinel/verifier/llm_judge.py - Learned verifier
src/sentinel/verifier/learned.py - Verifier features
src/sentinel/verifier/features.py - Verdict contract
src/sentinel/schemas/verdict.py
Execution and orchestration
- Orchestrator
src/sentinel/orchestrator/loop.py - Executor
src/sentinel/executor/executor.py - Rollback
src/sentinel/executor/rollback.py
Operations and data
- Gateway app
src/sentinel/gateway/app.py - Gateway clients
src/sentinel/gateway/clients.py - Observability metrics
src/sentinel/observability/metrics.py - Run records
src/sentinel/schemas/run.py - DuckDB store
src/sentinel/store/duckdb_store.py
Labeling and evaluation
- Oracle labeler
src/sentinel/labeling/oracle_labeler.py - Label schema
src/sentinel/labeling/schema.py - Review CLI
src/sentinel/labeling/review_cli.py - Evaluation runner
src/sentinel/eval/runner.py - Evaluation metrics
src/sentinel/eval/metrics.py - Pareto analysis
src/sentinel/eval/pareto.py - Ablations
src/sentinel/eval/ablations.py
Other components
- Operator
Connections 27
- Operator → Gateway app: submits requests
- Context builder → Incident context: builds context
src/sentinel/context/builder.py - Context builder → Telemetry selectors: selects telemetry
src/sentinel/context/retrievers.py - Diagnosis agent → Agent tools: uses tools
src/sentinel/agent/react.py - Diagnosis agent → Action proposal: emits proposal
src/sentinel/agent/react.py - Action proposal → Action contract: creates action
src/sentinel/agent/propose.py - Orchestrator → Diagnosis agent: requests proposal
src/sentinel/orchestrator/loop.py - Orchestrator → Verifier interface: requests verdict
src/sentinel/orchestrator/loop.py - Orchestrator → Executor: executes if allowed
src/sentinel/orchestrator/loop.py - Envelope gate → Verifier interface: implements
src/sentinel/verifier/envelope.py - Combined policy → Envelope gate: combines gate
src/sentinel/verifier/envelope.py - Combined policy → LLM judge: combines judge
- Combined policy → Learned verifier: combines score
- Learned verifier → Verifier features: uses features
- Verifier interface → Verdict contract: returns verdict
src/sentinel/verifier/base.py - Envelope gate → Action contract: checks action
src/sentinel/verifier/envelope.py - Executor → Action contract: accepts action
src/sentinel/executor/executor.py - Executor → Rollback: may delegate
- Orchestrator → Run records: records run
src/sentinel/orchestrator/loop.py - DuckDB store → Run records: persists records
src/sentinel/schemas/run.py - Evaluation runner → Run records: evaluates runs
src/sentinel/eval/runner.py - Evaluation metrics → Run records: reads records
src/sentinel/eval/metrics.py - Pareto analysis → Run records: analyzes runs
src/sentinel/eval/pareto.py - Oracle labeler → Label schema: creates labels
src/sentinel/labeling/oracle_labeler.py - Oracle labeler → Action contract: labels actions
src/sentinel/labeling/oracle_labeler.py - Review CLI → Label schema: reviews labels
- Gateway app → Gateway clients: uses clients