# Paracosm FAQ: dice, models, seeds and replay

This page answers what decides a run, what a seed fixes, and what replay, shared links and forks reproduce. Every answer was checked against the code at commit [`063c9ee6`](https://github.com/framerslab/paracosm/commit/063c9ee6843c43c5285ac7f602f3f5790b4874f2) (npm version 0.9.1095). The answers on who dies (the hazards, the tie and the numbers behind them) follow pull request [#242](https://github.com/framerslab/paracosm/pull/242), which makes the age and accident rates read the colony's supplies; their links point at commit [`1e6090d3`](https://github.com/framerslab/paracosm/commit/1e6090d3f210fd86906e48ab005e4b22524839ee). The answers on why the demo leaders chose alike and on what the leader is shown before choosing follow the fix for issue [#248](https://github.com/framerslab/paracosm/issues/248); their links point at commit [`e18ce8a3`](https://github.com/framerslab/paracosm/commit/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66), except those on the decision rule's departure line and the check of each reply against the bar, which follow the fix for issue [#250](https://github.com/framerslab/paracosm/issues/250) and point at commit [`06b4149d`](https://github.com/framerslab/paracosm/commit/06b4149d0b44bd3719faee70c4443e941bba4b2a). The answer on replay follows the fix for issue [#235](https://github.com/framerslab/paracosm/issues/235); its links point at commit [`2f1ad727`](https://github.com/framerslab/paracosm/commit/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9), except those on the server's run-history routes. The answer on whether that holds in every scenario follows the change of issue [#257](https://github.com/framerslab/paracosm/issues/257) that gives Lunar Outpost and the deep-ocean station marked supplies and one death die for a life; its links point at commit [`5e28750b`](https://github.com/framerslab/paracosm/commit/5e28750b85e0b5297a80ad4a554d04b95c84ee3d). Each answer that states a mechanism links to the lines that run it.

Words used throughout:

- A **run** is one simulated world played for a number of **turns**. Mars Genesis plays 6 turns of 8 simulated years by default, from 2035, with 100 people ([`scenarios/mars.json`, lines 30 to 36](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/scenarios/mars.json#L30-L36)).
- The **leader** (the code calls it the commander) decides for the colony. A **pair run** plays two leaders on the same starting world, side by side.
- An **event** is a situation the colony faces in a turn, with two or three options for the leader to choose from.
- **Departments** (medical, engineering, agriculture and others) are model agents. Each event names the departments that look at it, and each of those writes a report on it for the leader; an event that names none of the run's departments goes to the first two ([`commander-setup.ts`, lines 208 to 222](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/commander-setup.ts#L208-L222)).
- The **kernel** is the part of the engine that holds the numbers (people, food, habitat modules, morale) and changes them by fixed rules.
- **Morale** is the colony's mood, from 0 to 1. Each person's **psych score**, also from 0 to 1, is how well that person is holding up; morale pulls it up or down each year.
- A person's **hazard** for a cause of death is their chance of dying of it in a year, worked out from their state: age, dose, food, psych, bone density, department and, in a scenario that marks the supplies that sustain its people (Mars Genesis, Lunar Outpost, the deep-ocean station, and a scenario compiled from a prompt whose draft marks one the rules pass), the colony's supplies.
- The **seed** is a whole number, 950 for Mars Genesis by default. It starts the **dice**: Mulberry32, a pseudo-random number generator that gives the same sequence of numbers for the same seed every time ([`rng.ts`, lines 1 to 34](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/rng.ts#L1-L34)).
- A **language model** (GPT-5.4 or Claude, for example) is called over the network to write text and structured replies. The same request can come back with a different answer.

## Questions

- [What decides what happens in a run, the dice or the model?](#what-decides-what-happens-in-a-run-the-dice-or-the-model)
- [Do dice pick the events?](#do-dice-pick-the-events)
- [What does the seed control?](#what-does-the-seed-control)
- [What stops the model from making things up?](#what-stops-the-model-from-making-things-up)
- [What does replay do?](#what-does-replay-do)
- [What does a shared link do?](#what-does-a-shared-link-do)
- [What does a fork reuse, and what does it generate fresh?](#what-does-a-fork-reuse-and-what-does-it-generate-fresh)
- [Why can two leaders on one seed lose the same people?](#why-can-two-leaders-on-one-seed-lose-the-same-people)
- [Why did the two demo leaders choose alike, and what makes them differ?](#why-did-the-two-demo-leaders-choose-alike-and-what-makes-them-differ)
- [Is that true of every scenario, or only of Mars?](#is-that-true-of-every-scenario-or-only-of-mars)
- [Which numbers have a source, and which are the simulation's own?](#which-numbers-have-a-source-and-which-are-the-simulations-own)
- [What does a run cost, and what is free?](#what-does-a-run-cost-and-what-is-free)
- [Does the same seed give the same run?](#does-the-same-seed-give-the-same-run)

## What decides what happens in a run, the dice or the model?

Four parts, each with its own job.

1. **Seeded dice decide chance.** Each person rolls one die for each cause of death once for each step of a turn; on Mars Genesis, Lunar Outpost, the deep-ocean station and every scenario compiled from a prompt, which keep one death die for a life, each person keeps one die for each cause for their whole life, read against their chance of having survived it so far. A step is a simulated year; the part of a year a turn ends with is one more step, and a turn of a year or less is one step. Births, partnerships, friendships, recoveries, promotions and lost Earth contacts are rolled the same way, each on a die keyed to one person ([`progression.ts`, lines 495 to 503](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L495-L503)). Each event gets one more draw, which decides whether the option the leader chose succeeds ([`orchestrator/index.ts`, lines 1600 to 1607](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1600-L1607)). The seed also builds the starting roster.
2. **Formulas set each chance and each change.** Ageing, the radiation dose, bone density, morale and psych, food, and each cause's yearly hazard are fixed formulas with no dice in them ([`progression.ts`, lines 274 to 327](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L274-L327); [`mars-radiation-bone.ts`](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/physics/mars-radiation-bone.ts#L55-L94)). Personality drift is a formula too: it reads the leader's traits, the person's department and the event's outcome ([`progression.ts`, lines 74 to 117](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L74-L117)).
3. **The scenario's tables say what an outcome does.** For each event category, the scenario lists what an ordinary response brings: on Mars an infrastructure event brings 2 habitat modules, 60 kW of power and 200 m³ of pressurized volume ([`scenarios/mars.json`, lines 177 to 212](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/scenarios/mars.json#L177-L212)). The outcome scales each gain in the table: 2.5 times for a risky success, 1 for a safe success, -1 for a safe failure and -2 for a risky failure ([`effects.ts`, lines 6 to 11](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/registries/effects.ts#L6-L11)). A cost in a table, an entry that leaves the colony worse off, works the other way: nothing on a risky success, 1 time on a safe success, 3 times on a safe failure and 4 times on a risky failure ([`effects.ts`, lines 47 to 65](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/registries/effects.ts#L47-L65)). Mars's tables hold gains only. The scenario also fixes the starting values and, on Mars, the events of the first and last turns.
4. **The language model writes.** It writes the events of the turns between the first and the last, each department's report, the leader's choice of option and of the effects the departments propose, the department heads named before turn 1, the colonists' reactions, and the verdict that compares two leaders.

So a run is more than dice. The dice decide luck against chances the formulas set. The model's choices change the state those formulas read, within limits the next answers describe.

## Do dice pick the events?

No. On Mars the first and last turns play events the scenario fixes: "Landfall" and "Legacy Assessment" ([`scenarios/mars.json`, line 1113](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/scenarios/mars.json#L1113); [`orchestrator/index.ts`, lines 1040 to 1058](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1040-L1058)). For the turns between, a model called the Event Director writes each leader's events from that leader's state, one or two a turn on Mars ([`orchestrator/index.ts`, lines 1059 to 1120](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1059-L1120)). It writes the situation, two or three options, which option is risky, the risky option's chance of success, the event's category and the departments that report on it.

The dice come in after the leader chooses. The engine takes the risky option's chance, adds 0.1 when morale is above 0.7 and 0.05 when the colony holds more than 12 months of food, takes off 0.05 when more than 150 people live, and holds the result between 0.1 and 0.9. A safe option halves the chance of failure: its chance is `(1 + risky) / 2` ([`progression.ts`, lines 150 to 173](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L150-L173)). One draw, keyed by the seed, the turn and the event's place in the turn, meets that chance. Both leaders of a pair get the same draw for the same event slot, so on one draw a risky choice can fail where a safe one succeeds ([`progression.ts`, lines 175 to 184](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L175-L184)).

The outcome's multiplier then scales the category's table, with three small terms added to it: one from the leader's openness and conscientiousness, a seeded noise term between -0.1 and 0.1 that both leaders of a pair share for the same event slot, and one from the departments' tool forging in that event ([`orchestrator/index.ts`, lines 1609 to 1650](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1609-L1650)).

The leader sees these numbers before choosing. Its decision prompt states the risky option's chance and the safe options' chance, computed this way from the state at that moment, and what a gain and a cost are multiplied by on each outcome ([`commander-setup.ts`, lines 236 to 264](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/runtime/orchestrator/commander-setup.ts#L236-L264)). The draw meets the chance after the effects the leader adopts are applied, so the two differ only when an adopted effect carries morale across 0.7, food across 12 months or the population across 150.

## What does the seed control?

The seed fixes everything the kernel draws:

- **The starting roster**, for the same population and key personnel: names, ages, traits and departments ([`kernel.ts`, line 228](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L228)).
- **Each person's dice**: deaths, births, partnerships, friendships, recoveries, promotions and lost Earth contacts. Each roll has a stream of its own, keyed by the seed, the turn, the step within the turn, the person and what is rolled for (`SeededRng.forDraw`, [`rng.ts`, lines 51 to 66](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/rng.ts#L51-L66)). So one person's fate never moves another person's dice, and two runs on one seed roll the same dice for a person both rosters hold under the same id. A scenario that keeps one death die for a life (`setup.mortalityDice: "life"`; Mars Genesis, Lunar Outpost and the deep-ocean station do) keys each person's death dice by the seed, the person and the cause alone, not by the turn or the step: one die for each cause for as long as the person lives (`SeededRng.forLife`, [`rng.ts`, lines 68 to 76](https://github.com/framerslab/paracosm/blob/2423aeac13a393df014ca07d914cecaa22c01074/src/engine/core/rng.ts#L68-L76)).
- **Each event's outcome draw and its noise term** ([`orchestrator/index.ts`, lines 1601 and 1609](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1601-L1609)).
- **A newborn's name, id and traits**, which come from the turn's shared stream ([`progression.ts`, lines 692 to 708](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L692-L708)), and who joins or leaves when an effect changes the head count ([`kernel.ts`, lines 682 to 696](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L682-L696)).

The same die is not the same fate. A die kills a person when it falls under that person's hazard, and the hazard reads that run's state: age, dose, food, psych, bone density, department and, in a scenario that marks the supplies that sustain its people (Mars Genesis, Lunar Outpost, the deep-ocean station, and a scenario compiled from a prompt whose draft marks one the rules pass), the colony's supplies. With a die for life, the die kills the person in the year their chance of having survived the cause, which each year's hazard lowers, falls to it.

The seed does not control anything the model writes: the Event Director's events, the department reports, the leader's choices, the department heads, the reactions or the verdict. A rerun of the same seed makes new model calls, and they can come back different. Once one choice differs, the states differ, and the same dice can land differently.

## What stops the model from making things up?

The model can write any words. What its words can change in the numbers is held by these rules:

- **Every structured reply is checked against a schema.** The Event Director's events, each department report, each decision, the reactions and the verdict must parse as JSON of a fixed shape. A reply that fails is asked for again, up to 2 more times by default ([`sendAndValidate.ts`, lines 91 to 161](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/llm/sendAndValidate.ts#L91-L161) for the reports and decisions; [`generateValidatedObject.ts`](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/llm/generateValidatedObject.ts#L80-L125) for the rest). After that the run uses a fallback: an empty department report, a decision that defers to the departments (which reads as the safe option), one of three prepared events, or no verdict ([`director.ts`, lines 242 and 359 to 361](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/director.ts#L359-L361)). An event must mark its risky option as risky ([`validators/director.ts`, lines 22 to 35](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/validators/director.ts#L22-L35)).
- **Effects move only keys the run holds.** A department may propose effects, such as "+1 habitat module, -35 kW". The schema refuses an effect that names a key the run does not hold as a number and lists the keys it does hold ([`validators/department.ts`, lines 78 to 104](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/validators/department.ts#L78-L104)). A report that names one after its retries is kept without those keys (the salvage, [lines 106 to 143](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/validators/department.ts#L106-L143)). The kernel drops any key it does not hold in any case ([`kernel.ts`, line 650](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L650)).
- **One decision moves a key a bounded amount.** The effects a leader adopts move each key at most the largest entry the scenario's tables give it: on Mars 2 habitat modules, 4 months of food, 0.15 of morale and 60 kW of power. The tables are the category tables and what the politics hook returns for each category and outcome. A key no table names moves at most a tenth of its value, or 1 when the value is 0 ([`commander-policy.ts`, lines 51 to 98](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/commander-policy.ts#L51-L98)). In a scenario that declares no politics keys, the compiler keeps a generated politics hook only when it returns null, or an object with no key, for `political` and for every category of the scenario's effects at each of the four outcomes; a hook that names a key is asked for again, and after the third attempt the compiler uses one that returns null ([`generate-politics.ts`, lines 57 to 113](https://github.com/framerslab/paracosm/blob/da45d34c2ebb8be3862f523022c3498349cdb9e7/src/engine/compiler/generate-politics.ts#L57-L113)). A run of such a scenario reads no politics table at all, so neither a category the seed's knowledge adds after the hooks are generated nor a politics hook restored from the hook cache raises a limit (`policyEffectTablesFor` in `commander-policy.ts`).
- **Department patches set nothing.** A report's `proposedPatches` (values written outright) are logged and ignored; only adopted effects move the state ([`util/parsers.ts`, lines 188 to 242](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/util/parsers.ts#L188-L242)).
- **A report's note on a person is bounded.** It moves that person's psych score at most 0.15 a turn and sets their list of conditions. It cannot set a dose, a bone density, or who is alive ([`kernel.ts`, lines 312 to 329](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L312-L329) for the bound per turn, [lines 775 to 807](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L775-L807) for the note).
- **Only the dice kill.** Every death comes from the kernel's rolls between turns ([`progression.ts`, lines 531 to 607](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L531-L607)).
- **Forged tools run sandboxed and judged.** A department can write a small JavaScript tool to compute something. Each call runs in QuickJS compiled to WebAssembly, in an instance of its own, with a 10-second and a 128 MB limit, and a judge model approves it only when it passes both a safety and a correctness review of its code and test output ([`emergent-setup.ts`, lines 210 to 237](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/emergent-setup.ts#L210-L237)). A tool's output is text in the report. What reaches the numbers is the count of tools forged, approved and rejected that event, which shifts the outcome's scale by at most 0.5 and costs power and morale ([`effects.ts`, lines 115 to 166](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/registries/effects.ts#L115-L166)).

What stays model writing with no check:

- **The event's text and its numbers within range.** The Event Director picks the risky option's chance (the engine holds it between 0.1 and 0.9) and the category. A category the scenario has no table for moves morale alone, by 0.08 at an ordinary response ([`effects.ts`, lines 73 and 102 to 104](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/registries/effects.ts#L102-L104)).
- **The size of a proposed effect, within its bound.** An adopted effect costs nothing of its own unless the department wrote a cost into it.
- **The report prose**: summaries, risks and recommendations.
- **Citations.** The schema asks each citation for a text and a URL and nothing more ([`validators/department.ts`, lines 14 to 19](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/validators/department.ts#L14-L19)). The code does not open the URL or check that it says what the report says. When a report gives no citation and the event's research packet holds sources, the run attaches up to five of the packet's facts as the report's citations ([`orchestrator/index.ts`, lines 1259 to 1271](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1259-L1271)). The packet comes from the scenario's knowledge bundle, or from a web search when live search is on.
- **The reactions.** Colonists' quotes change no number the kernel holds. The step after them writes each quote into the person's short-term memory, moves their stance on the event's category and their relationships with the others who reacted, and hands that memory to the kernel, which keeps it ([`reaction-step.ts`, lines 206 to 216](https://github.com/framerslab/paracosm/blob/c0dd0a8b613eba227ded1fe5d097eac179b2fa54/src/runtime/orchestrator/reaction-step.ts#L206-L216)). The kernel moves a stance or a relationship at most 0.15 a turn, the bound a department report's psych write has, and the write changes no health number, metric, birth or death and draws no dice ([`kernel.ts`, lines 844 to 866](https://github.com/framerslab/paracosm/blob/c0dd0a8b613eba227ded1fe5d097eac179b2fa54/src/engine/core/kernel.ts#L844-L866)). So the next turn's reaction prompts, the turn's snapshot, a fork from it and the saved run carry each person's memory (issue [#241](https://github.com/framerslab/paracosm/issues/241)). A run saved before this fix loads as it was, with no memory from its reactions, and a fork from it starts writing memory at its first turn.
- **The verdict.** The prompt lists both colonies' final numbers side by side. The scores, the winner and the reasoning are the model's, and no code checks them against the numbers ([`pair-runner.ts`, lines 789 to 834](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/cli/pair-runner.ts#L789-L834)). The verdict card's own figures come from the engine.

## What does replay do?

Replay (`wm.replay(artifact)`, or `POST /api/v1/runs/:runId/replay` on the server) takes a saved run that holds at least one recorded decision and three sets of kernel snapshots, which the turn loop saves: the state the run's first between-turn step starts from (`kernelSnapshotAtStart`), the state right after each turn's between-turn step, before the turn's events (`kernelSnapshotsAfterProgression`), and the state at the end of each turn (`kernelSnapshotsPerTurn`) ([`orchestrator/index.ts`, lines 1153 to 1160](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L1153-L1160) and [lines 1864 to 1869](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L1864-L1869)). The dashboard saves them for every run it starts. A run started from code saves them only when its options set `captureSnapshots: true`: the default for `runSimulation` and `wm.simulate` is false ([`orchestrator/index.ts`, lines 397 to 408](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L397-L408)), and `wm.quickstart` sets it to true unless told otherwise ([`world-model/index.ts`, line 490](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/world-model/index.ts#L490)). On the server, the replay route is one of the `/api/v1/` run-history routes, which answer 403 with `run_history_routes_disabled` in hosted-demo mode (`PARACOSM_HOSTED_DEMO=true`) unless `PARACOSM_ENABLE_RUN_HISTORY_ROUTES=true` turns them on, and in any mode when that variable is `false` ([`server-app.ts`, lines 1369 to 1374](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/server/server-app.ts#L1369-L1374); [`routes/platform-api.ts`, lines 63 to 73](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/server/routes/platform-api.ts#L63-L73); [HTTP_API.md](HTTP_API.md)).

For each turn, replay restores the kernel from the state that turn's step started from (the start snapshot for the first, else the end-of-turn snapshot of the turn before), runs the between-turn step to the turn's saved turn and time, and compares the fresh state with the one the run saved right after that step, field by field (as canonical JSON). Nothing writes the kernel between the end of one turn and the next step, so the state each step starts from is the one the run had. Replay reports `matches` and, when they differ, the first path that differs, from the artifact's root, with the saved and the fresh value, in the form `/scenarioExtensions/kernelSnapshotsAfterProgression/1/state/metrics/morale (<saved> vs <fresh>)` ([`orchestrator/index.ts`, lines 2222 to 2279](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L2222-L2279); [`world-model/index.ts`, lines 617 to 658](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/world-model/index.ts#L617-L658)). The between-turn step is the kernel's yearly work: ageing, the dose, deaths, births, partnerships, promotions, food and morale. Replay calls no model, so it costs nothing.

What a match proves: the between-turn step, run on today's code, turns the state each checked turn started from into the state the run saved after it. That is the kernel's half of a run, checked for that artifact. The tests replay a two-turn Mars Genesis run through the real turn loop, its decisions the replies Aria Chen wrote in the hosted pair of 11 November 2026 given by a stub model, to `matches: true` ([`replay-turn-loop.test.ts`, lines 50 to 76](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/tests/runtime/world-model/replay-turn-loop.test.ts#L50-L76)).

What replay does not do: it does not re-ask the model, re-draw an outcome, or re-apply what a turn's decisions did. A turn's decisions, outcomes and drift move the state after its step, and the comparison leaves them out: re-running them needs each event's department reports as the turn loop held them, and a saved run keeps the reports merged into one list per turn ([`orchestrator/index.ts`, lines 2186 to 2221](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L2186-L2221)). Replay checks every step or answers that it cannot verify the run: a run missing the state a step started from (a turn that ended in an error saves no end-of-turn snapshot), missing the state after a turn's step, or holding an entry that is not a snapshot gets the same `WorldModelReplayError`, never a match ([`orchestrator/index.ts`, lines 2259 to 2298](https://github.com/framerslab/paracosm/blob/64cfada097c39d07928f7749cbc1bf8363712ed7/src/runtime/orchestrator/index.ts#L2259-L2298)).

A run saved before the turn loop kept the after-step snapshots holds end-of-turn snapshots only, each taken after its turn's decisions, outcomes and drift. Replay cannot tell the step's work from the decisions' in them, so it does not compare: `wm.replay` throws a `WorldModelReplayError` that says it cannot verify the run, and the server answers 422 `replay_preconditions_unmet` with that message and records no result ([`orchestrator/index.ts`, lines 2179 to 2184 and 2252 to 2253](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/runtime/orchestrator/index.ts#L2179-L2253); [`routes/platform-api.ts`, lines 206 to 220](https://github.com/framerslab/paracosm/blob/2f1ad72777fe2ffca5dcabeb30a00565485c3bc9/src/server/routes/platform-api.ts#L206-L220)). The hosted Atlas Lab run of 2 November 2026 kept in the tests is one: its second snapshot holds 0.71 `alignmentBench` where its first holds 0.73, a change its turn 2 decisions made, since no between-turn step writes that key. Before the fix for issue [#235](https://github.com/framerslab/paracosm/issues/235), replay compared such runs and reported a mismatch at their second snapshot that the kernel did not cause.

## What does a shared link do?

A link of the form `paracosm.agentos.sh/sim?replay=<sessionId>` plays back a stored run. It does not run anything again.

The dashboard reads the `replay` parameter ([`App.tsx`, lines 145 to 164](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/dashboard/src/App.tsx#L145-L164)), checks that the session exists with `GET /sessions/<id>`, and opens `/sessions/<id>/replay` ([`useSSE.ts`, lines 505 to 538](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/dashboard/src/hooks/useSSE.ts#L505-L538)). That endpoint streams back the events the live run broadcast, word for word: at once by default, or at the recorded pace with `?speed=1` ([`server-app.ts`, lines 2753 to 2809](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/server/server-app.ts#L2753-L2809)). It runs no kernel and calls no model, so every viewer sees the same run and it costs nothing.

The server saves a finished run on its own, unless the run was aborted, hit an error or stopped short of its turns ([`server-app.ts`, lines 1140 to 1260](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/server/server-app.ts#L1140-L1260)). It keeps the 10 newest saved runs and deletes the oldest past that ([`stores/session.ts`, lines 29 and 287 to 297](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/server/stores/session.ts#L287-L297)). A link to a deleted run shows a "not found" banner.

A link with `?load=<url>` is a different thing: it loads a run saved as a JSON file from that address. When the address is on another site, the dashboard first asks whether to load a run from that site, naming it, and fetches nothing until the visitor chooses Load.

## What does a fork reuse, and what does it generate fresh?

A fork starts a new branch from the end of one turn of a saved run, with one leader, often a different one. The dashboard's Reports tab has a fork button on each turn; the library call is `wm.forkFromArtifact(artifact, atTurn)` ([`world-model/index.ts`, lines 580 to 614](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/world-model/index.ts#L580-L614)).

Reused from the trunk, without rerunning it: the kernel snapshot at the end of that turn. That is every person (age, health, dose, bone density, psych, department, partner, and the memory, stances and relationships their reactions left), the colony's numbers, the event log, the seed the dice are keyed by, and the kernel's own stream ([`kernel.ts`, lines 369 to 414](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/kernel.ts#L369-L414)). The fork runs from the next turn on ([`orchestrator/index.ts`, lines 655 to 675](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L655-L675)).

Generated fresh, with model calls: every turn after the fork. That means the Event Director's events (on Mars the last turn's event stays the scenario's), the department reports, the new leader's choices and the reactions. A department whose head is alive keeps them; the new leader names a head only for an empty seat ([`commander-setup.ts`, lines 281 to 324](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/commander-setup.ts#L281-L324)). The toolbox of forged tools, the departments' memory of earlier turns and the Event Director's list of earlier events start empty ([`orchestrator/index.ts`, lines 728, 940 and 967](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L728)). A fork gets no verdict: the Branches tab compares it with its parent.

The seed on a fork: each person's dice stay keyed by the trunk's seed, which the snapshot carries. The fork dialog's seed (the trunk's, unless you set an override) keys the events' outcome draws and noise ([`ReportView.tsx`, line 241](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/dashboard/src/components/reports/ReportView.tsx#L241)). An override changes the luck of the events and leaves the people's dice as they were.

Reports waits for the server's limits before offering a fork and checks them again when the dialog opens. If the check fails, Fork stays disabled while Reports retries. If a new limit leaves no turns after the selected year, choose an earlier year.

An intervention, here, is a custom event you add in the fork dialog, as `turn: title: description`, one event per line. In Reports, the dialog accepts events from the turn after the fork point through the final turn. A fork from Reports sends no provider key, so on the hosted demo it runs on the host's keys under the demo's limits: its final turn is the smaller of the parent's final turn and the demo's turn cap, and each turn keeps only its first custom event. The dialog explains each malformed or out-of-range line, and on the hosted demo each later line for a turn that already has an event, and disables Fork until you fix or remove those lines. The run appends each event as a "USER EVENT" line to the text of that turn's events, for the models to read ([`runtime-helpers.ts`, lines 46 to 68](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/util/runtime-helpers.ts#L46-L68)). The kernel does not read it: it moves a number only through what the leader then chooses. The Digital Twin's interventions are a separate feature.

## Why can two leaders on one seed lose the same people?

Because both colonies start with the same people, and each person the two colonies began with rolls the same dice under both leaders while they stay on both rosters, so that person's fate differs only where the two colonies give them different chances. In colonies alike in department heads, food and psych, those chances differ only through the supplies and the dose, and a small difference between the colonies moves them a little.

With a die a year (Atlas Lab, Q-Scope Corp, the Dual Superintelligence Council and the Digital Twin), a die kills a person when it falls under that person's hazard for that year, and a person dies under one leader and lives under the other only when one of their yearly dice falls between the two colonies' hazards for them in that year; a die seldom falls between two chances that close. With a die for life (Mars Genesis, since [issue #243](https://github.com/framerslab/paracosm/issues/243), and Lunar Outpost, the deep-ocean station and every scenario compiled from a prompt, since [issue #257](https://github.com/framerslab/paracosm/issues/257)), every year's chance counts toward one number, the person's chance of having survived the cause so far, so two colonies that give a person different chances record that person's death in different years wherever that number falls to their die in a different year. The person dies under one leader only where their die lies between the two colonies' chances of having survived that cause to the run's last year. The yearly hazards and what each reads ([`progression.ts`, lines 254 to 370](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/src/engine/core/progression.ts#L254-L370)):

| Cause | Opens when | What a leader's choices move |
|---|---|---|
| Natural | age 60 and over; the rate divides by the colony's supply level | the supply level: life-support capacity, water, power, pressurized volume and habitat modules against what the colony landed with, which outcomes and adopted effects move |
| Accident | age 18 and over; the rate depends on the department and divides by the supply level | which department a person heads, through the leader's choice of heads, and the supply level, as for natural deaths |
| Starvation | under 1 month of food | food; the live Mars pair below held 19 to 74 months at its turn ends |
| Despair | psych under 0.2, age 18 and over | psych, through morale; in the live pair below morale sat at 1, its ceiling, from turn 3 on |
| Fatal fracture | bone density under 60 percent, age 40 and over | nothing on Mars: bone density stops at 90 percent of a person's start, 94 for the Mars-born |
| Radiation cancer | a dose above 0.5 Sv, age 30 and over | the dose, through habitat modules |

So on Mars, at the states runs reach, a leader reaches who dies through the colony's supplies, through the dose, and through whom they name as department heads. Pull request [#225](https://github.com/framerslab/paracosm/pull/225) (closing issue [#221](https://github.com/framerslab/paracosm/issues/221)) changed the shielding: each habitat module keeps out a fifth of the dose the modules before it let through, so the colonists take `0.8 ^ modules` of the surface dose, with no stop ([`mars-radiation-bone.ts`, lines 23 to 36](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/physics/mars-radiation-bone.ts#L23-L36)). The old curve stopped at 4.5 modules, so two colonies above that took the same dose. The pull request's CI sweep over 61 seeds, with each colony's modules held fixed: colonies one module apart, from 5 against 6 up to 11 against 12, lost different people on 9 to 26 of the 61 seeds; 5 against 11 on 55; two colonies with the same habitat on none.

The live pair after that change lost the same people again. On 10 November 2026, on version 0.9.1095, seed 950 with Aria Chen against Dietrich Voss (6 turns of 8 years, at the hosted demo's cap of 30 people and 3 departments), both colonies lost the same 18 people in the same turns, of the same causes ([issue #234](https://github.com/framerslab/paracosm/issues/234)):

- Habitat modules at each turn's end: Aria Chen 4, 4, 4, 4, 4, 5; Dietrich Voss 4, 4, 4, 7.38, 9.79, 10.79.
- A turn's deaths come from the between-turn step at its start, which reads the state the previous turn left ([`orchestrator/index.ts`, line 1124](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L1124)). So the doses first differed in the years of turn 5, 2059 to 2067.
- The three radiation deaths fell in turns 2 to 4, while both colonies held 4 modules.
- When the doses parted, the hazards stayed close. In 2071 Sven Kim held 3,606 mSv under Aria Chen and 2,891 mSv under Dietrich Voss: a radiation hazard of 1.24 percent a year against 0.96. No die fell between two such hazards.
- Both leaders named the same three department heads, so the accident rates matched.
- Morale ended at 1 in both colonies from turn 3 to turn 6 and was never under 0.87 at a turn's end. Births and partnerships read morale only against a level: births above 0.4 with more than 6 months of food, partnerships above 0.35 ([`progression.ts`, lines 621 and 683 to 684](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L621-L684)). Both colonies stayed above those levels, so the base birth rate matched, and births matched turn by turn. Pull request [#240](https://github.com/framerslab/paracosm/pull/240) (closing issue [#226](https://github.com/framerslab/paracosm/issues/226)), merged after this run, eases a morale gain above 0.9 so that no gain reaches 1.

The two colonies did end apart: Dietrich Voss held 74.3 months of food against 53.19 and 10.79 modules against 5, and won the verdict. On that version, two Mars leaders who named the same department heads reached who died only through the dose, and only from the turn after their module counts parted. The water, life support, power and pressurized volume the two leaders moved apart fed no death rate.

Pull request [#242](https://github.com/framerslab/paracosm/pull/242) (closing issue [#234](https://github.com/framerslab/paracosm/issues/234)) makes the natural and accident rates read the colony's supplies. Mars Genesis marks five as sustaining its people: life-support capacity, water, power, pressurized volume and habitat modules ([`mars.json`, lines 224 to 303](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/scenarios/mars.json#L224-L303)). The kernel keeps what each holds on landing day ([`kernel.ts`, lines 296 to 308](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/src/engine/core/kernel.ts#L296-L308)). The colony's supply level is the geometric mean of each supply's amount against that, and both rates divide by it, held within a half and double ([`progression.ts`, lines 274 to 308](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/src/engine/core/progression.ts#L274-L308)). A colony that never moves a supply runs as it did before. Measured in CI with each side's metrics held at the live pair's turn-end values, on #242's kernel ([run 42808038600](https://github.com/framerslab/paracosm/actions/runs/42808038600/job/129802143566)) and with the one death die for a life that Mars Genesis keeps since issue #243 (below; [run 42847089724](https://github.com/framerslab/paracosm/actions/runs/42847089724/job/129937378091), on that kernel):

- At seed 950, with the pair's three department heads, Aria Chen's colony loses the same 18 and Dietrich Voss's 16 on #242's kernel: Sol Tanaka and Sofia Kim die only under Aria Chen. With a die for life, 19 and 14: Bruno Morales, Bruno Nkomo, Chen Osei, Sol Osei and Tomas Ahmad die only under Aria Chen.
- Over 61 seeds (950 and 1 to 60), the two dead sets differ in 57 on #242's kernel, against 23 before it, and in 58 with a die for life. On the turn-end values of the earlier live pair of 8 November 2026, the same two leaders on the same seed, they differ in 60, against 56 before it, and in 59 with a die for life.
- A pair a fifth under and a fifth over landing day in one of life support, water, power or pressurized volume, alike in everything else, differs in 23 of 61 seeds on #242's kernel and in 28 with a die for life; all four together, in 55 and 58.
- Food, morale and science output, each held apart alone, differ in none on either kernel: at those states they reach no death rate.

Each person the colonies began with still keeps the same dice under both leaders while they stay on both rosters. Where one colony holds at least the other's habitat modules and supply level at every turn end, and the two are alike in everything else the death rates read (the same department heads, more than a month of food and psych above the despair range on both sides), none of the people the colonies began with, while they stay on both rosters, dies only in that colony, and on Mars Genesis, with a die for life, none of them dies earlier there. That covers no one else and no other difference: a founder who leaves one roster only can still die on the other, a food store under a month, morale held low or a head named into another department opens a death on one side only, and a child born on one side only changes the ids, and so the dice, of the children born after it in that turn ([`progression.ts`, line 778](https://github.com/framerslab/paracosm/blob/1e10f255584d85573175b8ca836cce31618bfebd/src/engine/core/progression.ts#L778)).

A third live pair, on 10 November 2026 at about 14:10 UTC on version 0.9.1097, with the supply level in the rates, again lost the same 16 people under both leaders, each of the same cause in the same year ([issue #243](https://github.com/framerslab/paracosm/issues/243)). Both colonies built above their landing supplies: the supply factor at each turn's end was 0.917, 0.884, 0.846, 0.788, 0.691 and 0.645 under Aria Chen, and 0.864, 0.808, 0.696, 0.625, 0.615 and 0.581 under Dietrich Voss. The factor lowered the rates on both sides, so Sol Tanaka and Sofia Kim, whom the pair of [issue #234](https://github.com/framerslab/paracosm/issues/234) lost, lived on both sides. Measured in CI on that pair's turn-end values ([run 42838479562](https://github.com/framerslab/paracosm/actions/runs/42838479562) and [run 42847075076](https://github.com/framerslab/paracosm/actions/runs/42847075076)):

- The kernel reproduces the live run on both sides: with each side's department heads, the same 16 people in the same years of the same causes, and the same births a turn.
- The chances were apart. Summed over the 1,360 years of life the two colonies' people share, the two sides' yearly chances of death differ by 2.58: on average, that many of the yearly dice would fall between them (1.05 of age, 1.14 of radiation and 0.38 of accident). None did.
- At seed 950, with a die a year, three dice decide every difference in who dies across the fifteen pairings of the six sides of the three recorded live pairs. Bruno Ito's radiation die in 2043 kills him where the colony ended turn 1 with under about 4.85 habitat modules; Sol Tanaka's accident die in 2059 kills him where the supply level after turn 3 is under 1.125; Sofia Kim's age die in 2071 kills her where the supply level after turn 5 is under 1.249. The pair of #243 held 4 modules on both sides after turn 1, supply levels of 1.18 and 1.44 after turn 3, and 1.45 and 1.63 after turn 5: on the same side of all three.
- Seed 950 is sparse in such dice. Between supply factors of 0.55 and 0.95, where the recorded sides acted, it holds 2 age and accident dice that would change a fate, against a mean of 6.08 over the 61 seeds.
- Over the 61 seeds, with a die a year, the pair's turn-end values give different dead sets on 54; seed 950 is one of the 7 on which they tie.

So the supply level works as written, and a death decided one year at a time, each year on a fresh die, showed the colonies' better years only where one of those dice landed in a narrow gap. Since issue #243, Mars Genesis keeps one death die for a life (`setup.mortalityDice: "life"` in `mars.json`). Each person has one die for each cause, keyed by the seed, the person and the cause, for as long as they live. Each year multiplies the person's chance of having survived the cause by one minus that year's chance, and the person dies of it in the year that product falls to the die ([`progression.ts`, lines 642 to 654](https://github.com/framerslab/paracosm/blob/2423aeac13a393df014ca07d914cecaa22c01074/src/engine/core/progression.ts#L642-L654)). Given that a person has lived to a year, their chance of dying in it is that year's chance, as before, so every rate stays and a run's deaths keep their chances: over seeds 1 to 600, a Mars colony nobody leads loses 20.52 people a run with a die for life and 20.43 with a die a year (standard error 0.11 each). Measured on the six recorded sides' turn-end values ([run 42847075076](https://github.com/framerslab/paracosm/actions/runs/42847075076)):

- The pair of #243 at seed 950, with its heads: Aria Chen's colony loses 13 and Dietrich Voss's 12. Tariq Andersen (radiation cancer, 2073) dies only under Aria Chen, and 11 of the 12 they share die 1 to 5 years later under Dietrich Voss (Olga Bakker in 2061 and 2062, Yuki Cruz in 2063 and 2068, Dr. Priya Singh in 2066 and 2071).
- The death records (who dies, the year and the cause) differ on 61 of 61 seeds in every one of the fifteen pairings of the six sides, against 46 to 61 with a die a year.
- In each of the three live pairs, with no department heads named, no founder dies earlier, or only, under Dietrich Voss on any seed: his colony held at least Aria Chen's habitat modules and supply level at every turn end in all three.
- Two colonies that build alike, one holding each of the five supplies 2 percent above the other at every turn end, record different deaths on 60 of 61 seeds (13 and 18 with a die a year); 1 percent above, on 57 and 52 (7 and 10).

What the change does not do is make the dead sets differ more often. On the three live pairs' turn-end values they differ on 60, 58 and 52 of 61 seeds, against 60, 57 and 54 with a die a year, so a single live pair can still lose the same people on both sides. How often two colonies lose different people is a rate, and on the fifteen pairings measured it follows one number: n, how many people die under exactly one of the two in a run, on average over seeds. The dead sets differ on a share of seeds near `1 - e^(-n)` (within 0.06 for all fifteen pairings): one person a run gives 63 percent, two give 86, three give 95. With a die a year the live pairs sit at 2.1 to 3.6 such people a run, and their dead sets differ on 54 to 60 of 61 seeds (52 to 60 with a die for life). Among the fifteen pairings with a die a year, those whose dead sets differ on 95 percent of seeds or more have 2.79 to 4.84 such people a run, about three or more, a fifth of the 13 to 18 people a colony loses. That is an observation on these pairings, not a law: a pair that lost exactly one person under one side only on every seed would differ on every seed with n of 1. Two colonies that give everyone the same chances record the same deaths.

So the two checks are these. In CI, `tests/engine/mars-death-records-read-the-chances.test.ts` holds the recorded pairs: death records that differ on at least 60 of 61 seeds in each pairing of an Aria Chen side with a Dietrich Voss side, dead sets that differ on at least 48 of 61 for each live pair, and no founder who dies earlier, or only, in the colony that held more. On one live pair, the check is the death records: some person dies under one leader only or in a different year, and where one side held at least the other's habitat modules and supply level at every turn end, no founder the paragraph above covers (in the same department on both sides, with more than a month of food and psych above the despair range on both) dies earlier, or only, on that side. Identical death records on one pair are not a verdict on the kernel. The supplies the last turn ends with act on no year, and two colonies one of which held each of the five supplies 2 percent above the other's at every turn end still record the same deaths on 1 seed in 61. A pair that ties although one side held each of the five supplies at least 2 percent above the other's at every turn end but the last is worth a look: add its turn-end values to the test file as a recorded pair and read its death records over the 61 seeds in CI. Closer than that, or apart at some turn ends only, the two leaders built colonies too close for one pair to tell apart. Whether that pair's dead sets differ is reported, and not judged on one pair.

## Why did the two demo leaders choose alike, and what makes them differ?

In three live Mars Genesis pairs on the hosted demo (8 November 2026 at 06:06 UTC, 10 November at 02:32 UTC and 10 November at 14:06 UTC; seed 950, Aria Chen against Dietrich Voss, 6 turns of 8 years, 30 people, 3 departments), the two leaders made 41 decisions and chose a safe option in 40 ([issue #248](https://github.com/framerslab/paracosm/issues/248)). Aria Chen ("The Visionary") took the bold option, the one the event marks risky, in none of her 19 decisions; Dietrich Voss ("The Engineer") took it in 1 of his 22. On the two events every Mars pair shares, "Landfall" and "Legacy Assessment", they chose the same option in all 6 slots.

The model decides from what its prompt says, and the two leaders' prompts said nearly the same:

1. The leader's profile reached a decision prompt through one line about drift and nothing else. The decision style went out once, before turn 1, and its cues fired only strictly above 0.7 or strictly below 0.3, so the presets' traits written at 0.30 and 0.70 were not heard.
2. The departments write their reports from the event's text and the state, without the options, and the prompt asked whether the reports converged. All 41 recorded reasons said they did. The one bold choice came on the one event where a report asked for the bold action.
3. The bold option came marked `[RISKY]` with no chance and no payoff. At those runs' states its chance was 57 to 80 in 100, and on the average multiplier it was the better choice in 37 of the 41 decisions.
4. Mars Genesis's own director instructions replaced the default ones, and only the default held the rules on writing a real trade-off. In the 29 events the director wrote, the bold option sat at `option_b` every time and read as skipping a safety step ("bypass" in 15 labels).
5. A leader's drift capped the outcome pull at 0.05 and then multiplied it by the turn's length, so one safe success on a Mars turn moved conscientiousness by 0.16. By turn 6 both leaders stood at 0.95 in conscientiousness, agreeableness and honesty-humility in all three pairs, and from turn 4 the drift line told the Visionary so.

The three pairs ran one model for the commander and the director, so they do not show how much of the caution is that model's own.

The fix for [issue #248](https://github.com/framerslab/paracosm/issues/248) changes what the model reads. The model still chooses.

- **Every decision prompt carries a decision rule** ([`commander-setup.ts`, lines 286 to 316](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/orchestrator/commander-setup.ts#L286-L316); [`orchestrator/index.ts`, lines 1567 to 1590](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/orchestrator/index.ts#L1567-L1590)). It states the bold option's chance and the safe options' chance, as the outcome step computes them; what the event gains is multiplied by (2.5, -2, 1 and -1) and what it costs is multiplied by (0, 4, 1 and 3) on a bold success, a bold failure, a safe success and a safe failure; and the leader's bar, the chance at or above which this leader takes the bold option. It says the reports were written without the options, and that the chances and multiples already include the dangers the event describes. It asks the commander to choose by its bar, and to depart from it only for a fact these odds do not count, written with its number in the reply's own `barDeparture` field. It states odds and a bar and does not pick the option.
- **The bar comes from the profile as it stands that turn** ([`commander-setup.ts`, lines 123 to 189](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/runtime/orchestrator/commander-setup.ts#L123-L189)). The appetite is `(openness + (1 - conscientiousness) + (1 - emotionality)) / 3`, and the bar is `4/7 + 0.8 * (0.5 - appetite)`, held within 0.1 and 0.9. At 4 in 7 the bold and a safe option gain the same on average, so a leader with no lean either way takes the bold option from there; on what the event costs the two are even at 2 in 3, and the prompt states that too. Aria Chen's preset reads a bar of 36 in 100, Dietrich Voss's 82.
- **The opening cues fire at 0.7 and above and at 0.3 and below** ([`commander-setup.ts`, lines 55 to 83](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/runtime/orchestrator/commander-setup.ts#L55-L83)).
- **One turn moves a leader's trait at most 0.05**: the pull is scaled by the turn's length and then capped ([`progression.ts`, line 148](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/engine/core/progression.ts#L148)). A department head's drift is unchanged.
- **Every scenario's director receives the trade-off rules**, after its own instructions where it has them, with the rule that the bold option is a bet on a larger gain and never the omission of a safety step ([`director.ts`, lines 131 to 159 and 278 to 283](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/runtime/orchestrator/director.ts#L131-L159)).
- **The director prints full morale as 100%.** It printed "morale: 1", and in the first two pairs 14 of the 18 director events described a colony at full morale as at 1, "1/10" or "1/100".

The first live pair with the rule ran on 11 November 2026 at 07:39 UTC, on version 0.9.1101, with the same body and seed ([issue #250](https://github.com/framerslab/paracosm/issues/250)). Every reason of both leaders names the bar. Dietrich Voss took the bold option on none of his 7 events, each time because its chance (60 to 80 in 100) was under his bar (82, then 81). The two chose differently on "Landfall", where Aria Chen took the bold option, and her conscientiousness ended turn 6 at 0.55. On her other 5 events Aria Chen refused her own bar. Her prompts stated the bold option's chance at 65 to 72 in 100 and her bar at 36 to 41; she said the chance cleared the bar and chose a safe option, on 4 of them for a danger the event described ("cumulative toxicity already manifesting", "a large downside tail", a life-support margin), and on the last ("Legacy Assessment") saying she followed her bar. The departure line, "Depart from it only for a reason that belongs to this event", let any danger the event described count as such a reason, though a bold failure is that danger and the rule states its chance and its multiples beside it.

The fix for [issue #250](https://github.com/framerslab/paracosm/issues/250) changes that line and nothing in the bar's arithmetic or the payoffs:

- **The rule says the odds already count the event's dangers** ([`commander-setup.ts`, lines 286 to 316](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/orchestrator/commander-setup.ts#L286-L316)): a bold failure is the danger the event describes, its chance is stated, and it multiplies what the event gains by -2 against -1 for a safe failure and what it costs by 4 against 3. Mars's tables hold gains only, so there a bold failure loses twice what the event would have gained, against once for a safe failure. So a danger the event describes, a downside tail or the cost of failing is not a reason to depart from the bar.
- **It says what following the bar means**: the bold option when its chance is at least the bar, a safe option when under. Point (4) of the reasoning asks for both numbers and a yes or no before the choice ([lines 434 to 462](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/orchestrator/commander-setup.ts#L434-L462)).
- **A departure names a fact these odds do not count, in its own field**: a supply in the State line too low to take a bold failure, with its number and what it falls short of, or something an option needs that the colony lacks, written in the reply's `barDeparture` field ([`validators/commander.ts`, lines 16 to 27](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/validators/commander.ts#L16-L27)).
- **Each reply is checked against the numbers its prompt stated** ([`checkBarDeparture`, lines 351 to 372](https://github.com/framerslab/paracosm/blob/06b4149d0b44bd3719faee70c4443e941bba4b2a/src/runtime/orchestrator/commander-setup.ts#L351-L372)). The decision record carries the check, and the artifact counts the run's decisions that followed the bar, departed, and departed with no fact named (`paracosmInternal.barChecks`). A departure with no fact stands as the commander's choice: it is flagged and counted, not overridden or retried. On the 11 November replies the check flags Aria Chen's 5 departures and none of Dietrich Voss's 7 decisions (`tests/runtime/leader-decision-rule.test.ts`).

The second live pair with the rule ran on 11 November 2026 at 08:40 UTC, on version 0.9.1102 with the fix for #250, with the same body and seed ([issue #252](https://github.com/framerslab/paracosm/issues/252)). Dietrich Voss followed his bar on all 6 decisions. Aria Chen took the bold option on "Landfall" only: on turns 2 to 6 her prompts stated the bold option's chance at 65 to 70 in 100 and her bar at 36 to 41, she answered that the chance cleared her bar, chose a safe option and left `barDeparture` empty, and her run's `barChecks` read 6 decisions, 1 followed, 5 departed with no fact named. So in two live pairs with the commander on GPT-5.4 nano, the smaller model, the leader stated that her bar was cleared and chose safe on 5 of her 6 events.

One pair at 08:51 UTC the same day, on the same version, body and seed, moved the commander alone to GPT-5.4 mini. It followed the bar on all 12 decisions: Aria Chen took the bold option on 6 of 6 and Dietrich Voss on 0 of 6, and `barChecks` read 6 followed and 0 departed on both sides. That is one pair on one seed. It cost $0.7043, of which the commander $0.0889; the two pairs on GPT-5.4 nano cost $0.6420 and $0.6380, of which the commander $0.0292 and $0.0265.

- **The hosted demo runs the commander on GPT-5.4 mini** ([`sim-config.ts`, lines 324 to 341 and 545 to 593](https://github.com/framerslab/paracosm/blob/9d6627b83c2f67ced6c1a8179eb2addaa848366f/src/cli/sim-config.ts#L324-L593)). The Event Director and agent reactions stay on GPT-5.4 nano, and the departments, the tool judge and the verdict on GPT-5.4 mini. A caller with an API key of its own, and the CLI, get the models they got before.
- **A departure field names a fact only with a number its decision rule did not print** ([`commander-setup.ts`, lines 238 to 258 and 357 to 414](https://github.com/framerslab/paracosm/blob/fb7948898d3461fb7d58421b4da34ea7e25a7532/src/runtime/orchestrator/commander-setup.ts#L238-L414)). The check reads the numbers from the rule block itself: the two chances, the bar, the two break-even chances, the multiples, the trait values, and each chance written as a fraction (65 in 100 as 0.65). A field that opens with a placeholder or says the bar is followed names a fact when it writes a number outside those: "I follow my bar (41)" and "None (0.65 >= 0.41)" name none, and "None: 9 spare cartridges" names one. A number the rule prints names no fact even as a supply: the rule prints the cost multiple 0, so "None: 0 spare cartridges" names none. A hyphen after a number, "%" or "/100" joins a range ("41/100-65/100"), and one after a space opens a negative number. A field that opens any other way is kept as written.

## Is that true of every scenario, or only of Mars?

Of the scores, in every scenario the repository bundles and in the scenarios its tests compile from a seed draft. Of the death records (who dies, when and of what), only where people die: on every seed on Mars Genesis, which loses about 19 people a run of 30, and on 23 and 26 of 61 seeds on Lunar Outpost and the deep-ocean station at their own size, which lose about one person a run of 50 with nobody leading.

[`tests/runtime/scenario-leaders-end-differently.test.ts`](https://github.com/framerslab/paracosm/blob/5e28750b85e0b5297a80ad4a554d04b95c84ee3d/tests/runtime/scenario-leaders-end-differently.test.ts) measures it in CI. It drives each scenario's kernel over 61 seeds (950 and 1 to 60) with two decision streams and no model call: one always takes an event's bold option, the other always a safe one. The event of a turn is the scenario's own milestone where it has one, and otherwise a stand-in for the director's event, with a category drawn from the scenario's own tables and a chance of 0.5; each outcome is drawn and applied as the turn loop draws and applies it. So the two streams differ in the option alone, on every turn. The counts measure these two streams and bound no live pair. A live pair differs in its events, its adopted effects and its department heads as well, and may choose alike on some turns, so it can end apart on more seeds or on fewer. A pair that chooses differently on its last turn alone records the same deaths: a turn's deaths fall when the kernel advances it, before its outcome is applied, and no turn follows the last ([`orchestrator/index.ts`, lines 1144 and 1683](https://github.com/framerslab/paracosm/blob/c2db3f5adf8ba91a11c5ba2e38f058a18064a09e/src/runtime/orchestrator/index.ts#L1144-L1683)). The hosted shape is at most 30 people and 6 turns ([`sim-config.ts`, lines 370 and 392](https://github.com/framerslab/paracosm/blob/e70e4f8812d533fe358b278254a120d2fc6973e5/src/cli/sim-config.ts#L370-L392)).

Seeds of 61 on which the two streams end apart ([CI run 43061258861](https://github.com/framerslab/paracosm/actions/runs/43061258861/job/130664143877) for Lunar Outpost and the deep-ocean station, on the scenario files of commit `5e28750b`; [CI run 43217871316](https://github.com/framerslab/paracosm/actions/runs/43217871316/job/131181611697) for the two compiled scenarios, on commit `5bf4dbdd`; [CI run 43060543910](https://github.com/framerslab/paracosm/actions/runs/43060543910/job/130661614497) for the rest):

| Scenario | People x turns | Years the run spans | A declared score | Death records | Dead sets | Deaths a run, bold / safe |
|---|---|---|---|---|---|---|
| Mars Genesis | 30 x 6 | 40 | 61 | 61 | 35 | 19.39 / 19.43 |
| Lunar Outpost | 30 x 6 | 5 | 61 | 9 | 6 | 0.56 / 0.43 |
| Lunar Outpost, its own size | 50 x 8 | 7 | 61 | 23 | 12 | 1.44 / 0.98 |
| Deep-ocean station | 30 x 6 | 5 | 61 | 17 | 14 | 1.64 / 0.62 |
| Deep-ocean station, its own size | 50 x 8 | 7 | 61 | 26 | 19 | 4.95 / 1.28 |
| Atlas Lab | 30 x 6 | 0.417 | 61 | 0 | 0 | 0.07 / 0.07 |
| Q-Scope Corp | 30 x 6 | 1.25 | 61 | 3 | 3 | 0.16 / 0.15 |
| Dual Superintelligence Council | 30 x 6 | 0.417 | 61 | 1 | 1 | 0.08 / 0.07 |
| Digital Twin | 1 x 6 | 0.192 | 61 | 0 | 0 | 0 / 0 |
| a scenario compiled from a seed draft that declares two scores and nothing more about them | 20 x 4 | 0.75 | 61 | 0 | 0 | 0.08 / 0.08 |
| a scenario compiled from a draft a model returned for an AI lab, with seven scores | 30 x 6 | 1.25 | 59 | 0 | 0 | 0.15 / 0.15 |

What each scenario declares:

- Mars Genesis, Lunar Outpost and the deep-ocean station mark the supplies that sustain their people (`"sustains": true`) and keep one death die for a life (`setup.mortalityDice: "life"`). Mars Genesis and Lunar Outpost mark life-support capacity, water, power, pressurized volume and habitat modules ([`mars.json`, lines 224 to 303](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/scenarios/mars.json#L224-L303); [`lunar.json`, lines 224 to 303](https://github.com/framerslab/paracosm/blob/5e28750b85e0b5297a80ad4a554d04b95c84ee3d/scenarios/lunar.json#L224-L303)); the station marks power and its oxygen reserve ([`submarine.json`, lines 334 to 363](https://github.com/framerslab/paracosm/blob/5e28750b85e0b5297a80ad4a554d04b95c84ee3d/scenarios/submarine.json#L334-L363)). The station's hull is not marked: it starts at its ceiling of 100, so it could only pull the supply level down. No food store is marked: the starvation rate already reads food, and food moves with nobody leading, so a mark would change a habitat nobody leads.
- Atlas Lab, Q-Scope Corp, the Dual Superintelligence Council and the Digital Twin mark none and keep a die a year.
- A scenario compiled from a prompt keeps one death die for a life: the compiler writes `setup.mortalityDice: "life"` on every compile ([`seed-draft-world.ts`, lines 671 to 673](https://github.com/framerslab/paracosm/blob/b495ab2287bd5bb72660043d215e6a09be25c608/src/engine/compiler/seed-draft-world.ts#L671-L673)). It marks a supply only where its draft marks one and the mark passes seven rules, and none by default ([`sustainsVeto`](https://github.com/framerslab/paracosm/blob/b495ab2287bd5bb72660043d215e6a09be25c608/src/engine/compiler/seed-draft-world.ts#L195-L310); [docs/ARCHITECTURE.md](ARCHITECTURE.md#mortality) lists the rules). A mark is dropped, with its reason, on the head count or morale, on a share, a score or money, on a score that is better lower, on a value that does not start above 0, on a value none of the draft's first eight tables names (the ones a compile keeps), in a scenario whose default run spans under five years, and as a sixth mark. The two compiled scenarios in the table mark none. A scenario compiled before this keeps a die a year and no mark until its prompt is compiled again.

Who dies is a rate, and a rate needs deaths. Mars Genesis spans 40 years and loses about 19.4 people a run of 30, so its two streams record different deaths on every seed. Lunar Outpost and the station span 5 to 7 years. With nobody leading, a run of either loses about one person of 50 over its 8 turns (1.223 and 1.245 a run over seeds 1 to 600) and about half a person of 30 over 6 turns (0.512 and 0.500) ([CI run 43059265960](https://github.com/framerslab/paracosm/actions/runs/43059265960/job/130657068523)). So, marked and with a die for life, two opposite Lunar leaders still lose the same people, or nobody, on 49 of 61 seeds at its own size and on 55 at the hosted shape, and two station leaders on 42 and 47. Before the marks and the die, the death records differed on 1 and 13 of 61 at their own size. No setting raises that further without raising how many people die.

Atlas Lab, Q-Scope Corp, the council and the Digital Twin run 10 weeks to 15 months at the hosted shape and lose 0 to 0.16 people a run of 30; the Digital Twin's one patient died on none of the 61 seeds. Their outcome is their scores, and the two streams end them apart: of 61 seeds, Atlas Lab's alignment benchmark differs on 61 and its release readiness on 60, Q-Scope Corp's morale on 61 and its burn rate on 60, the council's deployment risk and cohesion on 59 each, and the Digital Twin's BMI, quality of life and fasting glucose on 60 each ([CI run 43059265960](https://github.com/framerslab/paracosm/actions/runs/43059265960/job/130657072332)).

A scenario compiled from a prompt or a document holds the scores its draft declares, with category tables over them, so its leaders' choices reach those scores as they do in a bundled scenario. The guard compiles three seed drafts with the real `compileFromSeed` on a stub model that answers with the draft ([`stub-model-compile.ts`](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/tests/engine/compiler/helpers/stub-model-compile.ts)): a draft that declares two scores and nothing more about them, which gets the compiler's default starts and three default tables; the same draft with a start for each score and three tables of its own; and a draft a model returned for an AI lab, with seven scores and no start or table. A declared score ends apart on 61, 61 and 59 of 61 seeds ([CI run 43148058211](https://github.com/framerslab/paracosm/actions/runs/43148058211/job/130950466431)). Before this change a compiled scenario held the head count and morale alone, and a declared score ended apart on 0 of 61 ([CI run 43141563245](https://github.com/framerslab/paracosm/actions/runs/43141563245/job/130929515459)). [docs/ARCHITECTURE.md](ARCHITECTURE.md#what-a-scenario-compiled-from-a-prompt-declares) has what a compiled scenario declares, its defaults and the bounds on its tables. A compiled scenario also keeps one death die for a life and marks a supply only through the veto (issue [#257](https://github.com/framerslab/paracosm/issues/257); what each scenario declares, above). With the die, the three drafts end apart on the same 61, 61 and 59 seeds ([CI run 43217871316](https://github.com/framerslab/paracosm/actions/runs/43217871316/job/131181611697)). None of the three marks a supply, and their death records differ on no seed: the two orchard scenarios lose 0.08 people a run of 20 and the AI lab scenario 0.15 of 30, under either leader. With a die a year the orchard scenarios lost 0.03 a run ([CI run 43217798959](https://github.com/framerslab/paracosm/actions/runs/43217798959/job/131181366202), on master before the change): a person's chance in each step is the same either way, and who dies on a given seed changes with the dice.

A scenario compiled before this version holds the head count and morale alone, and keeps that until its prompt is compiled again, which gives it the scores it declares. A fork of a run saved under an earlier compile of the same id continues from that run's state, which holds those two numbers: a fork checks the scenario's id alone ([`fork-preconditions.ts`, lines 23 to 31](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/server/fork-preconditions.ts#L23-L31)), and the kernel drops a change to a score the run does not carry ([`kernel.ts`, line 670](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/engine/core/kernel.ts#L670)).

## Which numbers have a source, and which are the simulation's own?

The Mars numbers that decide deaths, and the numbers a scenario compiled from a prompt is given, with where each comes from. "The simulation's choice" means the code picked the value for legible stakes; it is not a measured value.

| Number | Value in the code | Source |
|---|---|---|
| Surface radiation dose | 0.67 mSv a day ([`mars.json`, line 338](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/scenarios/mars.json#L333-L340); [`mars-radiation-bone.ts`, line 21](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/physics/mars-radiation-bone.ts#L21)) | Curiosity's radiation detector: "an average GCR dose equivalent rate of 0.67 millisieverts per day from August 2012 to June 2013" ([Southwest Research Institute, 9 December 2013](https://www.swri.org/newsroom/press-releases/swri-scientists-publish-first-radiation-measurements-the-surface-of-mars)). The paper reports a dose equivalent rate of 0.64 ± 0.12 mSv a day (Hassler et al., Science 343, 2014, [doi:10.1126/science.1244797](https://doi.org/10.1126/science.1244797); summarized by [Reitz et al., 2016](https://elib.dlr.de/106090/1/ME-SBA-2016-Reitz_MSL-RAD_ICES_2016.pdf)). |
| Share of the dose each module keeps out | a fifth: the colonists take `0.8 ^ modules` of the surface dose | the simulation's choice |
| Radiation cancer hazard | 0.004 a year for each sievert above 0.5 Sv, from age 30 | the simulation's choice, slope, threshold and age alike. For scale, ICRP's nominal cancer risk coefficient for the whole population is 5.5 percent per sievert of dose received ([UK Health Protection Agency, HPA-CRCE-048, quoting ICRP 2007](https://assets.publishing.service.gov.uk/media/5a7e3c19ed915d74e6224fca/HPA-CRCE-048_for_website.pdf)); the simulation's rate applies again each year the dose stays above its threshold. |
| Natural death | 1, 3, 8 and 20 percent a year from ages 60, 70, 80 and 90, times the supply factor | the simulation's choice |
| Accident | 0.003 a year times the department's weight: engineering 1.5, medical 1.2, agriculture 1.0, science 0.9, psychology 0.6, governance 0.5; from age 18; times the supply factor | the simulation's choice |
| Supply factor | `1 / supply level`, held within 0.5 and 2; the level is the geometric mean of life-support capacity, water, power, pressurized volume and habitat modules, each against its amount on landing day ([`progression.ts`, lines 274 to 308](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/src/engine/core/progression.ts#L274-L308)); Lunar Outpost marks the same five, and the deep-ocean station power and its oxygen reserve | the simulation's choice: the exponent, the bounds, the mean and the supplies each scenario marks alike, Lunar Outpost's five and the station's two as much as Mars Genesis's five; none is a measured rate for a habitat |
| Starvation | `(1 - months of food) * 0.15` a year under 1 month of food | the simulation's choice |
| Despair | `(0.2 - psych) * 0.25 * (0.5 + emotionality)` a year under psych 0.2, from age 18 | the simulation's choice |
| Fatal fracture | `(60 - bone density) * 0.003` a year under 60 percent bone density, from age 40 | the simulation's choice |
| Bone loss | 0.5 percent of a person's start a year for the Earth-born, 0.3 for the Mars-born, for 20 years at most ([`mars-radiation-bone.ts`, lines 81 to 92](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/physics/mars-radiation-bone.ts#L81-L92)) | the simulation's choice |
| Food | 0.5 months eaten a year; each module grows 0.3 months a year ([`progression.ts`, lines 844 to 850](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/engine/core/progression.ts#L844-L850)) | the simulation's choice |
| What an outcome brings | the category tables in `mars.json` and the multipliers 2.5, 1, -1 and -2 | the simulation's choice |
| One death die for a life | Mars Genesis, Lunar Outpost, the deep-ocean station and every scenario compiled from a prompt declare `setup.mortalityDice: "life"`: one die for each person and cause, keyed by the seed, the person and the cause; the person dies in the year their chance of having survived that cause falls to it ([`progression.ts`, lines 642 to 654](https://github.com/framerslab/paracosm/blob/2423aeac13a393df014ca07d914cecaa22c01074/src/engine/core/progression.ts#L642-L654)) | the simulation's choice of how two runs keep the same dice; it adds no rate and no number. Comparing two systems on the same random numbers is the method of common random numbers: "if we compare two different systems with some random components it is in general better to evaluate both systems with the same realizations of the random components" ([Eindhoven University of Technology, course 2S540, lecture notes on variance reduction, section 7.1](https://resing.win.tue.nl/2S540/week6.pdf); [Variance reduction](https://en.wikipedia.org/wiki/Variance_reduction)). Reading one uniform number against the chance of having survived gives each death time its right chance: [inverse transform sampling](https://en.wikipedia.org/wiki/Inverse_transform_sampling). |
| Where a compiled score starts when its draft gives no start | 50 for a percent, held from 0 to 100; 100 for a number; 1,000,000 for a currency; 0.85 for a declared morale ([`seed-draft-world.ts`, lines 33 to 36](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/engine/compiler/seed-draft-world.ts#L33-L36)) | the simulation's choice |
| What a compiled scenario's default table brings | a twentieth of each score's scale, in the score's better direction; 1 for a count that starts empty ([lines 39 to 48](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/engine/compiler/seed-draft-world.ts#L39-L48)) | the simulation's choice |
| The most and the least a compiled table's entry may be | a twelfth and a hundredth of the score's scale, and never under 0.01 ([lines 41 to 46](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/engine/compiler/seed-draft-world.ts#L41-L46)) | the simulation's choice. The twelfth keeps the worst single decision, 5.81 times an entry, under half the score's scale; the hundredth is one unit on a start of 100, the smallest change the verdict prints there ([`verdict-scores.ts`, line 197](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/cli/verdict-scores.ts#L197)) |
| The categories of a compiled scenario whose draft lists fewer than three tables | `infrastructure`, `resource` and `psychological`, until it has three ([line 60](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/engine/compiler/seed-draft-world.ts#L60)) | the simulation's choice: the categories of the Event Director's three prepared events ([`director.ts`, lines 298 to 320](https://github.com/framerslab/paracosm/blob/302c33811427d96024625c3b94d1c67c7c3ef451/src/runtime/orchestrator/director.ts#L298-L320)) |
| The rules a supply marked in a compiled scenario must pass | seven: not the head count or morale; a plain quantity, not a share, a score or money; not better lower; a start above 0; named by one of the draft's first eight tables; a default run of 5 years or more; 5 marks at most ([`seed-draft-world.ts`, lines 73 to 80](https://github.com/framerslab/paracosm/blob/b495ab2287bd5bb72660043d215e6a09be25c608/src/engine/compiler/seed-draft-world.ts#L73-L80) and [195 to 310](https://github.com/framerslab/paracosm/blob/b495ab2287bd5bb72660043d215e6a09be25c608/src/engine/compiler/seed-draft-world.ts#L195-L310)) | the simulation's choice, the rules, the five years and the five marks alike; five is as many as Mars Genesis marks. No rule is a measured rate |
| The death dice of a compiled scenario | `setup.mortalityDice: "life"`, written on every compile whatever the scenario's length ([lines 671 to 673](https://github.com/framerslab/paracosm/blob/b495ab2287bd5bb72660043d215e6a09be25c608/src/engine/compiler/seed-draft-world.ts#L671-L673)) | the simulation's choice of how two runs keep the same dice, as in the row above; it adds no rate and no number |

The hazards are in [`progression.ts`, lines 254 to 370](https://github.com/framerslab/paracosm/blob/1e6090d3f210fd86906e48ab005e4b22524839ee/src/engine/core/progression.ts#L254-L370). [docs/ARCHITECTURE.md](ARCHITECTURE.md#mortality) has the full mortality model.

The leader's decision rule ([`commander-setup.ts`, lines 123 to 189](https://github.com/framerslab/paracosm/blob/e18ce8a359e9cd11b0d89a6bf98d8d8987590a66/src/runtime/orchestrator/commander-setup.ts#L123-L189)) has these numbers:

| Number | Value in the code | Source |
|---|---|---|
| The traits the appetite reads, and their directions | openness raises the appetite; conscientiousness and emotionality lower it | the simulation's choice |
| Their weights | a third each | the simulation's choice |
| Slope of the bar | 0.8: the bar moves 0.8 for each unit of appetite away from 0.5 | the simulation's choice; at 0.8 the two Mars presets' bars part on "Landfall", the bold option's chance there being 80 in 100 at the landing state |
| Bounds of the bar | 0.1 and 0.9, the range an option's chance takes | the simulation's choice |
| Centre of the bar | 4 in 7, where the bold and a safe option gain the same on average (on what an event costs they are even at 2 in 3) | not chosen: it follows from the multipliers 2.5, -2, 1 and -1 and the cost multiples `max(0, 2 - multiplier)`, which are the simulation's choice |

## What does a run cost, and what is free?

Free, because no model is called: replay, and a shared `?replay=` link.

Paid, because they call the model: a new run, a rerun of a seed, and a fork, which calls the model for every turn after the fork point. The fork dialog shows an estimate before you confirm.

Measured on the hosted demo: the Mars pair of 10 November 2026 (6 turns, 30 people, 3 departments, GPT-5.4 mini for the departments and the tool judge, GPT-5.4 nano for the rest) cost $0.6243 in 58 model calls for Aria Chen and $0.8191 in 65 calls for Dietrich Voss, $1.44 for the pair ([issue #234](https://github.com/framerslab/paracosm/issues/234)). The Mars pairs of 11 November 2026 (the same setup, the commander on GPT-5.4 nano) cost $0.6420 and $0.6380, of which the commander $0.0292 and $0.0265; the same pair with the commander on GPT-5.4 mini cost $0.7043, of which the commander $0.0889 ([issue #252](https://github.com/framerslab/paracosm/issues/252)). The verdict is one more call, on GPT-5.4 mini, outside those two figures ([`pair-runner.ts`, lines 195 to 216](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/cli/pair-runner.ts#L195-L216)). A 6-turn hosted Atlas Lab pair cost $0.7397 on 1 November 2026 ([`sim-config.ts`, lines 525 to 540](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/cli/sim-config.ts#L525-L540)). When you bring no API key of your own, the hosted demo runs GPT-5.4 mini for the commander, the departments, the tool judge and the verdict, and GPT-5.4 nano for the Event Director and agent reactions ([`economics-profile.ts`, lines 34 to 40](https://github.com/framerslab/paracosm/blob/9d6627b83c2f67ced6c1a8179eb2addaa848366f/src/runtime/economics/economics-profile.ts#L34-L40); [`sim-config.ts`, lines 324 to 341](https://github.com/framerslab/paracosm/blob/9d6627b83c2f67ced6c1a8179eb2addaa848366f/src/cli/sim-config.ts#L324-L341)).

The README's cost table gives estimates for 100 people and 5 departments on the default models. Each saved run's `cost` field reports its spend in US dollars and its number of model calls; it leaves the token counts empty ([`orchestrator/index.ts`, lines 2014 to 2020](https://github.com/framerslab/paracosm/blob/063c9ee6843c43c5285ac7f602f3f5790b4874f2/src/runtime/orchestrator/index.ts#L2014-L2020)).

## Does the same seed give the same run?

It gives the same start and the same dice. The run itself can differ.

Rerun a seed with the same scenario, setup (population, key personnel, start time, number of turns and time per turn) and leaders, and the roster starts the same, each person rolls the same dice, each event slot gets the same outcome draw, and Mars's first and last events are the same. Everything the model writes comes from new calls: the events of the middle turns, the reports, the choices, the reactions and the verdict. Those can differ, and once one choice differs, the colony's state differs, and the same dice can land on different fates. On Mars Genesis, Lunar Outpost and the deep-ocean station, which keep one death die for a life, a rerun whose model answers differ can change when people die as well as who: a different chance in any year can move the year a person's die comes due.

To see the same run again, open the stored run: its `?replay=` link, or its saved JSON file. To check the kernel's half of a saved run against today's code, use replay; a run saved before the turn loop kept the snapshots replay compares gets the answer that replay cannot verify it ([What does replay do?](#what-does-replay-do)).
