fix(sim): lower transcendence threshold so the mechanic fires in default runs - #37
Merged
Merged
Conversation
…000-tick runs The pickMood transcending entry condition required techLevel > 2.2 and wealth > 800. Starting empire techLevel is 0.1–0.5; under the war-heavy conditions typical of the default run, effective tech growth is ~0.00072/tick, making 2.2 unreachable before most empires collapse. Result: 0 transcendences in 3000 ticks despite transcendence being a documented named mechanic. Lower thresholds to techLevel > 1.5 and wealth > 600. At the same effective growth rate, 1.5 is reachable in ~1,400 ticks, allowing longer-lived empires to enter the transcending mood and eventually ascend. Validated on seed 42, 400 stars, milestones 1000/3000: - Before: 0 transcended, 831 wars, 210 collapses - After: 1 transcended, 892 wars, 215 collapses - Determinism replay: ✓ passed - Health gate (--assert-health): ✓ passed - Build: ✓ clean Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHgnAtqrdvG7bQk2NQcVE9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Transcendence is a named, documented mechanic ("high-tech empires may ascend and leave the galaxy in a blaze of glory") that tallies in the headless report but produced 0 events across the entire default 3000-tick run. The
pickMoodtranscending entry condition requiredtechLevel > 2.2 && wealth > 800. Starting empire techLevel is0.1–0.5; under the war-heavy conditions of the default run, effective tech growth is ~0.00072/tick, making2.2unreachable before most empires collapse.One-line fix: lower to
techLevel > 1.5 && wealth > 600. At the same growth rate,1.5is reachable in ~1,400 ticks, allowing longer-lived empires to eventually enter the transcending mood and ascend.Change
src/sim/Tick.ts—pickMood, line 1641No state shape changes. No new RNG calls. No new event types.
upgradeStateandSAVE_VERSIONuntouched.Validation (seed 42, 400 stars, milestones 1000/3000)
--assert-healthgatetsc -btypecheckvite build1 transcendence by tick 3000 is within the healthy 1–3 target range. Wars and collapses shift because one transcendence removes an empire mid-run, altering downstream PRNG consumption — determinism is preserved within the new simulation flow.
Generated by Claude Code