Add Week 4 social features, regulation, and safety tradeoffs

Leaderboard page with category tabs and score submission, shareable
company stats card with clipboard copy, dynamic regulation system
(compliance costs scale with capability and era, regulatory standing
tracks safety research), 6 geopolitical events (export controls, energy
crisis, natural disaster, AI safety summit, immigration policy, data
sovereignty), safety-capability tradeoff (safety score affects benchmark,
low safety triggers incidents with reputation damage), and enhanced
event consequence handling for regulation and talent types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-24 18:02:30 -04:00
parent 8a8b49d934
commit 0ff8a32b95
12 changed files with 532 additions and 14 deletions
+9 -1
View File
@@ -73,7 +73,15 @@ export function processTick(state: GameState): Partial<GameState> {
});
}
const reputation = processReputation(stateWithTalent);
const reputationResult = processReputation(stateWithTalent);
const { _safetyIncident, ...reputation } = reputationResult;
if (_safetyIncident) {
notifications.push({
title: 'Safety Incident!',
message: 'Your AI model caused a safety incident. Public trust and safety record damaged.',
type: 'danger',
});
}
const economy = processEconomy(stateWithTalent, market, infrastructure);
const data = processData(stateWithTalent);
const competitors = processCompetitors(stateWithTalent);