Repository navigation
Weave 0.1.0
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,forwithbreakand
continue,try/except ToolErrorand a bareexcept, lists, dicts,
f-strings, comparisons, boolean operators and arithmetic. - String, list and dict methods, including
split/rsplitwithsepand
maxsplit(positional or keyword),splitlines,strip/lstrip/rstrip
with an optional character set, and theis*predicates (isdigit,
isalpha,isalnum,isspace,isupper,islower). - Builtins:
len,range,sum,min,max,sorted,reversed,
enumerate,zip,any,all,list,str,int, andparse_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
pureandreadcalls run together;
reversiblecalls 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 usesbreakorcontinueruns 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, andWeaveTool, a single
function-calling tool for Chat Completions, Responses, and the Agents SDK.
weave.__version__. weaveCLI:check,run,replay,trace, and--version.weave-mcp, an MCP server withweave_check,weave_run, and
weave_replay. It reads newline-delimited JSON andContent-Length
framing, and it accepts--version.- It proxies upstream MCP servers (
upstreams), with per-tooleffects,
resultsshapes (lines,json), and startupexamplesthat show a
sample output in the tool listing. - Structured parameters appear in the listing as compact types.
- It proxies upstream MCP servers (
Fixed before release
- A parallel
forloop 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
ifor loop nested intrycould 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 indocs/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 unlessPYPI_PUBLISHis set.
Documentation
- README rewritten around a measured benchmark chart and a how-it-works
diagram, with the long eval write-up indocs/benchmarks.md. CONTRIBUTING.md,SECURITY.md, anddocs/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.