{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "waynechou-bot-waretwin--verify-twin-engine-determinism",
 "repo": "WayneChou-bot/WareTwin",
 "repo_url": "https://github.com/WayneChou-bot/WareTwin",
 "repo_slug": "waynechou-bot-waretwin",
 "title": "Verify the twin engine's determinism with the test suites",
 "page_title": "How to verify the twin engine's determinism with the test suites with Ware Twin",
 "summary": "Run backend and frontend tests to confirm the simulation engines match and behave consistently.",
 "who": "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.",
 "problem": "Changes to a simulation engine can silently alter results, and it is hard to tell whether the Python and TypeScript engines still agree.",
 "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": [
  "Run `git clone https://github.com/WayneChou-bot/WareTwin.git && cd WareTwin`",
  "Run `cd backend` then `pip install -r requirements-dev.txt`",
  "Run `python -m pytest -q` from the backend folder",
  "Run `cd frontend` then `npm install`",
  "Run `npm test` from the frontend folder"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The test suites cover the synthetic layout and the included scenarios, so passing tests do not prove behavior on a real facility.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 18 or newer",
  "Python 3.11 (conda or venv)",
  "Git",
  "Optional: an OpenAI API key in backend/.env for LLM mode, otherwise the app runs in demo mode with no key"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/waynechou-bot-waretwin/verify-twin-engine-determinism/",
 "md": "https://dedupedai.com/use-cases/waynechou-bot-waretwin/verify-twin-engine-determinism/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/waynechou-bot-waretwin--verify-twin-engine-determinism.json",
 "api_version": "v1"
}
