Skip to content

v0.6.7

Choose a tag to compare

@Lawhy Lawhy released this 13 Aug 11:01
· 49 commits to main since this release
d7062f5

What's New

This release also carries everything from v0.6.6, whose release notes it replaces.

Breaking Changes

  • LLMJudgeReward.get_judge_agent now takes (task, result) and owns building the whole judge agent, system prompt included. The old signature received an already-rendered system_prompt, which made an agentic judge impossible: a judge with tools has to bind per-sample state into those tools, and the sample was not in scope. (#215)

    # before
    async def get_judge_agent(self, system_prompt: str | None, name: str = "LLMJudge") -> Agent: ...
    
    # after — call get_system_prompt yourself if you need it
    async def get_judge_agent(self, task: TaskT, result: RolloutResult) -> Agent: ...

    Subclasses that only override get_judge_prompt / get_system_prompt are unaffected — both are unchanged. A judge that fails to build now reports error_type: "judge_agent_error", replacing system_prompt_error and covering anything else construction touches (resolving tool schemas, opening a client) that previously surfaced as an indistinguishable judge_error. The abort path keys on status, which is unchanged.

Bug Fixes

  • A Task subclass's own fields now survive into results.jsonl. EvalSample.task was serialized against the base Task, so fields declared on typed tasks (HarborTask.task_dir, Tau2BenchTask.domain, MCPAtlasTask.gtfa_claims, ...) were dropped on the way to disk. Scoring and resume were unaffected — the rollout and reward always read the live object — so the loss only hit post-hoc analysis of the results file. (#214)
  • One bad character no longer kills an eval run. LocalReporter serialized samples with ensure_ascii=False, so an unpaired UTF-16 surrogate in a model response (models emit these when a surrogate pair is split mid-token) raised UnicodeEncodeError at fh.write — inside the asyncio.gather in Evaluator.run, taking down every sample still in flight. rewrite() had the same call, where one bad character could take the whole file. (#211)
  • The eval CLI no longer writes config.json behind the reporter's back. The run config was serialized twice into the same directory, and metadata.json already contained every byte of it — so a run configured with a remote-only reporter still got a stray local file in a directory it otherwise never touches. (#209)

Maintenance

  • strands-sglang floor raised to >=0.6.0, and model auto-detection moved off SGLang's deprecated /get_model_info to /model_info (both return identical JSON today; this is a rename ahead of the upstream removal, which would otherwise take the whole integration suite down at once). (#210)

Notes for upgraders

  • results.jsonl lines are now ASCII-escaped. Content is unchanged through json.loads; only code that byte-greps the raw file for literal non-ASCII text would notice.
  • config.json is no longer written — read metadata.json instead.

Full Changelog: v0.6.5...v0.6.7