Changelog¶
Notable changes per release. Versions follow the vX.Y.Z tags on main.
Everything since v0.5.0 is listed under Unreleased: releases are cut from labelled
pull requests, and nothing in the release workflow moves entries out of that section.
Releases v0.1.4 through v0.2.7 are not itemized here: the file went unwritten
while they were cut. Their contents are in
the releases page and in
the commit log.
Unreleased¶
Added¶
- The RL app's GPU types are set at deploy time.
modal/grpo/grpo_app.pyreadsGRPO_TRAINER_GPUSandGRPO_SERVER_GPUS, each a comma-separated list of GPU types in order of preference, and a deploy without them fails. See Training a model with RL. - The RL loop's
traincan test adapters on held-out seeds as it trains. With--eval-every N --eval-seeds ... --eval-games-per-seed G,traintests each adapter k above 0 for which k is a multiple of N, once the trainer has saved it. It appends toeval.jsonlthe same line thatevalwrites. Each line ofeval.jsonlrecords its seeds and games per seed. Wheneval.jsonlalready holds a line for the same adapter, partner, seeds and games per seed,evalplays no games. Whentrainresumes, it first runs a test that was playing when the loop stopped. See Training a model with RL. - The RL loop's
trainresumes a stopped run by itself.grpo_loop.py trainstarts with the step after the last one thatsteps.jsonlrecords, and takes no--first-step. The loop writes a line ingames.jsonlfor each game whoseglossogen runexited, and a step that stopped partway reuses those games. The log of a game that was playing when the loop stopped moves togame_logs/abandoned/, its run gets the labelabandoned, and the loop plays the game again. The loop refuses to resume a step whose ended games another adapter played. A cancelled game stops itsglossogen run.test_grpo_steps.pystops a run while a game plays, and another after the trainer saved an adapter. It checks that each resumed run trains on each game once. See Training a model with RL. - The RL loop can play a step's games while the trainer trains the step
before. With
grpo_loop.py train --overlap, step k's games play with adapter k−1 while the trainer trains step k−1, and the importance ratio corrects for the one adapter of difference. The policy server's loader takes a list of adapters to keep with each load request, so adapter k−1 stays loaded while step k's games play. The trainer saves the run ids of the games that trained each adapter ingames.json, and returns the saved metrics when it is asked to train a saved step on the same games. Each game's labels and each line ofsteps.jsonlname the adapter that played. The loop is split into modules behind two interfaces, the app and the game launcher, andtest_grpo_steps.pyruns whole steps on CPU with fakes of both. See Training a model with RL. - The RL trainer weights each answer token by a capped importance ratio.
The loss in
modal/grpo/grpo_training.pyis CISPO, platoon's default loss: each answer token's term is multiplied by exp(trainer logprob − sampler logprob), capped at 5 and taken without a gradient. The loop reads the sampler logprobs from each game'stoken_logprobs, and refuses an answer without them. The KL term and the gradient clipping are unchanged. Each line ofsteps.jsonlrecordsratio_mean,ratio_maxandratio_capped_share. See Training a model with RL. - The knob
self_hosted_strict_toolscan turn off strict tools for self-hosted agents. On, its default, a self-hosted agent's requests mark a toolstrictwhen pydantic-ai finds its schema strict-compatible, and vLLM forces the tool's calls to match the schema with a grammar. Off, the requests send the same schemas without thestrictkey. The grammar logs a forced token at a logprob near 0, whatever probability the model gives it. The RL game configmodal/grpo/signal_game_shapes.jsonturns the knob off.build_pydantic_ai_modeltakesself_hosted_strict_tools, andSelfHostedChatModeltakesstrict_tools. See Training a model with RL. - The RL loop can train one seat against a frozen partner. A frozen partner
is a model that plays one seat of every game and does not train. In
modal/grpo/,grpo_loop.py init --partner FILEsaves the partner in the run'ssettings.jsonon the volume, andtrainplays it in every step. The loop builds training sequences only from the other seat's answers.eval --partner FILEtests an adapter against a partner. The partner is the base model on the policy server, another self-hosted model, or a model of another provider.base_model_partner.jsonputs the base model inplayer_b. Each line ofsteps.jsonlandeval.jsonlrecords the partner and the first-item count of each seat. The loop refuses a game config that would change a seed config that a run already wrote.pytest modal/grpo/leaves out the trainer's tests when torch is not installed. See Training a model with RL. - Agent trajectories can be exported as an Inspect-format log that Docent
imports.
glossogen export-atif --format inspectwrites oneinspect_log.jsonwith one sample per agent.glossogen export --raw --trajectories inspectwrites one such log at the root of the zip, and the log holds every selected run. The Export dialog's Inspect log for Docent choice writes the same log. A run's page has an Export Inspect log for Docent button, which downloads that run's Inspect log. ATIF export describes the format. - A docs page gives the steps to search runs with Docent. Searching runs with Docent gives the steps to run Docent on your own machine, upload an Inspect log in its web UI, and search the runs with a rubric.
- Claude Code can analyze a group of runs with the
analyze-runsskill.glossogen install-skillcopies the skill into a project's.claude/skills/, and this repository links it there. The skill has Claude check the runs against the plan, have subagents read every transcript, check each claim against the event logs, and write a findings file. Analyzing runs with Claude Code describes it. The veyru and signal_game READMEs have a section called "Analyzing runs" that the skill reads. glossogen transcriptprints a run's event log as plain text, round by round. It keeps what each agent was told, wrote, called and received, and leaves out event ids, timestamps, token counts and waits that give no reason.--out-dirwrites one file per round.- A run's log records the glossogen code that wrote it.
simulation_startedholdsglossogen_build: the installed version, the git commit when one is known, and whether an editable checkout had uncommitted changes undersrc/. A fork or an agent replacement records the code that derived it. record_token_idsalso records the logprob of each answer token. Each request of a self-hosted agent asks the server forlogprobsas well asreturn_token_ids, and eachllm_response_receivedevent holdstoken_logprobs, one value per id intoken_ids. A response that carries token ids without one logprob per answer token raisesTokenLogprobsMismatch. The runner tries the request up to 3 times. If all 3 attempts fail, it logsagent_run_cycle_failedand starts a new run cycle.glossogen.run_storage.recorded_token_idsreturns the logprobs asRecordedTokenIds.token_logprobs, a new field, which is None for an event that holds token ids without logprobs. See Training a model with RL.- Qwen3.8-27B can be trained by reinforcement learning on signal_game.
modal/grpo/holds a Modal app with a LoRA trainer and a vLLM server that serves each new adapter. It also holds the loop that runs on your machine. The loop plays signal_game games withrecord_token_ids, scores each player in each round, and sends the training sequences to the trainer, which takes one GRPO step. Training a model with RL gives the commands for a training run and the results of our runs. - A run can start with agents that carry histories from an earlier run of any
scenario.
glossogen runtakes--history-from-run <run dir>, one--history-seat SEAT=SOURCE_AGENTfor each agent that takes a history, and--history-through-round N. The earlier run must have completed round N. Without--history-through-round, N is its last round, and it must have ended withscenario_complete. Each named agent starts with the history ofSOURCE_AGENTin the earlier run up to the end of round N, without its thinking when the agent runs another model. One user message follows that history. It holds the agent's system prompt and initial prompt in the new scenario, and its template ishistory_transfer_prompt.jinja. The run saves each named agent's history and ahistory_transfer_manifest.json.--resume,protocol_probeandprotocol_explanationput the saved history back in front of the agent's turns.replace-agent,fork-at-roundandcross-run-replace-agentcannot fork such a run. glossogen.testing.scripted_agent.observe_requestswraps a scripted model. It passes each request to a function before the model answers it.- A run can record a self-hosted model's token ids in its event log. With
the
record_token_idsknob on, each request of aself-hostedagent asks the server forreturn_token_ids, and eachllm_response_receivedevent holds the token ids of the answer (token_ids) and of the prompt, stored as a shared prefix (prompt_prefix_tokens) and the rest (prompt_tail_ids).glossogen.run_storage.recorded_token_idsrebuilds an agent's full prompts.agent_model_settingstakesrecord_token_ids. - Requests to self-hosted models carry the run id and the agent id. Under
--provider self-hosted, an agent's requests and the protocol probe metrics' requests carry the headersX-GlossoGen-Run-IdandX-GlossoGen-Agent-Id, so a proxy in front of the server can store each request under its run and agent.glossogen.llm.pydantic_ai_model_factory.agent_model_settingstakes the run id and the agent id,run_structured_probeandrun_protocol_probetake the run id, andrequest_identity_settingsbuilds the headers. - Scenarios register themselves and are loaded from configured sources. A
scenario class is decorated with
@scenario(name=...)(glossogen.scenario_contract.registration), which sets the namename()returns, and returns the event classes it logs from the newSimulationScenario.event_types()(the default is()). Every built-in uses both. A second class registering a name already held raises, naming both modules. - Each process loads a scenario catalog once
(
glossogen.scenario_contract.catalog): the built-in scenarios, found by scanningglossogen/scenarios/, plus the first of these that is set:--scenarios <source>(a repeatable global option, before the subcommand),GLOSSOGEN_SCENARIOS(os.pathsep-separated), or[tool.glossogen] scenarios = [...]in the nearestpyproject.toml. A source is a module name, a.pyfile or a folder. With none set, the project directory is scanned for files that use@scenario;scenarios = [], or an emptyGLOSSOGEN_SCENARIOS, turns the scan off. Code outside the CLI loads the catalog withload_scenario_catalog(...)before looking a scenario up. - Runs the server and the fork flows launch load the same sources as their
parent. A command asked for a scenario it did not load names the sources it did
load and how to add one. The Docker image sets
GLOSSOGEN_SCENARIOS="", so the server loads the built-ins only. - Each run is parsed with the platform's events plus the events its own
scenario returns from
event_types(). The event logger raisesUndeclaredEventTypefor an event class the running scenario does not return, and a reader keeps such a line as anUnrecognizedEvent(see below). Two scenarios may use the sameevent_type.parse_eventandparse_event_bytes(glossogen.run_storage.event_parsing) take the run'sscenario_name; reading a run before the catalog has loaded raisesScenarioCatalogNotLoaded, and a log whose first line is notsimulation_startedraisesValueError.EventLoggertakesallowed_event_types(glossogen.scenario_contract.event_types.loggable_event_types). glossogen validate <path>takes a.pyfile or a folder and checks every scenario it registers.- A docs page, Reading runs from your own code,
covers loading a scenario catalog in a script and what a read returns for an
UnrecognizedEvent. Creating a scenario lists everything the default scan skips. move_a_boxknobsvirtual_list_cost_fixedandvirtual_list_cost_s: on the virtual clock, eachactlist costs a fixed number of virtual seconds whatever its length, in place of its own tokens. The rest of the response is charged by its tokens as before.spot_the_intersectionknobspostmortem_modeandpostmortem_character_limitset who posts in the discussion phase and how many characters each viewer may send in one phase.whole_teamlets every viewer post.single_authorandrotating_authorlet one viewer post. Inchosen_partnereach viewer messages one teammate it picks, on a channel the two share. Every shipped preset setswhole_teamand-1. See its README.
Changed¶
- Breaking for scripts that call the export:
glossogen export-atifneeds--format atifor--format inspect.POST .../runs/export/rawtakestrajectory_format("atif","inspect"ornull) in place ofinclude_atif, andglossogen export --rawtakes--trajectories atifor--trajectories inspectin place of--include-atif. AutonomousSupervisortakeslist_offered_tool_definitionsin place oflist_tool_definitions. The argument's type isToolDefinitionLister, inglossogen.runtime.agent_tool_specs. AToolDefinitionListertakesruntimeandagent_id, and returns that agent's tool definitions in the order that the runner sends them. The pydantic-ai runner's lister isglossogen.runners.agent_tools.list_offered_tool_definitions.- Moved modules: imports in scenario and metric packages change. The old paths are gone, with no aliases left behind. For scenario and metric authors:
| Old import | New import |
|---|---|
glossogen.scenarios.base_knobs (BaseKnobs, AgentModelOverride) |
glossogen.scenario_contract.base_knobs |
glossogen.scenarios.channel_noise (apply_character_noise, NoiseReplacementMode) |
glossogen.scenario_contract.channel_noise |
glossogen.runtime.round_end_trigger (RoundEndTrigger) |
glossogen.models.round_end_trigger |
glossogen.runtime.scheduled_events (ScheduledEvent, SwapAgent, ...) |
glossogen.models.scheduled_events |
glossogen.runtime.read_notifications_schema |
glossogen.models.read_notifications_schema |
glossogen.runtime.elapsed_time |
glossogen.models.elapsed_time |
glossogen.runtime.communication_tools (SEND_MESSAGE_TOOL_NAME, READ_CHANNEL_TOOL_NAME, LIST_CHANNELS_TOOL_NAME, GET_CHANNEL_MEMBERS_TOOL_NAME, BASE_TOOL_NAMES) |
glossogen.models.communication_tool_names |
glossogen.runners.communication_protocol |
glossogen.scenario_contract.platform_runner_prompts |
glossogen.runtime.scenario_world (ScenarioWorld, WorldContext, MessageEvent, RoundAdvancedEvent) |
glossogen.scenario_contract.scenario_world |
glossogen.runtime.scenario_tool (ScenarioTool, SCENARIO_TOOL_TIMEOUT_SECONDS) |
glossogen.scenario_contract.scenario_tool |
glossogen.runtime.activity_notification |
glossogen.scenario_contract.activity_notification |
glossogen.runtime.notification_payload (Wake, NotificationInbox, render_default_notification, ...) |
glossogen.scenario_contract.notification_delivery |
glossogen.runtime.wait_registry (WakeReason, ParkedWait, DEFAULT_ANY_TIMEOUT_SECONDS) |
glossogen.scenario_contract.parked_wait |
glossogen.evaluation.metric_core.metric_protocol (Metric) |
glossogen.scenario_contract.metric_protocol |
glossogen.evaluation.metric_core.measurement |
glossogen.scenario_contract.measurement |
glossogen.evaluation.metric_core.keyed_observation |
glossogen.scenario_contract.keyed_observation |
glossogen.evaluation.metric_core.metric_run_options |
glossogen.scenario_contract.metric_run_options |
glossogen.evaluation.metric_core.protocol_boundary |
glossogen.scenario_contract.protocol_boundary |
glossogen.evaluation.metric_core.protocol_explanation_config |
glossogen.scenario_contract.protocol_explanation_config |
glossogen.evaluation.metric_core.protocol_probe_config |
glossogen.scenario_contract.protocol_probe_config |
glossogen.evaluation.metric_core.scored_channels |
glossogen.scenario_contract.scored_channels |
glossogen.evaluation.metrics.communication.round_view (CommunicationRoundView, CommunicationMessageLine only; the helpers stay) |
glossogen.scenario_contract.communication_round_view |
glossogen.runners.agent_runner_base (AgentRunner) |
glossogen.runtime.agent_runner |
glossogen.runners.agent_run_result |
glossogen.runtime.agent_run_result |
glossogen.runners.closing_prompt (CLOSING_PROMPT_TIMEOUT_SECONDS) |
glossogen.runtime.agent_runner |
glossogen.runners.agent_tools (ToolSpec, Executor, tool_specs, select_tool_definitions) |
glossogen.runtime.agent_tool_specs |
The platform's runner prompt templates move with it, from
glossogen/runners/prompts/*.jinja to glossogen/scenario_contract/runner_prompts/*.jinja.
WorldContext and NotificationInbox are now abstract. The runtime's
implementations are glossogen.runtime.world_context.RuntimeWorldContext and
glossogen.runtime.session_notification_inbox.SessionNotificationInbox, which
code that built a context or an inbox directly, such as a test, constructs
instead. ScenarioRuntimeHandle.event_logger is typed as the new
ScenarioEventLog protocol, which only has log(event=...).
AutonomousSupervisor takes a list_tool_definitions argument next to
runner_factory, a glossogen.runtime.agent_tool_specs.ToolDefinitionLister:
glossogen.runners.agent_tools.list_tool_definitions for the pydantic-ai runner.
- A run's events of a type neither the platform nor the run's scenario declares
are kept, not skipped.
load_eventsreturns each as anUnrecognizedEvent(glossogen.models.event), which holds the line'sevent_typeand its decoded JSON object aspayloadand serializes back to an equal object;parse_eventdoes the same. The one warning per read now says how many were read that way. A line of such a type with noevent_idortimestampcannot be kept and is skipped, counted in that warning. Code that iterates a run's events sees them where it saw nothing before. Run detail returns them asunrecognized_events, and the run page shows each in the "all activity" timeline where it was logged, with the line as JSON on demand. The event logger refuses anUnrecognizedEvent. glossogen.model_catalog.token_pricing.usage_cost_usdtakes token counts (input_tokens,output_tokens,cache_read_tokens,cache_write_tokens) where it tookusage: TokenUsage, somodel_catalog/imports nothing frommodels/. Build the call from aTokenUsageasinput_tokens=usage.input_tokens,output_tokens=usage.output_tokens,cache_read_tokens=usage.cache_read_input_tokensandcache_write_tokens=usage.cache_creation_input_tokens. Costs are unchanged.glossogen new-scenario <name>writes only the scenario's folder,<target-dir>/<name>/: the module,knobs_default.json,prompts/, an__init__.pyandtest_<name>.py. It no longer writes apyproject.toml, README,.gitignoreor.env.example, and changes nothing else in the project.--target-diris optional and defaults to the working directory;--glossogen-refis gone. Running it again with another name adds a folder beside the first. The scan of the project directory finds the folder with no configuration, and the command prints the next steps. It imports the configured scenario sources again and, when none loads the new folder, says how to add it there. The generated test marks its async tests@pytest.mark.asyncioand looks the scenario up by name with the newglossogen.testing.assert_scenario_is_loaded, so it needs no pytest configuration. Thepackage-dataa wheel needs is described indocs/creating-a-scenario.md.- Loading a scenario catalog fails when two scenarios read their prompts and
presets from the same directory (
scenario_package_files()), naming both scenarios, their modules and the directory;validate <path>reports the same. The default project scan logs and leaves out such a scenario's module instead. Two scenarios in one folder would list each other's presets and share prompt templates with the same file name. Give each scenario a folder of its own. POST /runs/{scenario}/{run}/evaluateon a run whose scenario the server has not loaded answers 422 with the CLI's "not loaded" message, which lists the sources the server loaded, in place of "Unknown scenario".- Breaking for scenarios and metrics outside glossogen: entry points,
SCENARIO_API_VERSIONand discovery byevents.pyare gone. glossogen no longer reads theglossogen.scenarios.v1orglossogen.metricsentry-point groups, and the modules behind them are deleted (glossogen.scenario_contract.entry_points,glossogen.scenario_contract.api_version,glossogen.plugin_entry_points,glossogen.evaluation.metric_core.metric_entry_points), along withglossogen.scenario_contract.registry(SCENARIO_REGISTRY),glossogen.scenario_contract.submodule_discovery,SIMULATION_EVENT_ADAPTERandknown_event_types().glossogen.models.eventno longer imports every scenario'sevents.py, so theevents.pyname, the rule that it imports onlyglossogen.models.event_baseand the empty package__init__.pyno longer matter. An undecorated class no longer takes its name from its package directory:name()raises. To move a scenario package over: - Decorate the scenario class with
@scenario(name="<its entry-point key>")fromglossogen.scenario_contract.registration, and return its event classes fromevent_types(). - Delete the
[project.entry-points."glossogen.scenarios.v1"]table. - Tell glossogen where the scenario is:
[tool.glossogen] scenarios = ["my_scenarios"]in thepyproject.tomlof the project you run glossogen from (a module name, or a path relative to that file), or--scenarios, orGLOSSOGEN_SCENARIOS. With none of them, glossogen scans that project's directory.
A metric declared under glossogen.metrics moves into a scenario's
scenario_metrics(); nothing adds a metric to every scenario from outside
glossogen any more. glossogen validate <dir> no longer reads a
pyproject.toml entry point or checks the contract version, the entry-point
group or an empty package __init__. Identity providers still use entry
points.
- Breaking for scenario and metric packages: the scenario contract moved into
glossogen.scenario_contract. The old module paths are gone, with no
aliases, so a package importing one fails with ModuleNotFoundError. Imports,
old to new:
- glossogen.scenario_protocol → glossogen.scenario_contract.protocol
- glossogen.scenario_base → glossogen.scenario_contract.scenario_base
- glossogen.scenario_run_detail_extension → glossogen.scenario_contract.run_detail_extension
- glossogen.run_detail_types → glossogen.scenario_contract.run_detail_types
- glossogen.scenario_event_types → glossogen.scenario_contract.event_types
- glossogen.scenario_loader → glossogen.scenario_contract.loader
- glossogen.scenario_name → glossogen.scenario_contract.scenario_name
- glossogen.scenario_path_loader → glossogen.scenario_contract.path_loader
- glossogen.recorded_scenario_rebuild → glossogen.scenario_contract.recorded_scenario_rebuild
- glossogen.primary_channel_resolution → glossogen.scenario_contract.primary_channel_resolution
A metric annotating compute with ScenarioBase imports it from
glossogen.scenario_contract.scenario_base. A metric still importing an old
path fails to import. In a configured source that stops the command with
Could not load scenarios: ... failed to import; the default project scan
logs it and leaves the file out.
- glossogen.cli no longer re-exports main, so importing a glossogen.cli.<module>
does not load every subcommand. The console script's entry point is now
glossogen.cli.cli_entry:main, and from glossogen.cli import main becomes
from glossogen.cli.cli_entry import main. Reinstall the package to regenerate
the glossogen script.
- A scenario's gate_model_response receives the response's tool calls as
tool_calls, so a scenario that paces agents on a clock can price them.
- move_a_box's knobs_virtual_clock sets step_duration_s to 0, so a list of
actions lands at once, as in free play, and the other operators see only the
temperature where it ends. With 5 seconds per action, operators in SCH-167 took
temperatures the other crate was only passing through for offers. A run that
wants timed actions sets step_duration_s itself.
- The virtual clock moved from textcraft_shared_workspace to
runtime/virtual_clock.py, so any scenario can drive it from the clock hooks.
- textcraft_shared_workspace on the virtual clock: a resumed or forked run
carries virtual time on from the latest workspace_request_released, and under
craft_duration_s a tool call may run for as long as the round instead of 120
seconds, since a craft waits on the other agents' requests.
- Every move_a_box preset sets steps_per_round to 500, batched_actions
and describe_protocol_at_end on and notepad_enabled off, and every preset
but knobs_four_operators plays an 8x8 floor. A run launched from a preset
before this played a 7x7 floor with 400 steps, the four one-action tools, the
notepad and no closing question.
- move_a_box's run detail lists each round's targets: MoveABoxRoundFloor
carries targets, each a MoveABoxTargetFloor with its own shared bays,
result and per-operator floors, in place of the round's own operators,
shared_bays and matched_slots. MoveABoxRunExtras gains
targets_per_round. A round of one target has one.
- move_a_box_round_started records each operator's own bays as floor_bays
(number, name, drawn mark, square) and the round's bay_identity, in place of
one bays list every floor shared. Logs recorded earlier read back as square
bays. In the run detail, MoveABoxRoundFloor.bays is gone and each
MoveABoxOperatorFloor carries its own bays.
- signal_game's system prompt says the partner's grid is drawn separately, so
the same square usually holds a different colour, and that at least one colour
is on both grids. Runs recorded earlier were played without those two
sentences.
- The PDF export renders strictly, as every other Jinja template here already
did. A name the context does not carry raises instead of rendering as an empty
string, and make lint fails on a Jinja Environment built without
undefined=StrictUndefined.
- make lint compares a render call's variables with the names its template
reads, for the calls where the template name and the variables are both
literals. It prints how many calls it could not read that way.
- A scenario's probe and protocol-explanation prompts are rendered by
glossogen validate and by the conformance suite. Probe prompts render with
each question's own inputs, which is the pairing the metric makes, and
explanation prompts render with no variables, as the metric renders them.
- ProbeQuestion and load_probe_questions moved to
glossogen.evaluation.metric_core.protocol_probe_config, beside the config
that points at the bank.
- The frontend image is built on node:26-alpine instead of node:22-alpine,
and CI checks the frontend on Node 26.
- A scenario's round-detail panel receives the round's verdicts as
roundResults, the run detail's round_results for that round.
SpotTheDifferenceRunExtras.team_results is gone, since it repeated them; read
round_results on the run detail instead.
- A scenario declares its own metrics and run-detail extension from its class.
scenario_metrics() returns its metric classes and run_detail_extension() its
extension. get_available_metric_names is gone, as are _SCENARIO_METRICS and
SCENARIO_METRIC_REGISTRY, and a run_detail_extension.py is no longer found by
file name, so no platform module names a scenario's parts. A scenario's own metric
is now unknown to evaluate on another scenario's run rather than reporting
nothing. For a scenario in another package: import RoundResult and
PrimaryChannel from glossogen.scenario_contract.scenario_base, return any
extension from run_detail_extension() and drop its scenario_name class
variable, import the extension contract from
glossogen.scenario_contract.run_detail_extension, and import AgentDetail and
ChannelMessage from glossogen.scenario_contract.run_detail_types. An
extension module the hook does not return is never imported, so nothing reports
it: the run page shows no scenario data.
- Metric.compute takes scenario: ScenarioBase, the part of the scenario contract
metrics read. A metric in another package annotates its override the same way.
available_metrics takes the scenario class.
- mean_chars_per_round now includes silent rounds represented in the event log
as zero-valued rounds. Re-evaluating an existing run can therefore lower this
score compared with reports that averaged only rounds containing messages.
- Agents call every tool in-process. The runner builds each agent's tools as
pydantic-ai function tools, with the agent's id bound into each, and no MCP
server is started for a run. A scenario tool's executor takes agent_id as
its first parameter, which the runner supplies, and glossogen validate
checks it; get_mcp_tools is get_tools and ScenarioMcpTool is
ScenarioTool. A refused call (ValueError) reaches the model as the tool's
error however many times it happens; a cycle used to abort after the second.
The recorded tool schemas on agent_registered are pydantic-ai's.
- read_notifications is executed by the agent runner instead of the MCP server,
so an MCP client other than the platform's runner no longer lists it. A call
issued alongside other tool calls is detected from the response that issued it,
rather than from how recently another call was dispatched, so a call made on
its own right after another tool's result parks.
- Every scenario's agents are offered the changed read_notifications description
and its wait_for and timeout_s arguments. An agent parked on any kind of wait
counts as idle; a next_round wait is the agent declaring itself done, so a
round can end around it with teammates' messages unread.
- A forced send_message over messages the sender has not read leaves them
unread, so they still reach the sender.
- PrimaryChannel takes a required includes_direct_channels; a scenario
installed from another package must pass it.
- resume-at-round is now fork-at-round, and every fork boundary is the end of a
round. The command clones a finished run into a new directory rather than
continuing it in place, so it is named as the fork it is. Its boundary moved with the
rename: --after-round N keeps rounds 1..N complete, verdict and postmortem
included, and plays round N+1 onward. replace-agent and
cross-run-replace-agent take the same flags. Old-to-new mapping:
--round-start R is --after-round R-1, --rounds-after-swap J (and
--rounds-after-resume J) is --rounds-after J+1, and
--source-b-round-end now defaults to min(after_round, B_max_round), the same
round as before. A completed run can also be forked after its final round by passing
an explicit --rounds-after; the resumed clock records the advance as
RoundAdvanced(trigger="fork_after_round").
The rename goes through the API and exports: ResumeAtRoundSource is
ForkAtRoundSource { source_run_id, after_round, rounds_after, target_event_id,
forked_at } under fork_at_round_source, ReplaceAgentSource and
CrossRunReplaceAgentSource carry after_round instead of round_start,
DerivedRunReference carries after_round / rounds_after and the derivation type
fork_at_round, and the CSV lineage columns follow (lineage.after_round and
lineage.rounds_after replace lineage.round_start, lineage.rounds_after_swap
and lineage.rounds_after_resume). The on-disk replace_manifest.json schema is
unchanged, so every previously recorded run reads back under the new API, and the
metric name round_success_after_resume stays as recorded in historical reports.
Summary caches written before the rename are translated on read rather than
invalidated, so listing an existing runs directory does not rescan every JSONL.
Forking got stricter and safer at the edges. A source whose last end marker is not
scenario_complete cannot be forked after its final round, since a kill can land
mid-round; a scenario_complete that itself landed mid-round (a scenario's
is_finished_early hook) is caught the same way, because the boundary round must
carry its round_ended (logs recorded before that event existed carry none
anywhere and skip the check). Fork clones carry no simulation_ended lines and no
inherited derivation manifests, so a fork of a crashed-then-recovered source never
trips the simulation_ended evaluation gate early. A round_count carried by
--knobs (every shipped preset has one) sets the fork's total rounds when
--rounds-after is omitted and must agree with it when both are given, on all
three fork flows; it was silently overwritten before, so a full preset passed to
replace-agent --knobs alongside --rounds-after now errors unless the numbers
line up.
Sources whose log cannot rebuild a seat's history are refused. A cross-run run
cannot be forked: its log holds the replaced-away agent's turns before the import
boundary, so a fork would seed the seat with the wrong agent. A replace-agent run
accepts only a re-replacement of the same seat, because the filters that hid its
predecessor's turns live only in its manifest, which clones do not inherit. A
boundary behind an already-fired scheduled_events swap is refused for the same
reason: the swap's filters and swapped-in model live only in its config and
AgentSwappedMidRun event, so the fork would rebuild the seat with its
predecessor's turns under the pre-swap model. The same tests guard source B of a
cross-run import: a seat that B itself replaced, imported, or swapped cannot be
imported from B's log.
--resume on a fork that grew past its boundary anchors at the log's end, keeping
every advance, injection, and verdict the crashed launch already recorded, so a
crash between the clock's bookkeeping and the first message, or after a round that
played with no channel messages, no longer duplicates round events on recovery. A
fork with only agent re-registrations past its boundary resumes at the boundary
like a first launch. Play means the agents' own event types; scenario and world
events the clock flushes while opening a round (a case announcement from
on_round_advanced) count as recoverable progress, so scenarios that log
round-open events keep their crash recovery. A cross-run fork recovers the same
way unless it actually played, in which case it is refused, since the imported
agent's post-boundary turns cannot be rebuilt from source B. Crash recovery of a
replace-agent fork bounds the seat's seeding filters to the rounds before the
fork's entry round, so the replacement keeps its own text, thinking, and channel
traffic instead of being stripped like its predecessor, and re-anchors its hidden
channels at the boundary rather than the crash point, so the post-boundary
messages it had already seen stay visible.
Saved dashboards keep answering: the stores translate pre-rename lineage terms on
read (derivation_type = "resume_at_round" to fork_at_round,
lineage.round_start to lineage.after_round with numeric bounds shifted to
match, the two window columns to lineage.rounds_after, and
lineage.resumed_at to lineage.forked_at) and write the translated form back,
as does the summary-cache reader, so a legacy file is translated once rather
than on every read.
- Token costs are priced from the genai-prices catalog instead of a table kept
in token_pricing.py, at the rates in effect when the agent registered. A new
model or a price change now arrives by upgrading that package. gpt-5.2 was the
one model whose old entry disagreed: it is now $1.75 / $14 per million input /
output tokens, double the old figure. The models the pickers offer moved to
model_catalog.py, without prices.
- Four groups of root modules moved into packages. Each module keeps its name,
so an import gains the package segment:
- glossogen.telemetry: telemetry_settings, telemetry_bootstrap,
telemetry_round_processor
- glossogen.prod_sync: prod_push, prod_metadata_sync, remote_run_listing
- glossogen.run_derivation: replace_agent, cross_run_replace_agent,
replace_manifest, cross_run_replace_manifest, run_launching
- glossogen.scenario_authoring: scenario_scaffold, scenario_conformance,
scenario_package_checks, scenario_target, and the scaffold_templates
directory
The scenario contract moved separately, into glossogen.scenario_contract; the
entry above on that move lists its old and new import paths.
- glossogen.cli is a package. Each subcommand's flags and handler sit in one
module (run_command, export_commands, derivation_commands, ...), and
main lives in glossogen.cli.cli_entry. glossogen.cli re-exports it, so the
glossogen script's entry point and from glossogen.cli import main are
unchanged, as are the commands and their flags.
Fixed¶
- The
tool_namesandtool_definitionsofagent_registeredlist an agent's tools in the order that the model receives them. From v0.1.14 to v0.31.18, they listed the tools in alphabetical order. A script that rebuilt a prompt from the event log could therefore put the tools in a different order from the one that the model received. The two orders differ for 110 of the 150 agents in the built-in presets, counting an agent once for each preset. The count compares each agent's tools, in the order that the model receives them, with the same tools sorted. ATIF trajectories listed the tools in alphabetical order too. Event logs written by v0.1.14 to v0.31.18 keep the alphabetical order. Event logs written before v0.1.14 keep their own order: the base tools, then the tools that the agent's config listed. An ATIF trajectory takes a seat's tools from the seat's firstagent_registeredevent. After a resume, a fork-at-round or a replace-agent run, an older version can have logged that event. glossogen new-scenariocounts the built-in scenarios package when it checks that the new folder is loaded, so--target-dir src/glossogen/scenariosin a checkout no longer asks for a[tool.glossogen] scenariosentry. Its next steps drop the install step unless glossogen ran from outside the project or without pytest, and useuv add/uv runin a uv project.- The test
new-scenariowrites is plain functions calling the harness withasyncio.run, with no@pytest.mark.asyncio. A test written by an earlier version keeps working. assert_scenario_is_loadedandassert_scenario_is_registered, run with nopyproject.tomlat or above the working directory, say to run pytest from the project root.glossogen validate <path>logs each scanned file's "Registered scenarios" line once.round_success_after_resumenames the rounds it scored,post-resume rounds 3-3, where it printed the manifest's stored window,rounds_after_swap=0, one less than the rounds played. Scores were right; only the summary and a skip log line changed.- glossogen's commands turn off pydantic-ai's first-run "observability: off" banner, which read as a statement about Langfuse tracing.
- An empty or blank
LANGFUSE_PUBLIC_KEY,LANGFUSE_SECRET_KEYorLANGFUSE_HOSTcounts as unset, so blanking the keys disables tracing instead of logging a Langfuse authentication warning on every run. glossogen new-scenariorefuses a name that is already an importable module (signal,secrets, an installed package,glossogen), before writing anything. Such a folder hid that module and stopped every later command.validate <path>on a src-layout project checkspackage-dataunder the package's import name (mypack.x), not its path from the project root (src.mypack.x).- One scenario file imported under two module names, such as
src.mypack.xby the project scan andmypack.xby the pack's tests, registers one scenario instead of raising that the name is registered twice. glossogen evaluaterejects arguments it does not know, so--scenariosafter the subcommand is an error, as for every other subcommand. The scenario-not-loaded message says--scenariosgoes before the subcommand.--scenarios ""loads the built-ins only, like an emptyGLOSSOGEN_SCENARIOS, instead of scanning the working directory.- The project scan reads a project folder, or a configured folder, named like a
folder it skips (
tests,build,env,_lab); the skip rules apply below it. The project'sruns/is skipped from any subdirectory. - The project scan skips a file that fails to import, or that registers a name
already taken, with a warning naming the file and the error, and carries on;
--helpworks whatever it finds. Configured sources still fail the command. - The project scan stops at its file limit instead of walking the whole tree,
warning when it does, and warns before walking when no
pyproject.tomlis above the working directory. - A child process imports exactly the files its parent's scan imported, not the
whole package around a decorated
__init__.py. - A line of an undeclared event type with no
event_idortimestampis skipped and counted in the reader's warning instead of failing the read. event_types()returning something that is not anEventBasesubclass fails the load with an error naming the scenario.- The
spot_the_intersectionaudit_recorded_boardsandveyruinspect_replaced_agent_inputscripts load the scenario catalog before reading a run. - Signing in from a link into
/g/<slug>/...lands on that link. The group layout sent a signed-out visitor to/sign-inwithout the requested URL, so the identity provider fell back to its default page after sign-in. The frontend auth contract's server module gainsredirectToSignIn(), which the layout calls instead. An auth adapter built against this release must supply it. - A
move_a_boxact,haul,stand_by,pack_iceorfinishcall that waited on the scenario's lock past the end of its round returns "Round N ended after 0 of M actions landed." It raised "No round is in progress.", or, when the next round had already started, applied its actions in that round and logged them under the round it was called in. protocol_proberuns onspot_the_difference. Its question bank writesdifference_countas a JSON number andProbeQuestion.inputsaccepted only strings, so loading the bank raised before any agent was probed. Quoting the number instead would have broken the template's== 1branch.- An exported PDF numbers each turn, from 1 within each round, as the run viewer does. The number slot beside each avatar was blank. The PDF header's message count now counts the channel messages the PDF holds, the run viewer's message count: a channel PDF of a veyru run said "1309 messages", the whole run's messages, text reasoning and tool calls, for its 185 messages.
- A fork after the source's final round (
replace-agent,fork-at-roundorcross-run-replace-agentwith--after-round <final round>) ends its clone before the agents were told the game was over. It ended just beforesimulation_ended, after every agent'sread_notificationshad returned thedonenotice, so the rebuilt agents remembered the game ending: in signal_game the remaining player answered each new round with "the game has concluded" and never moved. replace-agent --history-from-roundwindows a seat that belongs to no channel. The floor was set per channel only, so in a scenario without channels, such as signal_game, the flag did nothing and the replacement kept its predecessor's whole record of tool calls. The manifest records the flag ashistory_floor_round, andprotocol_explanationapplies it to the replaced seat's history too.- A scenario judge under a provider outside
JUDGE_PROVIDERS(judge_provider, or any model a scenario'sget_judge_modelsreturns) is refused at launch.judge_provideraccepts anyProvider, and such a judge passed the credential check, then failed at its first call after the run had started. - The evaluation picker offers only models under a judge provider, read from the
new
judge_modelsfield ofGET /scenarios. It offered every model, and the evaluate endpoint refused the ones under any other provider. - Each agent cycle's tokens are priced at the rates in effect when the cycle
ended: by the runner, which records the run's total, and by the run list, the run
detail and the ATIF export, which price the usage logged on a cycle's last
response at that response's timestamp. They were priced at the rates in effect
when the agent registered or its runner started, which misprices tokens when a
rate changes during a run, as
genai-prices' time-of-day rates fordeepseek-chatdo. - An
openaiagent is sentreasoning.effortandreasoning.summaryonly when pydantic-ai marks its model as a reasoning model; a fine-tune is looked up by its base model, the second field of itsft:name. A fine-tune of a model without reasoning, such asgpt-4.1-mini, was sent both. - A knob the scenario does not declare is refused when a run is configured
(
--config, akey=valueoverride, a request body) instead of being dropped:BaseKnobsforbids extra keys, somax_round_duration_secs=5no longer launches a run on the preset's duration. A config a run recorded is read throughcreate_from_recorded_config, which drops a knob the scenario has since removed and logs it, so old runs still evaluate and fork. - Provider names come from one
Providerenum inmodel_catalog.py, withSIMULATION_PROVIDERSfor what an agent, a swap or a replacement can run under andJUDGE_PROVIDERSfor whatglossogen evaluateand a scenario's judge can.judge_provider,model_overrides[].providerandscheduled_events[].providerare typed with it, so a misspelled provider in a knobs file fails validation before the run starts rather than at the first judged action or at the swap's round. Every--providerflag's choices derive from the same enum;glossogen run --provider google-glawith anagents.*override, andevaluate --provider huggingface, were refused by one check and accepted by another. Ollama models are priced at zero like self-hosted ones instead of logging a pricing lookup failure per call. compaction.enabledunder a provider the runner has no compaction capability for (anything but Anthropic and OpenAI) is refused at launch; it used to run uncompacted with nothing logged.- The round-end triggers the game clock writes are a
RoundEndTriggerenum (runtime/round_end_trigger.py) that the round-ended metrics and the scenarios compare against, instead of each retyping the strings. A scenario'sget_early_round_end_triggerreturning one of the platform's values ends the run in error, since the metrics would have counted the round as one the clock ended. SendMessageResult.statusis aSendStatusenum (sent,conflict,rejected),LLMResponseReceived.stop_reasonaStopReasonenum (end_turn,tool_use), and the base tool names are constants incommunication_tools.pythat the runner, the history builder, the history cleanup and the pristine-text index import. The history builder matchesread_channelby name rather than by suffix.- veyru's resume reconstruction decides each team's
stabilizedfrom the judged stages; it read it off the run-wide trigger, so a two-team round ended byveyru_mixed_outcomerecorded the stabilized team as failed after a fork. - Warehouse fleet modes are a
FleetModeenum; an unhandled mode raises instead of taking the normal-traffic branch. - textcraft's
DeliveryCarrierand its four round triggers are declared once inround_vocabulary.py;LifecycleEntry.typeis aNotificationType. The frontend plug-in classifies all four triggers,team_tokens_exhaustedincluded, and the container-yard plug-in classifies its ownround_completed/round_failedinstead of the platform modal doing it. - An analysis query naming a group-by, filter or measure key the selection
does not carry is refused by name (422 on the API, non-zero exit on the
CLI) instead of bucketing every row under an empty string or answering
blanks; a
gte/ltebound that is not a number is refused by the filter model. A knob filter value that cannot be read as the knob's recorded type (postmortem_enabled=ture,round_count>=abc) is refused on the run listing, the exports and the CLI instead of matching nothing. A CSV export naming a column or metric the selection lacks is a 422 instead of a blank column. - Fixed-shape dicts read with
.get(key, default)are typed values, so a renamed or missing field is an error or a logged skip instead of a silent default: - Run discovery parses the agent, response, swap and round events it
reads; a malformed line fails that run's scan, naming the line, instead
of counting its tokens as zero or its provider as
unknown. - Manifest sources read replace and cross-run manifests through their
typed readers, so a manifest that does not validate no longer turns a
replace-agent run into a fork-at-round in the listing.
fork_manifest.jsonis read through aForkManifestmodel. prod_pushandsync-metadata-to-prodread the remote run listing throughRemoteRunPage; a page missingevaluation_content_hashis refused instead of re-uploading every report on every sync.- A scenario's
send_messageexecutor returns aSendReceipt(status,message_id), whichSendMessageResultand textcraft's send result extend; the pristine-text index and the history builder read the recorded result through it. Both receipts now serializestatusandmessage_idfirst. - The delivered
read_notificationspayload is aDeliveredNotificationmodel, and the history cleanup reads it andread_channelreturns through their models. The JSON is byte-identical. - The
language_repetitionsidecar row is aMessageRepetitionRowshared by the metric and the export; the communication and probe sidecar readers validate each row through the model its writer uses and skip a bad row with a log line. The cutoff-trajectory reader looked forsimilaritywhere the writer writesmean_similarity, so it read nothing from a real sidecar. - Normalized agent overrides are
ResolvedAgentModelnamed tuples; the{"model", "provider"}dict andAgentOverridePayloadare gone. A replace-agent or cross-run--knobsoverride with a null provider is refused; it used to be written as the string"None"and fail only in the detached run. - The supervisor reads
scheduled_events, and the CLI and the derived-run listing readreplace_agent_default_channel_visibilityandround_count, from the validated knobs.replace_agent_default_channel_visibilitypassed in--knobsapplies to the fork. - textcraft's
get_agent_rolesvalidates its knobs, andWorkspaceTaskStarted.manifestis typed as the task model. - The test harness parses events into
SimulationEventandof_type(event_type=...)takes the event class. - The run viewer draws the wire between a
read_notificationscall and its result for a payload the scenario rendered itself. The result chip knew the platform's notification types only, so a scenario's owntypeleft the result entry empty and the wire without an end. AScenarioPlugincan now render that chip throughrenderNotification; textcraft's plug-in renders itsWorkspaceWake, and a scenario without one gets the payload field by field. - A failed model request is retried after a pause that starts at 1 s, doubles, and is capped at 30 s. The attempts ran back to back, so a rate limit or an outage exhausted them within milliseconds.
- Text, thinking and tool calls a failed attempt had accumulated and not yet logged are discarded before the retry, so the retried response is logged once rather than appended to the failed one's partial content.
- The event-logging tasks of a cycle cancelled by the supervisor are awaited before the runner returns; they were awaited only for cycles that completed or failed.
- A
send_messageconflictresult lists only the unseen messages the sender may see; it listed messages from before the sender's join point on a channel with restricted history. - Round injections are pushed to every agent before any delivery is logged, so the agents receive the round's briefing at one point of the event loop.
- Resume matches a delivered round briefing to the same agent's
read_notificationsresult within that round regardless of which event was logged first. The agent can return the read beforeInjectionDeliveredis persisted; treating only later reads as complete sent that briefing again. - A model request that fails and is retried resumes at that request. The retry restarted the agent's cycle from its first prompt, so the model was asked again from a history missing the tool calls it had already made in that cycle, and could make them a second time. A cycle that fails every retry still restarts from the last completed cycle, so a request that keeps failing is not re-sent.
- A retried cycle's token usage counts every attempt. Only the last attempt's usage reached the cost tracker.
- A round's injection in the run viewer keeps its line breaks when expanded. It rendered as Markdown, which joins consecutive lines, so a line-per-item briefing such as a recipe list ran together on one line. A briefing the two-line preview cuts short now offers "Show full briefing" beneath it.
- An evaluation judged by an OpenAI model no longer bills cached input twice. The
Responses API counts cached tokens inside
input_tokens, and the judge recorded that count as the non-cached input. - A resumed or forked agent gets its earlier reasoning back the way a live run
sends it. Each
llm_response_receivedevent records its thinking part by part with the provider's identifiers (thinking_parts: OpenAI's reasoning item id and encrypted content, Anthropic's block signature), and the rebuilt history carries them, so OpenAI receives reasoning items rather than the summaries as<think>-tagged assistant text. Reasoning a run recorded as text only, before this, is left out of a rebuilt history instead of being sent in that form.
Added¶
move_a_boxon a virtual clock.virtual_clockpaces the operators by simulated request latency instead oflockstep: each request costsvirtual_base_latency_splus its output tokens atvirtual_output_tokens_per_second, and responses are released in that order whatever order the providers answered in.step_duration_smakes every action but a finish take virtual time, so a list lands one action at a time while the other operators act and read its readings, and the system prompt and theact,haul,stand_byandpack_icedescriptions say how long an action takes. Each release logsmove_a_box_request_released, and actions, finishes and round starts carryvirtual_time_s. On the clock the readout shows how many seconds the round has run, the system prompt says waiting spends no steps, and theread_notificationsdescription describesread_notifications(timeout_s=N). The new presetknobs_virtual_clockturns it on; every other preset leaves it off, and their prompts are unchanged. See the scenario README.move_a_boxvirtual clock card in the round view. For a run on the virtual clock, the round-timeline modal draws one ribbon per operator along the round's virtual seconds: its model requests, its actions under way, its finish and itsread_notificationswaits, with an arrow where the other operator's landing ended a wait. Pointing at the ribbons reads every operator's state at that second.MoveABoxRoundFloorgainsclock, aMoveABoxRoundClock, or null with the clock off. The lanes are rebuilt from events the clock already logged. See the scenario README.glossogen.testing.ParallelToolTurnscripts a response that makes several tool calls, which the runner executes concurrently.ScenarioBase.scenario_tool_timeout_s()sets how long one scenario tool call may run before it is cancelled. The default is 120 seconds;SCENARIO_TOOL_TIMEOUT_SECONDSmoved toruntime/scenario_tool.py.move_a_boxseveral actions in one call.batched_actionsreplaceshaul,stand_by,pack_iceandfinishwith oneacttool that takes a list of actions of any length and applies them in order. No other operator reads the readout until the list is done, and underlockstepthe hold comes once, after the list. An action the floor refuses stops the list there and the actions before it stand; a list the scenario cannot read is refused whole. The events are the ones single actions log. Every preset sets it on, andbatched_actions=falseoffers the four one-action tools. See the scenario README.move_a_boxtargets within a round.targets_per_roundmakes a round hold several targets. Once every crate has been left for one, it is scored and the next is drawn on the same floor around where the crates stand, and each operator moves its crate on from there. The next target's briefing, with the result of the one before it, reaches every operator in the same round. Each target scores on its own, and a round matches only when every target did.bay_matchscores such runs per target, and the run page draws one block per target. New presetknobs_two_targets; every earlier preset sets 1 and plays as before. See the scenario README.move_a_boxsymbol and letter bays.bay_identitydecides what tells the operators which bay is which.squareis the floor every earlier preset plays.symbolandlettergive each floor only its operator's assigned bays, on squares no other floor's bays use, each marked with a symbol (star, circle, ...) or a letter (A, B, ...), and the bays match by mark.bay_identity_from_roundswitches between symbols and letters partway through a run and announces it in that round's briefing. New presetsknobs_symbol_bays,knobs_letter_baysandknobs_letters_then_symbols; every earlier preset setssquareand plays as before. A fork of amove_a_boxrun recorded earlier names both knobs in--knobs. See the scenario README.signal_gameitems made of several attributes.shape_countputs a shape on each square andfill_count(solid, striped, hollow) a fill on each shape, and a round needs every attribute to match. Each player's prompt lists the shapes and fills, like the colours, in an order of its own. New presetsknobs_coloured_shapes(3×3, 9 items) andknobs_coloured_shapes_fill(5×5, 27 items), each with a control that shows the partner's grid.max_moves_per_callis now a knob (10 in the colour-only presets). Configs recorded before these knobs read as the game they played. See the scenario README.signal_gameword grids.word_countputs a word on each square instead of a colour, drawn from a 300-word vocabulary (word_list.py) the players are never shown, so a word cannot be named by its place in a list. Presetsknobs_words(3×3, 1000 moves a round, 300 a call) andknobs_words_control.max_moves_per_callmay now be up to 1000.signal_game's round timeline draws both players' grids, which items they share, where each started and finished, and both players' moves in order with each move's private reasoning.spot_the_intersectionscenario. Each viewer holds a private board, exactly one object is on every board of a team, and every member must submit it; two teams play the same boards and the correct team that said least wins. The team size is theteam_sizeknob.simulated_opponent_ratioplays Team A alone against a simulated Team B, always right in that share of Team A's characters, with Team A reading exactly what it would against a real team (knobs_simulated_opponent). Every round is certified from the lines the viewers read before it is played, andscripts/certify_boards.pyandscripts/audit_recorded_boards.pyin the scenario package check boards before a cohort and recorded runs after it. The run page's round timeline draws every seat's board with the answer and the near-misses marked, and each team's submissions. See its README.glossogen.engine.fewest_characters_winner, the fewest-characters comparison competing teams are ranked by, now shared byspot_the_differenceandspot_the_intersection.- Agents can run under
xai(XAI_API_KEY),groq(GROQ_API_KEY),mistral(MISTRAL_API_KEY),deepseek(DEEPSEEK_API_KEY) andopenrouter(OPENROUTER_API_KEY), and the run picker offers one priced model for each. pydantic-ai'sgroq,mistral,openrouterandxaiextras are required dependencies, which addsgroq,mistralai,xai-sdkandgrpcioamong the installed packages.PROVIDER_SPECSinmodel_catalog.pyhas one row per provider an agent can run under, with its credential variables, pydantic-ai prefix, whether it is billed and its weights; the launch check, the model factory, pricing and themodel_classexport column read it.groqanddeepseekcount as open weights,xaias closed, andmistralandopenrouterare not classified. textcraft_shared_workspace: a team crafts every target of a synthetic layered recipe grid from one finite shared depot, with no target assigned and no coordinator. Team size is a knob separate from the grid, so one agent on the same task is the baseline; messaging, a recipe split across agents, team action and token budgets, and undoing crafts are knobs too. Agents message withsend_message(text, to), wait onread_notifications, and read messages inside tool results; avirtual_clockknob orders them by simulated API latency. Judge-free. See its README.- A scenario can resume a parked agent itself:
runtime.release_wait(agent_id, detail)ends the agent'sread_notificationswithreleasedamong its wake reasons anddetailas the text, andruntime.parked_waits()andruntime.running_agent_ids()say who is waiting on what.on_agent_parkedruns inside the parking call, so a scenario that treats a team parked on each other's messages as a deadlock can release one of them there. read_notificationstakeswait_for(any,message,next_round) andtimeout_s.messageparks an agent until a teammate writes or the next briefing arrives,next_rounduntil the next briefing, and no model request is made while it is parked. A scenario renders the result with its ownread_notifications(agent_id, wake), for example to deliver message bodies and a world observation in one call, and can end a round's main phase the moment every agent is parked with no deadline, withends_round_when_all_agents_waiting. Waits logwait_registeredandagent_resumed.- A scenario can replace
send_messagewithsend_message_executor, whose parameters become the tool's schema, and post throughpublish_message.direct_channel_foraddresses named teammates on the primary channel whose members they are, or else on a direct channel created on first use and logged aschannel_created. A scenario opts into direct channels withvalidate_direct_channel, which also refuses the pairings it forbids. Direct channels are restored on fork and resume, listed in the run viewer, and scored with a primary channel that setsincludes_direct_channels. - A scenario can replace the runner's system-prompt suffix and its opening and
continuation prompts with
runner_prompts. The registration records a replacement, so fork, resume, probes and exports render what the run used. - Scenario hooks for simulated time:
on_model_request_started,gate_model_response(awaited before a response's tool calls run),schedule_wait_timeout,clock_now_s,on_agent_parked,on_agent_resumed,on_agent_retired,on_agent_enlistedandon_simulation_stopping. hidden_base_toolslets a scenario withhold base tools such asread_channelfrom an agent, anddefault_any_wait_timeout_ssets how long a plainread_notifications()waits.- Filter runs by the values in their
scenario_config. Picking a scenario on the runs page offers its knobs as conditions (round_time_budget_seconds >= 200,postmortem_enabledtrue or false, an enum knob from its own values), each row shows what it recorded for the knobs being asked about, and the footer says what the narrowing cost. The same conditions apply to the CSV and raw exports, toglossogen export --knobandglossogen analyze --knob, and to the export endpoints as the selection'sknobarray. Which knobs are offered comes from the scenario's own knobs schema, so a scenario installed from another distribution is filterable with no change to the platform. See Filtering by knob. - In-product analysis: pick a cohort of runs, group and filter it, chart metrics from
the evaluation reports, and save the result as a dashboard the rest of the group can
open. The same queries run from
glossogen analyzewith no server and no database, so a chart's numbers are checkable from a terminal. Dashboards live in Postgres whenDATABASE_URLis set and in the runs directory when it is not. See docs/analysis.md.
Removed¶
- The simulation MCP server, its transports, the per-agent
tools/listfilter andAgentRunner.start'smcp_server_url/mcp_server_objectarguments. The run browser's MCP server at/mcpis unchanged.
v0.5.0¶
Added¶
- Exporting many runs at once, as raw run folders or as CSV tables, over REST and from
glossogen export. See docs/exporting-runs.md.
v0.4.0¶
Changed¶
- Authentication is a plug-in, and this repository ships none. Multi-tenancy stays:
the
groupstable,/api/g/{group_slug}/routing, and theIdentityattached to every request. What left is any knowledge of how a caller proves who they are. A deployment supplies that as a distribution declaring one entry point underglossogen.identity_provider.v1, implementingIdentityProvider.
With no provider installed the server is single-tenant: every request resolves to the
synthetic local group. That is why there is no built-in implementation of the
contract and why nothing in it is optional, and it is also why the server performs no
authentication in that mode and should not be exposed to a network.
The middleware keeps the parts a provider must not get wrong. It extracts the bearer
credential, parses the URL's group slug, and resolves that slug to a groups row
before calling resolve_identity, so a provider never queries that table and cannot
get tenancy isolation wrong. It answers one question: does this credential grant
access to this group, and as whom. The other direction of the seam is
provider_services.py, which
exists because that direction was previously undeclared: the one call a provider must
make to finish a deferred MCP authorization was reachable only by reaching into
request.app.state.
Ambiguity refuses to boot. Two declared providers, or one declared under a contract version this platform does not read, raises. The scenario and metric loaders warn and carry on in the same situation, which is right for them, because a missing scenario is a missing feature. A missing auth provider is a server that authenticates nothing while an operator believes it is protected, and that is indistinguishable from a deployment that never configured one.
Deferred OAuth consent stays platform code: parking a request is about having more
than one group to choose from, not about any one vendor, and approve_pending_consent
already took a resolved group_id. Only the approval endpoint is pluggable.
GET /mcp/whoami stays too, since glossogen whoami calls it in either mode.
- The frontend reads identity through an adapter contract,
frontend/src/features/auth/auth-adapter.ts, implemented under
frontend/src/features/auth/adapter/. The copy here answers "no provider configured"
to every slot. Four modules rather than one object, because React's module graph
forbids one: readSession needs a server-only import, the provider wrapper is a
client component, getSessionToken runs in the browser with no React so
api-client.ts stays importable from either side, and the proxy delegate runs in the
edge runtime. /sign-in, /sign-up, /select-org and /mcp-consent stay here as
shells, because the App Router resolves pages by file path.
- CLERK_PUBLISHABLE_KEY became AUTH_PUBLIC_PUBLISHABLE_KEY, and RuntimeConfig
gained an auth map collected from every AUTH_PUBLIC_* variable rather than a named
field, since the platform cannot know what values a provider needs. The request-time
read is unchanged, so one compiled image still serves any environment. Those values
reach the browser and are visible in page source; an adapter's secrets stay on the
server.
Removed¶
clerk-backend-apiandsvixdependencies, and every Clerk-specific module. A deployment that used Clerk installs a provider distribution supplying it.CLERK_*variables from.env.example,docker-compose.ymland the documentation. A provider reads whatever it needs from the environment; the platform reads none of them.
Migration¶
groups.clerk_org_idis renamedexternal_org_idby migration0005_rename_external_org_id, along with its index and the auto-generatedUNIQUEconstraint, whichALTER TABLE ... RENAME COLUMNleaves behind. The column holds the id a group carries in whichever provider a deployment configures, so naming it after one made the schema describe a deployment choice.- A deployment currently relying on
CLERK_SECRET_KEYmust install an identity provider before upgrading. Without one the server starts in single-tenant mode and authenticates nobody, which is a silent change in posture rather than an error.
v0.3.0¶
Added¶
validatenow checks a scenario's events and the hooks its metrics read. Events were covered by nothing at all, and each failure there is silent when it happens: anevent_typerepeating one the platform or another of the scenario's own answers to shadows one side of the parser, so the run writes fine and reads back afterwards as the other thing; aneventsmodule that raises is logged and skipped by discovery, deliberately, so a third-party plug-in cannot stop the platform reading unrelated logs, which also means its author is never told; and anevents.pyimportingglossogen.models.eventcloses the cycle that module builds its union inside, which is read from the source rather than by importing, since by then the platform has failed to start. On the metric side, a probe or explanation config naming a file that is not there makes every metric in that family report having nothing to measure, which is what a run with nothing to measure reports too.get_judge_modelsis checked for readability and never compared against the knobs: that comparison was written and removed while the launch check was being added, because a scenario scoring its rounds without an LLM declared the knobs anyway and comparing the two refused runs for a credential it would never spend. What the hook reports is the scenario's to decide.- A documentation site, built with mkdocs-material and published per release with
mike, so a reader who pinned a tag gets the contract that tag was written against rather than whatever main says.make docs-servepreviews it andmake docs-buildrunsmkdocs build --strict, which a CI job runs on every PR. The obstacle was that these files are written to be read in the repository: dozens of links point intosrc/, intotests/, or at a root file, and every one of them resolves on GitHub and 404s on a site.scripts/docs_hooks.pyrewrites those to permalinks at build time and adds the repository-root pages to the site from where they are, so nothing had to move and no link had to become an absolute URL in the markdown. Heading anchors now follow GitHub's slug rules for the same reason: a heading holding&or an arrow used to get one anchor in the repository and a different one on the site, so a link written against either was broken on the other. - Three runnable notebooks under notebooks/, executed in CI. They
generate their own simulation through
glossogen.testingrather than reading a committed run or asking for one first, so they need no API key and reach no network: the real MCP server, game clock, world and event logger, with only the model scripted. A committed run would go stale against the event schema, and a reader without credentials would be stuck at the first cell.make install-notebooksadds jupyter, pandas and matplotlib as anotebooksdependency group, kept out ofdevso the default install and the test suite carry none of it.make test-notebooksexecutes every cell and fails on the first that raises, andlinter/check_notebook_outputs.pyinmake lintrefuses a notebook committed with its output, which otherwise buries the next real diff under regenerated cells. - docs/quickstart.md, a sequenced path through the platform:
run a simulation, read its event log, score it with the metrics that spend
nothing, then generate a scenario of your own and validate it. The reference
documentation covered all of this and sequenced none of it, so the shortest route
in was a 720-line guide read top to bottom. Costs are measured from three real
runs rather than estimated:
warehouse_robot_recoveryis $0.16 to $0.34 at three rounds on haiku,container_yard_stacking$37 to $50 at fifteen on opus, and three identical haiku runs scored 0/3, 1/3 and 0/3. linter/check_prompt_templates.py, inmake lint, checks the Jinja prompt templates: that each one parses under the environment that renders it, that every{% include %}names a partial in the directory the renderer searches, that nothing is rendered or included in vain, and that every template name in shipped code answers to a file. Nothing read the templates until a run did, and each of those failures otherwise waits until the run directory has been claimed and the agents have connected. Undeclared variables are deliberately left toStrictUndefinedat render: scenarios assemble their template variables in helpers, so the set a template renders with cannot be decided from the call site, and a rule that guessed would report the templates that are fine. Prompt-sized string literals in scenario Python are advisory.glossogen validate <name-or-directory>replacescheck-scenario, and takes either. Given a directory it reads the scenario's declaration out of that tree's ownpyproject.toml, so an author's loop is edit then check rather than edit, reinstall, check: every other way into a scenario resolves a name through installed metadata. Given a name it resolves the installed scenario. The two forms cannot be confused, a scenario name being a bare lowercase identifier, so anything holding a dot or a separator is a path. A directory additionally gets four checks that stop meaning anything after installation, because installation is what hides them:package-datanot covering the prompts and presets, which leaves an editable install working and the wheel rendering nothing; an entry-point group naming a contract version this platform does not read, which makes a scenario absent rather than refused; a non-empty package__init__, which closes the cycle event discovery runs inside; and a name something else already answers to, which is the one thing the name form cannot report, since it resolves to the scenario holding the name and reports that one as healthy. Needs no API key, and checks no model's reachability: describing a scenario must not require a credential.glossogen new-scenario <name> --target-dir <dir>writes a scenario package of your own that already runs:validatepasses,pytestpasses, andglossogen runcompletes before anything is edited. Assembling one by hand from the guide had two steps that fail long after the mistake, and both are now written for you:package-data, without which the wheel carries no prompt or preset and only an editable install works, and the entry-point key, which has to equal whatname()returns or runs land where nothing looks for them. The generated package pins the glossogen release it was generated against, and carries tests written againstglossogen.testing.- Scenarios and metrics can ship in their own distributions. A package declares a
scenario under the
glossogen.scenarios.v1entry-point group and a metric underglossogen.metrics, and both are discovered, listed, runnable and scorable with no change to this repo. Presets and prompts are read from the contributing package. See docs/creating-a-scenario.md and docs/creating-a-metric.md. docs/creating-a-metric.md, covering theMetriccontract, the empty-list convention, both registration paths, and how to run one.glossogen validate <name>builds a scenario from every preset it ships and checks the contract the ABC cannot enforce: agents claiming channels nobody created,tool_namesno tool answers to,get_agent_rolesdisagreeing with the agents that get built, templates that do not render, a config that does not round-trip through its own dump. The checks moved out of the test suite and into the package, because a scenario can ship from any distribution and the tests do not; the repository's conformance suite now runs the same ones over the built-ins. Reports every failure rather than the first, exits non-zero, and needs no API key.glossogen.testing, behind atestingextra: the harness that runs a scenario with the LLM replaced by a script.validateproves a scenario builds, but never starts the game clock, so nothing there notices if the world's state machine, the postmortem phase or the round verdict breaks.run_roundsdrives the real loop, and theassert_*helpers state what a finished run must contain.metric_harnessscores a finished run the wayevaluatedoes, andassert_scenario_is_registeredcatches the case validating by name cannot, a name that resolves to somebody else's class. All of this was reachable only from this repository's owntests/directory, so a scenario in another package had no way to test itself without racing the clock. See docs/testing-a-scenario.md.glossogen serve --ui-port PORTstarts the web UI alongside the API, from the published frontend image, so someone whose scenario or metric lives in their own package reaches it without cloning this repository. The flag wiresAPI_URL, adds the UI's origin toALLOWED_ORIGINS, waits until the page answers, and removes the container when the server stops.--ui-imagepins a version tag, which an older server needs.- A
glossogenconsole script, so the commands the docs spell asglossogen ...work on an installed package rather than only aspython -m glossogen. - Task-shaped documentation pages under
docs/: installation, running simulations, evaluation, scenarios, agent swaps and resume, the web UI, MCP integration, and deployment.
Fixed¶
- A run whose environment cannot reach a model it would call is refused at the
command line, instead of starting and failing once the game clock has run its
course. Agent runner tasks are awaited only after the clock finishes, so a
missing credential used to surface after
round_countrounds ofmax_round_duration_seconds, from a claimed run directory holding every agent's registration and no model call, with a zero exit status. The check covers the agents' providers, aself-hostedmodel thatSELF_HOSTED_BASE_URLSdoes not serve, and the model a scenario judges its own rounds with, whose provider its knobs name independently of the run's.replace-agent,cross-run-replace-agent,resume-at-roundand the MCPstart_runtool check before claiming a directory too. A scheduledswap_agentis checked with the rest: it names its own model and is built at a round boundary, so an unreachable one used to cost every round before the swap, at full price, and then kill the agent it was meant to bring in. Only the boundaries a run will actually cross are checked, so resuming past a swap does not ask for the credential that swap needed: a resumed run inherits its source's whole schedule, and the clock never visits what is below where it opens. hospital_bed_assignment_privacyno longer declaresjudge_model/judge_provider. It scores its rounds by comparing what was transferred against the ground truth and reads neither knob; they were kept "for parity with other scenarios", which is how a scenario with no LLM anywhere came to refuse a run for want of an Anthropic key.SimulationScenario.get_judge_models(knobs)is where a scenario states the models it calls itself, and its answer is what the launch check believes. The default reports thejudge_model/judge_providerpair; a scenario whose judge is conditional, or which names those knobs differently, overrides it and is not second-guessed, so a configuration that calls no judge is never asked for a credential it will not spend.
Changed¶
glossogen check-scenariois nowglossogen validate, which takes a scenario name exactly ascheck-scenariodid, and also takes a directory. Two commands differing only in how they found the class read as two different checks, and the second one existed to avoid renaming the first. Update any CI step that callscheck-scenario <name>tovalidate <name>; nothing else about it changed.validaterenders every round's injection rather than only round one. Round one is not representative: scenarios swap templates per round and bring an agent in partway through, so a template first reached at round 12 used to cost the eleven rounds before it to discover. The failure names the round and the agent. What this still cannot reach is the branch reading a previous round's outcome, since nothing has been played; that belongs to the round loop, andrun_rounds(round_count=2)covers it.- The published images are manifest lists covering
linux/amd64andlinux/arm64, each architecture built on a runner of its own and merged afterwards. An amd64-only image made everydocker runon an Apple Silicon machine an explicit--platformand an emulated one.serve --ui-portstill runs a release published before this, by retrying under emulation when the registry has no image for the host. - The README is a short hub that links the pages above. It had grown to cover every subject at full depth, which meant the answer to "what is this and how do I run it" was buried. Its project-structure listing is gone rather than moved: it drifted from the tree every time a module was added.
- The metric catalogue in
docs/evaluation.mdcovers every registered metric. The README's list was missing seven of them, including all of the deterministic language metrics. Architecture.md's run-directory listing includes the per-metric sidecar files and the live-runstream.json.scenario_loader.pyis the only way anything resolves a scenario name; nothing readsSCENARIO_REGISTRYdirectly any more.- Knobs presets are served by
SimulationScenario.knobs_preset_names/load_knobs_presetinstead of by globbing a path underglossogen/scenarios, which removed a duplicated helper from the REST and MCP layers. SimulationScenario.name()is a classmethod, derived from the same package directoryscenario_package_files()resolves.
Fixed¶
--configonrun, and--knobson the swap and resume flows, take the name of a preset the scenario ships. Both only accepted a file path, and presets live inside the scenario's own package: a checkout could writesrc/glossogen/scenarios/veyru/knobs_default.json, while an installed package left no sane thing to type at all. A path still wins when the argument is one, and an argument that is neither is refused by naming the presets that exist.--configis now required rather than silently accepting an empty configuration that every scenario's knobs model rejected a moment later.- A
.envin the working directory is read by an installed package, not only by a checkout.python-dotenvlocates the file relative to the module that calls it, which lands insite-packagesonce glossogen is a dependency, so a project's own.envwas ignored and itsANTHROPIC_API_KEYwith it. Nothing reported this: the key was absent and the run failed later against the provider.
v0.1.3¶
Added¶
- A cost model in the README: which knobs drive spend, and the advice to price one run before launching a sweep.
SECURITY.md,CONTRIBUTING.md, Dependabot, and issue and pull-request templates.- Releases are cut from a pull-request label.
release:patch/release:minor/release:majorbump the version, tag it, and publish the images;noreleasemerges without shipping. New pull requests default torelease:patch, and a required check enforces that exactly one label is set. docker-compose.ymland a self-hosting section in the README.
Changed¶
- Deployment and the experimental record moved to separate repositories. The
server image no longer carries a plotting stack or a multi-gigabyte ML stack
to serve JSON;
torchand friends are behind themetrics-mlextra andinspect-aibehindevals. - Evaluation fails loudly. A metric that cannot run raises instead of returning an empty result, and the runner writes its report before re-raising so the exit status reflects the failure. Metrics that genuinely do not apply to a run still return nothing, as before.
Fixed¶
- Prompt templates, knob defaults, probe question banks, and judge golden labels
now ship inside the wheel. Only
.pyfiles were packaged, so installingglossogenas a dependency produced a package that could not render a prompt. - Concurrent launches no longer truncate each other's logs. Launch output goes
to one file per launch under
runs/_launch_logs/instead of a single shared path opened in write mode. project.versionnow tracks the release tag. It read0.1.0for thev0.1.1release, soimportlib.metadata.version("glossogen")reported the wrong version.v0.1.1itself cannot be corrected without moving a published tag.- Scenarios that ship no frontend plug-in render their timeline against the right primary channel instead of an empty one.
- Image publishing triggers only on
vMAJOR.MINOR.PATCH. The previousv*pattern also matched scenario tags such asveyru-stellar-v1.
v0.1.1¶
Fixed¶
- Built wheels shipped no runtime data files. Only
.pyfiles were packaged, so 139 Jinja prompt templates, 27 JSON knob defaults and probe question banks, and the judge golden labels were missing. Installingglossogenas a dependency produced a package that could not render a prompt. Source checkouts and the Docker image were unaffected, which is why it went unnoticed.
Removed¶
AuthGate, a pass-through component that rendered its children unchanged.aiosqliteandwatchdog, declared dependencies with no imports.
v0.1.0¶
First tagged release.
Changed¶
- Repository scoped to the platform. Experiment configurations and analysis
tooling moved out, along with 35 of 37 entries in
scripts/. torch,transformers,minicons, anddatasetsmoved to an optionalmetrics-mlextra;inspect-aitoevals. Plotting and dataframe libraries dropped entirely. The backend image went from 5.82 GB to 480 MB.- Frontend configuration is read at request time rather than compiled into the
bundle, so one image serves any environment.
NEXT_PUBLIC_API_URLandNEXT_PUBLIC_CLERK_PUBLISHABLE_KEYbecameAPI_URLandCLERK_PUBLISHABLE_KEY, read at runtime. - Evaluation fails loudly when a requested metric cannot run. Previously a crashing metric was logged and the process still exited zero, so a broken environment was indistinguishable from a clean run.