-
fuzz --generatorfails, naming the command and the seed, when the generator prints no input
in a round. Before, a generator that exited 0 with no output was reported as "No fresh cases:
every case it generated is already in the recording" and the run passed; with--timeit ran
the empty generator again every round (#1218 by @P-r-e-m-i-u-m). -
The site's CLI reference is regenerated for 5.1.0: it was missing 13 options (
gate's
--held-out-cases,--held-out-seed,--accept-known-diffs,--accept-smaller-recording,
--accept-droppedand--json-events,record's--allow-dropped,--allow-large-tolerance
onrecordanddiff,fuzz's--sandboxand--generator,go's--min-cases,
app front-door's--command) and theselftest,new,specandobligationscommands. A
new test,tests/cli_help.rs, fails with the command's name when
website/content/cli-help.jsondiffers from the binary's--help(#1217 by @alex00010). -
app record --float-toleranceabove1e-6now needs--allow-large-tolerance, like
record, and the MCPapp_recordtool takesallow_large_tolerance. Before,app record
saved any tolerance below 1, so a recording made with0.5letapp replaypass a build
whose numbers were a third off. A recording that already holds a large tolerance still loads
(#1213 by @og-orca). -
profile --helpandgo --helplist only the languages they run (ts,python,go,java,
ruby) for--lang, not all eleven.--lang phpand the other five still stop with the profiler
to use instead, andgonames itself in that message, notprofile(#1216 by @bala-zx). -
The MCP
prompts/listdescription ofport_unit'slanguageargument now names every
language file the skill ships (Swift was missing), andprompts/getwith a misspelled prompt
name says so and lists the two prompts, instead of reporting a missingpathargument first
(#1214 by @qwist1233-cpu). -
The MCP server's
initializeanswers with the client'sprotocolVersiononly when it speaks
it (2025-06-18,2025-03-26or2024-11-05), and with2025-06-18otherwise. Before, it
echoed any string, so a client asking for1999-01-01or a newer revision was told the server
spoke it (#1215 by @brixtonpham). -
rust-anything obligations <repo>lists what the original offers (exports, commands, flags,
routes, environment variables, error paths) and the places it could not enumerate, and writes
rust/OBLIGATIONS.jsonwith--write.--evidencelinks each item to the recorded cases that
exercise it, and--checksays what still blocksapp lift, which now refuses while an item has
no case, a family is not attested, an expected file holds a...line or the front door took a
fallback no case explains (#1122).obligations waiveandobligations attestrecord a
person's decision with an ADR, andobligations fallbacksreads the journal a front door writes
whenRUST_ANYTHING_FALLBACK_JOURNALis set.gate'scoveragecheck names the exports no case
exercises (#1123 by @devrhonadis). -
The MCP server has three tools for the obligation registry.
obligations(what the original
offers, and withevidencethe cases linked to it) andobligations_check(what blocks
app_lift, withclear, one sentence per group andclosed_by_binding) only read.
obligations_fallbackswrites only when asked:writestoresrust/obligations-fallbacks.jsonl
andinputscreates the file it names, outside the repository included, as the CLI does. None
waives, attests or binds: those are the user's decisions.app_liftrefused for the obligations
is an error with the codeobligations_openand the command
rust-anything obligations <repo> --check; theport_whole_appprompt and the skill say the port
is not done until that list is empty, and the skill forbids runningwaiveorattest, or
writing a binding, unasked (#1123 by @devrhonadis). -
gateno longer calls aknown-diffs.jsonlentry unused when only itsheld-outdraws need
it. Anint-beyond-i64entry for a function whose recording holds no overflowing int failed
known diffs("no longer differs: remove"), and removing it failedheld-out; an entry that
explains a held-out input now counts as in use. -
app liftskips a case fromcargo testonly when a normalizer that spans lines folded a line
break in it.app recordsaves those cases (and the output:stdout,stderror a written
file) asacross_linesinrust-anything.json, and the liftedapp_cases.rsskips just them.
Before, one saved normalizer such as--normalize 'session=sess-[^ ]+'sent every case whose
output held a[..]toapp replay, including a timestamp, a uuid, two-run noise and a match
that stayed inside one line, so on a CLI that prints a time per command most of the recording
leftcargo test. A recording made before this keeps no list and skips every case with a[..]
as it did, and the "replay in CI" note says so until you record again (#1212 by @og-orca). -
A
known-diffs.jsonlentry can cover a class of inputs, not one argument list:
{"fn": "add", "when": "int-beyond-i64", "reason": "..."}explains every mismatch ofadd
whose original result holds a Python int outsidei64(a{"$int": "..."}that does not fit),
and one whose result fits still fails. Before, a Python port that keepsintasi64could not
say so once:i64::MAXis in the pool of everyintparameter, sogate'sheld-outcheck
drew an overflowing input on nearly every run, and an entry only matched one exact argument
list. The held-out line now counts the inputs such an entry accepted (#1162, #1190 by
@og-orca). -
A Python port that raises a class of the original's with its own
__str__and a constructor
taking more than the message (FieldError(field, reason)) builds the subclass that prints the
message once per class, not on every raise, so two raises give the same type. The error now
pickles (it raisedPicklingError, so aProcessPoolExecutorworker handed the caller a
pickling error instead of the error) and copies, and keeps the attributes set on it.isinstance
andexceptworked before;type(e) is FieldErroris still false for such a class, and the
Python guide says so (#1166, #1188 by @og-orca). -
PyO3 bindings convert large structured values faster (#1072). A result is turned into Python
objects while it is taken apart, so it is freed as it goes instead of in a second pass over
the whole tree, and tuples are filled in place. Arguments no longer copy each value twice:
json!re-serialized every list, tuple, set and instance's fields put into a marker, and a
dict cloned each value to keep a$dictfallback. A tokenizer returning 1.09M tuples from a
3.9 MB string: converting the result went from 205 ms to 142 ms and the call from 374 ms to
275 ms (the original takes 413 ms on Python 3.9); passing those tuples back as an argument went
from 290 ms to 195 ms, and a 200k-entry nested dict from 455 ms to 140 ms. Ports and what
diffcompares are unchanged; the rest of the cost is the port buildingserde_json::Values
and Python creating its objects. -
record --messagesholds a unit's errors to their message as well as their class: saved with
the crate (rust-anything.json, andrecorded-from.json, so turning it off by hand fails the
recording), anddiffandgatefollow it in every driver (TS/JS, Python, Java and Kotlin,
Ruby, PHP, C#, PowerShell, and--batchindex checks). Off by default; then, when the
recording holds errors, the verdict sayserror messages not compared: N recorded errors checked by class only, andcomparisonin--jsoncarriesmessagesand
unchecked_messages.--no-messagessaves the opposite; also amessagesparameter of the
MCPrecordtool. Before, a port that threw the right class with the wrong message passed
(#1073). -
A Python
strholding a lone surrogate (fromerrors="surrogateescape") where the port takes a
RustStringis refused by name:TypeError: argument 'a': str holds a lone surrogate, which a Rust String cannot hold, for a top-levelstr,str | Noneandlist[str]parameter, a
string inside a structured value and a dict key alike. Before, PyO3 raised a bare
UnicodeEncodeErrorthat named no parameter, and strings inside containers a misleading
TypeError: unsupported argument type str.diffshows such a case as a mismatch where the
original returned; the Python guide says how to carry the string instead (an untyped parameter
orserde_json::Value, which receive{"$utf16": [...]}).refreshregenerates the bindings
(#1074). -
On Unix, a descendant that leaves its process group and keeps a command's stdout or stderr
open without writing no longer leaves the capture reader blocked after the command is taken or
dropped: the read polls the stream together with a shutdown pipe. Capture still runs to the end
of a stream that closes normally, and a stream still open at the command deadline makes the run
time out rather than return success with partial output (on Windows too, where a blocked reader
is still let go only at its next read). The crate stays free ofunsafe(#1120, #1185 by
@sanketpatel32). -
A Python parameter whose default is neither
Nonenor a literal (def to_az_el(dec, ha, lat=LAT)) tells an explicitNonefrom an argument left out: the PyO3 binding reads it with
from_py_with, soto_az_el(1, 0, None)reachesport.rsasSome(Value::Null)and
to_az_el(1, 0)asNone. Before, both arrived asNone, and a recorded case where the
original raises on the explicitNonecould not match.refreshregenerates the bindings
(#1157). -
gate'sruntimecheck judges a path dependency'sinclude_str!and#[path]against that
dependency's own crate: a library the port moved into after a hand lift (core-lib = { path = "../core/lib" }) can keep#[path = "port/doors.rs"] mod doors;and include its own
sum.wgsl, which failed as "outside the crate" before. The dependency still may not reach
outside its crate, include the recording or a file in the original's language, and one whose
folder holds the bridged crate or the original unit is judged against the bridged crate as
before (#1158). -
setupinstallsnew-app.md, whichSKILL.mdlinks to for a new CLI app, and the MCP server serves it as
skill://rust-anything/new-app.md. A test now checks that every file of the skill folder is installed (#1153). -
gate'sheld-outcheck runs for Python PyO3 ports, not only TypeScript/JavaScript napi
ones: a Python port that matches every recorded case and differs on other inputs now fails
gate, andselftestcatches its two Python rows that onlyfuzzused to find (#1094,
#1112 by @RubenPanero).
Recordings with only keyword arguments also receive perturbed inputs. -
analyze --whole-appno longer asks a decision for a Python test, build or lint tool that no
unit imports (pytest-cov,setuptools,wheel,coverage,tox,ruff... from a dev
requirements.txt): the crate table marks the tooling row withtooling = true, and such a
dependency is still listed. jmespath.py went from five dependency decisions to one (#1136,
#1137 by @AyhamJo7). -
app recordkeeps its lock underrust/.app-record/, ignored by Git. Recording a Node,
Python or Go app no longer creates a top-leveltarget/folder in the original (#1165, #1176
by @Plastic-time). -
Two
app record --freshruns on one repository at once no longer wipe each other's staged
snapshot: each run stages into a folder of its own, and recordings of one repository take turns
(#1117, #1149 by @Lewandox). -
app recordon a lifted app rewritesrust/app/tests/app_cases.rswith the skips the new
recording needs: the listapp liftchose stayed as it was, so cases recorded after the lift
that trycmd cannot check failedcargo testwhileapp replaypassed them (#1145, #1146 by
@AyhamJo7). -
Re-recording a lifted CLI keeps hand-added trycmd skips for cases that still exist.
If you edited the test in another way,app recordleaves the file as you wrote it
and lists the skips the new recording needs (#1169, #1177 by @Plastic-time). -
app recordsays when it skips an--inputsline that repeats an earlier case (the same
arguments, stdin, environment and files): the summary counts them (1644 from inputs, 17 duplicate inputs skipped), a line names each with the case it repeats, and--jsonhas them
induplicate_inputs. Before, the count only came out short (#1140, #1141 by @AyhamJo7). -
fuzz --generator <command>takes each round's inputs from your own program, run with
RUST_ANYTHING_SEEDandRUST_ANYTHING_CASESset and read like arecord --inputsfile, so a
unit can be fuzzed over its real input domain and--seedreplays the run. A non-zero exit or
a bad line fails the run and names the line. Also ageneratorparameter of the MCPfuzz
tool (#1049, #1115 by @og-orca). -
analyzeandrecordwarn when an exported TS/JS function passes a parameter, directly or
through one local, toJSON.parse,atob,Buffer.from(x, "base64" | "base64url" | "hex"),
decodeURIComponentornew URLSearchParams. Even when decoding succeeds, generated strings can
miss cases that depend on the decoded content (#1163, #1174 by @Plastic-time).
analyzenames the parameter, the call and its line per function, andrecordlists the
functions after its summary and points at--inputs(#1050, #679, #1114 by @og-orca). -
A case recorded twice (a generated input that is also a line of the inputs file) can be
accepted inknown-diffs.jsonl: one entry now explains every copy of the case, and the count
of accepted cases thatdiff,gateand--accept-known-diffsshow is the number of
mismatches the entries explain, not the number of entries used. Before, one entry removed both
mismatches but counted one, sobehaviorstill failed, and a second entry for the same case
was reported as no longer differing (part of #1108, #1113 by @og-orca). -
record --from-testskeeps a reservoir sample of up to 1,000 distinct calls per function over
the whole test run instead of the first 1,000: a workload that walks one data source after another
recorded calls from the first source only and caught 0 of 12 planted bugs. The sample is
reproducible (seeded by the function name), the capture is read line by line with a hashed
de-duplication set, and a line that is not UTF-8 is skipped (#1071, #1104 by @XiaoBinGan). -
record --from-testscapture hooks (TS/JS and Python) skip a call already written for the same
function, keep the capture file open, and stop at 1 GiB (RUST_ANYTHING_CAPTURE_MAX_BYTES),
whichrecord,goand the MCP server report ascapture stopped at ...: later calls were not sampled(#1161, #1179 by @Lewandox). -
Two
record --from-testsruns on one crate at once (CLI and MCP, or two MCP calls) keep their
own captured calls and input files, and a failed test command leaves no capture files behind.
Before, they sharedtest-calls.raw.jsonlandtest-inputs.jsonl, so one run could delete or
record the other's calls (#1119, #1148 by @Lewandox). -
app recordwarns when every case (two or more) failed with the same exit code and the same
error output, quoting its last line (same_failurein--json): a command that never reached
the app, such aspython3 bin/jp.pywithout its package on the path, recorded a
ModuleNotFoundErrorper case and read as a complete recording (#1142, #1143 by @AyhamJo7). -
app liftno longer fails itscargo teston a normalizer that spans lines (a traceback's
frames folded into one[..]): trycmd reads[..]inside one line only, so the cases whose
output holds a[..]are skipped inrust/app/tests/app_cases.rswhen such a normalizer is
saved,app replaykeeps checking them, and the "replay in CI" note counts them (#1134, #1135
by @AyhamJo7). -
app front-doorno longer takes a CLI's free-text first argument for subcommands: when a
successful case starts with an argument that is neither a word nor a flag (foo.bar[0]), the
app has one root command and its flags come from every successful case. jmespath.py'sjp.py
got 44 "commands" (expressions such asfoo) and lost--astand-f, and those cases could
never stop falling back (#1130, #1131 by @AyhamJo7). -
app front-door --command <name>(repeatable, or--commands a,b, andcommandsin the MCP
app_front_doortool) names a CLI's subcommands when a free-text first argument would hide
them, and the front door's notes name the words it did not take for commands and the flags to
pass (#1167, #1181 by @Lewandox). -
Source walks leave out the repository's
rust/folder once rust-anything works in it (a
recording inrust/app-cases/or a front door inrust/app/), soanalyzeno longer counts
the port's own scripts as units, entry points or dependencies: mid-port, jmespath.py read as
16 files in 8 units withrust/inputs/*.pyas entry points, and is 10 files in 3 units again.
A project's ownrust/folder without that state is read as before (#1138, #1139 by
@AyhamJo7). -
refreshputscdylibback in a PyO3, napi or wasm crate'scrate-typewhen it is missing,
keeping the kinds already there: on a unit crateapp lifthad made a plain library, it
regenerated the bindings butbuildthen found no extension module (#1150, #1151 by
@AyhamJo7). -
Python ports can raise the original's own exception class when its constructor takes other
arguments than the message, or none (ParseError(position, token, type),EmptyError()): the
bindings make it without running__init__, with the message as itsargs, and a class whose
own__str__reads what__init__sets is raised through a same-named subclass that prints the
message, soexcepton the class still catches it. Before, these becameValueErrorand failed
diff; a jmespath.py port went from 3103/3441 to 3441/3441 (#1128, #1129 by @AyhamJo7). -
The generated
pyconv.rspasses clippy 1.98 (as_chunksinstead ofchunks_exact(2)for the
UTF-16 units of a string with lone surrogates), sogateno longer fails a Python port on
generated code; a test runsclippy -D warningson a bridged PyO3 crate (#1132, #1133 by
@AyhamJo7). -
A PyO3 crate named like one of its exported functions or classes (
bridge --name slugfor a
slugfunction) passescargo test: the generated registrations namecrate::slug, so
rustdoc's doctest build no longer stops witherror[E0659]: slug is ambiguousandgate's
testscheck no longer fails (#1091, #1098 by @XiaoBinGan). -
analyzeno longer counts Python%string formatting ("x=%s" % x, implicitly joined
literals, bytes, in parentheses) as "Division and modulo": only a%whose left side may be a
number is. On jmespath.py the 31 false hits are gone and the readiness ofjmespath/goes from
6 to 16 (#1124, #1125 by @AyhamJo7). -
analyzealso flags Ruby/=and%=asDivision and moduloand**=and<<=as
Integer width and overflow, alongside/,%,**and<<(#1105 by @brixtonpham). -
A whole-repository audit for implicit state machines, following Tobi Lütke's advice (list every
state machine, model it in TLA+), read every line ofsrc/,tests/, CI and the scripts,
modelled the risky ones with everystate by
@mattzcarey, and confirmed most findings with a repro. Most fixes below come with a regression
test that failed before the fix:recordholds the per-crate recording lock for its whole run, anddiff,bench,gate,
reportandenablehold it while they readcases.jsonl, so afuzzorheld-outround
can no longer put the old recording back over a new one, or hand a gate its temporary cases
between the recording check and the diff.recordfingerprints the original before its drivers run and writes the fingerprint and the
dropped counts torecorded-from.jsonin one step, so an original edited whilerecordruns
makes the recording stale instead of trusted.--allow-droppedapplies to the onerecordcall that gets it: the MCP server no longer
keeps one call's allowance for the next.- A
recordthat fails no longer leaves its--float-tolerance,--ignore-key-orderor
--pin-clocksettings behind, and a recording refused for holding a secret puts the previous
cases.jsonlback. - An input on which the original ends the process with an error status (PowerShell
exit 3,
KotlinexitProcess) is dropped and the rest are recorded, instead of failing the whole
recording. - After a timeout or such an exit, the new driver first runs again the cases already recorded,
so the original's state matches the one-processdiffreplay and a faithful port of a
stateful original no longer fails. recordrefuses when the original's source is not where the manifest says (a moved or cloned
repository) instead of recording the driver's failure to load it.gatecounts recorded numbers in a file the port includes (include_str!of a renamed
recording), treatstodo! (),unimplemented!{}andtodo![]as stubs, and checksunsafe
intests/,build.rsand every other Rust file of the crate, not onlysrc/. Both read
whole files, so a string or comment over several lines is not code.maptrusts a recording whose dropped cases the last passing gate accepted with
--accept-dropped.- Switching another unit on no longer makes a recording that imports its file look stale,
results are stamped with the port version they started on, and the port version follows
symlinked sources. - A library is dated when its build started (TS napi and Python), so a source saved while cargo
compiled makes it stale instead of being tested as the old version. - Python records publish
cases.jsonlby rename, and two Python runs on one crate no longer
sharedriver.pyor the bench and source-list files. --jsonafter--(the test command ofrecord --from-tests) no longer turns the CLI's
errors into JSON.record --from-testsno longer copies a killed run's backup over a TS/JS file edited since:
the backup goes back only while the file is still that copy with the capture block, a file
edited around a stale block is left as it is with an error naming the backup, two captures of
one file take turns, and a#!line stays the first line.- The MCP server kills the processes a cancelled call started, so the call lets go of the
recording lock at once, and at the end of its input it waits up to 5 seconds for cancelled
calls to stop, so their files are put back. profileandselftestwork in a folder of their own per call: two at once in the MCP
server no longer read each other's profiles or judge each other's planted ports.gate's fmt, clippy and test checks run under the batch lock, so adiffrunning at the
same time no longer puts its generated batch test in front of them. When the lock cannot be
taken, a stale generated test is still removed first.- A batch check killed mid-run no longer leaves its temporary copies in
tests/, and a test
someone writes attests/rust_anything_batch.rswhile one runs is never replaced. - Python batch checks recognize every built-in exception class, the warning classes among them,
so a port raisingUserWarninglike the original no longer fails the batch check. - The error-cases check finds a
throwafter a'}'string or char literal, and araisein
a Python function whose signature spans several lines (Black's style). - MCP calls with
timeout0, a non-listeffect_responseor a bad selftestlangfail as
invalid_arguments, notfailed. app record --httpandapp replaystop the whole process tree of a server that did not
listen in time or failed its--readyrequest, not only the launcher, so a server left
running can no longer answer the next replay and make a broken build pass.- A failed
app record(a secret refused, a--db-dumpfailure, a literal wildcard) no longer
replaces the--freshsnapshot or rewrites earlier cases: the snapshot is taken beside the
saved one and swapped in when the settings are written, and HTTP cases are all checked before
any is written. app record --httprefuses to write a secret-named environment variable's value and refuses
literal[..]/...text in fields that differ between runs, as the CLI recorder already
did.- HTTP requests sent by
app record,app replayandapp shadownow have--timeoutfor
the whole response, so a streaming route (SSE, long poll) times out instead of hanging. - Outside commands (
--db-reset,--db-dump, builds) and CLI cases end at their time limit
even when a background orsetsiddescendant keeps their output pipes open. - The HTTP front door's original stops with everything it started whenever the front door exits
(a router or bind panic included), receives Ctrl-C, is found on::1as well as127.0.0.1,
gets a new port if another process took the chosen one, and streams fallback answers with a
60s per-read timeout instead of buffering them under a 60s total. A SIGTERM while the original
starts reaches the original too, and on shutdown a response still streaming gets 10 seconds
before the original is stopped. app wirerefuses routes whose path parameters clash (/users/{id}and/users/{name}, or
a parameter and a catch-all at one place, which axum rejects at startup), refuses a crate
whose unit name, module or switch another wired crate already has, and serializes concurrent
wires, and a wire withapp lift, with a lock outside the repository and an atomic state
write.app shadowlogs a request the original did not answer (the build was not sent it either),
keeps it with--keep, and removes its scratch folder on a failed start and the folders of shadows stopped with
Ctrl-C.- The Python shadow no longer swaps
sys.stdoutper call: two threads calling a printing
export at once could leavesys.stdoutas a StringIO for good and count other threads'
output as the call's. A stdout proxy is installed only while shadowed calls run, and each
thread's prints go to its own call. - The Ruby shadow no longer swaps
$stdoutper call, for the same reason under Puma or Sidekiq
threads: each thread's prints go to its own call, and$stdoutis put back when the last
shadowed call ends, also when another shadowed file loads during a call. - The Go shadow no longer points
os.Stdoutat/dev/nullwhile the port runs. Concurrent
calls could leave it on a closed file and swallow the program's output. The port's output is
now held back through the wrapper, also when only the port prints. - A Python or TypeScript shadow whose original returns a value too deep to encode returns it to
the caller and reports a mismatch, instead of raisingRecursionErrororRangeError(or
rejecting the caller's promise). In TypeScript, two such values never compare equal. - The Ruby shadow returns binary (non-UTF-8) results instead of raising
Encoding::UndefinedConversionErrorinto the caller. - A Ruby port returning a
u64abovei64::MAXgives Ruby an Integer, not a Float. - Go typed and wire calls whose result is over 256 or 512 bytes no longer run the port twice. A
port with state (a counter, a cache) advanced twice per call. The result is now kept for the
second read. - The C shadow gives the port a
char **cursor into the port's own copy of the buffer (the
port panicked and aborted the caller), and frees that copy only after comparing. app liftrefuses to start or replay while a top-level path of the repository is still named
*.rust-anything-hidden: a lift stopped during its final replay (Ctrl-C, a CI timeout) left
src/moved away, and the next lift skipped the missing path, replayed with nothing hidden
and lifted anyway. Two lifts at once now refuse the same way.app liftcopies the checked crates back through a journal (rust/lift-commit.json) that
keeps the checked copy until the lift is inaudit.jsonl: a lift that stops or fails while
copying back, or at its final build, is finished by the nextapp liftinstead of leaving
rust/applifted, a unit still bound and no log entry. Every checked crate is checked before
a file goes, the files the copy removes and the replay counts are saved first, a lift whose
copy is done only builds again (an edit made to fix the build is kept), and the journal stays
until the audit entry is written.app liftstill recognises a CLI front door'ssrc/main.rsgenerated before
RUST_ANYTHING_MODE=oldwas honoured there, instead of refusing it as changed by hand.app lift's check that the glue no longer callsoriginal::reads escaped char literals
('\"','\'') and raw strings (r"\",r#"…"…"#) as Rust does, so the code after them is
no longer read as part of a string, andoriginal::inside a string is not a call.--deviceruns use a device folder of their own (process id, time and a counter), so two
hosts sharing a device, or a run after a crash, no longer share jars and results.enableanddisablewrite a unit's files all or none, each through a temporary file: a
failed write leaves that file whole and puts back the files already written, and a file saved whileenablechecked the module is not overwritten. If a
file cannot be put back,rust/audit.jsonllists the files that did change.- Two units whose blocks sit at the end of one file without a final newline give the file back
byte for byte when disabled in the order they were enabled. spec approveandspec checkinclude the input folder a case names withfs.base, so
editing that input marks an approved case as changed. Cases that setfs.baseshow as
changed once after upgrading.rules --addlocks the rules file from read to write, so two adds at once (CLI and MCP) keep
both rules, and appends, so a failed write leaves the earlier rules. Agent prompts for apps made withrust-anything newnamespec/RULES.mdas the
rules file.rust/audit.jsonlis locked between the torn-line check and the append, so a partial line
from another process can no longer merge with a new entry.logno longer panics on a commit
field that is not ASCII.- Library front doors give a unit whose module name a numbered one already took (
util,
util_2,util) the next free name instead of a secondutil_2module. - The shared build folder now gives a library name to one crate only, so
foo-rsandfoo_rs
(bothlibfoo_rs) no longer install each other's library. - A crate with a path dependency inside its own folder builds in its own
target/, since cargo
shares that dependency's build between crates laid out alike. - An owner of the shared build folder keeps its names while its Cargo.toml is briefly
unreadable.bridge,refreshand manifest saves write files through a temporary file and a
rename. rust-anything cleanempties the shared folder under the owners lock and keeps
owners.json, so a build in progress keeps its name.- Built libraries are copied out of the shared folder only for the crate types the crate
builds, so a former owner's<lib>.liborlib<lib>.ais no longer installed (the Windows
go_cgo flake). - C-ABI and FFI crates write their repository root relatively, as napi and PyO3 crates do, so a
clone of the repository no longer records against the original machine's path. A crate folder
that does not exist yet behind a symlinked path also gets a relative root now. rust-anything packagewrites its stamp before the package files, so an interrupted run no
longer leaves a folder every rerun refuses.setupkeeps the first<file>.rust-anything.bakinstead of overwriting it on every run.- Workspace packages are read again on each run, so a long-running MCP server follows packages
added after it started. - The napi wire keeps each loaded copy of a port's
index.cjson its own buffers: a second
evaluation (JestresetModules,delete require.cache[...]) took over the one Rust slot,
and calls through the first copy read the other copy's arguments and returned stale results
with no error. A call now registers its buffers again when another copy took the slot. - A wired TS/JS export called again from a getter on its own argument (napi and wasm) goes
through JSON for the inner call instead of sharing the wire's write cursor, which returned
the inner call's answer to the outer one. RUST_ANYTHING_MODE=oldruns the original from the CLI front door binary too, as the package
README says: once the postinstall put the binary in place of the Node launcher, the variable
was ignored. A front door made earlier gets this by regeneratingrust/app/src/main.rs.- TS/JS regular expression literals are read as one by the effect checks:
/\/*$/opened a
block comment and hid the rest of the function, so an environment read after it was missed
and the function bridged. analyzeof a TS/JS repository skips an unreadable folder and apackage.jsonthat is not
JSON (a template's"<%= name %>") instead of stopping, and skipsdist,build,out,
targetandcoverageonly beside apackage.json, so code insrc/commands/buildis
analyzed.- Object keys named
__proto__survive the napi and wasm wire as own keys, as on the JSON
path, instead of being dropped or setting the prototype. - An exported arrow function whose parameter default is itself an arrow (
(s, g = () => {}) => s.length) is judged by its own body: the default's body was taken for the function's, and an
expression body was typedvoid. delete aa.x(and Pythondel dd[...]) no longer counts as changing a parameter nameda
(ord) in place.- Go and Java JSON dispatchers read each argument of a printing port by its own type when
stdoutis not the last parameter, and keep NaN, infinities and -0 inOption<f64>and
Option<Vec<f64>>results and changed arguments instead of turning them intonull. - A PHP or Ruby parameter whose default is in parentheses (
$opts = array(),width = (4 * 2)) keeps its closing parenthesis, so the generated wrapper parses. - A Gemfile
begin ... endblock or a one-lineif ... then gem "x" endinside agroupno
longer ends the group early or leaves it open, nested on one line too, so dev and runtime
gems are told apart. - Ruby
private :namehides that method from anextend selfmodule's exports until a later
public :name, andpublicends aprivatesection andmodule_functionmode. - The generated PHP wrapper says when PHP refused FFI because of
ffi.enable(the default
preloadallows FFI only in the CLI) and how to turn it on, instead of a bare
FFI\Exception. - PHP
diffreports a recorded function that is no longer exported as missing instead of
stopping with a fatal TypeError. pynum'sNum::maxandNum::minreturnValueErrorfor no values instead of panicking;
ports call them with?.- A Python or Ruby parameter used as
fmt % 3is no longer typed as a number:%with a
number only on the right may format a string. - Java, Kotlin, Go and C#
record,diffandbenchtake a per-crate lock
(.rust-anything/driver.lock), so two runs in one crate no longer delete or rebuild each
other's driver while it runs. benchfor Go, Java, Kotlin, C# and PowerShell no longer reads an earlier run's timings when
the driver wrote none.analyzeloads the project's C# records and classes, asbridgedoes, so a method taking a
record counts as bridgeable.go --agentthat ran out of turns with stubs left now says so and points to--rounds,
instead of asking for--agent.- The C# and PHP wrappers read each changed argument at its place among the port's
&mut
parameters, not by the order of the manifest's list. - Swift
recordanddiffruns use their own work files and driver build, so two runs in one
crate keep their own answers. - A Swift case that answered just before the time limit is kept instead of marked timed out; a
timed-out Swift driver is killed with its whole process group, and gets 30 seconds to start. - PowerShell scripts with their own
param()block or top-level variables ($Mode,
$targets) no longer overwrite the driver's. - A
varin a Kotlin companion object or nested object counts as state, and a nested object's
functions are called on its JVM class (Outer$Inner). - A multipart MIME body without its closing boundary keeps its last part.
--redacthashes quoted object keys in mismatch paths, groups and replay problems, so a key
like an email address no longer shows.- Nested-payload case generation with a count of 0 makes no cases.
- The release job finishes on a re-run: when the GitHub release already exists it uploads the
assets again (--clobber) and updates the notes instead of failing ongh release create. - The website deploy job builds the site before
void deploy, and the head middleware no
longer adds a canonical link, hreflang alternates or JSON-LD to error pages. - The GitHub Action gate loop no longer expands
*in thecratesinput as a glob. - The npm launcher says the Linux binaries need glibc on musl systems (Alpine) and points to
cargo install, instead of failing with a bare spawn error. scripts/check-secrets.shandscripts/rename.pyhandle tracked file names with spaces,
scripts/sponsors.mjsworks from a path with spaces, andscripts/gifs.mjsremoves its
frame folder when rendering fails.evals/score.py --resultsrescores a run that was already scored with--keep, instead of
skipping it as having no kept working folder, and replaces only its own scoring copy.- Integration tests: the cgo, N-API, PyO3, magnus, JNI, PHP, C# and Kotlin effects tests no
longer share the crate namefx-rs. A new test checks that a Go port rebuilt after another
crate gave up its name runs the new library.fixed_portskips ports a wildcard listener
answers on, and locks each port across test processes. CLI runs drop the shell's
RUST_ANYTHING_*settings. Scratch folders are removed when a test fails. The
interrupted-fuzz test signals the whole process group. macOS CI now requires PHP, .NET and
Kotlin. - Go
diffrebuilds its driver every time, so on macOS it no longer runs an older Rust library
than the one just built (a broken port could pass), and on Windows it no longer links another
crate's leftover static library (the go_cgo CI flakes). - The MCP server stops every outside program a cancelled call started (builds, test runs,
record drivers, the Node diff driver,app record,app replayandapp driftcases on
every worker thread), starts no new ones, and stopsfuzzbetween rounds. An outside command
whose descendant keeps its pipes open after it exits is stopped half a second later, not at
its time limit. - The MCP
recordtool puts backfloat_tolerance,ignore_key_orderandpin_clock(and the
pinned.rshelper it wrote) when the recording fails, as the CLI does, both take the
recording lock before they change them, Androiddifftakes it too, and the MCPenabletool takes the recording lock like
the CLI. goholds the recording lock from recording to switch-on, and lets go of it while its agent
runsdiffandgate.fuzz --time --keepkeeps the cases earlier rounds kept when a later round fails, and says
so in the error.- Ruby, PHP, C#, Swift, PowerShell, C-ABI and Android builds date the installed library from
when the build started too, andbenchfor Ruby and PHP no longer reads an earlier run's
timings. --deviceruns hold the per-crate driver lock until the dexed driver is packaged.- The HTTP front door requires reqwest 0.12.4 or newer, the first with
read_timeout. - Generated Go and Java JSON dispatchers pass
cargo clippy -D warningsagain for exports that
print or change arguments, sogateno longer fails them on a needless borrow. - A
--readyrequest that answered a non-2xx status reports that status even when the last
probe timed out. - Tests build ports under
target/tmp/rust-anything-ports(.cargo/config.toml) instead of
the shared cache in your home folder.
-
recordandgatereport coverage for Python units too: the record driver notes the lines
the cases run in the unit's files with the standard library (sys.monitoringon 3.12+,
sys.settracebefore) and counts the lines that hold code from the code objects, so blank
lines, comments and docstrings do not count (#1056, #1107 by @alex00010). -
Python (PyO3) end-to-end tests for
fuzz(withkwargs,--keepandgate) and
record --pin-clock(time.time,datetime.now,date.today,random.random,
random.randint), afuzzandheld-outdedup fix so freshkwargscases sharing positional
arguments are not dropped, andTZ=UTCdocumented inrecord --helpanddocs/how-it-works.md
(#1060, #1061, #1078 by @abiramcodes). -
Go fixed-size array parameters and results (
[4]int,[32]byte) are bridged as lists
(Vec<T>) instead of refused. The generated Go decodes only a list of exactly that length, so
a wrong-length argument or result is refused rather than padded or cut byencoding/json, and
recordsends exactly that many items plus one list too long (#1103 by @Harsh28-raj, #1044). -
C# value tuple parameters and results (
(int Count, int Width) Sizes(string s)) bridge as JSON
arrays ([7,14]), so the port takes or returnsserde_json::Value, instead of being refused
for using a tuple (#1048, #1106 by @XiaoBinGan). -
A Java function that reaches app state through a helper in another unit
(PostDataHelper.createQueryTVreadingLocaleManager.instance) stays in Java with the reason
instead of being bridged as pure, andanalyzecounts the same exports asbridge. The reason
names the call as written (Query.load), not the bare method name (#1042, #1100 by
@XiaoBinGan). -
benchtimes Swift units, running the driver on the original and then through the Rust
library, soreportand the card show a Swift port's speed. Before, it refused every Swift
crate (#1052, #1116 by @XiaoBinGan). -
to_plain_jsonin the generatedjs.rsescapes marker-shaped objects nested inside each
other in linear time: each$objectwrap used to shift everything written after it, so a deep
tree of single-key$map-like objects cost the square of its depth on every call (#1095,
#1102 by @orshih6). -
The commands a message tells you to run quote their paths where a shell would split or change
them:bridge'srecord/build/diffline,profile'sbridgeadvice, and the fixes
gate,diff,record,package,app shadowand the MCP errors suggest no longer break on
a folder with a space when pasted. Windows hints use PowerShell syntax and select POSIX quotes in Git Bash.
Ordinary folders with spaces also work at a Windows command prompt (#1175, #1178 by
@Plastic-time). -
diff,gate,enable,goandlibrary replaynow check custom batch indexes
(port::<Fn>Index) against the crate's recorded cases instead of testing only the per-item
exports. When a crate defines a custom<Fn>Index,rust-anythinggroups the recorded cases by
the fixed parameters, generatestests/rust_anything_batch.rsatomically under a per-crate lock
(.rust-anything/batch.lock), and runs it withcargo testto verifyIndex::run(including
typed recorded errors, Go sentinel errors andknown-diffs.jsonl) and customrankordering.
Valid reports from completed indexes are kept when another index aborts, handwritten tests at
that path are preserved rather than overwritten, and execution errors report the check failure
directly instead of pointing atsrc/port.rs(#1054, #1086 by @wasabihu). -
recordanddiffon a C unit (andgate,benchand the others that rundiff) say on
Windows that the C driver needs Linux or macOS (WSL on Windows), since it runs each case in a
forked process. They used to fail inside the driver withAttributeError: module 'os' has no attribute 'fork', or with onlyexit code: 9009whenpython3was the Store's stand-in;
recordcompiled the original first (#1155 by @Plastic-time). -
The translated C language pages say that recording and replay need Linux or macOS (WSL on
Windows), as the English page does (#1164, #1171 by @Plastic-time). -
A
{"$utf16": [...]}list whose items are not all code units (70000, -1,true, a nested
value) stays a plain dict in a PyO3 port, as the Python driver already read it, instead of
raisingValueError: invalid $utf16 code uniton every case (#1090, #1099 by @ege-arhan). -
build(and the build step ofgateandgo) on a napi unit with a Rust toolchain for
windows-gnuexplains napi-rs'slibnode.dll not found in any search path: such a build links
against a libnode.dll that only MSYS2's Node ships. The error now gives the Build Tools command
doctorprints andrustup default stable-msvc, or a new crate with--kind wasm(#1156 by
@Plastic-time). -
The Python
shadowmodule takesencfrom the driver instead of an old copy, so a port that
returns a wrong path,Decimal, date,UUID,Fractionor other value of a type without a
__dict__is reported as a mismatch. They all used to compare equal by type name (#1093,
#1101 by @m3lonxd). -
app recordon Windows also turns the case's folder into[CWD]where the original prints it
with doubled backslashes, as a JSON string or thepathof Node'sENOENTerror does. The temp
folder, with the user's name and the recording process's id in it, used to stay in the committed
case, so replaying the original from another process failed those cases (#1154 by
@Plastic-time). -
PHP: a public static method of a
finalclass now bridges, records and diffs like a top-level
function when the class's file can be replaced (one declaration, no top-level code), every
public member is a static method and the class holds no static properties. The wrapper replaces
the class with afinal classof the same name, so the original must already be final; a
non-final class keeps its static methods in PHP. A class with public instance methods or a
non-public constructor, static properties, other public members, a method that returns by
reference or a default that names a class constant or an imported constant, uses__LINE__,
__FILE__or__DIR__, or creates an object also keeps all its static methods in PHP, with the
reason. A class with one kept method keeps all its methods, whether the reason is avoid
return or--keep, and the wrapper keeps a default that ends in)(array(),(1)) and a
multiline string default byte for byte (#1046, #1109 by @Ilhan-separ). -
The PHP wrapper names the dispatcher's response variable so no parameter can shadow it: a
by-reference parameter namedanswerused to overwriteret,after,stdoutanderror
on write-back, so a successful call returnednullor threw (#1109 by @Ilhan-separ). -
PHP: two static classes in one unit with a method of the same name (
Str::length,
Arr::length) no longer refuse the unit. Only clashing methods are qualified, asstr_length
andarr_lengthin Rust and--keep Str::length; other exports keep their names (#1170, #1182
by @Lewandox).
Upgrading
app liftnow also refuses while the obligation registry has blockers, so a port made with an
earlier release stops at its next lift. Runrust-anything obligations <repo> --checkfirst (it
reads the source and the recorded cases, nothing is built), then: attest the families the
ledger cannot prove complete in one command (rust-anything obligations attest command flag route env error-path --reason "<why>", the families it names), record a case for each
obligation listed, name the case that exercises one inrust/obligations-bindings.toml
([[bind]]withobligation,casesandreason), or waive what needs no case with
rust-anything obligations waive <id>... --reason "<why>", which takes several ids and patterns
such as'flag:*'. Each decision writes an ADR inrust/DECISIONS.md, and commands that write
decisions take turns throughrust/.rust-anything/obligations.lock.gate'scoveragecheck now fails when an export of the unit, a method included, has no
recorded case, so a unit whose recording never called a method failsgate, and with it
app wire,goandapp lift. Record a case that calls it, bind one, or waive its id from the
repository.- Tests: three HTTP tests take fixed ports from
fixed_port()(#1092, #1097 by @qwist1233-cpu),
an MCP test accepts both of selftest's Go messages (#1126, #1127 by @AyhamJo7), the process
tests check that child processes really exit (#1121, #1147 by @P-r-e-m-i-u-m), and the test
targets build on Windows (#1152 by @Plastic-time).