Repository navigation
Releases
wasi-python 0.1.6
0.1.6 moves the engine to wasmtime 51, which closes a sandbox escape on Windows: on 0.1.5 and earlier any guest could read host files outside its folders through a drive-prefixed name, even with no folders granted (GHSA-f2pq-268w-886c). The runner also turns off WebAssembly's GC proposal, which the runtime never used, and an rmdir of a folder named with a trailing slash now works on a mount. Act on one change: the wheel now requires wasmtime 51, which installs with it. python.wasm, the snapshot and the stdlib zip are byte for byte 0.1.5's; only the manifest, which names the engine, changes.
Security
- On Windows, a drive letter no longer reaches host files. wasmtime 51 refuses a
:in any path. Before, any guest could read a name such as/usr/local/lib/C:secretfrom drive C's current folder, with nothing granted, and write through a writable folder orroot=True(GHSA-f2pq-268w-886c, High). Your own wasmtime needs 51.0.0, 50.0.3, 49.0.7, 48.0.10 or 36.0.22. Security model - wasmtime's other fixes since 50.0.0 are carried. None of them reached the runner. A guest's empty writes, for one, never reach the output stream that one of them is about. Security model
- The engine refuses WebAssembly GC types. The runtime uses exceptions but none of the GC proposal's structs and arrays, so the runner now turns that proposal off. A module that declares one is refused. Security model
Fixed
- Removing a folder named with a trailing slash works on a mount.
os.rmdir("logs/")now removes an emptylogson a mount, as it does on a granted folder under wasmtime 51 and on Linux. It answered EINVAL before. The guest's files
Upgrading
- wasmtime 51 is required. The wheel requires
wasmtime>=51,<52, and the fix lives in that engine: an environment installed without dependencies, such as withpip install --no-deps, keeps its old wasmtime and the escape, so check thatpip show wasmtimesays 51. Fuel figures change slightly, since fuel is counted by the new engine. Support and versioning
For contributors
- Four more jinja2 tests the collector moves are named. The 0.1.5 release run saw two tests join jinja2's asyncio-loop class and two leave it with no change to the code, so the four join the six already named, and the rest of the class is still held exactly. Two tiers of tests
Verify a download (gh logged in; see Verify a download):
gh attestation verify <asset> --repo ClayGendron/wasi-python \
--signer-workflow ClayGendron/wasi-python/.github/workflows/release.yml@refs/tags/v0.1.6 \
--source-ref refs/tags/v0.1.6 --deny-self-hosted-runners
wasi-python 0.1.5
0.1.5 builds Rust into the runtime: orjson, and pydantic over pydantic-core, are compiled into both binaries with native's results, though a recursive pydantic model nests at most 49 levels. pydantic's suites run in the guest; a pydantic-core panic raises PanicException, which except Exception misses, and an orjson panic ends the run. It adds pytz, rich, Faker and folium, and soupsieve 4.1.1 fixes two advisories where a hostile page could keep select() busy for minutes. Act on three changes: soupsieve treats a template and an iframe differently, some selectors match as a browser does, and your own copy of a package the runtime carries, such as pydantic or pytz, is no longer imported. It is published on GitHub and on PyPI.
New
- orjson is built in: fast JSON from Rust.
import orjsongives orjson 3.13.0, compiled from Rust into both binaries, with native orjson's bytes fordumpsandloads. A panic inside orjson cannot be caught: it ends the run, or the session, with its message, as it ends a native process. Packages - pydantic is built in: typed models over a Rust core.
import pydanticgives pydantic 2.14.3 with annotated-types 0.8.0 and typing-inspection 0.4.5 in the zip, over pydantic-core 2.50.4 compiled from Rust into both binaries. A recursive model nests at most 49 levels, andEmailStrneeds email-validator, which the set does not carry. Limitations - Time zones through pytz. pytz 2026.6 is in the zip and reads every zone from it:
localize,normalize, its zone lists and pickled times work, and pandas takes its zones, since it imports pytz whenever pytz is there. Packages - Terminal text with rich. rich 15.0.0, with markdown-it-py 4.3.0, mdurl 0.1.2 and Pygments 2.21.0, is in the zip: tables, panels, trees, Markdown, highlighted code and pretty values, exported as text, HTML or SVG. Displays that refresh themselves need a thread and raise
RuntimeError;Progress(auto_refresh=False)works. Limitations - Fake data with Faker. Faker 40.54.0 is in the zip with its 110 locales. A seeded
Fakergives native's values, and each call from a starting image draws afresh unless the program seeds it. Packages - Web maps with folium. folium 0.20.0, with branca 0.8.2 and xyzservices 2026.9.1, is in the zip: Leaflet maps as HTML pages, colour scales and tile providers. A
GeoJsongiven a URL raisesModuleNotFoundErrornamingrequests, which the set lacks; give it a dict or a file. Limitations
Security
- CSS selectors no longer slow down on deeply nested pages. soupsieve moves to 4.1.1, which fixes two advisories, GHSA-mmhr-3c5m-f64f (descendant selectors on nested documents) and GHSA-8jvp-3x96-xpqw (
:has()), where a small hostile page could keepselect()busy for seconds to minutes. Packages - pydantic's hash keys can be fixed in a prepared image. In an image whose prelude imports pydantic, as
make_package_snapshot()'s default does, every image may share pydantic-core's hash keys, so crafted JSON keys can keep a model that collects extra keys busy until the deadline. Validate untrusted JSON in a plain call, or from an image without pydantic. Security model
Upgrading
- soupsieve 4.1.1 inside, from 3.0.4. A selector no longer matches inside an HTML
template, and aniframe's contents are no longer a separate document. Check code that selects inside either. Packages - Some selectors now match as a browser does. Attributes HTML treats as case insensitive (
rel,method,lang,dir) match that way;[attr=value]no longer ignores a trailing newline;:checked,:lang(),:enabled,:disabled,:in-rangeand:out-of-rangefollow the HTML specification. Read soupsieve's 4.0 to 4.1.1 notes. Packages - Your copy of a package the runtime carries is no longer reached. The runtime now carries orjson, pydantic, pydantic-core, annotated-types, typing-inspection, pytz, rich, markdown-it-py, mdurl, Pygments, Faker, folium, branca and xyzservices, ahead of
import_path=, so yours is not imported, andimport pandasloads the runtime's pytz. Remove yours, or name your module apart. The import path
For contributors
- The runner's argument check and async plumbing have their own module. The check every entry point runs, the default pool, the registry of live calls and the exit hook moved out of the runner, and both
run_asyncs now await one shared wrapper. Nothing an embedder sees changes. Your first change - A failing class check names every test that moved. Its message, and a gap's "fails differently" reason, now list each test that joined or left the class, so a job log is enough to re-pin it. Tests the garbage collector moves in jinja2's and fontTools' classes are named, and no longer count as passes. Two tiers of tests
- A release's signature check no longer waits on PyPI's index page. The read-back hands the verifier the wheel's address on PyPI's file host, so a lagging index page cannot fail a published release, and a version holding any file but the release's wheel is red. The release process
- The build compiles Rust. Rust 1.100.0 comes from Rust's own servers and every crate from crates.io, each pinned by SHA-256, and cargo builds offline; orjson's crate type is widened by
recipes/patches/orjson-3.13.0/0001-the-library-is-also-an-rlib.patch. Building from source - The package imports its own modules by name. Every import of a sibling under
src/readsfrom wasi_python.x import y, and ruff refuses a relative import anywhere it lints, the guest package excepted. Nothing an embedder sees changes. Principles - orjson moves to PyO3 0.30 and the system allocator. Every Rust module shares one PyO3, so orjson carries
recipes/patches/orjson-3.13.0/0002-pyo3-0-30.patchto build on pydantic-core's PyO3 0.30.1, andrecipes/patches/orjson-3.13.0/0003-no-global-allocator.patchso its allocator no longer serves pydantic-core's aligned allocations. Building from source - A carried patch lets folium start without requests.
recipes/patches/folium-0.20.0/0001-import-requests-where-a-url-is-fetched.patchmoves folium'simport requestsinto the one method that fetches a URL, so a map that fetches nothing needs no requests. Carrying a patch - A carried patch lets branca read its tables from the zip.
recipes/patches/branca-0.8.2/0001-read-its-tables-as-package-data.patchreads branca's colour tables through the package's loader instead of opening paths beside its modules. Carrying a patch - Only Faker's own suite loads Faker's pytest plugin. The guest drivers pass
-p no:fakerto every other session and report one that imported Faker anyway, so no other suite pays for it. Adding a package - pydantic's own tests run in the sandbox. The suites of pydantic-core, pydantic, annotated-types and typing-inspection run in the guest from their sdists: a smoke group of each in every merge's run, pydantic-core's and pydantic's on Windows in the merge-grade run, and the rest in the release tier, so Rust panics are judged as they unwind. Adding a package
- A pull request waiting for its review no longer fails its run. Until the review is written or signed again, the
reviewandci-statuschecks stay red and block the merge, but the run is not failed, so nobody is mailed. A review signed wrong still fails.release/precheck.pyruns the first check before a push. Review and landing
Verify a download (gh logged in; see Verify a download):
gh attestation verify <asset> --repo ClayGendron/wasi-python \
--signer-workflow ClayGendron/wasi-python/.github/workflows/release.yml@refs/tags/v0.1.5 \
--source-ref refs/tags/v0.1.5 --deny-self-hosted-runners
wasi-python 0.1.4
0.1.4 restores the wheel's provenance on PyPI: its page names the repository, workflow and commit that published it, as 0.1.1's did. The runtime, the packages and the API are those of 0.1.3, so there is nothing to change when you upgrade. Each release now reads PyPI back after the upload and fails unless the wheel carries its provenance. It is published on GitHub and on PyPI.
Security
- The wheel on PyPI carries its provenance again. PyPI's page names the repository, workflow and commit that published it. 0.1.2 and 0.1.3 went to PyPI without it and cannot be changed; their GitHub attestation covers the same file and still verifies. Verify a download
For contributors
- Three test results that moved with no code change are re-recorded. The plain reactor's fuel in the results check is reported, not ratcheted, since its hash seed is random; jinja2's two asyncio classes return to the members earlier releases held; and fontTools'
test_splitleaves the counted-clock class, as it now passes. Two tiers of tests - A suite that passes more tests no longer stops a release. The release's gather listed a rise in a suite's pass count as unexplained; it now shows it with the reason a change gives, as the acceptance already did, while a fall still needs its reason and a lost pass still fails. Two tiers of tests
- A check retired at its merge no longer stops the release. The release's acceptance reads every change's reasons again, and refused a retirement because the check was already gone; it now accepts one a merge since the last release made, and refuses any other as before. Two tiers of tests
- A release reads PyPI back. After the upload, the release checks that PyPI serves the wheel's own SHA-256 with provenance from this repository, and is red otherwise. Every release-shaped run rehearses the path first, and a tag signs nothing until the rehearsal passes. The release process
Verify a download (gh logged in; see Verify a download):
gh attestation verify <asset> --repo ClayGendron/wasi-python \
--signer-workflow ClayGendron/wasi-python/.github/workflows/release.yml@refs/tags/v0.1.4 \
--source-ref refs/tags/v0.1.4 --deny-self-hosted-runners
wasi-python 0.1.3
0.1.3 checkpoints and forks a live session, returns a cell's value and displays typed, with matplotlib figures as PNGs, and streams a guest's output while it runs. It adds python-docx, python-pptx, pdfplumber, xarray, plotly, drawsvg, SVG to PNG through cairo, JPEG in Pillow, and zstd, and a plain start costs less. You may need to act on seven changes: SnapshotFailed.completed may be None, argv refuses -Xhost-results, CPython, numpy and pandas move to 3.15.2, 2.5.4 and 3.1.0, three pure packages move, a snapshot saved with 0.1.2 must be made again, and hashing a deeply nested tuple raises sooner. It is published on GitHub and on PyPI.
New
- Checkpoint a live session, and fork it.
Session.checkpoint()keeps a session's state after its turns as aSnapshot; any number of sessions and calls start from it, each from its own copy, and the session goes on. A checkpoint holds every byte the session read. Checkpoint a session, and fork it - Other engines can checkpoint a session too. The snapshot binary exports
checkpoint, called with 1 before the host reads a session's memory and with 0 after; an instance given that memory resumes as a fresh start at its firstrunorturn. Embed from other languages - A cell's value and displays come back typed. With
results=True,run,run_asyncandSessionreturn a turn's or a-cprogram's last expression asCompleted.value, not printed, and what the program passes todisplay()asCompleted.displays, each aDisplayof MIME types; printed bytes never forge one. Read a cell's value and displays - matplotlib's figures come back as PNGs. With
figures=Truebesideresults=True,plt.show()and a figure a cell leaves open become PNG displays, with no file and no writable grant for the image. Add figures=True - Other hosts can take displays too. The tool protocol gains the
displayoperation, used when the host passes-Xhost-resultsas the program's first argument; the guest falls back to printing against a host that does not serve it. Tool protocol - See a guest's output while it runs.
run,run_asyncand a session's turns takeon_output, called with each chunk of stdout and stderr as it arrives;OutputFeediterates them from async code. On the command line,--streamprints a JSON line per chunk. Read output while the guest runs - Keep the end of a long output.
output_keep="tail"keeps a stream's last bytes pastoutput_bytes, after a line counting what was cut, so the traceback at the end is kept;--output-keep tailon the command line. Keep the end of a long output - Answer a turn's
input().Session.runandSession.run_asynctakestdin, that turn's standard input, whichsys.stdinandinput()read. Give a turn its standard input - Word and PowerPoint files. python-docx 1.2.0 and python-pptx 1.0.2 are in the zip. Start a document or a deck from the default template, or open one; add text, tables, pictures, charts and notes; save it to a granted folder or to memory.
fit_text()needs FreeType, which the set lacks. Packages - Tables and text from PDF files. pdfplumber 0.11.10 with pdfminer.six 20260107 is in the zip: each page's text, its words with their positions, its ruling lines and
extract_tables(), and files encrypted with RC4. AES needscryptographyand page images need pypdfium2, which the set does not carry; each raisesModuleNotFoundErrornaming it. Packages - Labelled arrays. xarray 2026.9.0 is in the zip: named dimensions, alignment on labels,
groupby,rolling,resample, interpolation through scipy, pandas round trips, the HTML view, and netCDF3 files through scipy. Its other file engines and its tutorial data are not carried. Packages - Interactive plotly figures. plotly 7.1.0 is in the zip: graph objects and plotly express, its datasets, JSON, and HTML pages that carry plotly.js or load it from plotly's CDN. Static images need kaleido, which cannot run here, and
FigureWidgetneeds a notebook; both raise. Packages - Zstandard compression works.
compression.zstdis built in over libzstd 1.5.7, sotarfile'szstmodes,zipfile'sZIP_ZSTANDARDandshutil'szstdtarformat work, and write native Python's bytes. It runs on one thread, and frames from before zstd 0.8 do not decode. Packages - pandas reads and writes
.zstfiles.compression="zstd"and a.zstsuffix now use the standard library'scompression.zstd, since the set has no python-zstandard.levelis honoured when writing; any other option raisesTypeError. Packages - Pillow reads and writes JPEG. Pillow is built with libjpeg-turbo 3.2.0 beside zlib, so
Image.openof a photo,save(..., "JPEG")and matplotlib'ssavefig(format="jpg")work, with native Pillow's bytes and pixels. WebP, AVIF, JPEG 2000 and TIFF's compressions still raise an error. Packages - List the packages an agent can import.
wasi_python.packages()returns each Python package in the runtime with its version and import names, without starting a guest;wasi-python packagesprints them, or one JSON line with--json. Packages - Vector drawings and animations as SVG and HTML. drawsvg 2.4.2 is in the zip: shapes, paths, text on a path, gradients, markers, clip paths and masks, SMIL animations with playback controls, and frame callbacks, saved as SVG or HTML. Its PNG, GIF and video output,
drawsvg.colorand Google fonts raise by name. Packages - SVG to PNG and PDF, drawn by cairo. cairo 1.18.6 is built in, with CairoSVG 2.9.1 in the zip:
cairosvg.svg2pngandsvg2pdfturn any SVG into a PNG or a PDF with native cairo's pixels, and text is drawn in matplotlib's DejaVu fonts. PostScript output is not available. Packages - cairocffi, a 2D drawing API. cairocffi 1.7.1 draws paths, gradients and text onto image, PDF and SVG surfaces, and reads and writes PNG. At most 128 stream surfaces are alive at once. Limitations
- drawsvg drawings as PNG and GIF. drawsvg's
rasterize(),save_pngandsave_gifnow work, through CairoSVG and imageio; video (save_mp4) still needs ffmpeg, which the guest cannot run. Limitations - Animated GIFs with imageio. imageio 2.38.1 reads and writes images through Pillow, animated GIFs included. Its video plugins need programs or compiled packages the set does not carry, and raise when used. Packages
Faster
- A plain start reads only the packages it uses. An empty program on the plain binary now runs in 135 million instructions, from 284 million, and on the snapshot in 42 million, from 55 million. A package added to the runtime costs a start almost nothing until a program imports it. How it works
- A call ends on less fuel. Python still finalizes everything as CPython does, but no longer returns memory to an instance about to be discarded: a bare snapshot call costs 35 million instructions, not 42 million. Every allocation now checks one flag, so a call that allocates much and holds little costs up to 0.4% more. Fuel
Security
- tarfile's
tarfilter refuses a link to its own destination. CPython 3.15.2 makestarfile.tar_filterreject a link member whose path resolves to the destination folder itself, asdata_filteralready did (gh-160097). Security model http.cookiejarignores cookies with a negative version. CPython 3.15.2'sDefaultCookiePolicyno longer accepts or returns them without checking their domain against the request's host (gh-160300). Security model- The XML parser is libexpat 2.9.0. CPython 3.15.1 updates the libexpat that
xml.etree,xml.dom.minidomandpyexpatparse with (gh-157953). Security model - zlib 1.3.2's hardening is inside. zlib 1.3.2, from 1.3.1, checks for negative lengths in
crc32_combineand for NULL pointers, zeroes its inflate state when it allocates it, and copies only initialized state ininflateCopyanddeflateCopy. `zlib...
wasi-python 0.1.2
0.1.2 starts each call from a snapshot you choose: make_snapshot runs your setup once, make_package_snapshot imports every package, and Snapshot.save and load share it across processes, so imports are paid once and fuel counts only the call. The module cache works when another user owns /, refusing folders others can change. Grants refuse FIFOs, sockets and devices, a process holds at most 64 abandoned tool threads, and a guest's memory budget is stated. You may need to act on four changes: close() on the loop's thread now waits, mounts refuse : and \ in names, a tool call with no bound ends after an hour, and the PyPI wheel carries no PyPI provenance, so verify its GitHub attestation instead.
New
- Start every call from your own snapshot.
make_snapshotruns your setup code once (imports, data, functions) andmake_package_snapshot()imports every package; pass the result assnapshot=torunorSession. Each call is still a fresh, sealed instance that skips the seconds its imports took, andSnapshot.saveandloadshare one across processes. Snapshots - Embedders in other languages can start every call from a starting image. The snapshot binary,
python-snapshot.wasm, exportsprepare, which runs your setup code once and leaves its memory ready to copy into each new instance. Embed from other languages - Every
wasi-python runoption has its help.wasi-python run --helpdescribes all fourteen options, and the messages and docstrings that pointed at old README sections now name the site's pages. Command line - Budget host memory for each guest. The limits page says what one guest can hold on the host: with a writable mount, up to three times
memory_bytes, about 3 GiB at the default. Budget host memory
Faster
- Starts are fast again in containers where root does not own
/. In 0.1.1 the module cache was refused when another user owned/, so every start compiled the module first. The cache now trusts the owner of/as it trusts root, since that owner can already replace any file. Where the compiled module is kept
Security
- On macOS, the module cache refuses a folder others can change. If an access list on the way to the cache lets another user or group add, remove or rename what a folder holds, or change its list, the cache is not used, and the warning names the folder, who and the rights. Where the compiled module is kept
- A FIFO, socket or device no longer stalls a call. A guest's open of such a file in a grant is refused with
ENXIObefore the host opens it, so a deadline,cancelandSession.close()stop the call as they stop any other. Grant a folder - A mount's paths mean the same on every host. A path component that holds a backslash or a colon is refused with
EINVALon Linux, macOS and Windows alike, so a provider that stores files on disk cannot be led outside its mount. Treat a path as a name, not a host path - A guest cannot pile up threads in your process. A tool call that times out leaves its function running on a thread; once 64 such threads are alive in a process, the next tool call is answered
timeoutat once. Bound a tool's time - Fewer steps of the release can change what you download. Only the step that creates the GitHub release holds the token that can write it, and the wheel goes to PyPI through the release's pinned uv instead of a third-party container named by a tag. Verify a download
- wasmtime's advisories of 2026-10-19 do not reach the runner. wasmtime 50.0.0, which this release runs, is outside the critical GHSA-mghf-wjfp-p5xm's range, and the other four are in parts of wasmtime the runner does not use. Three wasmtime fixes, in wasmtime itself
Fixed
close()in a host function no longer hangs; every session ends. Aclose()from ahost=function or a mount's provider duringrun_asyncused to deadlock; it now returns at once and the session ends with its turn. A turn cancelled while queued, or still queued at exit, no longer leaves its session open. Know how a session ends- A mount answers times, reads and folder opens as a grant does. Setting the times of a missing file answers
ENOENT, a positioned read of more than 64 KiB returns exactly the bytes asked for, and opening a file as a folder answersENOTDIRwithout listing it. Know how a mount differs from a grant - Never grant a guest the module cache's folder. The install page said a module the runner did not make is never loaded. Under a umask of
077, a guest's file in a granted cache folder passes as the runner's own; only keeping the cache out of every grant stops it. Where the compiled module is kept - Calls that start together no longer fail. When a process's first calls started at the same moment, one could be refused for an unreadable stack, and on macOS
run()could raiseKeyErrorwhen the module cache's folder has an access list; they now start as they would one at a time. Where the compiled module is kept - A retried read of a guest's output no longer marks it cut. A read of the output pipe that failed and was retried named its stream in
truncated, though no byte was lost.truncated: cut output
Upgrading
close()on the event loop's thread now waits for the ending. During arun_asyncturn, aclose()called from the loop's own thread used to return at once; it now blocks until the session has ended. Await the turn first, or close from another thread. Close it, and write files within a turn- A mount refuses file names with
:or\. On Linux and macOS a mount accepted them before; now every host answersEINVAL, as Windows always did. A guest that writes timestamped names such as12:30.csvinto a mount should use another separator. Treat a path as a name, not a host path - Unbounded tool calls now end after an hour. A tool with no
timeout_s, in a run withdeadline_s=None, used to be waited for as long as it ran; now the guest getsToolTimeoutat the session'slifetime_s, or after 3,600 seconds outside a session. Give the tool atimeout_sto choose another bound. Bound a tool's time - The wheel on PyPI no longer carries PyPI's own provenance. Check a download by its GitHub attestation, which is unchanged. Verify a download
For contributors
- The runner's Windows code is type-checked on every run. A second pass checks it as Windows sees it, each platform's class is checked against its interface, and the type checker's suppressions fell from 25 to 3; a rise needs a reason. How structure is judged
- Each long function is held at its listed length. A function on the long-function list that grows past its length, or shrinks below it, is reported, so the list stays true. How structure is judged
- Changes to the agents' settings are reviewed like code. A change to
.claude/,.agents/,AGENTS.mdorCLAUDE.mdneeds a news file and a review, and a pull request's check refuses GitHub'sskip-checks: truetrailer and judges an edited base or description again. What a pull request runs - Snapshot rows whose fuel varies keep it as a fact. A call from a snapshot that holds numpy's random module spends a few percent more or less from run to run, so four snapshot rows record that fuel as a fact and the exact rows stay exact. The ratchet
- Release notes say what a release gives you. Each change is now written for an embedder who did not follow the work: what it gives, the one fact that changed, and a link to the page that explains it. The release process
- **Upstream suites are judged across the move to wasmtime 50...
wasi-python 0.1.1
Changed
- The platform module is split in three (spec 131).
_platform.pyheld every platform difference at 1,464 of its 1,500 lines. The Windows class, its handle structure, its constants and its three helpers are now_platform_windows.py; what the Windows and POSIX classes both run (the walk's result and its refusal, the steps taken by path, the remover's budget and its walk by path, the cache's kind checks) is_platform_common.py, below both, so the import graph stays acyclic;_platform.pykeeps the interface, the POSIX hosts and the one choice, at 828 lines. Nothing an embedder sees changes. - The module cache is read through the descriptor it was checked by (spec 135). A compiled module is loaded through the descriptor it was checked by, so the file read is the file checked; a cache whose path passes through a folder another user can write is not used, with a warning; a set given through
artifacts=is hashed and compiled from one read; a cache folder or compiled module with an access list (macOS, Linux) is not used; on Windows the file is held open from its check to its load;cache_dir=''is refused, and a relativecache_diris made absolute at the call. Running the runner with another user's home is not supported. - The pin moves to wasmtime 50 (spec 127). The wheel requires
wasmtime>=50,<51; wasmtime-py 50.0.1 bundles wasmtime 50.0.0, whosepath_renameandfd_readdircarry the fixes of the two advisories the runner had applied itself since 0.1.0a4 (a rename of a symbolic link named with a trailing slash could move a host folder into the sandbox on macOS; directory listings carried up to three bytes of host memory per entry), and whose fuel counts the work of a C++ call that ends in a caught exception, so the judge's row for it now passes. The runner's two shadows are gone, and a call without mounts passes only the three calls the cap on open files counts through the runner; the two sandbox checks now run against wasmtime's own calls. A slash-named rename on a bad descriptor or a read-only pair answers in wasmtime's own order (EBADForEPERMbeforeENOTDIR). Fuel is equal to the instruction on the snapshot and in the judge's plain-reactor checks; a guest that catches a C++ exception is now charged for the work before the catch, a few thousand instructions in the kiwisolver check. On macOS, ending a process that compiled or loaded the guest no longer costs about 5 s:wasi-python runof a one-line program takes about 0.4 s where it took 5.4 s; wasmtime 50's release notes attribute this to registering unwind information with the system in bulk. A guest that passes a file call an argument out of its type's range ends with wasmtime 50's words, which name the direction. - The build reads its pins by exact name, and the release checks every inner file (spec 136). The build selects pins by exact name, meson builds never download, every licence input is read through its pin, the release checks every file inside its tarball, and the verify command in the release notes follows the repository's name.
scripts/steps/common.sh'spinned()and its newpin_of()find a pin by its name field compared as text, once, where agreplet.match any character; every meson configure passes--wrap-mode=nodownload(HarfBuzz keeps its ownnofallback; contourpy, which has no wrap file to fetch and records its configure options in the shipped zip, is the one exemption); the download usescurl --proto '=https' --proto-redir '=https' --tlsv1.2and names a present file that does not match with the fix;scripts/assemble_artifacts.pyreads the wheels, the sympy wheel, the wasi-libc and LLVM notices and the Unicode terms throughpinned_bytes(); the release's same-bytes job checks every file of the unpacked.tar.xzagainst itsSHA256SUMS(no other file, no symlink, every published file listed), and the build job verifies the set again just before it packs it;release/version.py notestakes--repository, which the publish job sets to$GITHUB_REPOSITORY, and a unit check holds the documented command equal to the one the attest job runs. The zero-patch check now names asubprojects/folder its tarball did not ship, and.gitignorenames.env,.env.*,*.pem,*.keyand.claude/settings.local.json. The three artifacts andLICENSES/do not change;MANIFEST'srecipelines for the edited scripts do, and so doesSHA256SUMS's line forMANIFEST. - Pull requests into
devrun what their paths need (spec 138, step 2): the release workflow runs on every pull request intodevandmain, on every merge intodevand weekly, besides the tag and a dispatch. One decision job,release/ci_plan.py, reads the changed paths with git and gates every later job withif::quick(ruff, mypy, the unit tests, the rules) runs always; the judge's shards run from the cached set as the paths need (Linux and Windows for any code, macOS when the runner, the set or the harness changed, the upstream groups on Linux when the set, the suites or the harness changed); the gather is narrowed to the pairs that ran, lists a growth instead of failing on it, and leaves G7 to the release;ci-statusis the one required check. A merge intodevruns every normal-tier shard on three systems, the build shard andverifyon three. The judge jobs' matrices are generated fromtests/release_shards.toml, every reader of the build's files runs one local action, the build shard and the arm64 rebuild share one compile, andrelease.ymlis 1,316 lines, from 2,602. - The per-call comparison of matplotlib's data takes half the interpreter's time (spec 128). Every call compares the whole
mpl-datatree, 213 entries, with its record before granting it; the comparison walked the tree withos.walkand built a path object per entry, 2.3 to 2.9 ms of interpreter time per call under the zip folder's lock. It now lists withos.scandir, stamps each entry with oneos.lstatas the record does, and keeps plain strings: the same comparison, the same one stat per entry on every system, about 1 ms. On the research machine the eight-thread wall of eight hellos shortened by 14 to 33 % in three windows with a result file (their ratio to the sequence 1.5 to 1.9 before, 1.9 to 2.0 after; on a shared machine the wall is the steadier number), and a hello in sequence is one to two milliseconds shorter (benchmark facts, not checks). The memo behind it found no lock of the runner's held across a guest and none waited on: concurrent runs wait on the interpreter's lock over the runner's per-call checks, and that ceiling is named, not hidden. A check now pins that the home thread holds no process lock while its guest runs. - A guest's output is read from a pipe on macOS and Linux (spec 129). wasmtime hands a custom output its bytes 4 KiB at a time on a thread of its own, and the runner's callback there cost about 14 µs a piece, most of it the hand-off and a Python thread state made and destroyed per piece: 32 MiB of output took 160 to 240 ms, ten thousand printed lines 300 ms. wasmtime now writes each stream into a pipe the runner reads on one thread of its own per call: about 40 ms and 35 ms. The output cap holds to the byte,
truncatednames the same streams, stdout and stderr stay apart, and nothing in the API or its defaults changes. Windows keeps the callback for now. - Every merge into
devis accepted by CI (spec 138, step 3): the run after a merge judges the normal tier on three systems, and two jobs follow a green gather.accept-recordrunsuv run pytest --accept-from <record.json> --claims context/changes/with no secret, andaccept-push, in theacceptenvironment, commits the two progress files alone and pushes them ontodevwith a deploy key, only whiledevis still the commit judged. A change's CHANGELOG line, package rows and claims are its news file undercontext/changes/, whichrelease/version.py bumpassembles at a release;ci-statusrefuses a pull request intodevthat is not documentation only and has no news file, or no review file whose verdict begins "Lands", committed after its last code, by a reviewer other than its author. A documentation-only push onto a green head re-uses that head's run, and the weekly run opens an issue when it is red. - A release is a pull request from
devtomain(spec 138, step 4): its run is the whole workflow on the commitmainwill receive (a set built on macOS and never reused, both rebuilds and same-bytes, every shard of both tiers on three systems,verifyon three andquick), and its gather has every goal: noPLAN, G7 holding the newest acceptance to the run's own set, clean and whole, and each release-tier row that moved since the last release listed with the reason of a news file or of the release-tier ledger. Its ownaccept-recordaccepts the record of both tiers, and.github/workflows/accept-release.yml, started by that run's completion ondev's own context, pushes the acceptance ontodevwhiledev's tip is the head judged, red when it is not. When the acceptance lands, the release pull request's next run re-uses the green one. The release pull request is refused any commit that changes the accepted state and is not an acceptance, and its build job checks that the version's section is dated, its tag free andmain's tip an ancestor.release/version.py datedates the section ondevbefore the release pull request, joins any news file merged afterbumpand moves the ledger's blocks under the version;release/version.py releasecommits nothing, tagsmain's tip and pushes the tag alone, so the commit tagged is the one judged plus its acceptance.bump,dateand the release's two reviews land in one pull request intodev, the release's preparation, which the decision job judges as documentation, since its one change outside documentation is the version line and its change to...
Test sources, 2026-10-28 (not a release of wasi-python)
Not a release of wasi-python. No wasi-python artifact is built from these files, and they carry no attestation.
These are byte-identical copies of two pinned test sources: the release-tag archives of openpyxl 3.1.5 and et_xmlfile 2.0.0, whose tests the project runs inside its guest. Their original host now answers automated downloads with a challenge page, so the project's download script and its test fetcher read these copies first and the original second. Either way a file is kept only if its SHA-256 is the one pinned in downloads/SHA256SUMS: the pin is what is trusted, not this page and not either host.
- openpyxl-3.1.5-tag.tar.gz, 2,923,125 bytes, SHA-256 64a599aeed98b74925dcc09a18c7b3e19dafb3754eb8bad2b6887b63a91f7a37, from https://foss.heptapod.net/openpyxl/openpyxl/-/archive/3.1.5/openpyxl-3.1.5.tar.gz (MIT; its licence is openpyxl-3.1.5/LICENCE.rst inside the archive)
- et_xmlfile-2.0.0-tag.tar.gz, 99,140 bytes, SHA-256 b710736febf4b4589805f1cc0ccea41781353fc4550466c472649f8518bed4b5, from https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/2.0.0/et_xmlfile-2.0.0.tar.gz (MIT; its licences are et_xmlfile-2.0.0/LICENCE.rst and LICENCE.python inside the archive)
Both copies were fetched from the original host on 2026-10-21, the day they were pinned. Each line above can be checked against the pins at this release's own tag: https://github.com/ClayGendron/wasi-python/blob/test-sources-2026-10-28/downloads/SHA256SUMS
wasi-python 0.1.0
-
A coverage badge from CI (spec 124): the release workflow's new
coveragejob runs the fast tier serially under coverage.py (7.17.0, pinned in thedevgroup) against the set the build job made, and uploads the Cobertura report to Codecov with the repository'sCODECOV_TOKEN; the README carries Codecov's badge, andtest_readme_carries_the_codecov_badgeholds that it is this repository's.uv run python tests/harness/coverage.py --measuretakes the same measurement locally intobuild/coverage/. The-Vsentence and numpy's integer width are now held ondocs/reference/limitations.md, not the README. -
The wheel's LICENSE carries every component licence (spec 125): before each wheel build the release workflow runs
release/licences.py append, which rewrites the checkout's LICENSE as the Apache-2.0 text followed by everyLICENSES/*.txtof the set in name order, as Pillow's wheels do; the build job checks the wheel it built, and the judge's wheel check compares.dist-info/licenses/LICENSEwith the same text. FreeType's licence ships there, and the combined LICENSE's introduction gives FreeType's credit in words, so the README no longer carries it;release/licences.py restoreputs LICENSE back after a wheel built by hand;test_the_wheel_carries_every_component_licencereplaces the README credit check. -
A short README and a clean tree (spec 122): the README is cut to about 170 lines (what it is, a five-minute quickstart, what is safe by default, what runs, hosts, the stability promise, verifying a download, building, licences), every link absolute for PyPI. The generated API reference moves to
docs/reference/python-api.md(uv run python tests/harness/api.py --writewrites it,--pagenames another); the command's options are generated from its parser intodocs/reference/cli.mdbytests/harness/cli_doc.py, andtest_generated_pages_are_currentholds both pages current. The 560 known gaps and suite entries whose closer was the README, and pandas' excluded marker, now namedocs/reference/limitations.md, a new page of the platform's limits with a reason for each; six that named the questions file name the roadmap. The scans for document citations and embedder names read the README and every page underdocs/.pyproject.tomlsays "Development Status :: 4 - Beta", names all seven compiled packages, gains a Documentation URL and adocsdependency group (MkDocs 1.6.1, Material 9.7.7);mkdocs.ymland.github/workflows/docs.ymlbuild the site strictly on every pull request and push to main, and deploy it from a release tag.context/questions-for-the-owner.mdis deleted; its last paragraph moves tocontext/decisions.md. -
The documentation site (spec 123): a Diátaxis tree under
docs/(get started, how-to guides, reference, explanation, contributing), built with MkDocs and served athttps://claygendron.github.io/wasi_python/from each release tag. -
The release runs the pure-Python packages' own tests (spec 067): each whole suite before a publication, a smoke group per package on every run, for the 42 pure-Python packages the product ships; 39 test sources (each package's sdist, or its release tag's archive where the sdist carries no tests, and pypdf's sample files) are pinned and named in
MANIFEST, and the judge ties each to the bytes that ship. Four test-source patches are carried, each making one test-only import lazy or optional so the rest of its file runs:recipes/patches/pypdf-6.21.1/0001-tests-import-ssl-where-it-is-used.patch,recipes/patches/cloudpickle-3.1.2/0001-tests-import-psutil-where-it-is-used.patch,recipes/patches/formulaic-1.2.2/0001-tests-skip-the-pyarrow-check-without-pyarrow.patch,recipes/patches/jinja2-3.1.6/0001-tests-run-the-asyncio-cases-without-trio.patch. sympy's doctests run under sympy's own doctest runner, output checker and printer setup (the setup once per session, with the stdlib's finder: module globals, anddoctest_depends_onnot read); six sympy tests that do not end within 2.9 to 4.5 T of fuel, sympy'stest_W25, and networkx'stest_asadpour_integral_held_karp, whose path is not the same on Linux, are traps, named with their reason. -
Two tiers of tests (spec 102). The slow tests run before a publication, never left out: numpy's and pandas'
slowcases, contourpy's slow andrandom_bigcases and CPython'scpu-gated tests form a release tier, judged on the tag, on the dry run on main and in the lane's release acceptance (--tier release); every other run judges the normal tier, about 4 T lighter. A row a run's tier did not run keeps what was accepted, a check that moves between tiers needs--accept-tier-move, andcontext/release-tier-claims.tomlholds the claims between two releases. -
The release runs scipy's, scikit-learn's and statsmodels' own tests (spec 095). Each suite runs whole in the release tier, 261 groups in 104 Linux release shards, about 86 T of guest fuel; a smoke group per package (two for scipy) runs in the normal tier at every check, 855 G in two Linux shards, chosen so every subpackage with compiled modules and every carried patch is touched, a rule the judge holds against the product's builtin modules. Every known failure is a class by test id with its closer; every file not run is named with its reason. The judge gains three keys for these families (the ancestors'
__init__.pystaged, test data scipy's build makes from its sdist made in the guest, a family's environment) and a clock step for a release group whose one test times a call. -
One module touches wasmtime-py's private API (spec 103).
src/wasi_python/_wasmtime_ffi.pyis the engine seam: the runner and the mounts drive the engine through its named operations, it prefers wasmtime-py's public API wherever the installed release has it, and at the firstrun()it raises oneImportErrornaming the wasmtime-py version and every private name that moved. A rules check holds that no other.pyundersrc/ortests/reaches the private API; a second holds the debt sheetcontext/upstream/34-wasmtime-py-public-api-for-the-runner/facts.mdequal to the names the seam needs. No behaviour, fuel or errno changes. -
The runner is a package (spec 104; the runner design review's H1, M5, L1).
runner.py(6,241 lines) is eleven modules, one per concern (_limits,_platform,_artifacts,_engines,_private_dirs,_zip,_places,_home,_call,_sessions, andrunneras the thin entry), the text moved verbatim, in a written import order with no cycle;__init__.pyno longer importsrunnerlast; a unit check finds every module-level lock and proves the fork hook re-makes it; a rule holds every module undersrc/to 1,500 lines. Nothing the embedder sees changes: no public name, no message, no fuel count. -
The runner's process state has one owner (spec 105): every lock, cache, counter and registry of the runner is an attribute of one
_Processobject, reset for a fork by introspection over its locks and released at exit by one method; the judge's seams are fields of that object, not module globals; two rules checks keep locks and mutables out of module level. No public name changes. -
The runner's checked call is a frozen typed record, a session's and a home's life are transition tables the judge drives whole, and
mypy --strictruns oversrc/wasi_pythonin the judge (spec 106). -
The runner's mount table, platform choice, file stamps and comments explain themselves (spec 107; the design review's H4, M3, M4 and M2).
mounts.pyasks nine questions of a call-context protocol and imports nothing from the runner; one_platform.pyholds every POSIX, macOS and Windows difference behind one interface chosen once at import; the digest and version caches in front of the artifact check key on the full file stamp, so a same-size, same-time replacement is hashed again;src/names no specification, memo, review, finding ID orcontext/path, every reason kept in words, held by one rules check (the owner's rule, "code speaks for itself";tests/,scripts/andrelease/follow in spec 109); andmypy --strictis clean over the whole package. No public name, artifact byte or guest-visible errno changes. -
A structural review is a stage (spec 108; the design review of 2026-10-20). A change that adds a module-level mutable or lock, a use of wasmtime-py's private API, a platform branch or a test seam outside the one place specs 103 to 107 give each, or takes a module past the size ceiling or a function past 80 lines, is reviewed before it is built; every release gets a structural review of
src/against the design review's eight-row rubric, beside its security review, which the judge requires of a released version; and two rules checks hold that the judge patches the runner only through its process object and that no function is over 80 lines, each with an allowance list that only shrinks. Nothing in the artifact set or the wheel changes. -
Code speaks for itself outside
src/(spec 109). Comments and docstrings undertests/,scripts/,release/and the release workflow give their reasons in words, with no specification number, review, finding identifier orcontext/path; a rules check holds it, with the judge's allowance files, the guest's own sources and thesrc/check's own documentation of its shapes named as the exceptions. No code, behaviour, fuel or artifact byte changes;MANIFEST's recipe hashes ofscripts/move with their comments. -
numpy's linear algebra,
dotandmatmulrun on the set's OpenBLAS (spec 100; questions 106 and 107). numpy was built with no BLAS and ran its bundledlapack_lite, an f2c LAPACK 3.2.2. It now finds the OpenBLAS 0.3.34 scipy uses, through numpy's own build options; a one-line recipe header (recipes/numpy_lapack_abi.h) and a file of shims (recipes/numpy_lapack_shims.c) bridge numpy'sintdeclarations to Op...
wasi-python 0.1.0a7
- Fixed: an async gate that raises
GeneratorExitrefuses the call (spec 075; the 0.1.0a6
security review's F1). An async gate (anasync def, a function returning an awaitable, or an
object with an async__call__) that raisedGeneratorExitor a subclass used to allow the
call, and the tool ran; an async tool that raised it was answeredokwithNone. Now the
gate's call isdeniedand the tool'stool_error, each with the fault in the record, as a
sync gate's and a sync tool's already were. The result of an awaitable counts only if it
returned. Also (spec 060's build review, N1): a tool list over the 16 MiB answer cap is refused
from its length on eachlistframe, without its answer being built. No public name, default
or answer on the wire changes. - Changed: the snapshot pre-imports no package (decision 34, spec 069). It starts with the
interpreter and the stdlib's bootstrap modules (encodings,io,os,sys,json,csv,
re,_colorize), for every package now and later; the judge refuses a snapshot that holds
any other top-level module. A bare call costs 15.6M guest instructions instead of 83.5M; a call
that imports pandas pays it, 4.60G in all instead of 83.5M (a small numpy job about 0.7G more
than before), so afuel=cap set for a pandas job on the snapshot needs that much more. The
snapshot is 30.4 MB smaller (44.6 MB) and the wheel about 11 MB smaller. numpy, pandas and the
other packages now import with the call's environment. A session's shutdown costs about 43M
instructions when nothing beyond the stdlib was imported (about 306M before).snapshot=True
is unchanged as an argument; no public name, signature or default changes. MANIFEST's
x-preimportline is now read from the recipe. Known and unchanged:runon the snapshot
loses an unclosed file's buffered bytes when__main__defines a function (a gap until spec
073; close your files before a call ends). - Bounded sessions (spec 055).
Sessionkeeps one instance of the runtime across turns:
session.run(code)andawait session.run_async(code)each run one turn in__main__, and
variables, functions, classes and imports carry over. A turn echoes its final expression,
reports an exception with<turn N>in its traceback, and reportssys.exit()as its exit
status while the session goes on, as a Jupyter kernel does. Each turn has its own fuel,
deadline, output cap, cancel, file-call and tool-call allowance; the session has one memory
cap, an idle bound (idle_s, default 15 minutes) and a lifetime (lifetime_s, default 1
hour), which caps every turn's deadline;max_open_filescounts across a session's turns and
its shutdown, since its store keeps what they open. A trap,os._exit, a bound,close()or a turn's
exit()orquit()ends it;session.endedsays which, and later turns raise
SessionEnded. A session's close and expiry, andexit()orquit()in a turn, run
Python's shutdown (atexit, flushes) withinshutdown_sseconds and the session's fuel, as a
Jupyter kernel's do; past that budget the session is stopped;sys.exit()keeps the session;
session.shutdown_outcomesays whether the shutdown finished, was stopped or did not run. Added:
Session,SessionEnded, threeDefaultsfields (session_idle_s,session_lifetime_s,
session_shutdown_s),stats()["sessions_open"], and two exports in both binaries,turnand
shutdown, whose contract the README gives for any embedder.runis unchanged. - Deep recursion raises
RecursionError(spec 071). A__repr__that callsrepr(self),
lru_cacherecursion, a recursive sort key or a numpy, pandas or lxml callback used to end the
guest in a wasm trap; it now raises, on both binaries, at wasmtime's default 512 KiB stack.
The guest narrows CPython's C-stack guard to 128 KiB with CPython's own
PyUnstable_ThreadState_SetStackProtection, called from the reactor's recipe: no patch.
Changed: such recursion stops at about half the depth it reached before trapping (214
levels for the__repr__case, 40 to 250 by shape), so a program that recursed that deep and
finished now raises. Callbacks out of expat, recursion in C over very deep data, and freeing
very deep structures still trap, with the limits the README lists. The runner now states its
wasm stack, 512 KiB, instead of taking wasmtime's default, and the judge's guest driver makes
the runner's engine (fuel, epoch interruption, that stack).python.wasm, the snapshot and
MANIFESTchange; the zip does not. - On Linux, a host's faulthandler can no longer turn a guest trap into the host's death
(spec 071). Iffaulthandlerwas enabled or disabled after the runner's first call, a guest
trap used to kill the host with SIGILL (and after a latesignal.signalforSIGILL, hang
it);runnow refuses such a call withRuntimeErrorbefore the guest runs, says why, and
names the remedy. Install faulthandler and crash reporters before the first call, or not at
all. - The build runs only the pinned host Python (spec 079; the 0.1.0a6 security review's
F2). FreeType's configuration headers, HarfBuzz's generated sources and matplotlib's
matplotlibrcwere written by whateverpython3the build host had first onPATH, and
CPython's configure ran it once. Now step 10 puts a shim for the pinned CPython 3.15.0 first
on every step'sPATH. Behind it,scripts/build.shputs a stand-in for every other Python
name the host has, which fails the step if it is run. A build host needs no Python of its
own. The artifacts are the same bytes;MANIFEST's recipe lines change. - The release judges in parallel shards (spec 063). The release runs numpy's and pandas' own
test suites (eleven groups, 63,718 passing tests) on Linux, one group of them on macOS and on
Windows, every product check and the runner's own tests on all three systems, and the rules and
the judge's own tooling on macOS and Linux, in eighteen parallel jobs after the build. A
gatherjob reads every shard's record by id and SHA-256 and publishes nothing unless each
shard ran exactly its share on the release's bytes, nothing failed, the probe passed on three
systems, and the lane's newest acceptance is on the samepython.wasm.uv run pytest --shard=<name>runs one shard. Every package now names its own suite, or why not yet, in
tests/upstream/packages.toml. - lxml, with libxml2 and libxslt built in (spec 046). lxml 6.1.3's
lxml.etreeand
lxml.objectifyare builtins, over libxml2 2.15.4 and libxslt 1.1.45 with libexslt: XPath,
XSLT, XInclude, C14N, DTD, XML Schema, RELAX NG and Schematron validation, the HTML parser,
iterparse, and files read and written by path inside a grant. lxml's Python package
(lxml.html,lxml.builder,lxml.sax,ElementInclude,lxml.html.diff) is in the zip with
its METADATA. pandas'read_htmlwith noflavornow works (lxml is its first flavor), and so
doread_xmlandto_xmlwith their default parser. The judge's golden joblxml_xmlequals
native lxml at the same pins. What differs from native, as the README says:- Character encodings are wasi-libc's iconv, not GNU libiconv: windows-1252, ISO-8859-2
and -15, cp1251, KOI8-R, TIS-620 and UTF-16 round-trip every character; Shift_JIS,
ISO-2022-JP and GB2312 read a few characters as other characters; cp932, EUC-JP, Big5 and
cp950 documents fail to parse (in HTML andrecover=Truetheir text ends at the first
unreadable character, with no exception); most CJK writes raiseLookupError. GB18030
fails at its first non-ASCII byte, on purpose, because wasi-libc decodes 1,617 of its
characters wrongly without an error:recipes/iconv_refusals.c, linked into the reactor
with-Wl,--wrap=iconv_open,iconvandiconv_close, until a wasi-sdk carries musl's fix
(context/upstream/15-wasi-libc-gb18030-decoder/). Strict XML raises,recover=Truekeeps
no root, the HTML parser keeps only the ASCII text before it,read_htmlof a Chinese
table raises; no character is read wrongly in any mode. But a table that reaches the first
non-ASCII byte comes back cut there with no exception: its last row may be all NaN, a
column may turn float, and the rows and tables after it are missing (checkerror_log).
The README gives the working route: decode with Python'sgb18030codec and give lxml the
text. - XSLT reads and writes files by default. A stylesheet without an
access_control, or a
document it loads withdocument(), can read any file in a grant (external entities
included) and write into any writable grant; useetree.XSLTAccessControl.DENY_ALLfor
untrusted stylesheets. lxml's parser defaults stay the safe ones. - Left out:
lxml.isoschematron(it reads its stylesheets by file path, and their terms
are not approved; a stand-in raisesImportError;etree.Schematronworks), zlib in
libxml2 (XMLParser(decompress=True)raises; lxml compresses output through Python's
gzip),cssselectandlxml_html_clean. A catalog is read only from a grant at/etc/xml. - One more carried patch:
recipes/patches/libxml2-2.15.4/0001-xmlio-without-dup-on-wasi.patchlets libxml2's file
input and output work withoutdup(), which WASI preview 1 does not have (without it
libxml2 does not compile forwasm32-wasip1). Its facts sheet for the owner:
context/upstream/patches/libxml2-2.15.4/0001-xmlio-without-dup-on-wasi.md. - The build: two new steps, 36 (libxml2 and libxslt, by their own configure, under an empty
environment, with the pinnedpkgconfand an empty search path) and 54 (lxml's two modules,
from the Cython 3.2.9 C its sdist ships); three new pins. libxml2's default catalog is
native Linux's/etc/xml/catalog, not a bui...
- Character encodings are wasi-libc's iconv, not GNU libiconv: windows-1252, ISO-8859-2
wasi-python 0.1.0a6
-
The x86_64 rebuild runs natively (spec 059). Every compile carries
-ffp-contract=off,
set once in the toolchain's ownclang.cfgandclang++.cfgby step 10, so wasi-sdk's x86_64
and aarch64 builds of clang emit the same bytes, and the x86_64 Linux rebuild compiles with its
own clang instead of the arm64 clang under qemu (an hour less per release run). Run-time
arithmetic does not change (wasm32 fuses nothing); a constant the compiler folds moves to the
value the run time computes.python.wasm, the snapshot andMANIFESTchange once; the zip
stays. The judge refuses any compiler option that would override the file (-ffp-model=,
-ffast-math,-Ofast,-funsafe-math-optimizations,--no-default-config,--config,
another-ffp-contract=) in the recipe and in every build record, greps the source trees for
a pragma that turns contraction on, and probes the compiler's own-cc1line. Spec 040's
emulated compiler stays in the tree, switched off by one line inscripts/line.conf, until
the first alpha whose native x86_64 rebuild passed has shipped. The LLVM issue draft is
narrowed tollvm.fmuladdonfp128. -
Async tools and gates (spec 053). A tool or a gate may be an
async def, or a function
that returns an awaitable. Underrun_asyncit is awaited on the event loop that awaits
run_async, so an MCP client session or an async HTTP client works as it is; underrun, on a
loop of the call's own, on a thread started at the call's first awaitable and closed when the
call ends. A call answered before its coroutine started never starts it (spec 056's fix,
extended to async tools); every later end of the call (timeout_s, the deadline, a cancel,
Ctrl-C) cancels it at its nextawait. AKeyboardInterrupt,SystemExitor
CancelledErrora tool raises, and a loop that has closed or stopped, are faults in the record,
never exceptions in the embedder's loop. The guest, the protocol and the artifact set do not
change. The README's MCP recipe is now anasync def. An async generator is refused as a tool
or a gate. -
Changed:
host=given anasync def(or an async generator, apartialof one, an
object with an async__call__) is refused withTypeErrorbefore any work. The raw door is
synchronous; it used to answer every frame with a host fault and never await the coroutine. -
A provider may raise
OSError(spec 061). Its errno, matched by name (never by number,
which differs by host), is the guest's answer, as theErrnoof that name would be. With no
errno at all,FileNotFoundError,FileExistsError,IsADirectoryError,
NotADirectoryError,PermissionErrorandTimeoutErroranswerENOENT,EEXIST,
EISDIR,ENOTDIR,EACCESandETIMEDOUT. An errno outside the closed set (EINTR,
EAGAINand the rest), whatever the class, and any other exception stay a fault,EIO. A
mapped raise leaves no fault in the record. The guest never sees the exception's message, and
the record keeps nothing of it. -
The judge runs on several cores (spec 052).
uv run pytest -n 6gives the serial
answer in about a third of the time: pytest-xdist 3.8.0 is pinned in the development group,
each check's record is made on its worker and carried to the controller, which alone writes the
run record and accepts, and an upstream group runs with its classes in one worker. The lane's
accepting run stays serial;tests/harness/sameness.pycompares two run records. Five checks
no longer depend on the order or speed of the run, and the judge's zips folder is safe when
several processes make it at once. Nothing in the artifact set or the wheel changes. -
Security: a per-run budget of tool request bytes (spec 060; the 0.1.0a4 security review's
F3; spec 049, Decision 8, exception 2).max_tool_request_bytes=onrunandrun_async, and
Defaults.tool_request_bytes, default 16 MiB, counted from each frame's length before it is
read, whatever its answer; a frame that would pass it is refused unread, and the guest gets
ToolBudgetExceededand runs on. Parsing a 1 MiB frame costs the host a few tenths of a second
of CPU, so until now only the deadline bounded one call's total. The tool list is encoded once
per call, not once perlistframe.tool()finds a partial's bound keywords through a
__call__chain of any depth and through a metaclass's__call__(the review's N8), and
refuses a__call__cycle withTypeError, where Python 3.14 raisedRecursionError. -
Changed: a new, tighter default (spec 060; spec 049, Decision 8, exception 1): a call that
sends more than 16 MiB of tool requests passes a largermax_tool_request_bytes, orNone. -
matplotlib, the first milestone (spec 023). matplotlib 3.11.2 is built in:
import matplotlib; matplotlib.use("agg"),plt.plot(...)andsavefigto PNG, PDF, PS, EPS or SVG
in a granted folder. A fixed line plot's RGBA buffer equals native matplotlib's at the same pins,
and its PNG decodes to those pixels (the judge's golden jobplot_line). Linked in: FreeType
2.14.3, HarfBuzz 14.1.0, SheenBidi 3.0.0 and libraqm 0.10.5 (matplotlib's own wrap versions, for
native pixel parity), matplotlib'sft2font,_path,_image,_backend_agg,
_c_internal_utilsand_tri, kiwisolver 1.5.1 and Pillow 13.0.0's_imaging,_imagingmath
and_imagingmorph(zlib only: JPEG and other codecs raiseOSError). In the zip: matplotlib,
mpl_toolkits, PIL, kiwisolver, fontTools 4.67.0, cycler 0.12.1, pyparsing 3.3.3 and packaging
26.3, each with its METADATA. Not yet: Delaunay triangulation (_qhullis left out of the link;
explicit triangles work) andcontour(contourpy), both the next milestone; the snapshot does not
pre-import matplotlib (the owner's question 34).- matplotlib's data travels inside the zip as one member,
matplotlib/mpl-data.zip. The
runner extracts it once per process into its private zip folder, checks every file as it
writes it, compares the whole tree with its record on every call, and grants it read-only at
/usr/local/lib/python315.zip/matplotlib/mpl-data, the path matplotlib computes. The zip
itself now sits in that folder'slib/, so/usr/local/libstill lists only the zip
(spec 017's Decision 2, amended). An embedder without the runner extracts and preopens it
itself (the README says how). - Three more carried patches.
recipes/patches/matplotlib-3.11.2/0001-ft2font-enums-without-python.patchis upstream's
merged commit8e5591bc(pull request #30291, matplotlib 3.12):ft2font's enums no longer
take the GIL during static initialization, which hung a statically linked reactor before Python
started.recipes/patches/pillow-13.0.0/0001-arrow-capsule-signatures.patchand
recipes/patches/kiwisolver-1.5.1/0001-callback-signatures.patchgive two Pillow methods and
21 kiwisolver methods and getters the signatures CPython calls them with: spec 051's callback
scan found them in the first matplotlib link, and kiwisolver's trapped the guest at
Solver.addConstraint. Facts sheets for the owner:context/upstream/17-…(nothing to send),
18-pillow-arrow-capsule-signatures/and19-kiwisolver-callback-signatures/. - The build: two new steps, 37 (the plot libraries) and 55 (Pillow, kiwisolver and
matplotlib); the pinnedpkgconfwheel in step 10;scripts/wasi-ccdrops-pthread, which
would have compiled+atomicsin; step 60 checks the static constructors and target features
of every link against the judge's reviewed lists and stops on a new one. Eighteen new pins,
among them the Unicode License V3 for HarfBuzz's tables, pinned at a commit of Unicode's own
repository. - The judge: the milestone job and its PNG decoder (stdlib only);
savefig(dpi=-1)and a
kiwisolverUnsatisfiableConstraint; the data grant refuses every write; the static
constructor list; the ten target features; fifteen source trees judged against their tarballs
(the release workflow's count is 15); every C++ build's exception flags; the licence notices of
every new component. The callback scan no longer reads a record whose function sits at a parser
rule's table index as a method definition (FreeType's BDF property table). Two known gaps,
closed by the research memo's M2.
- matplotlib's data travels inside the zip as one member,
-
Security: the release signs and publishes only what its build job made (spec 057; the
0.1.0a4 security review's F4, N1 and N3's workflow side; it closes the one-release allowance the
0.1.0a5 addendum gave F4, before this release). The build job hands on its upload's artifact id
and the SHA-256 of itsSHA256SUMS. Every job that checks, signs or publishes refuses an empty
id, downloads by that id withdigest-mismatch: error, and checksSHA256SUMS, every file, and
that nothing else is there, before it acts; until now each fetched whatever artifact was named
release-assets. The two Linux rebuilds are two jobs instead of a matrix, so one cannot hand on
the other's ids. The download step fails, naming the file, when a fetched file has no pin.
publishnames thereleaseenvironment,setup-uv's cache is off in every job, and every job
states its own least permissions under a workflow-levelpermissions: {}. The judge checks all
of it, runs the workflow's own check and guard steps, and runs the download step on fake pins.
It also refuses any other download intorelease-assetsor into a job that holds it, any
continue-on-error:, and apypijob that could run beforepublishor outside a pushed tag.
python.wasm, the snapshot and the zip do not change.MANIFESTchanges in one line, because
it records the download script's hash, so the set'sSHA256SUMSand the wheel change too.
Verify a download (gh logged in; see the README's Verifying a download):
gh...