Casino heist for developers. Break into the prod vault, bypass code review vault doors, crack the CI/CD safe.
  • JavaScript 100%
Find a file
2026-06-30 11:13:14 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-24 11:08:16 +00:00
src feat(#1): casino heist engine — vaults, crew, security, loot, ASCII floor plan 2026-06-15 03:40:17 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:13:11 +00:00
package.json feat(#1): casino heist engine — vaults, crew, security, loot, ASCII floor plan 2026-06-15 03:40:17 +00:00
README.md feat(#1): casino heist engine — vaults, crew, security, loot, ASCII floor plan 2026-06-15 03:40:17 +00:00

code-casino-heist

Casino heist for developers. Break into the prod vault, bypass code review vault doors, crack the CI/CD safe.

Usage

const { Heist, HEIST_PHASES } = require('./src/heist');
const { VAULT_TYPES } = require('./src/vault');
const { CREW_ROLES } = require('./src/crew');

const heist = new Heist('The Production Job');

// Set up vaults
heist.addVault(VAULT_TYPES.CODE_REVIEW);
heist.addVault(VAULT_TYPES.CI_CD);
heist.addVault(VAULT_TYPES.PROD_DB);

// Recruit crew
heist.recruitCrew('Alice', CREW_ROLES.SAFECRACKER);
heist.recruitCrew('Bob', CREW_ROLES.CAT_BURGLAR);
heist.recruitCrew('Carol', CREW_ROLES.MASTERMIND);

// Case the joint
heist.caseVault('code_review', 'Bob');
heist.setPhase(HEIST_PHASES.CRACK);

// Crack vaults
heist.crackVault('code_review', ['Alice', 'Bob']);

// Exfiltrate
heist.exfiltrate('Bob');
heist.cleanup('Carol');

// Finish
const success = heist.finish();
console.log(heist.floorPlan());
console.log(heist.report());

Vaults

  • Code Review Vault (security 40) — 2 reviewers + stale bot
  • CI/CD Safe (security 60) — All tests must pass
  • Production Database (security 85) — Encrypted, audit logged
  • Secrets Manager (security 90) — API keys, private keys, tokens
  • Artifact Repository (security 50) — Docker images, npm packages

Crew Roles

  • Frontend Cat Burglar — Slips through XSS, smooth animations
  • Backend Safecracker — Listens to API ticks, cracks endpoints
  • DBA Hacker — OR 1=1, sees the matrix in the schema
  • DevOps Wheelman — Knows every k8s route, escape pod ready
  • PM Mastermind — Convinces everyone it's a sprint goal
  • QA Demolitions — Blows up test suites, destroys coverage

Heist Phases

Casing the Repo -> Infiltration -> The Crack -> Exfiltration -> Cleanup