Releases · Osmosis-AI/osmosis-sdk-python
v0.3.13
Added
- Support Python 3.15 while retaining Python 3.12 as the minimum version (#490).
- Rollout servers add
err_categoryand stage durations to the terminal ownership event: the server computestotal_sec,startup_sec,agent_sec, andgrading_secfrom UTC timestamps and omits any whose stage never started, while backends report their ownphase_<name>_secdurations through the newRolloutContext.record_phase_timings. All durations are clamped at zero and rounded to milliseconds (#488). - Rollout servers write an empty
.osmosis-releasedfile in a rollout's directory (~/.osmosis/<rollout_id>/, not itsartifacts/subdirectory) once its result retention ends and cleanup has finished, signalling that the server no longer needs it (#489).
Changed
- Extras that use LiteLLM now require
>=1.109.0,<2.0.0to avoid fastuuid's unsupported Python 3.15 native build. On Python 3.15, some optional dependencies build from source and can require a C compiler; on Linux with glibc older than 2.39, extras that install orjson also require a Rust toolchain (#490). - With the new LiteLLM floor, fresh installs of the
harbor,rubric, andevalextras can resolve OpenAI Python 3.x (#490, #491).
Fixed
osmosis eval runno longer fails with HTTP 400 on Gemini 3 and newer models when an agent replays tool calls without their thought signatures (#486).- Rollout result polling retries dropped connections, connect and read timeouts, and HTTP 502/503/504 until the polling lease deadline instead of giving up within about 16 seconds (#487).
v0.3.12
Breaking Changes
- Direct local-eval integrations must replace
EvalRunSpec(batch_size=...)withmax_concurrent_attempts=...and update customDatasetFetcher.download_to()implementations to accept the described dataset ID instead of its name (#482, #480). - New dataset names cannot contain
@; rename source files before uploading and usename@versionto pin a version, while existing names containing@remain usable and exact-name lookup takes precedence over version parsing (#480).
Added
- On platforms with dataset versioning, uploading an existing name creates a new version without
--overwrite; pindataset = "name@version"in run configs to keep a fixed version, since bare names follow the newest version that finished processing (#480). osmosis dataset versions <name>lists version history, and dataset upload, info, list, and JSON output expose version details when supported by the platform (#480).- Benchmark configs accept
[execution].verifier_timeout_multiplierto adjust verifier timeouts independently of agent timeouts on supported platforms; older platforms ignore this field (#485).
Changed
- Use
[evaluation].max_concurrent_attemptsinstead ofbatch_size; the old config key remains accepted, setting both is rejected, and older platforms may accept cloud submissions while silently ignoring the new field (#482). - Local eval defaults to 8 concurrent attempts, capped at the backend's capacity;
--max-in-flightoverrides the configuredmax_concurrent_attempts(#482). - Managed OpenSandbox settings and rollout telemetry prefer the platform's
_OSMOSIS_environment variables while retaining the previous names as fallbacks (#479).
Fixed
- Dataset downloads and local eval fetch the exact dataset version they inspected, keeping size checks and cached data consistent when a newer version becomes ready during the download (#480).
osmosis quickstartbenchmark prompts reference the Osmosis plugin'srun-benchmarksskill instead of the removedsubmit-benchmarksskill (#484).
v0.3.11
Added
- Use
HarborBackend(agent="pi")to run Pi with subagents, live previews, and ATIF trajectories that include subagent usage (#475). - Local eval records
max_context_tokensinindex.jsonlwhen usage is available: the largest prompt-plus-output token count for a single model call in each rollout (#471). osmosis benchmark infoshows when a benchmark requires a model input limit; setmax_input_tokensin[agents.model]for provider or endpoint models (#473).- Use a rollout's polling lease to fetch its saved trajectory from
GET /rollout/{id}/trajectoryas soon as the rollout finishes (#474).
Changed
- Harbor uses the platform's per-run trial limit unless you set a lower limit with
TrialQueue; local runs default to 8 concurrent trials, and local eval caps submissions at the server's limit (#474).
Fixed
- Platform commands that do not read rollout source now work in connected repositories without the Osmosis scaffold, and
osmosis --workspace <name> eval uploadsends the run to the named workspace (#472). - In template mode, native Harbor agents receive plain system and user messages as task text in
instruction.md; structured prompts keep their JSON representation (#470).
v0.3.10
Breaking Changes
osmosis eval uploadandeval run --uploadnow use archive imports instead of individual file uploads, with no per-file upload fallback (#466).- Direct eval-import integrations must replace
files=witharchive=inOsmosisClient.start_eval_run_import(), uploadfiles.jsonlandrun.zip, and wait for extraction to reachreadyusingstart_eval_run_import_extraction()andget_eval_run_import_extraction()before finalizing (#466). - Eval-import results require
upload_mode, list upload slots infilesfor archive imports, and allow slotsha256values to beNone; update model constructors and result handling accordingly (#466).
Changed
- Local eval uploads stream a ZIP64 archive one part at a time without writing a temporary archive to disk, replacing per-file requests and skipping completed upload slots on retry (#466).
Fixed
- Strands rollouts preserve earlier assistant reasoning in follow-up requests, live previews, and ATIF trajectories instead of dropping
reasoning_content(#465).
v0.3.9
Breaking Changes
- Source digests now prevent ambiguous file-name/content matches, rebuilding bundle caches once and blocking resume and
--retry-failedfor named local eval runs created with the previous format, including SDK 0.3.8; finish those runs with their original SDK, choose a new run name, or use--freshto archive results and restart (upgrade guidance, #458).
Added
- Rollout results expose
agent_started_atto distinguish setup failures from attempts whose agent started, including cancelled, expired, and crashed results (#459). - Built-in OpenSandbox environments accept a positive
OPENSANDBOX_REQUEST_TIMEOUT_SECdefault for client requests while preserving explicit timeout settings (#459). - Local eval writes and uploads
dataset_rows.jsonlfor prompt and ground-truth search and ground-truth sorting in Evaluation Samples; uploads containing this file require matching platform support (#460). osmosis eval downloadsupports paged manifests with progress reporting and--type summaryfor downloading only the per-sample index; the new type requires platform support, while existing downloads remain compatible with older platforms (#461).
Changed
- The
strands,openai-agents,harbor,rubric, andevalextras require LiteLLM>=1.103.1,<2.0.0excluding1.104.0rc1, and filelock>=4.2.1, to exclude vulnerable releases; update conflicting pins, refresh lockfiles, and rebuild affected runtime images (#464). - The
strandsextra requires Strands Agents>=1.48.0,<2.0.0, and theserver,strands,harbor, andevalextras require OpenTelemetry API>=1.45.1,<2.0.0for security fixes;fullincludes all updated requirements (#464).
Fixed
- Known credentials, including escaped and multiline values, are more consistently redacted from CLI output, platform errors, local eval logs, and provider diagnostics, including debug traces and Rich hyperlinks (#458).
- Malformed provider responses use sanitized error handling, and HTTP 426 responses with a non-string
statusshow the standard upgrade message instead of crashing (#458). - Rubric dataset loading skips non-object messages and reports a line-numbered CLI error when no usable assistant response remains (#458).
v0.3.8
Breaking Changes
- Removed
RolloutInfo.is_activeand theis_activefield fromosmosis rollout list --json; remove reads and constructor arguments for this always-true flag, and usedescriptionandlast_synced_atfor descriptive and sync metadata (#450).
Added
- Harbor prewarm supports configurable modes, progress logs, automatic dataset task discovery, and OpenSandbox concurrency limits, while allowing startup after isolated task failures and rejecting systemic failures (#449).
- Train, eval, and benchmark submit confirmations identify the selected workspace or its source repository, including in JSON confirmation details (#451).
- Base model info shows cached-input pricing, preserves small prices, and includes all three price fields in JSON with
nullfor unavailable rates (#454).
Changed
- The
harborextra accepts Harbor>=0.20.0,<0.25, and native OpenCode reuses compatible runtimes prebaked under/opt/osmosis-agent/bininstead of reinstalling them (#453). - The
strands,openai-agents,harbor,rubric, andevalextras requireaiohttp>=3.14.4andmultidict>=6.9.1, and the agent adapters require MCP>=1.30.0excluding2.0.*and2.1.*; update conflicting pins, regenerate lockfiles, and rebuild affected runtime images (#455). - The base installation requires
certifi>=2026.10.19, and theharborandevalextras requireuv>=0.13.4,<0.14, so neither CA bundle trusts the emSign root whose intermediate CA keys were compromised; update conflicting pins, regenerate lockfiles, and rebuild affected runtime images (#457).
Fixed
osmosis train info --output <path>preserves existing files unless--overwriteis passed, and metrics exports are written atomically (#452).- Local eval releases worker slots without waiting for nonexistent trajectories after rollouts return no sample, and its live pass rate excludes skipped samples to match final metrics (#443, #445).
- A second Ctrl-C during local eval skips the long shutdown waits and gives the rollout server five seconds before force-stopping it, while still stopping the tunnel and listener; sandbox cleanup may remain incomplete (#444).
- New training scaffolds omit unsupported
eval_intervalexamples and direct users toosmosis model list --type basefor supported models (#447, #448).
v0.3.7
Added
- The
harborextra includes OpenSandbox support, andHarborBackendapplies protocol and managed proxy defaults for built-in OpenSandbox environments while preserving explicit kwargs (#437, #438).
Changed
- The
strands,openai-agents,harbor,rubric, andevalextras (includingfull) requirefsspec>=2026.6.0for a ReferenceFileSystem code-execution fix; update conflicting application pins, regenerate lockfiles, and rebuild affected runtime images (#440).
Fixed
- Harbor tasks without a Dockerfile skip SDK pre-install patching instead of failing, allowing prebuilt-image tasks to run with the default bundle setup (#438).
RolloutClientretries result reads that return HTTP 502, 503, or 504 within the polling lease, and new rollout scaffolds and the Harbor source gateway keep connections alive beyond the platform load balancer's idle timeout (#439).
v0.3.6
Breaking Changes
- Removed
POST /drain,RolloutClient.drain(), and the drain request/response models; usehealth()andwait_idle(process_id=...)to observe completion, SIGTERM for shutdown, and retain your submitted rollout IDs for evidence verification (wait_idle()does not fence admissions or confirm external uploads) (#433).
Added
- Rollout servers call
ExecutionBackend.shutdown()to clean up backend resources, including Harbor trials and artifacts; configure the host termination grace period for the server's bounded shutdown stages and Harbor's additional cleanup wait (#432). - Hosts can enable bounded live trajectory previews for supported local sources, native Harbor agents, and bundled workflows without changing final results or grading; bundled workflows need a preview-capable SDK inside the sandbox (#428).
Changed
- Support Harbor
>=0.20.0,<0.24while preserving publishedharbor-v1image identities and Mini-SWE endpoints; when upgrading to Harbor 0.23, review stricter input validation, finite JSON rewards, Mini-SWE's managed Python 3.12 setup, and Terminus ATIF 1.8 consumers (#405). - Applicable extras require LiteLLM
>=1.94.3,<2.0.0excluding1.95.0.*,1.96.0.*, and1.96.1.*, urllib3>=2.8.0, and PyJWT>=2.15.1for security fixes; update conflicting application pins and regenerate lockfiles (#416).
Fixed
- Existing Harbor subclasses retain their original
build_trial_config,build_agent_config, andharness_agent_configsignatures, avoiding startup failures from an unexpectedpreview_pathkeyword while keeping preview routing internal (#435). - Unexpected execution-task crashes produce a terminal
internal_errorfailure instead of leaving clients polling until lease expiry (#410). - Native-evidence redaction stays linear on long identifiers, avoiding stalls that delay health checks and result polling (#411).
v0.3.5
Breaking Changes
- The internal
osmosis dev server up|down|list|logscommands are removed from the public SDK; internal users run the same commands from the privateosmoCLI asosmo dev server ...(#389). - The dedicated dev-server Python API is removed: the
OsmosisClientmethodsprovision_dev_rollout_server,teardown_dev_rollout_server,get_dev_rollout_server_logs,stream_dev_rollout_server_logs, andlist_dev_rollout_servers, theDevRolloutServerInfoandPaginatedDevRolloutServersmodels, theDevServerSandboxEnvironmentandDevServerBackendenums, andserialize_dev_rollout_server(#389). osmosis imagesand theOsmosisClientmethodssubmit_image_build,get_image_build,get_image_build_artifacts, andget_image_pull_credentialsare removed; internal users migrate managed image builds toosmo images(#394).- Harbor rollout IDs must no longer contain colons or control characters; use portable IDs for retained evidence paths (#396).
Added
- Harbor source gateways run pinned GitHub tasks with immutable images and validated
HarborGatewayConfigsettings;SourceImageManifestandSourceImageBuildResultvalidate image bindings and task selections (#387, #390, #397). osmosis_ai.cli.main.create_app()andrun_cli()let downstream CLIs reuse the public command tree, root options, and output handling while adding their own commands, version reporting, and upgrade command (#389).- Rollout servers support optional bearer authentication, and
RolloutClient.health(),wait_idle(), anddrain()expose process identity and wait for admitted work to finish before shutdown (#395). - Harbor retains sanitized native results and logs with checksum inventories and process-bound verification, excluding OpenCode databases and snapshots from native-log exports (#396, #399).
Changed
- JSON error envelopes resolve
commandfrom the invoked command tree: unknown subcommands are kept (for exampledataset lst),--workspacevalues are no longer reported as the command, andosmosis_ai.cli.output.command_path_for_error()withoutroot_commandno longer readssys.argv(#389).
Fixed
- Local eval and the OpenAI Agents and Strands integrations preserve custom inference parameters, including OpenRouter
reasoningandproviderfields, while rejecting bridge-control overrides; upgrade each relevant SDK environment, and cloud eval also requires its controller integration (#400).
v0.3.5rc1
Breaking: the internal osmosis dev server up|down|list|logs commands and their dedicated OsmosisClient methods, models, enums, and serializer are removed from the public SDK; internal users run them from the private osmo CLI.
Adds osmosis images build --url --path --ref to build Harbor task images from pinned GitHub sources, HarborGatewayConfig for managed source gateways, and the create_app() / run_cli() composition API for downstream CLIs. JSON error envelopes now resolve command from the invoked command tree.
Validated by SDK tests on Python 3.12, 3.13, and 3.14, wheel smoke tests, lint, and type checking.
Changes: v0.3.4...v0.3.5rc1 (CHANGELOG)