Skip to content

Releases

Weave 1.1.2

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 17 Nov 03:49

Weave 1.1.2 is a docs-only update of 1.1.1. The README now uses absolute image and documentation URLs so the demo GIF and results chart render on the PyPI project page as well as on GitHub. No code changes.

Install with pip install weave-lang. The import name is weave.

See 1.1.1 for the first PyPI release notes and the measured benchmark results, including losses.

Weave 1.1.1

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 17 Nov 03:20

Weave 1.1.1 is the first release on PyPI. It is a packaging-only update of 1.1.0: wheels are limited to tested CPython 3.9–3.13, with no code changes.

Install with pip install weave-lang. The import name is weave. Do not also install weave from PyPI (Weights & Biases Weave; same import name).

What's new (since 1.0.0, also in 1.1.0)

  • WeaveTool(compact=True): shorter tool listings (repeated doc sentences printed once as lettered notes).
  • WeaveTool(write_gate="choice" | "flow" | "errors"): pause a script before a write whose arguments depend on results the model has not seen. Refused writes never run, and the model gets the results so far.
  • WeaveTool(conversational=True) and persist_variables=True for hosts where a person replies between turns.
  • WeaveTool.langchain_tool() for LangChain and LangGraph, and weave mcp-config --client claude|cursor to install the MCP server.
  • Benchmark runner: --base-url / --deployment / --api-key-env for any OpenAI-compatible endpoint, with the same client on both arms.

Results

Measured against native function calling with the same model, tools and settings. Full tables: docs/benchmarks.md.

  • Fan-out on real services (round 9): 40/40 vs 27/40 at 0.45–0.50× the cost.
  • BFCL v4 multi-turn (round 9): 0.86× cost pooled; GPT-4.1 38/60 vs 35/60; GPT-5.4 mini 18/60 vs 27/60, a significant loss.
  • BFCL miss_param / miss_func with the write gate (round 10): GPT-5.4 mini 30/105 vs 24/105 (not significant) at equal cost; GPT-4.1 3/16 vs 5/16, a loss (5/20 vs 7/20 after the remaining pairs were completed on Azure).
  • BFCL fresh confirmation with the write gate (round 11, Azure, 378 unused tasks): 159/378 vs 140/378 (p = 0.07, not significant) at 0.91× the cost; GPT-4.1 92 vs 81, GPT-5.4 mini 67 vs 59.
  • tau-bench retail: a draw.

Assets

CPython 3.9–3.13 wheels for Linux x86_64/aarch64 (manylinux2014), macOS x86_64/arm64 and Windows x64, the sdist, and SHA256SUMS.txt. Built and published by the release workflow run from tag v1.1.1. Also on PyPI.

Weave 1.1.0

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 17 Nov 02:32

Weave 1.1.0 adds compact tool listings, a write gate that pauses before a write computed from unseen results, conversational mode, LangChain and MCP integrations, and an OpenAI-compatible benchmark endpoint (Azure AI Foundry). The package is still not on PyPI.

What's new

  • WeaveTool(compact=True): shorter tool listings (repeated doc sentences printed once as lettered notes).
  • WeaveTool(write_gate="choice" | "flow" | "errors"): pause a script before a write whose arguments depend on results the model has not seen. Refused writes never run, and the model gets the results so far.
  • WeaveTool(conversational=True) and persist_variables=True for hosts where a person replies between turns.
  • WeaveTool.langchain_tool() for LangChain and LangGraph, and weave mcp-config --client claude|cursor to install the MCP server.
  • Benchmark runner: --base-url / --deployment / --api-key-env for any OpenAI-compatible endpoint, with the same client on both arms.

Results

Measured against native function calling with the same model, tools and settings. Full tables: docs/benchmarks.md.

  • Fan-out on real services (round 9): 40/40 vs 27/40 at 0.45–0.50× the cost.
  • BFCL v4 multi-turn (round 9): 0.86× cost pooled; GPT-4.1 38/60 vs 35/60; GPT-5.4 mini 18/60 vs 27/60, a significant loss.
  • BFCL miss_param / miss_func with the write gate (round 10): GPT-5.4 mini 30/105 vs 24/105 (not significant) at equal cost; GPT-4.1 3/16 vs 5/16, a loss (5/20 vs 7/20 after the remaining pairs were completed on Azure).
  • BFCL fresh confirmation with the write gate (round 11, Azure, 378 unused tasks): 159/378 vs 140/378 (p = 0.07, not significant) at 0.91× the cost; GPT-4.1 92 vs 81, GPT-5.4 mini 67 vs 59.
  • tau-bench retail: a draw.

Install

curl -fsSL https://raw.githubusercontent.com/AtharvRaotole/weave/v1.1.0/scripts/install.sh | sh
# or from source (needs Rust):
pip install "git+https://github.com/AtharvRaotole/weave@v1.1.0"

The distribution is weave-lang (import weave). It is not on PyPI (weave there is Weights & Biases Weave; do not install both in one environment). Supported range: Python 3.9–3.13, Linux, macOS and Windows.

Assets

CPython 3.9–3.13 wheels for Linux x86_64/aarch64 (manylinux2014), macOS x86_64/arm64 and Windows x64, the sdist, and SHA256SUMS.txt. The builder also produced extra wheels for newer CPython and PyPy interpreters present on the runners; those are attached as-is and are outside the supported range. Built by the release workflow run from tag v1.1.0. The pypi job was skipped; nothing was published to PyPI.

Weave 1.0.0

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 09 Nov 20:30

Weave 1.0.0 is the first release built with the independent-audit fixes and the production hardening that followed. v0.1.0 remains published unchanged as a historic experimental release with known defects; do not use it.

Read first: Running Weave in production: supported posture, threat model, every guarantee with the test that holds it, and the non-guarantees.

Install

Download the wheel for your platform below and python -m pip install <file>.whl. The distribution is now weave-lang; the import name stays weave. Not published to PyPI (weave there is Weights & Biases Weave, same import name; don't install both in one environment).

Supported production posture

Scripts are untrusted; the host and its tools are trusted. Run tools with a worker pool (Engine(worker_pool=N, isolate_all=True) or WeaveTool(..., worker_pool=N)), set deadlines, treat tool results as model-visible, and reconcile writes instead of retrying them blindly.

What's new since 0.1.0

  • Hard deadlines for isolated tools: spawn workers in their own process group, SIGKILLed on tool timeout, run deadline, session cancel/drop, engine close, and cancellation of the asyncio task awaiting WeaveTool.run_async / the Agents SDK tool. Tested on Linux, macOS and Windows.
  • Worker resource limits: WorkerLimits (RLIMIT_AS on Linux; CPU, open files, file size on POSIX); unsupported limits are rejected, never silently ignored; 16 MiB result cap before unpickling.
  • Privacy by channel, tested with planted secrets: host exception text reduced to its type unless weave.ToolError or debug=True; weave-mcp upstream stderr discarded, environment allowlisted, upstream error payloads withheld by default.
  • MCP: upstream outputSchema, title and annotations forwarded; CI runs weave-mcp against the official filesystem, git and memory reference servers (lockfile-pinned) with real writes and structured results.
  • Performance fix: run and replay were quadratic in tool calls per loop (6000 calls: ~6.3 s run / ~5.1 s replay); now linear (~0.3 s / ~0.1 s, release build, one Linux machine). Regression-tested.
  • All 17 audit findings addressed as recorded in docs/audit-status.md (failed expressions stop later writes, trace v2 identity replay, value/aggregate budgets, MCP routing/pagination/aliases/structured results, keyword arguments, and more).

Breaking changes

Distribution renamed to weave-lang; host exception text redacted unless weave.ToolError/debug; weave-mcp upstream env allowlist + stderr discarded by default; weave_run/weave_replay return stdout/status unless debug: true; trace v1 rejected; write retries need retry_safe=True. Full list in CHANGELOG.md.

Not guaranteed (inherent)

No rollback or exactly-once for remote effects; in-process tools and MCP upstream calls have soft cancellation; workers are not an OS sandbox for tool code; the host process has no memory cap; tool results and anything a tool prints are model-visible; on Windows grandchild processes are not killed and WorkerLimits are unavailable; macOS has no memory_bytes.

Still pending

Corrected live model benchmark runs (no new speedup claim; committed numbers compare different completion boundaries), remote HTTP MCP transports, async Python tools, a debugger, PyPI publishing.

Assets

CPython 3.9–3.13 wheels for Linux x86_64/aarch64 (manylinux2014), macOS x86_64/arm64 and Windows x64, the sdist, and SHA256SUMS.txt. The release build smoke-tested the wheel and ran the 14-test isolation suite on Linux x86_64, macOS arm64 and Windows x64. Built by the release workflow run from tag v1.0.0.

Weave 0.1.0

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 08 Nov 18:59

Experimental / not production-ready. Independent audit confirmed write-after-error, exact-replay, contended worker-deadline, value-limit and duplicate MCP-routing defects in these v0.1.0 downloads. Use isolated, read-only development fixtures; do not rely on production sandbox/deadline/replay guarantees. Source fixes and targeted acceptance evidence were merged in PR #11, but this tag and its assets have not been rebuilt or replaced. Remaining/deferred limitations, including nested exception binding state, aggregate resource budgets, script cancellation forwarding and write retries, are tracked in the audit ledger. Historical native/Weave timings use unequal endpoints and serial native execution, not apples-to-apples speedups.

First public version, released on GitHub with prebuilt wheels. It is not on
PyPI. v0.1.0-rc1 and v0.1.0-rc2 were release-candidate tags used to check
the wheel builds.

Language

  • A Python subset parsed with ruff_python_parser: assignment (including
    unpacking and augmented assignment), calls with keyword arguments,
    if/elif/else, conditional expressions, for with break and
    continue, try/except ToolError and a bare except, lists, dicts,
    f-strings, comparisons, boolean operators and arithmetic.
  • String, list and dict methods, including split/rsplit with sep and
    maxsplit (positional or keyword), splitlines, strip/lstrip/rstrip
    with an optional character set, and the is* predicates (isdigit,
    isalpha, isalnum, isspace, isupper, islower).
  • Builtins: len, range, sum, min, max, sorted, reversed,
    enumerate, zip, any, all, list, str, int, and parse_json.
  • Unsupported constructs (import, def, class, while, with, lambda,
    comprehensions, await) get a one-line static error with a fix hint.

Runtime

  • Dataflow scheduler. Independent pure and read calls run together;
    reversible calls wait for conflicting reads and writes; irreversible
    calls wait until the script is complete.
  • Loops with no carried assignment and no writes run their iterations in
    parallel. A loop that uses break or continue runs in order.
  • Per-tool timeouts and retries, cancellation, sandbox limits (steps, value
    size, nesting depth), and streaming sessions that run each completed
    statement while the rest of the script arrives.
  • JSON traces with tagged values. Replay reproduces prints and bindings
    without calling tools and reports divergence.
  • Speculative pre-execution of reads, with invalidation when a write could
    change their result.

Bindings and tools

  • Python package (PyO3, built with maturin): Engine, Session, Run,
    CancelToken, Speculation, declare, and WeaveTool, a single
    function-calling tool for Chat Completions, Responses, and the Agents SDK.
    weave.__version__.
  • weave CLI: check, run, replay, trace, and --version.
  • weave-mcp, an MCP server with weave_check, weave_run, and
    weave_replay. It reads newline-delimited JSON and Content-Length
    framing, and it accepts --version.
    • It proxies upstream MCP servers (upstreams), with per-tool effects,
      results shapes (lines, json), and startup examples that show a
      sample output in the tool listing.
    • Structured parameters appear in the listing as compact types.

Fixed before release

  • A parallel for loop dropped a conditional assignment when a later
    iteration skipped it; the value now comes from the last iteration that
    assigned it, as in Python. The differential fuzzer now generates this case.
  • An error inside an if or loop nested in try could rarely escape the
    handler (2 of 5000 runs of one script), because nested statements were
    also tracked as top-level roots. They no longer are.

Testing and measurement

  • A differential fuzzer compares an independent oracle with sequential,
    jittered parallel, streamed, speculative, and replayed runs.
  • bench/real_tools_eval.py: 16 tasks against the real filesystem, fetch,
    git, and memory MCP servers, with write tasks checked on real state, run in
    Weave and native function-calling modes. Every measured run is in
    bench/results/ and in docs/benchmarks.md.
  • Release workflow: wheels for Linux x86_64/aarch64, macOS arm64/x86_64, and
    Windows x64 on CPython 3.9–3.13, plus an sdist. An opt-in PyPI
    trusted-publishing job stays off unless PYPI_PUBLISH is set.

Documentation

  • README rewritten around a measured benchmark chart and a how-it-works
    diagram, with the long eval write-up in docs/benchmarks.md.
  • CONTRIBUTING.md, SECURITY.md, and docs/releasing.md.

Wheels for Linux x86_64/aarch64, macOS arm64/x86_64 and Windows x64 (CPython 3.9–3.13) and the sdist are attached. Install with pip install <wheel>. Not published to PyPI.