Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 16:51
· 88 commits to main since this release
Immutable release. Only release title and notes can be modified.
b39bd36

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.extension now exports list_runs, latest_run_id and read_partitioned_dataset, for tools that read what usersim simulate and usersim eval wrote, and probe_description, for describing the probe behind a stored row. Before, these needed imports from internal modules. See the Runs section of docs/extension_api.md.
  • The extension template names a usersim range. A package copied from templates/extension_package now declares usersim>=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.md now uses uv 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-probe adds 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.md lists what removing or renaming a built-in takes.
  • Probe and scorer counts are checked at release. make check-doc-counts compares 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.