Skip to main content

CastellanAI v1.2.1 Release Notes - Stability & Performance Update

· 2 min read
CastellanAI Team
CastellanAI Development Team

CastellanAI v1.2.1 focus on core system stability, concurrency safety, and operational visibility. This update addresses critical threading risks in the event processing engine and introduces high-fidelity health monitoring for the entire agent fleet.

What's New in v1.2.1

Hardened concurrency management in the Worker Service, fully asynchronous processing pipelines, and a new SignalR health telemetry protocol for deep agent visibility.

Key Improvements

1. Concurrency & Thread Safety

We've implemented granular locking and thread-safe collections in the Rules Engine to handle high-volume attack bursts without race conditions. The event history storage now uses proper synchronization to ensure data integrity during correlation.

2. Async All the Way

Eliminated blocking sync-over-async calls in the processing hot-path. By converting the SecurityEventDetector and the main Pipeline to fully asynchronous patterns, we've significantly reduced the risk of thread pool starvation under heavy load.

3. Enhanced Agent Health Telemetry

Agents now report a detailed health snapshot via the new HeartbeatWithHealth SignalR method.

  • Queue Depth & Percent: Monitor local backpressure on endpoints.
  • Event Rates: See real-time events-per-second processed by each agent.
  • Drop Metrics: Track events dropped due to buffer overflows or circuit breaker triggers.

4. Real-Time Persistence

Security event updates (Status, AssignedTo, Notes) are now persisted directly to the PostgreSQL database with immediate UI feedback, replacing previously mocked or in-memory placeholders.

5. Castellan AI CLI (Upcoming)

We've finalized the architectural plan for the Castellan AI CLI & TUI. This upcoming tool will provide SREs and DevOps teams with a high-performance, terminal-based operator console for monitoring alerts, investigating correlations, and executing safe response actions directly from their environment.


Upgrade Instructions

Worker & Agent Update

Ensure both your Worker service and Agent fleet are updated to apply the new health telemetry protocol.

# Pull the latest version
git pull origin master

# Rebuild and restart services
./scripts/restart-all.sh

Database

No schema migrations are required for this patch release if you are already on v1.2.0+.


Support