Interactive simulator of Recursive Autonomous Compromise (RAC) / AI worms on capability-gated networks. SI propagation over a generated Erdős–Rényi or scale-free topology with adjustable inference density (ρ) and transmission probability (p). Crowd defense prevalence (v) can also be adjusted.
Optional reversal dynamics add a defender state (D). A probed target can commandeer the attacking agent with probability κ per attack attempt and repurpose it as a defender. Defender agents then spread the reversal back through the swarm's own reach: each tick they convert neighboring swarm agents (compromised inference-capable nodes) into further defenders with probability σ, and reclaim neighboring hosts the swarm already compromised (non-inference nodes) with probability η. Lineage reach widens σ beyond direct links: Direct (the default) lets a defender also target its whole lineage of compromising agents (parent, grandparent, … back to the seed); Full (C2) models a swarm unified by a global C2, where every defender agent reaches every compromised agent each tick; Off restricts σ to direct neighbors. Host reclamation always requires a direct link. With κ = σ = η = 0 (the default) the model reduces exactly to SI + reactive-V.
Parameters can be swept to generate scatter plots against the compromise rate.
npm install
npm run devnpm run build
npm run preview- Create a new GitHub repo named
rac-simulator(or whatever you want — if you change it, updatebaseinvite.config.jsto match). - Push this directory as the initial commit.
- In the repo's Settings → Pages, set Source to GitHub Actions.
- Push to
main. The workflow in.github/workflows/deploy.ymlbuilds and deploys automatically. - Site lives at
https://<username>.github.io/rac-simulator/.
- Cloudflare Pages / Vercel / Netlify: connect the repo, set build command to
npm run buildand output directory todist. Setbase: '/'invite.config.jsif served at domain root. - Static file host:
npm run buildproduces a self-containeddist/directory. Upload it anywhere.
src/
main.jsx entry point
RACSimulator.jsx the component
index.css tailwind directives
index.html html shell
vite.config.js build config (update `base` for Pages subpath)
tailwind.config.js tailwind content scanning
.github/workflows/ auto-deploy on push to main