Reticular Activating System — situational awareness and reactive case creation for the casehubio platform.
Observes CloudEvent streams, routes to pluggable Ganglion detection strategies, correlates composite events, and triggers case creation when a situation threshold is crossed. The platform watches — cases happen automatically.
| Module | Purpose |
|---|---|
api |
Ganglion SPI, SituationStore SPI, RasTriggerPolicy SPI, DetectionResult, SituationContext, ChainMode, SituationDefinition |
persistence-memory |
InMemorySituationStore — ConcurrentHashMap-backed, zero-config default |
runtime |
RasEngine, CompositeEventCorrelator, CaseTriggerService |
ras-drools |
DroolsGanglion — Drools CEP (sliding windows, temporal correlation) |
ras-llm |
LlmGanglion — narrative detection via casehub-platform-agent-api |
testing |
MockGanglion, FixedDetectionResult — test fixtures |
Key design: casehub-ras contains no stream infrastructure. Quarkus/Camel stream modules in casehub-platform produce CloudEvent CDI events; the RAS observes them via @ObservesAsync CloudEvent.
See the design spec for architecture, SPI contracts, composite event chains, and open design questions.