paracosm 0.9.1101 → 0.9.1102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/sim-config.d.ts.map +1 -1
- package/dist/cli/sim-config.js +29 -1
- package/dist/cli/sim-config.js.map +1 -1
- package/dist/engine/core/progression.d.ts +7 -3
- package/dist/engine/core/progression.d.ts.map +1 -1
- package/dist/engine/core/progression.js +8 -4
- package/dist/engine/core/progression.js.map +1 -1
- package/dist/engine/registries/effects.d.ts +15 -0
- package/dist/engine/registries/effects.d.ts.map +1 -1
- package/dist/engine/registries/effects.js +18 -2
- package/dist/engine/registries/effects.js.map +1 -1
- package/dist/engine/traits/drift.d.ts +4 -3
- package/dist/engine/traits/drift.d.ts.map +1 -1
- package/dist/engine/traits/drift.js +8 -7
- package/dist/engine/traits/drift.js.map +1 -1
- package/dist/runtime/orchestrator/commander-setup.d.ts +96 -4
- package/dist/runtime/orchestrator/commander-setup.d.ts.map +1 -1
- package/dist/runtime/orchestrator/commander-setup.js +152 -17
- package/dist/runtime/orchestrator/commander-setup.js.map +1 -1
- package/dist/runtime/orchestrator/director.d.ts +36 -1
- package/dist/runtime/orchestrator/director.d.ts.map +1 -1
- package/dist/runtime/orchestrator/director.js +67 -33
- package/dist/runtime/orchestrator/director.js.map +1 -1
- package/dist/runtime/orchestrator/index.d.ts.map +1 -1
- package/dist/runtime/orchestrator/index.js +17 -1
- package/dist/runtime/orchestrator/index.js.map +1 -1
- package/dist/runtime/util/scenario-state.d.ts +15 -0
- package/dist/runtime/util/scenario-state.d.ts.map +1 -1
- package/dist/runtime/util/scenario-state.js +30 -0
- package/dist/runtime/util/scenario-state.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @module paracosm/runtime/commander-setup
|
|
21
21
|
*/
|
|
22
|
-
import type { HexacoProfile } from '../../engine/core/state.js';
|
|
22
|
+
import type { HexacoProfile, WorldMetrics } from '../../engine/core/state.js';
|
|
23
23
|
import type { SimulationKernel } from '../../engine/core/kernel.js';
|
|
24
24
|
import type { ScenarioPackage, ActorConfig, ScenarioLabels } from '../../engine/types.js';
|
|
25
25
|
import type { CallUsage } from '../economics/cost-tracker.js';
|
|
26
|
-
import type { DepartmentReport } from '../contracts.js';
|
|
26
|
+
import type { CrisisOption, DepartmentReport } from '../contracts.js';
|
|
27
|
+
import { type TurnOutcome } from '../../engine/registries/effects.js';
|
|
27
28
|
/**
|
|
28
29
|
* Build a "Your decision style" block from the leader's HEXACO profile.
|
|
29
30
|
*
|
|
@@ -37,8 +38,10 @@ import type { DepartmentReport } from '../contracts.js';
|
|
|
37
38
|
* previously missing produce the sharpest additional divergence
|
|
38
39
|
* between Visionary + Engineer archetypes beyond openness alone.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
41
|
+
* A cue fires at 0.7 and above or at 0.3 and below, so a trait written
|
|
42
|
+
* at a pole is heard: the Mars presets were written at those poles (Aria
|
|
43
|
+
* Chen's emotionality 0.30, Dietrich Voss's extraversion 0.30 and
|
|
44
|
+
* emotionality 0.70), and strict comparisons left them silent.
|
|
42
45
|
*/
|
|
43
46
|
export declare function buildPersonalityCue(h: HexacoProfile): string;
|
|
44
47
|
/**
|
|
@@ -57,6 +60,87 @@ export declare function buildCommanderBootstrap(personalityCue: string, labels?:
|
|
|
57
60
|
* recommends one.
|
|
58
61
|
*/
|
|
59
62
|
export declare function buildEffectsBlock(reports: DepartmentReport[]): string;
|
|
63
|
+
/**
|
|
64
|
+
* How far a leader's appetite moves the bar for the bold option: the bar
|
|
65
|
+
* is the break-even chance plus this times (0.5 minus the appetite). The
|
|
66
|
+
* simulation's own choice. At 0.8 the two Mars presets' bars stand 0.46
|
|
67
|
+
* apart (36 and 82 in 100), and they part on "Landfall", the one event
|
|
68
|
+
* every Mars pair shares at turn 1 (its bold option's chance is 80 in 100
|
|
69
|
+
* at the landing state); at 0.6 the Engineer's bar is 76 and he would
|
|
70
|
+
* take it too.
|
|
71
|
+
*/
|
|
72
|
+
export declare const RISK_BAR_SLOPE = 0.8;
|
|
73
|
+
/**
|
|
74
|
+
* A leader's appetite for the bold option, from 0 (never takes it) to 1
|
|
75
|
+
* (always does): the mean of openness, one minus conscientiousness and one
|
|
76
|
+
* minus emotionality, the three axes the opening cues tie to risk. Equal
|
|
77
|
+
* weights are the simulation's own choice. Aria Chen's preset reads 0.767,
|
|
78
|
+
* Dietrich Voss's 0.193.
|
|
79
|
+
*/
|
|
80
|
+
export declare function riskAppetite(h: HexacoProfile): number;
|
|
81
|
+
/**
|
|
82
|
+
* What a cost (a harmful entry of a category table) is multiplied by on
|
|
83
|
+
* each outcome at no modifier, as the effect registry applies it
|
|
84
|
+
* ({@link costMultiple}): 0, 4, 1 and 3 for a risky success, a risky
|
|
85
|
+
* failure, a conservative success and a conservative failure.
|
|
86
|
+
*/
|
|
87
|
+
export declare const COST_MULTIPLES: Readonly<Record<TurnOutcome, number>>;
|
|
88
|
+
/**
|
|
89
|
+
* The bold option's chance at which it and a safe option come out even on
|
|
90
|
+
* average, for one set of outcome multiples. A safe option's chance is
|
|
91
|
+
* `(1 + p) / 2` where the bold option's is `p` (see `outcomeSuccessChance`),
|
|
92
|
+
* so with a bold success `rs`, a bold failure `rf`, a safe success `cs` and
|
|
93
|
+
* a safe failure `cf`, `p * rs + (1 - p) * rf = (1 + p) / 2 * cs + (1 - p) / 2 * cf`
|
|
94
|
+
* at `p = ((cs + cf) / 2 - rf) / (rs - rf - (cs - cf) / 2)`. On what an
|
|
95
|
+
* event gains (the multipliers 2.5, -2, 1 and -1) that is 4/7, the default
|
|
96
|
+
* and the centre of the bar; on what it costs ({@link COST_MULTIPLES}: 0, 4,
|
|
97
|
+
* 1 and 3) it is 2/3. Nothing is chosen here; the multiples fix it.
|
|
98
|
+
*/
|
|
99
|
+
export declare function breakEvenChance(m?: Readonly<Record<TurnOutcome, number>>): number;
|
|
100
|
+
/**
|
|
101
|
+
* The chance at or above which a leader of this appetite takes the bold
|
|
102
|
+
* option: the break-even chance on what an event gains for a leader with
|
|
103
|
+
* no lean (appetite 0.5),
|
|
104
|
+
* lower for a bolder leader and higher for a more careful one, by
|
|
105
|
+
* {@link RISK_BAR_SLOPE}, held within 0.1 and 0.9.
|
|
106
|
+
*/
|
|
107
|
+
export declare function riskBar(appetite: number): number;
|
|
108
|
+
/** What a decision's rule block is built from. */
|
|
109
|
+
export interface DecisionRuleArgs {
|
|
110
|
+
/** The leader's profile as it stands this turn. */
|
|
111
|
+
hexaco: HexacoProfile;
|
|
112
|
+
/** The event's options; the ones marked risky are the bold ones. */
|
|
113
|
+
options: ReadonlyArray<Pick<CrisisOption, 'id' | 'isRisky'>>;
|
|
114
|
+
/** The chance the event declares for its bold option. */
|
|
115
|
+
riskSuccessProbability: number;
|
|
116
|
+
/** The run's metrics now, which move that chance (see `outcomeSuccessChance`). */
|
|
117
|
+
metrics: WorldMetrics;
|
|
118
|
+
/**
|
|
119
|
+
* State the leader's bar. A leader on a trait model other than HEXACO
|
|
120
|
+
* has no appetite here, so it is shown the odds and the multipliers
|
|
121
|
+
* alone. Default true.
|
|
122
|
+
*/
|
|
123
|
+
withBar?: boolean;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The decision rule a commander reads for one event: the bold option's
|
|
127
|
+
* chance and the safe options' chance, as the outcome step's
|
|
128
|
+
* `outcomeSuccessChance` gives them for the run's metrics now; what a
|
|
129
|
+
* success and a failure multiply the event's gains by
|
|
130
|
+
* ({@link OUTCOME_MULTIPLIERS}) and its costs by ({@link COST_MULTIPLES}),
|
|
131
|
+
* as the effect registry applies them; the leader's bar for the bold
|
|
132
|
+
* option from the profile as it stands this turn ({@link riskBar}); that
|
|
133
|
+
* the department reports were written without the options; and the
|
|
134
|
+
* instruction to choose by the bar or to name the event's reason for
|
|
135
|
+
* departing from it. Whole numbers out of 100, rounded.
|
|
136
|
+
*
|
|
137
|
+
* The block states odds and a bar and picks nothing: the commander chooses.
|
|
138
|
+
* The outcome draw meets the chance after the adopted effects apply, so
|
|
139
|
+
* the stated chance is "about": it differs only when an adopted effect
|
|
140
|
+
* carries morale across 0.7, food across 12 months or the population across
|
|
141
|
+
* 150. Returns "" for an event with no option marked risky, or none safe.
|
|
142
|
+
*/
|
|
143
|
+
export declare function buildDecisionRule(a: DecisionRuleArgs): string;
|
|
60
144
|
/** What one turn's commander decision prompt is built from. */
|
|
61
145
|
export interface CommanderTurnPromptArgs {
|
|
62
146
|
turn: number;
|
|
@@ -76,12 +160,20 @@ export interface CommanderTurnPromptArgs {
|
|
|
76
160
|
optionText: string;
|
|
77
161
|
/** The available policy effects block, or "". */
|
|
78
162
|
effectsText: string;
|
|
163
|
+
/** The leader's decision rule for this event (see {@link buildDecisionRule}), or "". */
|
|
164
|
+
decisionRule?: string;
|
|
79
165
|
labels?: Partial<ScenarioLabels>;
|
|
80
166
|
}
|
|
81
167
|
/**
|
|
82
168
|
* The commander's decision prompt for one event. The heading names the
|
|
83
169
|
* time in the scenario's unit ("TURN 1, Month 1: ..."); it printed the
|
|
84
170
|
* bare number before, and the lab's commanders filled in years.
|
|
171
|
+
*
|
|
172
|
+
* With a decision rule the rule follows the options, and two reasoning
|
|
173
|
+
* points read from it: (2) asks what the reports establish, since they
|
|
174
|
+
* were written without the options, and (4) asks for the bold option's
|
|
175
|
+
* chance against the leader's bar. Without one the points ask whether the
|
|
176
|
+
* reports converge and what risk is accepted.
|
|
85
177
|
*/
|
|
86
178
|
export declare function buildCommanderTurnPrompt(a: CommanderTurnPromptArgs): string;
|
|
87
179
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commander-setup.d.ts","sourceRoot":"","sources":["../../../src/runtime/orchestrator/commander-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"commander-setup.d.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,EAAE;QAAE,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IACxE,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACxF,0DAA0D;IAC1D,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwFnF"}
|
|
@@ -25,6 +25,8 @@ import { ageInYears } from '../../engine/core/time-unit.js';
|
|
|
25
25
|
import { sendAndValidate } from '../../llm/sendAndValidate.js';
|
|
26
26
|
import { PromotionsSchema } from '../validators/commander.js';
|
|
27
27
|
import { selectableEffects } from '../util/parsers.js';
|
|
28
|
+
import { outcomeSuccessChance } from '../../engine/core/progression.js';
|
|
29
|
+
import { OUTCOME_MULTIPLIERS, costMultiple } from '../../engine/registries/effects.js';
|
|
28
30
|
/**
|
|
29
31
|
* Build a "Your decision style" block from the leader's HEXACO profile.
|
|
30
32
|
*
|
|
@@ -38,40 +40,42 @@ import { selectableEffects } from '../util/parsers.js';
|
|
|
38
40
|
* previously missing produce the sharpest additional divergence
|
|
39
41
|
* between Visionary + Engineer archetypes beyond openness alone.
|
|
40
42
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
+
* A cue fires at 0.7 and above or at 0.3 and below, so a trait written
|
|
44
|
+
* at a pole is heard: the Mars presets were written at those poles (Aria
|
|
45
|
+
* Chen's emotionality 0.30, Dietrich Voss's extraversion 0.30 and
|
|
46
|
+
* emotionality 0.70), and strict comparisons left them silent.
|
|
43
47
|
*/
|
|
44
48
|
export function buildPersonalityCue(h) {
|
|
45
49
|
const cues = [];
|
|
46
50
|
// Openness: novelty vs proven protocols
|
|
47
|
-
if (h.openness
|
|
51
|
+
if (h.openness >= 0.7)
|
|
48
52
|
cues.push('You favor novel, untested approaches over proven ones; the unknown is an opportunity, not a threat');
|
|
49
|
-
if (h.openness
|
|
53
|
+
if (h.openness <= 0.3)
|
|
50
54
|
cues.push('You trust proven protocols and incremental improvement; experiments need an extraordinary justification');
|
|
51
55
|
// Conscientiousness: discipline vs improvisation
|
|
52
|
-
if (h.conscientiousness
|
|
56
|
+
if (h.conscientiousness >= 0.7)
|
|
53
57
|
cues.push('You demand evidence and contingency plans before committing; you would rather be slow and right than fast and wrong');
|
|
54
|
-
if (h.conscientiousness
|
|
58
|
+
if (h.conscientiousness <= 0.3)
|
|
55
59
|
cues.push('You move fast and accept ambiguity; waiting for full evidence is itself a risk');
|
|
56
60
|
// Extraversion: visible command vs quiet technical leadership
|
|
57
|
-
if (h.extraversion
|
|
61
|
+
if (h.extraversion >= 0.7)
|
|
58
62
|
cues.push('You lead from the front: public announcements, rallying speeches, visible command presence; your rationale frames collective purpose');
|
|
59
|
-
if (h.extraversion
|
|
63
|
+
if (h.extraversion <= 0.3)
|
|
60
64
|
cues.push('You work through technical channels: brief memos, quiet protocols, minimal public drama; your rationale reads as an engineering log');
|
|
61
65
|
// Agreeableness: consensus vs decisiveness
|
|
62
|
-
if (h.agreeableness
|
|
66
|
+
if (h.agreeableness >= 0.7)
|
|
63
67
|
cues.push('You seek consensus across departments and with those you answer to before committing; you treat disagreement as a signal to gather more input');
|
|
64
|
-
if (h.agreeableness
|
|
68
|
+
if (h.agreeableness <= 0.3)
|
|
65
69
|
cues.push('You override department consensus when you see a better path; you accept friction as the cost of clarity');
|
|
66
70
|
// Emotionality: human-cost weighting
|
|
67
|
-
if (h.emotionality
|
|
71
|
+
if (h.emotionality >= 0.7)
|
|
68
72
|
cues.push('You weigh human cost heavily — even small mortality risks deter you, and morale is a first-class metric that constrains the option space');
|
|
69
|
-
if (h.emotionality
|
|
73
|
+
if (h.emotionality <= 0.3)
|
|
70
74
|
cues.push('You accept casualties for strategic gain; morale is downstream of results, not a primary constraint');
|
|
71
75
|
// Honesty-Humility: transparency vs information asymmetry
|
|
72
|
-
if (h.honestyHumility
|
|
76
|
+
if (h.honestyHumility >= 0.7)
|
|
73
77
|
cues.push('You report failures transparently, accept blame, and refuse to spin bad outcomes; credibility is the only currency that compounds');
|
|
74
|
-
if (h.honestyHumility
|
|
78
|
+
if (h.honestyHumility <= 0.3)
|
|
75
79
|
cues.push('You leverage information asymmetries when useful; public framing is part of strategy, not a post-hoc wrap');
|
|
76
80
|
return cues.length ? `Your decision style: ${cues.join('. ')}.` : '';
|
|
77
81
|
}
|
|
@@ -110,13 +114,144 @@ export function buildEffectsBlock(reports) {
|
|
|
110
114
|
'\n\nPut the key of each effect you adopt in "selectedPolicies", exactly as listed above (for example "' +
|
|
111
115
|
selectableEffects(reports)[0].key + '"). Each adopted effect changes the state by its delta; an effect you leave out changes nothing.';
|
|
112
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* How far a leader's appetite moves the bar for the bold option: the bar
|
|
119
|
+
* is the break-even chance plus this times (0.5 minus the appetite). The
|
|
120
|
+
* simulation's own choice. At 0.8 the two Mars presets' bars stand 0.46
|
|
121
|
+
* apart (36 and 82 in 100), and they part on "Landfall", the one event
|
|
122
|
+
* every Mars pair shares at turn 1 (its bold option's chance is 80 in 100
|
|
123
|
+
* at the landing state); at 0.6 the Engineer's bar is 76 and he would
|
|
124
|
+
* take it too.
|
|
125
|
+
*/
|
|
126
|
+
export const RISK_BAR_SLOPE = 0.8;
|
|
127
|
+
/** The range a bar is held in: the range an option's chance can take (`outcomeSuccessChance`). */
|
|
128
|
+
const RISK_BAR_MIN = 0.1;
|
|
129
|
+
const RISK_BAR_MAX = 0.9;
|
|
130
|
+
/**
|
|
131
|
+
* A leader's appetite for the bold option, from 0 (never takes it) to 1
|
|
132
|
+
* (always does): the mean of openness, one minus conscientiousness and one
|
|
133
|
+
* minus emotionality, the three axes the opening cues tie to risk. Equal
|
|
134
|
+
* weights are the simulation's own choice. Aria Chen's preset reads 0.767,
|
|
135
|
+
* Dietrich Voss's 0.193.
|
|
136
|
+
*/
|
|
137
|
+
export function riskAppetite(h) {
|
|
138
|
+
return (h.openness + (1 - h.conscientiousness) + (1 - h.emotionality)) / 3;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* What a cost (a harmful entry of a category table) is multiplied by on
|
|
142
|
+
* each outcome at no modifier, as the effect registry applies it
|
|
143
|
+
* ({@link costMultiple}): 0, 4, 1 and 3 for a risky success, a risky
|
|
144
|
+
* failure, a conservative success and a conservative failure.
|
|
145
|
+
*/
|
|
146
|
+
export const COST_MULTIPLES = {
|
|
147
|
+
risky_success: costMultiple(OUTCOME_MULTIPLIERS.risky_success),
|
|
148
|
+
risky_failure: costMultiple(OUTCOME_MULTIPLIERS.risky_failure),
|
|
149
|
+
conservative_success: costMultiple(OUTCOME_MULTIPLIERS.conservative_success),
|
|
150
|
+
conservative_failure: costMultiple(OUTCOME_MULTIPLIERS.conservative_failure),
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* The bold option's chance at which it and a safe option come out even on
|
|
154
|
+
* average, for one set of outcome multiples. A safe option's chance is
|
|
155
|
+
* `(1 + p) / 2` where the bold option's is `p` (see `outcomeSuccessChance`),
|
|
156
|
+
* so with a bold success `rs`, a bold failure `rf`, a safe success `cs` and
|
|
157
|
+
* a safe failure `cf`, `p * rs + (1 - p) * rf = (1 + p) / 2 * cs + (1 - p) / 2 * cf`
|
|
158
|
+
* at `p = ((cs + cf) / 2 - rf) / (rs - rf - (cs - cf) / 2)`. On what an
|
|
159
|
+
* event gains (the multipliers 2.5, -2, 1 and -1) that is 4/7, the default
|
|
160
|
+
* and the centre of the bar; on what it costs ({@link COST_MULTIPLES}: 0, 4,
|
|
161
|
+
* 1 and 3) it is 2/3. Nothing is chosen here; the multiples fix it.
|
|
162
|
+
*/
|
|
163
|
+
export function breakEvenChance(m = OUTCOME_MULTIPLIERS) {
|
|
164
|
+
const rs = m.risky_success;
|
|
165
|
+
const rf = m.risky_failure;
|
|
166
|
+
const cs = m.conservative_success;
|
|
167
|
+
const cf = m.conservative_failure;
|
|
168
|
+
return ((cs + cf) / 2 - rf) / (rs - rf - (cs - cf) / 2);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The chance at or above which a leader of this appetite takes the bold
|
|
172
|
+
* option: the break-even chance on what an event gains for a leader with
|
|
173
|
+
* no lean (appetite 0.5),
|
|
174
|
+
* lower for a bolder leader and higher for a more careful one, by
|
|
175
|
+
* {@link RISK_BAR_SLOPE}, held within 0.1 and 0.9.
|
|
176
|
+
*/
|
|
177
|
+
export function riskBar(appetite) {
|
|
178
|
+
return Math.max(RISK_BAR_MIN, Math.min(RISK_BAR_MAX, breakEvenChance() + RISK_BAR_SLOPE * (0.5 - appetite)));
|
|
179
|
+
}
|
|
180
|
+
/** The start of the line of a rule block that states the leader's bar. */
|
|
181
|
+
const BAR_LINE = '- Your bar:';
|
|
182
|
+
/** "option_a", "option_a and option_c", "option_a, option_b and option_c". */
|
|
183
|
+
function listIds(options) {
|
|
184
|
+
const ids = options.map(o => o.id);
|
|
185
|
+
return ids.length < 2 ? ids.join('') : `${ids.slice(0, -1).join(', ')} and ${ids[ids.length - 1]}`;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* The decision rule a commander reads for one event: the bold option's
|
|
189
|
+
* chance and the safe options' chance, as the outcome step's
|
|
190
|
+
* `outcomeSuccessChance` gives them for the run's metrics now; what a
|
|
191
|
+
* success and a failure multiply the event's gains by
|
|
192
|
+
* ({@link OUTCOME_MULTIPLIERS}) and its costs by ({@link COST_MULTIPLES}),
|
|
193
|
+
* as the effect registry applies them; the leader's bar for the bold
|
|
194
|
+
* option from the profile as it stands this turn ({@link riskBar}); that
|
|
195
|
+
* the department reports were written without the options; and the
|
|
196
|
+
* instruction to choose by the bar or to name the event's reason for
|
|
197
|
+
* departing from it. Whole numbers out of 100, rounded.
|
|
198
|
+
*
|
|
199
|
+
* The block states odds and a bar and picks nothing: the commander chooses.
|
|
200
|
+
* The outcome draw meets the chance after the adopted effects apply, so
|
|
201
|
+
* the stated chance is "about": it differs only when an adopted effect
|
|
202
|
+
* carries morale across 0.7, food across 12 months or the population across
|
|
203
|
+
* 150. Returns "" for an event with no option marked risky, or none safe.
|
|
204
|
+
*/
|
|
205
|
+
export function buildDecisionRule(a) {
|
|
206
|
+
const bold = a.options.filter(o => o.isRisky);
|
|
207
|
+
const safe = a.options.filter(o => !o.isRisky);
|
|
208
|
+
if (!bold.length || !safe.length || !Number.isFinite(a.riskSuccessProbability))
|
|
209
|
+
return '';
|
|
210
|
+
const outOf100 = (x) => Math.round(100 * x);
|
|
211
|
+
const boldChance = outOf100(outcomeSuccessChance(true, a.riskSuccessProbability, a.metrics));
|
|
212
|
+
const safeChance = outOf100(outcomeSuccessChance(false, a.riskSuccessProbability, a.metrics));
|
|
213
|
+
const m = OUTCOME_MULTIPLIERS;
|
|
214
|
+
const c = COST_MULTIPLES;
|
|
215
|
+
const withBar = a.withBar !== false;
|
|
216
|
+
const h = a.hexaco;
|
|
217
|
+
const lines = [
|
|
218
|
+
'YOUR DECISION RULE',
|
|
219
|
+
bold.length === 1
|
|
220
|
+
? `- ${bold[0].id} is the bold option. It succeeds about ${boldChance} times in 100.`
|
|
221
|
+
: `- ${listIds(bold)} are the bold options. Each succeeds about ${boldChance} times in 100.`,
|
|
222
|
+
safe.length === 1
|
|
223
|
+
? `- ${safe[0].id} is the safe option. It succeeds about ${safeChance} times in 100.`
|
|
224
|
+
: `- ${listIds(safe)} are the safe options. Each succeeds about ${safeChance} times in 100.`,
|
|
225
|
+
`- What this kind of event gains is multiplied by ${m.risky_success} on a bold success and ${m.risky_failure} on a bold failure, against ${m.conservative_success} and ${m.conservative_failure} on a safe success and a safe failure.`,
|
|
226
|
+
`- What it costs is multiplied by ${c.risky_success} on a bold success and ${c.risky_failure} on a bold failure, against ${c.conservative_success} and ${c.conservative_failure} on a safe success and a safe failure.`,
|
|
227
|
+
...(withBar
|
|
228
|
+
? [`${BAR_LINE} you take the bold option when it succeeds at least ${outOf100(riskBar(riskAppetite(h)))} times in 100. It comes from your profile as it stands this turn (openness ${h.openness.toFixed(2)}, conscientiousness ${h.conscientiousness.toFixed(2)}, emotionality ${h.emotionality.toFixed(2)}). A leader with no lean either way takes it at ${outOf100(breakEvenChance())} in 100, where the two paths gain the same on average. On what the event costs they are even at ${outOf100(breakEvenChance(COST_MULTIPLES))} in 100.`]
|
|
229
|
+
: []),
|
|
230
|
+
'- The departments wrote their reports without this option list or these odds. Their reports describe the problem; the choice between the options is yours.',
|
|
231
|
+
...(withBar ? ['- Choose by your bar. Depart from it only for a reason that belongs to this event, and say that reason in point (4).'] : []),
|
|
232
|
+
];
|
|
233
|
+
return lines.join('\n');
|
|
234
|
+
}
|
|
113
235
|
/**
|
|
114
236
|
* The commander's decision prompt for one event. The heading names the
|
|
115
237
|
* time in the scenario's unit ("TURN 1, Month 1: ..."); it printed the
|
|
116
238
|
* bare number before, and the lab's commanders filled in years.
|
|
239
|
+
*
|
|
240
|
+
* With a decision rule the rule follows the options, and two reasoning
|
|
241
|
+
* points read from it: (2) asks what the reports establish, since they
|
|
242
|
+
* were written without the options, and (4) asks for the bold option's
|
|
243
|
+
* chance against the leader's bar. Without one the points ask whether the
|
|
244
|
+
* reports converge and what risk is accepted.
|
|
117
245
|
*/
|
|
118
246
|
export function buildCommanderTurnPrompt(a) {
|
|
119
247
|
const w = scenarioWords(a.labels);
|
|
248
|
+
const rule = a.decisionRule?.trim() ? a.decisionRule : '';
|
|
249
|
+
const point2 = rule
|
|
250
|
+
? 'What do the department reports establish about the problem? They were written without the option list or the odds, so they inform my choice and do not make it.'
|
|
251
|
+
: 'Do the department reports converge or conflict? If they conflict, which voice do I trust given my profile?';
|
|
252
|
+
const point4 = rule.includes(BAR_LINE)
|
|
253
|
+
? 'The bold option\'s chance against my bar: which side is it on, and do I follow my bar? If I depart from it, the reason that belongs to this event. Name the trade I accept and the one I refuse.'
|
|
254
|
+
: 'What risk am I accepting vs refusing? My rationale must name the specific trade.';
|
|
120
255
|
return `TURN ${a.turn}${a.eventLabel}, ${w.TimeUnit} ${a.time}: ${a.title}
|
|
121
256
|
|
|
122
257
|
${a.description}
|
|
@@ -124,13 +259,13 @@ ${a.trajectoryCue ? `\n${a.trajectoryCue}\n` : ''}
|
|
|
124
259
|
DEPARTMENT REPORTS:
|
|
125
260
|
${a.summaries}
|
|
126
261
|
${a.toolboxBlock}
|
|
127
|
-
State: ${a.stateLine}${a.optionText}${a.effectsText}
|
|
262
|
+
State: ${a.stateLine}${a.optionText}${rule ? `\n\n${rule}` : ''}${a.effectsText}
|
|
128
263
|
|
|
129
264
|
REASONING — populate the "reasoning" field of your JSON response BEFORE committing to selectedOptionId. Numbered list, one point per line:
|
|
130
265
|
(1) What does my personality profile push me toward on this call? Name the specific trait poles at play.
|
|
131
|
-
(2)
|
|
266
|
+
(2) ${point2}
|
|
132
267
|
(3) Which forged-tool outputs in the toolbox above directly inform this decision? Cite the numeric output if available.
|
|
133
|
-
(4)
|
|
268
|
+
(4) ${point4}
|
|
134
269
|
(5) Final choice + one-line justification.
|
|
135
270
|
|
|
136
271
|
Then set selectedOptionId, decision, and rationale. The rationale compresses the reasoning into a single paragraph for default UI display; the "reasoning" field stores the full working.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commander-setup.js","sourceRoot":"","sources":["../../../src/runtime/orchestrator/commander-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,E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,EAAE,CAAC,CAAC;gBACzD,qDAAqD;gBACrD,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mCAAmC,EAAE,CAAC,CAAC;YACtG,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import type { Department, HexacoProfile, HexacoSnapshot, TurnOutcome } from '../../engine/core/state.js';
|
|
14
14
|
import type { CrisisOption } from '../contracts.js';
|
|
15
15
|
import type { LlmProvider, ScenarioLabels } from '../../engine/types.js';
|
|
16
|
+
import { type DeclaredWorld } from '../util/scenario-state.js';
|
|
16
17
|
/** Event category. Scenario-defined, not a fixed union. */
|
|
17
18
|
export type EventCategory = string;
|
|
18
19
|
/** @deprecated Use EventCategory */
|
|
@@ -108,7 +109,28 @@ export interface DirectorContext {
|
|
|
108
109
|
id: string;
|
|
109
110
|
label?: string;
|
|
110
111
|
}>;
|
|
112
|
+
/**
|
|
113
|
+
* The scenario's declared world. The state lines show each metric with
|
|
114
|
+
* the unit the scenario declares for it, as the commander's state line
|
|
115
|
+
* does, so full morale reads "100%"; a metric it does not declare reads
|
|
116
|
+
* as a percent strictly between 0 and 1 and as a plain number otherwise.
|
|
117
|
+
* Morale at 1 read "morale: 1" before, and the director wrote of a colony
|
|
118
|
+
* at its lowest. The politics lines read the units the scenario declares
|
|
119
|
+
* in `world.politics` the same way, so Mars independence pressure at 1
|
|
120
|
+
* reads "100%".
|
|
121
|
+
*/
|
|
122
|
+
world?: DeclaredWorld | null;
|
|
111
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* The rules on how an event's risky and safe options differ. The default
|
|
126
|
+
* instructions hold them, and a scenario's own instructions are sent with
|
|
127
|
+
* them appended (see {@link directorSystemInstructions}): a scenario's text
|
|
128
|
+
* replaced the default, so Mars Genesis and the five other bundled scenarios
|
|
129
|
+
* with their own text never received them, and in three live Mars pairs
|
|
130
|
+
* the risky option read as skipping a safety step ("bypass" in 15 of 29
|
|
131
|
+
* labels) and sat at option_b in all 29 (#248).
|
|
132
|
+
*/
|
|
133
|
+
export declare const OPTION_TRADEOFF_RULES = "OPTION POLARIZATION (CRITICAL \u2014 drives leader divergence):\nThe whole point of the simulation is to surface how different personalities\nproduce different civilizations from identical starting conditions. Boring\noptions that mostly come out the same defeat that purpose. Make the safe\noption and the risky option DRAMATICALLY DIFFERENT in:\n - Magnitude of effect (safe = small/incremental; risky = transformative or catastrophic)\n - Scope of change (safe = preserve status quo; risky = restructure something fundamental)\n - Time horizon (safe = address immediate symptom; risky = bet on a long arc)\n - Required commitment (safe = reversible; risky = burns bridges)\n\nIf the description of option_a could plausibly be swapped with option_b\nwithout changing much, the options are too similar \u2014 rewrite them so\nthey reflect genuinely opposed philosophies.\n\nThe risky option should be neither obviously stupid nor obviously correct.\nAim for ~40-65% success probability so high-openness leaders genuinely\ngamble while high-conscientiousness leaders genuinely have a defensible\ncase for the safe path.\n\nTHE RISKY OPTION IS A BET (these rules hold over any example above):\n- The risky option is a bet on a larger gain. Its description names what it\n wins that no safe option can.\n- It is never the omission of a safety step, a bypass, or a shortcut past a\n check. Skipping a precaution is a mistake, not a bet: write the safe and\n the risky option as two strategies a capable leader could defend.\n- Any of the ids may be the risky option (option_a, option_b or option_c).\n Place it where the event reads best, not always in the same place.\n- Write every label without the words risky, safe, conservative or bypass.\n The engine marks the risky option.";
|
|
112
134
|
/**
|
|
113
135
|
* Build the prompt for the director given simulation context. Its
|
|
114
136
|
* heading named every scenario's time a YEAR, and the director's first
|
|
@@ -116,7 +138,20 @@ export interface DirectorContext {
|
|
|
116
138
|
* months; the words now come from `ctx.labels`.
|
|
117
139
|
*/
|
|
118
140
|
export declare function buildDirectorPrompt(ctx: DirectorContext, maxEvents?: number): string;
|
|
119
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* The system instructions a director call sends: the default when the
|
|
143
|
+
* scenario has none, else the scenario's own text followed by
|
|
144
|
+
* {@link OPTION_TRADEOFF_RULES}, so every scenario's director is told how
|
|
145
|
+
* the risky and the safe option must differ. `{MAX_EVENTS}` becomes the
|
|
146
|
+
* turn's event cap.
|
|
147
|
+
*/
|
|
148
|
+
export declare function directorSystemInstructions(scenarioInstructions: string | undefined, maxEvents: number): string;
|
|
149
|
+
/**
|
|
150
|
+
* Fallback events if director fails, in words that fit any scenario. They
|
|
151
|
+
* follow {@link OPTION_TRADEOFF_RULES}: each bold option is a bet on a
|
|
152
|
+
* larger gain, no label carries a word the rules forbid, and the bold
|
|
153
|
+
* option does not always sit at the same id.
|
|
154
|
+
*/
|
|
120
155
|
export declare const FALLBACK_EVENTS: DirectorEvent[];
|
|
121
156
|
export declare class EventDirector {
|
|
122
157
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"director.d.ts","sourceRoot":"","sources":["../../../src/runtime/orchestrator/director.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"director.d.ts","sourceRoot":"","sources":["../../../src/runtime/orchestrator/director.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMzE,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEvG,2DAA2D;AAC3D,M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