Lane defaults: the DM runs on Opus, Personas on Sonnet (dungeon-models-dm-opus)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 00:51:28 +01:00
commit 43d76f6ffe

View file

@ -107,8 +107,8 @@ fn connector_binding() -> anyhow::Result<ConnectorBinding> {
}
/// The model each lane runs on, from env over the defaults the rulings set
/// (dungeon-model-per-role-answer): Opus for the narrator (the projector) and
/// the NPC Personas, Sonnet for the play table and the elaborator (which also
/// (dungeon-models-dm-opus): Opus for the play table (the DM) and the narrator (the projector),
/// Sonnet for the NPC Personas and the elaborator (which also
/// seeds), Haiku for the interpreter and the operational agent.
fn lane_models() -> (ControllerModels, String) {
lane_models_from(|name| std::env::var(name).ok())
@ -119,12 +119,12 @@ fn lane_models_from(read: impl Fn(&str) -> Option<String>) -> (ControllerModels,
(
ControllerModels {
projector: lane("GHOSTLIGHT_CONTROLLER_PROJECTOR_MODEL", "claude-opus-5-5"),
persona: lane("GHOSTLIGHT_CONTROLLER_PERSONA_MODEL", "claude-opus-5-5"),
persona: lane("GHOSTLIGHT_CONTROLLER_PERSONA_MODEL", "claude-sonnet-5-5"),
interpreter: lane("GHOSTLIGHT_CONTROLLER_INTERPRETER_MODEL", "claude-haiku-5-5"),
operational_agent: lane("GHOSTLIGHT_CONTROLLER_OPERATIONAL_MODEL", "claude-haiku-5-5"),
elaborator: lane("GHOSTLIGHT_CONTROLLER_ELABORATOR_MODEL", "claude-sonnet-5-5"),
},
lane("GHOSTLIGHT_PLAY_MODEL", "claude-sonnet-5-5"),
lane("GHOSTLIGHT_PLAY_MODEL", "claude-opus-5-5"),
)
}
@ -740,9 +740,9 @@ mod tests {
fn lanes_default_to_the_ruled_tiers_and_each_reads_its_own_override() {
let (models, play) = lane_models_from(|_| None);
assert_eq!(models.projector, "claude-opus-5-5", "the narrator");
assert_eq!(models.persona, "claude-opus-5-5");
assert_eq!(models.persona, "claude-sonnet-5-5");
assert_eq!(models.elaborator, "claude-sonnet-5-5");
assert_eq!(play, "claude-sonnet-5-5");
assert_eq!(play, "claude-opus-5-5", "the DM");
assert_eq!(models.interpreter, "claude-haiku-5-5");
assert_eq!(models.operational_agent, "claude-haiku-5-5");
for (name, lane) in [