Repository navigation
Release v0.2.3: Code Mode, sandbox hardening, SECURITY.md - #6
Merged
Merged
Conversation
…urvive lone surrogates
…udit), add defusedxml
…moke on all OSes, pinned actions
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.2.3: Code Mode, sandbox hardening from the pre-release bug check, anonymous link probes, and SECURITY.md.
Code Mode
wire_runtool. The agent writes one async JavaScript script againstwire.read/search/feed/research/cite, and only the script's return value comes back. On the bundled offline benchmark, the same task costs 3,394 tokens over 2 round trips with the classic tools and 468 tokens in 1 round trip with a script (86% fewer).quickjs-ng). There's no filesystem, network, timers or modules. Each script gets 64 MB of memory, 5 s of CPU per step, 60 s in total, 40 calls and 16 in flight. Output goes through the same scrub and spotlight as other tools, and links a script fetched count as sources forwire_cite.wire serve --code-modeexposes onlywire_runandwire_status. There's also a newwire run FILE|-|-e CODEcommand.wire_run. The README has a Code Mode section.Fixes from the bug check
for(;;) await 0) could freeze the whole server, because neither the CPU limit nor the wall clock fired. It now stops at the CPU limit.JSONandPromisemethods, which crashed Python or forged call results. The hooks are now private, and the built-ins they use are captured before the script runs.UNTRUSTED_EXTERNAL_DATAblock.wire run -andwire cite -read piped stdin as UTF-8. On Windows,éused to arrive asé.Security policy
SECURITY.mdcovers how to report (GitHub private vulnerability reporting), what's in scope and out of scope, and known limitations.Not in this PR
The SSRF guard that blocks private and local URLs is in its own PR against
dev.Checks
ruff checkandruff format --checkare clean, anduv lock --checkpasses.wire run.servelists 8 tools andserve --code-modelists 2.wire_runanswered a live query, andwire_citeaccepted a link from a script.After merging, push the tag
v0.2.3to publish to PyPI.CI and supply chain (added)
fastmcp4.1.0 → 4.1.4 (GHSA-7xgj-8392-5q4r, GHSA-vqqp-x5qm-5qp4), and the floor is raised to 4.1.2.certifi→ 2026.10.23 andfilelock→ 4.2.4.defusedxml. Feeds that use DTD entities are refused instead of expanded.security.yml:codeql.yml: security-extended analysis for Python and Actions.ci.yml:uv lock --check, and the temp-dir guard.twine check, and the wheel's version must matchpyproject.toml.persist-credentials: falseon every checkout.dev.