# AI use cases for Ware Twin (WayneChou-bot/WareTwin)

Repo: [WayneChou-bot/WareTwin](https://github.com/WayneChou-bot/WareTwin) | Use cases: 4 | Page: https://dedupedai.com/use-cases/waynechou-bot-waretwin/

WareTwin is a browser-based 3D digital twin of an autonomous warehouse with 20 robots, failure injection, what-if simulation and an AI operations copilot.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Stress-test a robot fleet against failures before rollout: https://dedupedai.com/use-cases/waynechou-bot-waretwin/stress-test-fleet-under-failures/
- Compare a fleet change against a baseline with what-if runs: https://dedupedai.com/use-cases/waynechou-bot-waretwin/compare-fleet-changes-with-what-if/
- Ask the Ops Copilot why throughput is dropping: https://dedupedai.com/use-cases/waynechou-bot-waretwin/ask-copilot-why-throughput-drops/
- Verify the twin engine's determinism with the test suites: https://dedupedai.com/use-cases/waynechou-bot-waretwin/verify-twin-engine-determinism/

## How to stress-test a robot fleet against failures before rollout with Ware Twin

Repo: [WayneChou-bot/WareTwin](https://github.com/WayneChou-bot/WareTwin) | Difficulty: Intermediate | Time: 45 minutes | Basis: From the README

Inject robot faults, conveyor stops and intrusions into a simulated 20-robot warehouse and watch recovery.

**Who it is for:** An operations engineer planning a warehouse automation change who needs to see how the fleet copes with breakdowns and blockages before touching real equipment.

**The problem:** Failures such as a stopped conveyor or a human entering a zone are hard to test on a live floor, and their effects on throughput are hard to predict.

**The outcome:** A running local twin where each failure can be triggered from the scenario panel, with recovery and KPI effects visible in the 3D view and the audit log.

### Steps

1. Run `git clone https://github.com/WayneChou-bot/WareTwin.git && cd WareTwin`
2. Run `cd backend` then `pip install -r requirements-dev.txt` and `uvicorn app.main:app --reload --port 8000`
3. In a new terminal, run `cd frontend` then `npm install` and `npm run dev`
4. Open http://localhost:5173 and confirm the blue BACKEND badge is shown in the top bar
5. Open the ⚡ panel and inject robot failure, then conveyor stop, then human intrusion, one at a time

### Prompt to paste into your agent

```text
Clone https://github.com/WayneChou-bot/WareTwin, start the backend with uvicorn app.main:app on port 8000 and the frontend with npm run dev, then inject a robot failure and a conveyor stop through the scenario panel. Report the throughput and on-time rate before and after the injections. Verify the top bar shows BACKEND, not LOCAL.
```

### Caveat

The warehouse layout is synthetic, so results show how this model behaves, not how a specific real warehouse would perform.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/waynechou-bot-waretwin/stress-test-fleet-under-failures/

## How to compare a fleet change against a baseline with what-if runs with Ware Twin

Repo: [WayneChou-bot/WareTwin](https://github.com/WayneChou-bot/WareTwin) | Difficulty: Intermediate | Time: 45 minutes | Basis: From the README

Clone the live twin, inject a change, and compare 12 metrics with the same random seed.

**Who it is for:** A logistics analyst who must justify a change in robot count, charger use or task mix and needs evidence before proposing it.

**The problem:** Judging a proposed change from intuition is risky, and testing it on the live system is not an option.

**The outcome:** A side-by-side comparison of 12 metrics against a baseline, plus a tick-by-tick diff that shows where the two runs first diverge, with the live system left untouched.

### Steps

1. Start the backend with `uvicorn app.main:app --reload --port 8000` from the backend folder after `pip install -r requirements-dev.txt`
2. Start the frontend with `npm install` then `npm run dev` from the frontend folder
3. Open the What-if panel, choose the injections to test and run a 1 to 10 minute simulation
4. Read the 12-metric comparison against the baseline that uses the same seed
5. Optionally replay across up to 5 seeds and check the min, median and max per KPI, then use the event diff to find the first divergence

### Prompt to paste into your agent

```text
Using the WareTwin repo at https://github.com/WayneChou-bot/WareTwin, run a what-if simulation that injects <scenario> into the live twin and compare the 12 metrics with the baseline. Output a table of each metric with baseline value, scenario value and difference. Verify the live simulation state was not changed after the run.
```

### Caveat

The multi-seed range shows the model's internal variability, not a statistical prediction interval, so it should not be read as a forecast.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/waynechou-bot-waretwin/compare-fleet-changes-with-what-if/

## How to ask the Ops Copilot why throughput is dropping with Ware Twin

Repo: [WayneChou-bot/WareTwin](https://github.com/WayneChou-bot/WareTwin) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Get cited, rule-based or LLM-backed explanations from the live warehouse state.

**Who it is for:** A shift supervisor or ops lead who sees throughput fall on the dashboard and needs a grounded explanation with clickable robots, tasks and events.

**The problem:** Finding the cause of a throughput drop across many robots, tasks and events takes time when the data is spread across views.

**The outcome:** An answer to a question such as why throughput is dropping, with citations to specific robots, tasks and events in the live state.

### Steps

1. Start the backend and frontend as in the quick start: `uvicorn app.main:app --reload --port 8000` and `npm run dev`
2. Open http://localhost:5173 and inject a congestion or demand burst scenario from the ⚡ panel so there is something to explain
3. Open the AI Operations Copilot and ask: Why is throughput dropping?
4. Click the cited robots, tasks or events in the answer to confirm they match the 3D view
5. To switch to LLM mode, add OPENAI_API_KEY to backend/.env, based on .env.example, and restart the backend (inferred, check the README)

### Prompt to paste into your agent

```text
Use the WareTwin repo at https://github.com/WayneChou-bot/WareTwin with the backend running on port 8000. Inject a congestion scenario, ask the AI Operations Copilot why throughput is dropping, and return the answer with each cited robot, task and event id. Verify every cited id appears in the live state.
```

### Caveat

The hosted public demo runs in demo mode on purpose, so LLM answers require running the backend locally with your own key.

Risk, credentials: LLM mode requires an OpenAI API key in backend/.env, so keep that file private and never commit it.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/waynechou-bot-waretwin/ask-copilot-why-throughput-drops/

## How to verify the twin engine's determinism with the test suites with Ware Twin

Repo: [WayneChou-bot/WareTwin](https://github.com/WayneChou-bot/WareTwin) | Difficulty: Advanced | Time: 30 minutes | Basis: From the README

Run backend and frontend tests to confirm the simulation engines match and behave consistently.

**Who it is for:** A developer who forks or modifies Ware Twin and needs proof that changes to the scheduler or engine did not break collisions, determinism or recovery behavior.

**The problem:** Changes to a simulation engine can silently alter results, and it is hard to tell whether the Python and TypeScript engines still agree.

**The outcome:** A pass or fail report from 52 backend tests and 32 frontend tests covering PRNG parity, A*, long stress runs, determinism, lifts and compound failures.

### Steps

1. Run `git clone https://github.com/WayneChou-bot/WareTwin.git && cd WareTwin`
2. Run `cd backend` then `pip install -r requirements-dev.txt`
3. Run `python -m pytest -q` from the backend folder
4. Run `cd frontend` then `npm install`
5. Run `npm test` from the frontend folder

### Prompt to paste into your agent

```text
Clone https://github.com/WayneChou-bot/WareTwin, install the backend requirements, and run python -m pytest -q in backend and npm test in frontend. Report the number of passed and failed tests for each suite, and list any failing test names. Verify the backend reports 52 tests and the frontend reports 32.
```

### Caveat

The test suites cover the synthetic layout and the included scenarios, so passing tests do not prove behavior on a real facility.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/waynechou-bot-waretwin/verify-twin-engine-determinism/
