Industrial infrastructure

ULTRAMEGA S1

Always-on. Fault-tolerant. Free forever.
An industrial execution substrate with process isolation, real-time messaging, managed hosting, a full REST API with event streaming, and an MCP endpoint for AI integration.

Control C# / .NET Analytics Python Integration C++ / gRPC AI Agent MCP ... S1 Gateway REST API · WebSocket Events · SignalR Hub · Auth · RBAC S1 Platform (Hosting) Process Lifecycle · Port Allocation · Self-Healing · Health Monitoring Fault Isolation Failures never cascade Real-time IPC Low-latency messaging Any Language gRPC / REST APIs Self-Healing Three-layer resilience Core NuGet packages: Client · Hosting · Runtime.{rid}
Overview

What is ULTRAMEGA S1?

ULTRAMEGA S1 is the execution substrate for industrial systems that demand continuous operation. It orchestrates independently developed modules (any language, any runtime) inside a type-safe, message-driven architecture with a full REST API, synchronous command dispatch, real-time event streaming, and managed process hosting.

Real-time control loops, high-rate test workflows, cross-platform integrations: ULTRAMEGA S1 composes dependable systems instead of rebuilding infrastructure. Multi-step workflows with saga orchestration, multi-instance federation, scheduled execution, and persistent journaling are built into the substrate. A built-in MCP endpoint exposes Gateway and module tools to AI agents. Ship core integration through NuGet packages, with SDK, CLI, MCP server, templates, and RID-specific runtime packages available separately.

YOUR MODULES — ANY LANGUAGE, ANY RUNTIME DAQ Controller LabVIEW Data Flow Python PLC Bridge C++ · gRPC AI Agent MCP Alarm Manager C# · .NET ULTRAMEGA S1 EXECUTION SUBSTRATE Process isolation · Message bus · Health & recovery · REST · WebSocket · MCP Gateway Instruments PLCs · Controllers Historians HMI · SCADA AI services YOUR EXISTING SYSTEMS, HARDWARE & DATA
Core capabilities

Runtime capabilities

Process isolation

Each module runs in its own process with protected memory space. A fault in one component cannot cascade to the rest of the system. The hosting layer manages process lifecycle, port allocation, and automatic restart on failure.

Details

Real-time messaging

Low-latency IPC bus with ordered delivery where configured. Bounded delivery paths for critical control signals. Fire-and-forget messages for event distribution, synchronous commands for request-response operations. Typed messages with schema validation prevent integration errors before they reach production.

Details

REST API & event streaming

Full HTTP API across 11 Minimal API endpoint groups: modules, messages, synchronous commands, discovery, config, health, metrics, diagnostics, and more. WebSocket streams for real-time events. SignalR hub for module-specific message delivery.

Details

Self-healing architecture

Three-layer resilience: circuit breakers isolate failures at the communication boundary, resilient connections maintain gRPC links through transient faults, and process supervision restarts crashed modules with state recovery. The layers operate independently, so a fault is contained where it occurs rather than spreading through the system.

Details

Health & observability

Five health endpoints (liveness, readiness, startup, detailed, aggregate) for integration with orchestrators and load balancers. Metrics snapshots, audit trails, and per-module health tracking across the entire substrate.

Details

Workflow coordination

Coordinate multi-step work with sagas, content routing, scheduled delivery, checkpoints, and typed messages. Build explicit flows from these supported primitives.

Details

Saga orchestration

Multi-step workflows with automatic compensation on failure. Each saga tracks step progress, enforces concurrency limits, and guarantees correlation ID uniqueness. If a step fails, previously completed steps are rolled back through registered compensation handlers.

Details

Federation

Connect multiple S1 instances into a federated mesh. Messages route transparently across instance boundaries with endpoint validation and SSRF protection. Federation health monitoring tracks peer availability and enforces forwarding timeouts.

Details

Scheduled execution

One-time and recurring scheduled message delivery with persistent storage. Define managed jobs that survive restarts. The scheduler integrates with the feature flag system for runtime kill-switches and supports bounded query pagination across all schedule stores.

Details

Content routing

Route messages based on headers, message type, or destination prefixes. Define routing rules through the API that match message metadata and direct them to the appropriate modules. Add, remove, and update rules at runtime through the API without module restarts.

Details

Journal & checkpoint

Persistent message journal with query and replay capabilities. Save and restore module state through the checkpoint API. Journal compaction runs automatically to manage storage growth, with structured metrics for monitoring retention and drop rates.

Details
Resilience

Self-healing architecture

Three independent layers that keep production running through hardware faults, network interruptions, and process crashes

Circuit breakers

When a downstream module stops responding, the circuit opens to prevent request pileup and cascading timeouts. Calls fail fast with a clear status while the breaker periodically probes for recovery.

  • Protects inter-module communication
  • Configurable thresholds per module pair
  • State visible through health API
Details

Resilient connections

Exponential backoff with jitter maintains gRPC channels through transient network faults. Connections re-establish automatically without operator intervention or message loss.

  • Protects gRPC and TCP transport links
  • Prevents reconnect storms
  • Connection state reported in real time
Details

Process supervision

The hosting layer detects crashed processes, cleans up stale state, and restarts modules with their last known configuration. PID tracking and orphan detection prevent zombie processes from consuming resources.

  • Protects module process lifecycle
  • Rate-limited restarts
  • Checkpoint recovery on restart
Details
AI integration

Model Context Protocol (MCP)

Expose the substrate to AI agents through the Model Context Protocol

MCP endpoint

The built-in MCP server exposes 56 Gateway system tools plus dynamic module tools to AI agents. Manage modules, send messages, query health, and control the substrate through the same standardized interface used by human operators.

Details

Capability-based access control

Sessions receive explicit capabilities such as system:read, system:module_management, messaging:send, and system:admin. RBAC gates which tools each session can invoke. Agents and operators see only the tools they are authorized to use.

Details

Session management & audit

Every MCP session is tracked with identity resolution. Every tool call is audit-logged for compliance. Session broadcasting enables coordination across multiple agents on the same substrate.

Details

Tool schema registry

Register custom tools with JSON Schema definitions. The schema registry enables agents to discover available operations, understand parameter types, and invoke them correctly without hardcoded knowledge.

Details
MCP tools

56 Gateway system tools

Gateway system tools and module-defined tools are available to AI agents and human operators through a single interface

Module management

Register, start, stop, restart, and remove modules. Query state and health.

Details

Messaging

Send, batch, broadcast, and query-with-response. Typed messages with routing.

Details

Configuration

Read and update substrate config. Inspect and toggle feature flags through authorized tool access.

Details

System control

Shutdown, restart, system info, performance stats, and platform metadata.

Details

Cluster

Node management, leader election, service discovery, and distributed state.

Details

Gateway info

Read version, about, runtime status, and performance metadata.

Details

Service discovery

Register service endpoints and resolve them by name.

Details

Type system

Register message types with schemas and query the type registry.

Details

Content routing

Add, remove, and list content-based routing rules with predicate matching.

Details

Journal

Query message history, replay sequences, and inspect journal statistics.

Details

Checkpoint

Save, restore, and list module state checkpoints for crash recovery.

Details

Scheduling

Schedule messages for future or recurring delivery. Cancel and list jobs.

Details

Sagas

Start durable multi-step workflows with compensation. Track and cancel.

Details

Federation

Register remote substrate peers, manage federation links, and check peer health.

Details
Distribution

Ship as NuGet packages

Core integration packages, SDK tooling, and RID-specific runtime packages.

Ultramega.S1.Client

Typed .NET client for the Gateway REST API. Covers authentication, module management, messaging, synchronous commands, discovery, config, health, metrics, and feature flags. Includes WebSocket event streaming and SignalR hub integration with auto-reconnect.

  • AddS1GatewayClient() for DI
  • AddS1EventStream() for WebSocket
  • AddS1HubClient() for SignalR

Ultramega.S1.Hosting

Managed process hosting for the S1 platform. Spawns and monitors Gateway and ModuleHost processes, handles port allocation, readiness detection, graceful shutdown, and crash recovery. Two modes: managed (owns processes) or external (connects to existing).

  • AddS1Platform() as IHostedService
  • Module registration API
  • Self-healing process supervision with circuit breakers

Ultramega.S1.Runtime.{rid}

Pre-built platform binaries. Content packages land binaries directly in your output directory. No separate install step.

  • win-x64, linux-x64, linux-arm64, osx-arm64
  • Zero-dependency self-contained executables
  • Drop-in deployment, no runtime prerequisites
Integration

Module integration

Native and gRPC integration

Native modules (C# / .NET)

Maximum performance with direct SDK integration. Low-latency message passing and native lifecycle integration. Modules declare capabilities and register through the hosting API with full lifecycle management.

  • Direct SDK integration via IModule
  • Low-latency IPC
  • Capability declaration for MCP/tool access
  • Managed by S1 Hosting process lifecycle

External modules (any language)

Integrate existing systems via gRPC. The ModuleHost bridges external processes to native IPC. Register public module endpoints through the REST API and receive real-time events over WebSocket.

  • C++, Python, MATLAB, LabVIEW
  • gRPC module endpoint registration
  • REST API for registration and discovery
  • System and protocol bridging
Applications

Use cases

Typical deployments

Industrial control systems

Orchestrate control logic from multiple vendors. MATLAB models, LabVIEW drivers, Python robotics, and C++ algorithms working together in one system with process isolation and self-healing resilience.

Test & measurement

High-rate test workflows with real-time data acquisition. Coordinate test fixtures, vision systems, and quality databases through sagas, typed messages, routing rules, and scheduled delivery.

System modernization

Wrap existing PLCs and SCADA systems with modern digital interfaces. Add analytics, remote monitoring, and AI capabilities to brownfield installations without disrupting operations.

HIL & digital twins

Hardware-in-the-loop simulation with real-time fidelity. Mix physical hardware with simulated components for testing and validation. Event streaming provides live visibility into every state transition.

Robotics & automation

Multi-robot coordination with real-time sensor fusion. Path planning, autonomous navigation, and collaborative manipulation with low-latency message delivery between control modules.

AI-assisted operations

Connect AI agents to the substrate through the built-in MCP endpoint. Agents use the same Gateway and module tool interface as human operators to configure instruments, run test sequences, monitor results, and adapt.

REST surface

Gateway API

11 Minimal API endpoint groups across the supported Gateway surface

Authentication

JWT login, token refresh, logout, password change, and token verification.

Details

Modules

Full lifecycle: register, start, stop, restart, delete. Plus health, logs, and external module support.

Details

Messages

Send single, typed, or batch messages. Query delivery status by message ID.

Details

Discovery

Register and resolve services. Load-balanced selection with round-robin strategy.

Details

Health

Liveness, readiness, and detailed health endpoints for load balancers and orchestrators.

Details

Configuration

Read full config or by section. Admin-only write access for runtime changes.

Details

Features

List all feature flags and check individual flags. Runtime mutation is handled through authorized admin/tool surfaces.

Details

Metrics

JSON and Prometheus formats. Drain diagnostics and runtime metrics.

Details

WebSocket

Real-time event and message streams. Connection info endpoint for clients.

Details

Types

Register and query message types, module states, and delivery guarantee enums.

Details

Diagnostics

System info and drain progress for debugging message processing bottlenecks.

Details
Resources

Documentation

Documentation and packages

Technical whitepaper

Architecture overview, performance characteristics, and the design decisions behind the message-driven microkernel.

Go to Downloads

SDK reference

APIs, data contracts, lifecycle hooks, threading model, resilient connections, and code samples for native module development.

Go to Downloads

Hosting packages guide

Step-by-step adoption guide for S1.Client, S1.Hosting, and S1.Runtime NuGet packages. Includes migration checklist and DI patterns.

Go to Downloads

MCP integration guide

Connecting AI agents to S1. Tool registration, capability scanning, RBAC configuration, and session management.

Go to Downloads

Integration examples

Practical walkthroughs for PLCs, SCADA, enterprise systems, and external module integration via gRPC and WebSocket.

Go to Downloads

Gateway API reference

Complete REST API documentation for the Gateway endpoint groups. Request/response schemas, authentication, and WebSocket protocols.

Go to Downloads

Download ULTRAMEGA S1

Free forever, for any use, including commercial. Available as standalone runtime or as NuGet packages for .NET applications.