A complex simulation of digital civilization with world dynamics, machine intelligence, and cyclical evolution.
📊 Current Stats (click to expand)
- Current Cycle: 201
- Total Cycles Logged: 202
- World Timestamp: 2026-06-06T04:40:45.049Z
- Machine Timestamp: 2026-06-06T04:40:45.072Z
- Last Run: Never
- Total Runs: 0
🌍 World Systems Status (click to expand)
- Economy Resources: 1341.33
- Population Count: 1,000
- Technology Level: 518465263352524.25
- Overall Stability: 0.07
- Entropy Level: 1.00
- Legitimacy Level: 0.43
🤖 Machine Intelligence Status (click to expand)
- Belief Confidence: 0.39
- Exploration Tendency: 0.80
- Prediction Accuracy: 0.10
- Self Awareness: 0.63
- Knowledge Decay: 0.100
📝 Latest Cycle Summary (click to expand)
- Latest Summary File:
data/cycles/summaries/cycle-0201.md
Economy resources changed significantly: 1.3548
- Economy tradeVolume changed significantly: 12.4711
- Technology levelChange changed significantly: 95451319639531.2500
- Technology researchInvestmentChange changed significantly: 238514082180.4277
- Machine intervention in technology: {"innovation":0.021494668676112102,"knowledgeBase":0.042989337352224204}
Civilization system (world):
- Growth is very small, and trade remains negative, keeping markets tense.
- People show mid‑level happiness, but stability is extremely low.
- Tech levels are huge, yet entropy is at its maximum, stressing the system.
- Compared to last cycle: trade improved slightly, but confidence slipped again.
- Resources rose a little, though resistance and legitimacy stay weak. Civilization summary: World is strained but holding together with small gains. Machine system:
- Machine status is: Activated (intervening).
- It begins knowledge‑checking actions to steady weak areas.
- Machine activation: employment is already at threshold (interventions can start now).
- Low budget limits its reach, so actions stay small and targeted. Machine summary: Machine acts lightly due to tight limits.
Generated at 2026-06-06T14:19:25.845Z
This project is a math + probability driven simulation of a digital civilization. Each cycle updates world-state variables (economy, population, technology, stability, entropy, resistance, legitimacy) using bounded equations, weighted averages, and random noise. The “machine system” is a rule-based controller that can intervene when thresholds are hit.
Important: No AI model is used to run the simulation itself. AI is only used to summarize already-generated logs into short markdown reports.
- State: stored in
data/world.jsonanddata/machine.json - Cycle logs: every cycle produces:
data/cycles/raw/cycle-XXXX.json(full raw snapshot + deltas)data/cycles/summaries/cycle-XXXX.md(human-readable summary)
- Cycle counter:
data/evolution_count.jsontracks how many cycle summaries have been generated (next cycle index). - Default run behavior:
node src/index.jsruns 1 cycle per execution, continuing from the last cycle (up to 10,000 total).
- Noise / uncertainty: most updates add uniform noise via
Random.range(min, max) - Clamping: many variables are bounded with
MathUtils.clamp(x, min, max)(common for (0 \ldots 1) signals) - Smoothing / inertia: many updates blend old and new values, e.g. (x_{t+1} = 0.9x_t + 0.1\Delta)
These are simplified descriptions of what the code does in src/world/*.js.
-
Economy (
src/world/economySystem.js)- Resources compound with growth:
- (resources_{t+1} = resources_t \cdot (1 + growthRate_{t+1}))
- Trade reacts to confidence and noise:
- (trade_{t+1} = trade_t \cdot (0.95 + 0.1\cdot confidence) + U(-50, 50))
- Inflation, employment, confidence update via weighted factors + noise, then clamp to ranges.
- Resources compound with growth:
-
Population (
src/world/populationSystem.js)- Net growth mixes baseline + effects of happiness/health/education + noise:
- (netGrowth = base + 0.2(happiness-0.5) + 0.1(health-0.5) + 0.05(education-0.5) + U(-0.005, 0.005))
- Count updates multiplicatively:
- (count_{t+1} = \max(1000,\ \text{round}(count_t \cdot (1 + netGrowth))))
- Happiness is a smoothed weighted blend of economy/health/education/urbanization + noise, clamped to (0..1).
- Net growth mixes baseline + effects of happiness/health/education + noise:
-
Stability (
src/world/stabilitySystem.js)- Political/social/economic sub-stabilities update with inertia + weighted drivers + noise.
- Overall stability is a weighted average:
- (overall = 0.3\cdot political + 0.25\cdot social + 0.25\cdot economic + 0.2\cdot cohesion)
-
Technology (
src/world/technologySystem.js)- Tech level grows based on innovation and adoption:
- (level_{t+1} = level_t \cdot (1 + innovationBoost \cdot adoptionFactor))
- Breakthrough probability is computed from innovation rate and research investment (bounded to a sensible range).
- Tech level grows based on innovation and adoption:
-
Entropy (
src/world/entropySystem.js)- Entropy is a net balance of “sources” minus “sinks” with random perturbations:
- (current_{t+1} = clamp(current_t + production - reduction,\ 0.01,\ max))
- Higher entropy reduces predictability and increases disorder/chaos potential.
- Entropy is a net balance of “sources” minus “sinks” with random perturbations:
After each system updates independently, the simulation applies a causal graph (src/world/worldModelGraph.js) that propagates changes using weighted relationships, for example:
- economy.resources → population.growthRate (weight 0.4)
- population.happiness → stability.social (weight 0.5)
- entropy.current → stability.overall (weight -0.4)
This creates feedback loops and cross-system effects without hard-coding every interaction into every system.
The causal graph also defines thresholds that flag dangerous regimes (e.g., low stability or runaway entropy). These are recorded in logs as “threshold violations”.
The machine system (src/machine/*) is a deterministic + stochastic controller that maintains internal state (beliefs, emotions, predictions, introspection) and may produce interventions when thresholds are hit.
- Perception: transforms the world into a machine-perceived state with relevance/noise filters (
src/core/perceptionLayer.js). - Interventions: generated from simple rules + priorities + a budget constraint (
src/machine/interventionEngine.js).- Interventions only occur if priority exceeds a threshold and the machine has enough budget.
- Legitimacy constraints: world legitimacy can scale down intervention strength (
src/world/legitimacySystem.js+src/core/simulationRunner.js).
AI is not used to compute economy/population/stability/etc. The only AI call is in the logger to turn cycle logs into a short human-readable narrative:
src/logging/summaryGenerator.jscalls an external API to produce the markdown text under## AI Analysis.- If you remove/disable that call, the simulation still runs and logs raw data normally.
data/- Contains world state, machine state, and cycle logssrc/core/- Core simulation engines and schedulerssrc/world/- World system implementationssrc/machine/- Machine intelligence componentssrc/events/- Event handling systemssrc/logging/- Logging and summary generationsrc/state/- State loading/saving utilitiessrc/utils/- Helper utilities
- Install dependencies:
npm install - Initialize the world:
node scripts/initializeWorld.js - Run the simulation:
node scripts/manualRun.js - Monitor cycles in
data/cycles/
[█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 4% (447/10000) Current Cycle: 447 | Max Total Cycles: 10000
📊 Current Stats (click to expand)
- Current Cycle: 446
- Total Cycles Logged: 447
- World Timestamp: 2026-10-07T06:32:05.347Z
- Machine Timestamp: 2026-10-07T06:32:05.700Z
- Last Run: Never
- Total Runs: 0
🌍 World Systems Status (click to expand)
- Economy Resources: 10355.28
- Population Count: 1,000
- Technology Level: 1.1686488242256577e+32
- Overall Stability: 0.07
- Entropy Level: 1.00
- Legitimacy Level: 0.49
🤖 Machine Intelligence Status (click to expand)
- Belief Confidence: 0.63
- Exploration Tendency: 0.80
- Prediction Accuracy: 0.17
- Self Awareness: 0.66
- Knowledge Decay: 0.100
📝 Latest Cycle Summary (click to expand)
- Latest Summary File:
data/cycles/summaries/cycle-0446.md
Economy resources changed significantly: 88.9463
- Economy tradeVolume changed significantly: 12.0003
- Technology levelChange changed significantly: 2.273747918714537e+31
- Technology researchInvestmentChange changed significantly: 6.770185706681052e+23
- Machine intervention in economy: {"employment":0.01474235179249008,"growthRate":0.00245705863208168}
AI analysis failed to generate. Reason: Request failed with status code 404
Generated at 2026-10-07T19:14:33.369Z