Skip to content

Local Life and Evolution

Purpose: Clarify the difference between historical archived Life/Evolution snapshots on the server and the current local-first simulation workspace running on an owner’s machine.

Historical snapshots versus local authoring

Section titled “Historical snapshots versus local authoring”

Early iterations of Bitmap Universe experimented with server-hosted world generation and Life/Evolution ticks. Under the current local-first, owner-powered architecture:

  • Archived snapshots remain readable: Existing historical world snapshots remain accessible read-only via GET /bitmap-universe/v1/worlds/:id/life and GET /bitmap-universe/v1/worlds/:id/ecosystem. They do not advance on the server.
  • Server simulation write routes are retired: Requests attempting to create, edit, or advance a world simulation on the server intentionally return HTTP 410 gone_local_first.
  • No server-generated worlds or platform inference: Bitmap Universe reports scene-planner-llm, npc-dialogue-llm, and species-describer-llm as disabled on /bitmap-universe/v1/status.

Local deterministic Life and Evolution workspace

Section titled “Local deterministic Life and Evolution workspace”

Owners who want to run Life and Evolution locally use the deterministic SQLite workspace (apps/studio/scripts/local-life.ts) on their own workstation with Node 24:

  • Explicit advance only: The simulation journals its complete state and random streams into a local SQLite database and advances only when you run an explicit play (1, 2, or 4 ticks/sec) or step command. Restarting restores the last committed checkpoint without advancing for elapsed wall time.
  • Deterministic inputs: Takes an exported terrain heightfield grid (2x2 to 65x65, extent 32 to 1024 meters, with settlement coordinates, temperature, moisture, and water level), a 64-hex source SHA-256 matching the Studio source, and a 64-hex seed.
  • Hard workspace bounds: Capped at 12 residents, 30 organisms, 8 ticks per write, and 64 MiB of checkpoint payload or 1,024 checkpoints per workspace.
  • Integrity protection: Startup verifies checkpoint integrity and recovers the newest intact record while preserving prior history.
Terminal window
npm exec -- tsx apps/studio/scripts/local-life.ts ./life.sqlite start ./terrain.json
npm exec -- tsx apps/studio/scripts/local-life.ts ./life.sqlite step 4
npm exec -- tsx apps/studio/scripts/local-life.ts ./life.sqlite status
npm exec -- tsx apps/studio/scripts/local-life.ts ./life.sqlite inspect 1