Skip to content

Weave 0.1.0

Choose a tag to compare

@AtharvRaotole AtharvRaotole released this 08 Nov 18:59
· 205 commits to main since this release

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.