Repository navigation
v0.3.1
·
88 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Summary
usersim 0.3.1 is a patch release. It makes more of a run readable from an extension package, says which usersim releases the extension template works with, and makes adding a built-in probe a matter of setting one value in the shared tests. Nothing in it changes how you run User Sim or asks extension authors to change their code.
Highlights
For extension authors
- Read runs through the public API.
usersim.extensionnow exportslist_runs,latest_run_idandread_partitioned_dataset, for tools that read whatusersim simulateandusersim evalwrote, andprobe_description, for describing the probe behind a stored row. Before, these needed imports from internal modules. See the Runs section ofdocs/extension_api.md. - The extension template names a
usersimrange. A package copied fromtemplates/extension_packagenow declaresusersim>=0.3,<0.4, so it can't resolve to a later minor release that drops a hook it uses. - Building against a User Sim checkout.
docs/extensions.mdnow usesuv run --with-editable ../UserSim …, which keeps your checkout for the command it runs, and says to run each package's tests from its own folder.
For contributors
- Adding a built-in probe. The shared tests now read the probe list from the registry and from each probe's
contract.py, so a new probe passes them once its own trajectory pin is set.make check-new-probeadds a probe from the template in a scratch copy and runs the whole suite. CI runs it on every pull request. - Each probe's tests live in its own folder, under
tests/probes/<package>/, and the shared tests name no probe outside the default mix.docs/engine/AUTHORING_A_PROBE.mdlists what removing or renaming a built-in takes. - Probe and scorer counts are checked at release.
make check-doc-countscompares the counts the docs state with what's registered, and the release workflow runs it.
Upgrading
No changes needed. Run pip install -U usersim, or uv add "usersim>=0.3.1" in a uv project.
If your extension uses list_runs, latest_run_id, read_partitioned_dataset or probe_description from usersim.extension, require usersim>=0.3.1,<0.4.