Sentinel

Ops Intelligence Dashboard — a unified interface for active ecosystem monitoring with predictive compliance. Combines drift prediction, circuit breaker health monitoring, and compliance verification into a single pane of glass for tracking Aloysius Productions system health.

Overview

Sentinel synthesizes monitoring capabilities extracted from multiple existing apps into one dashboard:

  • ComplianceChecker — Validates 6 required ops-core management and GitHub files per repo
  • HealthMonitor — Service health checks with circuit breaker pattern (3 failures to open, 30s cooldown)
  • DriftPredictor — Monte Carlo compliance decay simulation with 3 risk profiles and black swan events

The project is in staging/ and currently implements the logic layer (19+ tests passing) with simulated data. No UI is built yet. When live data mode is enabled, it will connect to real filesystem ops-core data, GitHub API, and Linear API.

The app practices self-monitoring (dogfooding): when running in live mode, Sentinel must include itself in compliance, health, and drift snapshots.

Tech Stack

TechnologyVersionPurpose
React^19.0.0UI framework
TypeScript^5.6.0Type safety, strict mode
Vite^7.3.1Build tool and dev server
Vitest^4.0.18Test runner with V8 coverage
Zod^3.23.8Runtime schema validation
Node.js>=18.0.0Runtime (ESM modules)
@ap/eliza-enginefile:../eliza-engineDecision support (integrated)

Architecture

src/
├── modules/
│   ├── compliance/   ComplianceChecker — ops-core file validation
│   ├── forecast/     DriftPredictor — compliance decay prediction
│   └── health/       HealthMonitor — service health + circuit breaker
├── types/            Shared type definitions
└── index.ts          Barrel exports

Key Architecture Decisions

DecisionRationaleStatus
React 19 + TypeScript + ViteModern toolchain for rapid dashboard developmentImplemented
Monte Carlo drift prediction (Aura)Quantified uncertainty for system state monitoringIntegrated
Circuit breaker pattern (stock-art-collector)Proven fault tolerance visualizationImported
Compliance checker (TeachersPet)Automated governance monitoringIntegrated
Zod runtime schemasEnforce API contracts at runtime; validate live payloads at boundariesImplemented
Server-side bearer tokensMove auth enforcement from client to server; remove secrets from client envImplemented
Data source abstraction + env validationPrepare secure switch between demo and live data (VITE_DATA_SOURCE)Implemented
API versioning + contract testsPrevent breaking changes; document compatibility via mock APIImplemented
CSP headers + threat modelDefine security posture; document attack surface and mitigationsImplemented
Error reporting sink + batchingCentralized error collection; client-side batching; privacy-preservingImplemented
HTTP retry policy (no 4xx retry)Avoid retrying client errors; focus retries on transient failuresImplemented
CI gates (type-check + tests + lint)Ensure baseline quality before mergeImplemented
Coverage thresholds + correlation IDsEnforce test rigor and improve observabilityImplemented
Core-logic coverage scopingEnsure measurable coverage without UI harnessImplemented

Reusable Patterns Established

PatternDescriptionReusable?
Dashboard aggregationMulti-module synthesis into single interfaceYes
Drift prediction visualizationMonte Carlo probability display for uncertaintyYes
Circuit breaker status displayReal-time health monitoring for distributed servicesYes
Compliance verification UIAutomated checklist with pass/fail statusYes

Environment Configuration

VariableDefaultPurpose
VITE_DATA_SOURCEdemodemo or live
VITE_API_BASE_URL—Required when VITE_DATA_SOURCE=live
VITE_API_CORRELATION_HEADERx-correlation-idOptional correlation ID header name

Current Status

v0.1 — Logic layer complete. All service modules implemented and tested. No UI built yet.

  • CI/CD: Configured with type-check, tests, and lint gates
  • Test Coverage: Integration + retry boundary tests passing
  • Compliance: Full — all ops-core items satisfied
  • Zone: staging/ — not yet promoted to apps/
  • Port: 3140 (registered in ops-core registry)
  • Open: @ap/pipeline and @ap/source-adapter planned integrations not yet installed

Source Lineage

Extracted from the Compliance Dashboard, Aura (drift prediction), stock-art-collector (circuit breaker pattern), and TeachersPet (compliance checker).

See Also