Repository navigation
v0.7.0
What's New
⚠️ Breaking Changes
CalculatorEnv→MathEnv, and it no longer has a tool.strands_env.environments.calculator.CalculatorEnvis nowstrands_env.environments.math.MathEnv; the model reasons in text and boxes its answer. The calculator tool was the env's only reason to importstrands-agents-tools, and upstream deprecated it in 0.8.6 — the suggested replacement is the vendedbashtool, a privilege increase not worth making for a math sandbox.MathVerifyRewardis 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
ifevalandagent-world-modelextras are gone. Both pulled unpatchable transitive dependencies:agent-world-model==0.1.0pinsfastapi==0.115.12(holding starlette at 0.46.2 and mcp at 1.27.2 — eight advisories), andlm_eval[ifeval]bringssqlitedict, abandoned since 2022 with an unpatched deserialization RCE. Neither environment loses its install path —agent_world_model/requirements.txtalready carries the pin, and the IFEval benchmark now re-raises with the exact command, surfaced bypython -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. Useuv sync(installs the dev group by default) oruv 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, soget_final_responsereadmessages[-1]and returnedNonefor 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_benchno longer crashes a whole run on a task withoutmemory_mb. It doubledtask_env_config.memory_mbunconditionally, but harbor types the fieldint | None— an absent value raisedTypeErrorinsideload_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.gitignoredid not hold it back. Published sdists were clean (CI builds from a fresh checkout), but a localuv buildplus 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-filesinstead of restating a subset, socodespell,insert-license,slime-casingandconventional-pre-commitare enforced for the first time. Ruff's globalfix = trueis 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_importsapplied to every import, resolving harbor, ray, tau2, wandb and anything reached through them toAny. (#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-tools0.8.6,datasets5.0.1,tiktoken0.13.0,tqdm4.70.0.e2bstays pinned at2.25.1—harbor/e2b.pypatches an SDK internal. (#245, #221, #222, #223, #230, #233)
Documentation
- Agent guidance moved to
AGENTS.md(the filename other coding agents read), withCLAUDE.mdnow a pointer to it. Docstrings became optional (ruff selectsD2/D4, notD1), 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 lasthorizon-rl→strands-rlreferences, 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→MathEnvand update the import path tostrands_env.environments.math. If you relied on the calculator tool, you now need to supply your own. - Replace
pip install -e ".[dev]"withuv sync, andpip install ".[ifeval]"/".[agent-world-model]"with the direct requirement.
Full Changelog: v0.6.7...v0.7.0