Skip to main content

mimic-world

Multi-company scenario engine for supply chain cascade simulation.

What happens to an entire system when a shock hits?

mimic-world simulates many companies responding to one event, watching them react to each other, and tracking the cascade. This is where supply chains come alive. This is where second-order effects emerge. This is where a port closure becomes an inflation event.

from mimic_world import World, Scenario, Twin

world = World()
world.add_twin(Twin.from_ticker("AAPL"))
world.add_twin(Twin.from_ticker("WMT"))
world.add_twin(Twin.from_ticker("FDX"))
world.add_twin(Twin.from_ticker("TSMC"))

world.connect("TSMC", "AAPL", relationship="supplier", weight=0.95, commodity="chips")
world.connect("XOM",  "FDX",  relationship="supplier", weight=0.40, commodity="jet_fuel")

scenario = Scenario.from_library("taiwan_strait_closure_30d")
result   = world.run(scenario)

result.print_summary()
print(result.cascade_timeline)
print(result.second_order_effects)
print(result.system_stability)   # "stabilizing" | "escalating" | "bifurcating"

How It Works

  1. A Scenario defines initial shocks (semiconductor_supply: -0.65) and cascade rules
  2. A World holds company Twins connected by a RelationshipGraph
  3. The CascadeEngine runs time steps: each twin's LLM-powered decisions update a shared world_state
  4. Connected twins see those updates and react — creating emergent second-order behavior

The 50-Scenario Library

Pre-built scenarios across 6 categories:

Category Count Examples
Geopolitical 10 Taiwan Strait closure, Russia energy cutoff
Supply Chain 10 Suez Canal closure, Shanghai lockdown
Macro/Financial 10 Fed hikes 200bps, Credit crunch 2008-style
Climate/Natural 10 Gulf Coast Cat 5 hurricane, Japan earthquake 9.0
Pandemic/Health 5 COVID-severity pandemic, Antibiotic resistance
Technology/Cyber 5 Global cloud outage, Critical infrastructure attack
# List all 50 scenarios
for s in Scenario.list_library():
    print(f"{s['id']:<45} severity={s['severity']:.0%}")

Install

pip install mimic-world

Ecosystem

mimic          → single company twin
mimic-bench    → grades predictions
mimic-forecast → real quantitative forecasts
mimic-world    → multi-company system + scenarios  ← HERE
mimic-sim      → 10,000-run Monte Carlo over worlds
mimic-signal   → real-time event detection

License

MIT

Metadata

Release files for mimic-world 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mimic-world 0.1.0
File Size Uploaded Provenance Actions
mimic_world-0.1.0.tar.gz 24.3 kB Without provenance Details for mimic_world-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mimic-world 0.1.0
File Interpreter ABI Platform Actions
mimic_world-0.1.0-py3-none-any.whl Python 3 none any Details for mimic_world-0.1.0-py3-none-any.whl

Total release size: 47.1 kB

Release files / mimic_world-0.1.0.tar.gz

Download URL mimic_world-0.1.0.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57bcd7ea7a8719dfee59fd8efaa105efb75c64c30e4ed0bb6e65e28fb8b90bae
BLAKE2b-256 checksum
How to use checksums
8f61c05ed05e480332f4d9da286d7984cce1edb2275b520e7186d8906d697e69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / mimic_world-0.1.0-py3-none-any.whl

Download URL mimic_world-0.1.0-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2cb66483afb13fd3909e54e31c3bb6594a76c48eda5efe1562b606514ad4dcf
BLAKE2b-256 checksum
How to use checksums
50385ef0f3cf76989591c9a499af032eb7c32d7b26636a246d21c91fe5db0466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for mimic-world 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page