Skip to content

v0.7.0

Choose a tag to compare

@Lawhy Lawhy released this 20 Aug 03:52
a5890cf

What's New

⚠️ Breaking Changes

  • CalculatorEnv → MathEnv, and it no longer has a tool. strands_env.environments.calculator.CalculatorEnv is now strands_env.environments.math.MathEnv; the model reasons in text and boxes its answer. The calculator tool was the env's only reason to import strands-agents-tools, and upstream deprecated it in 0.8.6 — the suggested replacement is the vended bash tool, a privilege increase not worth making for a math sandbox. MathVerifyReward is unchanged, and none of its seven consumers (the aime, hmmt and simple_math eval hooks, the retool training script) ever put a tool in the loop. (#229)
  • The ifeval and agent-world-model extras are gone. Both pulled unpatchable transitive dependencies: agent-world-model==0.1.0 pins fastapi==0.115.12 (holding starlette at 0.46.2 and mcp at 1.27.2 — eight advisories), and lm_eval[ifeval] brings sqlitedict, abandoned since 2022 with an unpatched deserialization RCE. Neither environment loses its install path — agent_world_model/requirements.txt already carries the pin, and the IFEval benchmark now re-raises with the exact command, surfaced by python -m strands_env.eval --list. (#243)
  • pip install -e ".[dev]" no longer resolves — dev dependencies moved to a PEP 735 [dependency-groups] table, so they stay out of the published metadata. Use uv sync (installs the dev group by default) or uv pip install -e . --group dev. (#218)

Bug Fixes

  • A completed answer followed by blank turns is no longer read as no answer at all. A model can report stopReason: "tool_use" while returning no tool-use block; the agent loop takes the tool branch anyway and appends blank turns, so get_final_response read messages[-1] and returned None for a turn that had answered in full — aborting the sample and, with it, every sample of that prompt. One Bedrock run lost 9 of 254 episodes, one on a 2855-character reply. It now walks back past blank turns. (#216)
  • terminal_bench no longer crashes a whole run on a task without memory_mb. It doubled task_env_config.memory_mb unconditionally, but harbor types the field int | None — an absent value raised TypeError inside load_dataset, taking down the run rather than one sample. All 89 tasks in the current dataset set it, so this had not yet fired. (#224)

Security

  • 67 open Dependabot advisories cleared, 20 of them high. Security updates had never been enabled on this repo, so nothing was pushing a fix; one full lockfile resolve closed 66, and dropping the two extras above closed the rest. The lockfile went from 228 to 166 packages. (#240, #243)
  • The sdist no longer ships the whole repo. With no [tool.hatch.build.targets.sdist], hatchling fell back to including .claude/, .devin/, .github/ and .local/ — the last holding an e2b API key. hatchling reads the filesystem, not git, so .gitignore did not hold it back. Published sdists were clean (CI builds from a fresh checkout), but a local uv build plus manual upload would have published that key. Now an explicit include list. (#228)

Maintenance

  • The lint gate is now real: CI invokes pre-commit run --all-files instead of restating a subset, so codespell, insert-license, slime-casing and conventional-pre-commit are enforced for the first time. Ruff's global fix = true is gone — it rewrote fixable violations in the runner and reported success, then discarded the rewrite with the runner. Every action reference is SHA-pinned, with dependabot bumping them weekly. (#217, #218)
  • mypy no longer waves through unstubbed dependencies — ignore_missing_imports applied to every import, resolving harbor, ray, tau2, wandb and anything reached through them to Any. (#224)
  • Test warnings are now fatal, so a dependency deprecation fails the suite instead of scrolling past. (#226)
  • Dependency bumps: strands-sglang>=0.6.1, strands-agents-tools 0.8.6, datasets 5.0.1, tiktoken 0.13.0, tqdm 4.70.0. e2b stays pinned at 2.25.1 — harbor/e2b.py patches an SDK internal. (#245, #221, #222, #223, #230, #233)

Documentation

  • Agent guidance moved to AGENTS.md (the filename other coding agents read), with CLAUDE.md now a pointer to it. Docstrings became optional (ruff selects D2/D4, not D1), module docstrings were dropped from 120 files, and the previously unwritten Files/Comments/Private-helpers/Tests conventions were written down. (#227, #232, #242)
  • Fixed the dead CI badge (pointed at the removed test.yml), the last horizon-rl → strands-rl references, a stale release checklist that told you to bump a version field that does not exist, and a tagline that said three different things depending on where you read it. (#225, #241, #244)

Notes for upgraders

  • Rename CalculatorEnv → MathEnv and update the import path to strands_env.environments.math. If you relied on the calculator tool, you now need to supply your own.
  • Replace pip install -e ".[dev]" with uv sync, and pip install ".[ifeval]" / ".[agent-world-model]" with the direct requirement.

Full Changelog: v0.6.7...v0.7.0