Beyond Autoregressive Token Prediction to Action-Conditioned World Simulation.
Simulate tens of thousands of counterfactual future timelines before modifying production state.
1. Executive Thesis: Why Text Models Hit a Ceiling
In 2017, Google published "Attention Is All You Need", treating it as a machine translation improvement. Scaling autoregressive transformers over internet tokens unlocked conversational fluency, culminating in ChatGPT.
However, LLMs are advisory oracles, not execution engines.
When asking an LLM:
- "How should our distributed architecture scale under a 3x flash sale?"
- "If we raise our SaaS tier price by 15%, what happens to churn and runway?"
- "If our primary database connection pool nears saturation, what compound intervention guarantees zero outage?"
An LLM emits statistically plausible text. It cannot simulate physical, logical, or financial invariants across time. Operating on text-only predictions forces engineers into blind production deployments and catastrophic cascading failures.
OmniSim flips this paradigm. Grounded in Action-Conditioned World Models, Test-Time Training (TTT), and Counterfactual Search (MCTS), OmniSim is an enterprise-grade State-Action-Consequence (SAC) simulation engine.
Instead of guessing tokens, OmniSim ingests production topology (Kubernetes, OpenTelemetry, Terraform IaC), models non-linear dynamics, branches thousands of counterfactual intervention trajectories forward across arbitrary horizons, and proves which actions survive critical operational invariants before you execute.
2. Core Architecture: The 3-Tier Simulation Engine
[ Current System State S_0 ] ──► [ Relational Entity Graph & Invariant Rules ]
│
▼
┌───────────────────────────┐
│ Tier 1: World Model │
│ S_{t+1} = f_θ(S_t, A_t) │
└─────────────┬─────────────┘
▼
┌───────────────────────────┐
│ Tier 2: Counterfactual │
│ Monte Carlo Tree Search │
└─────────────┬─────────────┘
▼
┌───────────────────────────┐
│ Tier 3: Invariant Audits │
│ & Deterministic Verifiers │
└─────────────┬─────────────┘
▼
[ Executive Consequence Report & Optimal Intervention Plan ]
- Universal State Representation (
omnisim.core.state):- Encapsulates entities, continuous metrics, dynamic topology graphs, and invariant rules (SLAs, connection pool ceilings, debt covenants).
- Action-Conditioned World Dynamics (
omnisim.models.dynamics):- Propagates non-linear cascades (M/M/1 queuing contention, memory pressure, price elasticity, supply chain bottlenecks).
- Accelerated across NVIDIA Blackwell/Hopper GPUs (CUDA), Apple Silicon (MPS), and multi-core vectorized CPU SIMD.
- Counterfactual MCTS Planner (
omnisim.models.search):- Searches the combinatorial tree of candidate interventions.
- Prunes timelines violating SLA invariants and isolates minimal-cost, Pareto-optimal operational decisions.
- Autonomous Ingestion Adapters (
omnisim.ingest):- Native parsers for Terraform HCL/JSON, Kubernetes Pod/HPA manifests, and live OpenTelemetry OTLP streams.
3. Installation & Distribution
OmniSim can be installed across multiple package managers and environments:
via pip (Python 3.10+)
# Direct from PyPI
pip install omnisim-engine
# Or directly from the GitHub Release Wheel
pip install https://github.com/Deeven-Seru/omnisim/releases/download/v1.0.0/omnisim_engine-1.0.0-py3-none-any.whl
# Or from source
pip install git+https://github.com/Deeven-Seru/omnisim.git
via brew (Homebrew on macOS / Linux)
brew install Deeven-Seru/omnisim/omnisim
via Standalone curl Installer (No manual venv setup)
curl -sSL https://raw.githubusercontent.com/Deeven-Seru/omnisim/main/scripts/install.sh | bash
via Docker Container
# Run simulation in an isolated container
docker run --rm -v $(pwd):/workspace ghcr.io/deeven-seru/omnisim:v1 simulate --domain systems
via GitHub Action (CI/CD Safety Gate)
Drop OmniSim directly into any repository's .github/workflows/ to block cascading outages before code merges:
name: OmniSim Safety Gate
on: [pull_request]
jobs:
pre-flight-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: OmniSim Pre-Flight Safety Gate
uses: Deeven-Seru/omnisim@v1
with:
path: terraform/
fail-on-violation: "true"
Launch OmniSim Cloud SaaS Portal & API Gateway
Launches the multi-tenant SaaS control plane with live organization quotas, GitHub PR pre-flight gatekeeper feed, and REST APIs:
python3 -m omnisim.server
# Open http://localhost:8088 in your browser
Launch Interactive Timeline Visualizer
Spins up the low-level timeline visualizer with dynamic slider controls, branching counterfactual trees, and metric deltas:
python3 -m omnisim.visualizer
# Open http://localhost:8088/visualizer
Run Terminal Counterfactual Simulation
# Cloud infrastructure resilience scenario
python3 -m omnisim.cli simulate --domain systems --horizon 6
Pre-Flight Terraform IaC Fire Audit
Audit Terraform HCL plans before terraform apply to detect cascading capacity fires:
python3 -m omnisim.cli terraform
High-Throughput Stochastic Rollout Benchmark
# Benchmark 500 parallel stochastic rollouts in < 150ms
python3 -m omnisim.cli benchmark --domain systems --rollouts 500 --horizon 6
Autonomous Auto-Remediation Patch Engine
Audit infrastructure code and synthesize zero-downtime Git unified diff patches ready for direct application:
python3 -m omnisim.cli patch examples/vulnerable_infrastructure.tf
OmniSim Cloud & Python Client SDK
OmniSim provides an enterprise Python client SDK and multi-tenant SaaS control plane with pre-flight GitHub PR webhooks:
from omnisim.client import OmniSimClient
client = OmniSimClient(api_key="your_tenant_key")
audit = client.audit_pull_request(
hcl_code=open("main.tf").read(),
pr_number=42,
commit_sha="a1b2c3d"
)
if not audit["passed"]:
print(f"Violations detected: {audit['violations_count']}")
# Apply autonomous remediation patch directly
print(audit["remediation_patch"])
Canonical Microservices Reference Benchmark
Run simulation across Google Cloud Online Boutique (11 services), Cornell DeathStarBench (7 services), Fudan Train-Ticket (7 services), and Tsinghua GAIA (4 services):
python3 -m omnisim.cli microservices
Telemetry Benchmark (Real AWS CloudWatch Metrics)
Run empirical verification against 8,000+ real-world AWS CloudWatch data points from the Numenta Anomaly Benchmark (NAB):
python3 -m omnisim.cli telemetry
Google Cloud MCP Toolbox Historical Validation
Test OmniSim's blind foresight against Google's real-world Model Context Protocol Database Server (googleapis/mcp-toolbox):
python3 -m omnisim.cli mcp-toolbox
TensorFlow Distributed Runtime Validation
Test OmniSim's blind foresight against Google's flagship machine learning engine (tensorflow/tensorflow):
python3 -m omnisim.cli tensorflow
Adversarial Robustness Benchmark Suite
Run the 5-phase institutional stress test (Blind Historical Replay, Dark Debt & Uncertainty, Adversarial SRE Traps, Automated Ingestion, Asymmetric Loss Function):
python3 -m omnisim.cli robustness
Execute Test Suite
python3 -m unittest discover -s tests -p "test_*.py" -v
4. Empirical Validation: Public Datasets & Production Post-Mortems
OmniSim has been benchmarked directly against real-world catastrophic failure post-mortems and canonical public datasets:
- Google
tensorflow/tensorflowRuntime Post-Mortems (BFC Fragmentation & Pipeline Deadlocks):- BFC Allocator OOM (Issue #41710): Caught memory fragmentation reaching 0.87 despite 8 GB of free VRAM; synthesized dynamic memory growth with bucketed shape alignment (
cuda_malloc_async), eliminating OOM with 0 violations. - Inter-Op ThreadPool Starvation (Issue #21277): Caught circular wait deadlocking worker threads from 450 QPS to 0 QPS; synthesized decoupled dedicated I/O thread pool with non-blocking admission.
- BFC Allocator OOM (Issue #41710): Caught memory fragmentation reaching 0.87 despite 8 GB of free VRAM; synthesized dynamic memory growth with bucketed shape alignment (
- Google Cloud
googleapis/mcp-toolboxIssue / PR #3921 (EMFILE File Descriptor Leak):- Status Quo (v1.14.0 unpatched): Database connection failure returned error without closing
pgxpool.Pool/sql.DBhandle. Dynamic config reloads leaked 16+ sockets per cycle, saturating OS descriptors (1,072 / 1,024 limit) and crashing downstream AI agent tool invocations at Step 3. - OmniSim Blind Foresight: Predicted exact
EMFILEsocket exhaustion; autonomously synthesizedpool.Close()/db.Close()before return, exactly matching Google's upstream fix in commit0001190aacross 26 source files.
- Status Quo (v1.14.0 unpatched): Database connection failure returned error without closing
- Numenta Anomaly Benchmark (NAB) realAWSCloudwatch (8,064 real production points):
- EC2 CPU 99.7% Catastrophic Spike: Caught with a 10-minute early warning lead time before system collapse; counterfactual scaling intervention reduced CPU to 48.4% with 0 SLA breaches.
- ELB Ingress Surges: Ground-truth verified against labeled anomaly windows peaking up to 656 req/5m.
- k3s-io/k3s Issue #1459 (
Error 1040: Too Many Connections):- Status Quo: Saturated pool at Step 2 with 100% service degradation.
- OmniSim Remediation: Injected connection pooling proxy; 0 violations, system stabilized.
- deis/deis Issue #4297 (
Remaining Connection Slots Exhausted):- Status Quo: Instant fire at Step 1 under 300 concurrent requests on t2.micro RDS.
- OmniSim Remediation: Sized RDS instance class to r6g.large with connection limit 1,365; pool saturation kept below 52%.
See tests/test_github_validation.py for reproducible test fixtures.
5. Research Paper & Architecture
- Academic Paper: OmniSim: Universal Counterfactual Simulation Engine (PDF) | Markdown Version | LaTeX Source
- System Architecture Specification: ARCHITECTURE.md
6. License & Attribution
Distributed under the MIT License. See LICENSE for details. OmniSim is maintained by Deeven-Seru.
Metadata
Release files for omnisim-engine 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnisim_engine-1.0.0.tar.gz | 1.4 MB | With provenance | Details for omnisim_engine-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnisim_engine-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for omnisim_engine-1.0.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / omnisim_engine-1.0.0.tar.gz
| Download URL | omnisim_engine-1.0.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74eea480504398d9c122e61fced91b5107fc7e3588ef8070eb0d5c8fc206eb5f
|
|
BLAKE2b-256 checksum How to use checksums |
56a64528b6609adcbed95f4c881ca7412bebc88e8f05f5022441aa54df685f34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / omnisim_engine-1.0.0-py3-none-any.whl
| Download URL | omnisim_engine-1.0.0-py3-none-any.whl |
|---|---|
| Size | 58.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d38c6d8b81bac40ab97d21896e38c4c6550a763a6b5b26b23f47b01a363eedb5
|
|
BLAKE2b-256 checksum How to use checksums |
b39536f5d5ea031400f22f3616889812dc402b464c2a35ef273f5b2fb7f4f772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for omnisim-engine 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omnisim_engine-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.