Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.
Status
What works, and how each part was last checked. Updated 2026-12-04.
Verified: run end to end (bridge, record, port, diff, gate) on real code someone else wrote,
named below, and only for the languages and tools the row names. Tested: covered by this
repository's tests on fixtures written for them, not yet run on a real project. A row that was
run only on this repository's own fixtures, or on one language of several, is Tested for the rest.
"Gate passes" always names the crate it ran on and the gate it ran with: the literals, tests
and recording checks arrived in 5.0.0 (2026-11-25), after every real run below (2026-11-16 to
2026-11-22), so none of those runs passed them.
CI: a row that says "not in CI" needs a tool that no CI job installs; it ran only on a machine that has it. See Where the tests run.
Porting units
| Language | Status | Last real run | Result |
|---|---|---|---|
| TypeScript/JavaScript | Verified | ESLint (2026-11-21), Prettier (2026-11-21), json-server (2026-11-18), Fuse.js (2026-11-18), vercel/ms (2026-11-18), x18n's packages/core |
ESLint: eslint-stdin-rs 10,192/10,192 (built from cases already known to match, so it cannot fail), gate passes on that wrapper crate only, front door replay 10,585/10,585 at 3.6% fallback (CommonJS module bridged); Prettier: doc-printer-rs 2,848/2,848 and js-format-rs 15,753/15,753, gate passes on those two wrapper crates only (the ~33,700 lines of linter-rs and ~12,000 of prettier-js-rs are dependency crates that gate's unwrap, panic, size and literal checks do not read), and the recorded cases are not kept in the repository; json-server: six units, 3,399 cases, gate passes on each; Fuse.js, vercel/ms, x18n: 3,414/3,414, 975/975 and 9,582 cases match |
| Python | Verified | colorsys.py from CPython 3.13 (2026-11-16) |
2,400/2,400; gate passes |
| Go | Verified | path from Go 1.24 (2026-11-16) |
2,642/2,642; gate passes |
| Ruby | Verified | shellwords.rb from Ruby 3.3 (2026-11-16) |
1,617/1,617; gate passes |
| Java | Verified | JDK 21 behind a facade (2026-11-16) | 4,492/4,492; gate passes |
| C | Verified | ffmpeg's libavutil n7.1 (2026-11-20), glibc behind a facade (2026-11-16) | ffmpeg: 10 units (six with libavutil's own signatures, four through one-shot wrappers over context APIs), 226,447/226,447, gate passes on each; glibc: 1,859/1,859 after dropping one undefined-behavior case |
| Kotlin | Tested | none | analyze, detection, JNI-shaped exports, bridge, record and diff on a Gradle fixture (tests/loop.rs); needs kotlinc on PATH; CI on macOS only |
| Kotlin for Android | Tested | none | build --profile android builds one installed ABI per test run into jniLibs/ with every JNI entry point and the 16 KB alignment checked; all three ABIs were also built by hand, and the armeabi-v7a library was loaded on an Android 11 TV and called through JNI. record --profile android replayed the Kotlin unit under ART on that TV (291 cases) and diff --profile android matched 279/291 against the Android .so. Needs the NDK/device; not in CI |
| PHP | Verified | PEAR XML_Util 1.4.5 behind a facade (2026-11-22) |
1,838/1,838; gate passes. Top-level functions with scalar, string, list and assoc-array parameters (the XML_Util run); public static methods of a final class in a single-declaration file with no top-level code, whose public members are all static and that hold no static properties, tested on a fixture (tests/loop.rs); a class with one kept method keeps all its methods; classes that are not final, with public instance methods or a non-public constructor, static properties, other public members, a method returning by reference, a default naming a class constant or an imported constant or using __LINE__/__FILE__/__DIR__ or creating an object, objects, references, variadics, callables and generators stay in PHP with the reason; no shadow, no --batch; needs php with FFI; CI on macOS only |
| PowerShell | Tested | none | analyze, bridge, record, build, diff, gate, enable and disable on a .psm1 fixture (tests/powershell.rs, PowerShell 7.7 on macOS; CI runs it with pwsh on Linux and Windows). Functions with string, integer, double, bool/switch, array, hashtable and untyped parameters; filters, process blocks, pipeline input, script blocks, [ref] and other .NET types stay in PowerShell with the reason; no shadow, no --batch, no profile |
| C# | Verified | Google.Protobuf 3.29.0's CodedOutputStream.ComputeSize.cs (2026-11-22) |
16 public static methods (6 kept in C#), 2,941/2,941 with 2 lone-surrogate cases listed in known-diffs.jsonl; gate passes. Records and POCOs as arguments, defaults, nullable, lists and dictionaries, and nested (+) exception types are tested on a fixture (tests/loop.rs); shadow and --batch are not available for C#; needs dotnet on PATH; CI on macOS only |
| Swift | Tested | none | analyze, bridge, record, build, diff, gate and bench on a SwiftPM fixture (tests/swift.rs, Swift 6.4 on macOS arm64; not yet run on Linux or Windows). Top-level functions with String, integer, Double/Float, Bool, optional, array and [String: T] parameters and results, and throws: thrown errors are compared by type and String(describing:), and an Int overflow is recorded as a trap and matched by a port that panics (the crate builds with overflow-checks). A port counting chars() where Swift counts graphemes, and one using wrapping_add, both fail diff. Methods, extensions, closures, inout, generics, async, Set and project types stay in Swift with the reason; printed output is not captured; no shadow, --batch or profile; skipped without swiftc; run on macOS arm64 only, and the macOS CI job requires swiftc, so it fails there when Swift is missing |
Details of every run: real-world.md (TS/JS) and real-world-languages.md (the others).
Commands
| Command | Status | Notes |
|---|---|---|
analyze |
Verified (TS/JS, Python, Go, Ruby, Java, C, PHP, C#), Tested (Kotlin, PowerShell, Swift) | the Verified languages above, x18n's 142 units |
obligations |
Tested | lists exports, commands, flags, routes, environment variables and error paths from source, with the sites it could not enumerate; surface detectors for TS/JS (commander, yargs, raw process.argv, express, fastify, koa, hono, restify, process.env, hono's env(c) and shell expansion) and Python (argparse, click, typer, flask, django, fastapi, starlette, aiohttp, os.environ, pydantic-settings, Flask and Starlette config, scripts and entry points declared in setup.py, setup.cfg and pyproject.toml); a literal mount prefix set in the same file is composed into the route path, any other leaves the path relative and says so; other languages: exports and error paths, surface unknown. Only exports are ever complete; the other families are enumerated or none-found for a person to attest. The ledger's detectors open nothing outside the analysed repository; the package discovery shared with analyze still opens a root pyproject.toml or package.json that links out of it, and no obligation comes from that read (Known limits). --evidence links each obligation to the recorded cases that exercise it, from recorded files alone: matched by a rule, declared through rust/obligations-bindings.toml, or uncovered with the reason and a candidate input; a CLI case counts only when it records exit code 0 and the ledger explains every argument, a request only when it was answered 2xx; app record ends with the obligations that have no case. app lift refuses, and obligations --check exits 1, while an obligation has no case and is not waived, a family that is not complete is not attested (or its attestation no longer matches the ledger), or a recorded expected text holds a ... line nobody reviewed; a standing that cannot be computed blocks as well. obligations waive <id>... --reason and obligations attest <family>... --reason are the ways out: each writes an ADR in rust/DECISIONS.md and an entry in rust/obligations-decisions.toml, and a decision whose ADR does not name it is an error. gate's coverage fails for an export with no case that is not waived. No flag is linked by a rule while a flag declaration is unread. With RUST_ANYTHING_FALLBACK_JOURNAL naming a file, a front door (CLI or HTTP) journals each fallback to the original: the arguments and the exit code, or the method, the path and the status, and only a length and a digest of a stdin or a body, never their content, a header or the environment. obligations fallbacks <journal>... sorts the entries against the recorded cases and the ledger; --write stores those neither explains in rust/obligations-fallbacks.jsonl, where each blocks lift until a case records it or waive lifts it, and --inputs <file> writes them as lines for app record --inputs. A fallback the original ended with a non-zero exit or outside 2xx is counted and does not block. tests/obligations*.rs (17 files) and the unit tests under src/obligations/, on fixtures written for them; fastify's prefix join was also compared with the routes fastify 4.29.1 and 5.12.8 register on 144 generated files (2026-11-25, by hand). Evidence: 95 integration tests (tests/obligations_evidence.rs, some of them record with the real Python or Node recorder) and 61 unit tests; an independent review rejected it four times on a false "covered" and accepted the fifth round, where 13 of its 14 mutants of the CLI guards failed a test and the other was equivalent (2026-11-26, Linux container, Node 24.22, Python 3.13; argparse executed, commander, click and typer not). The false "covered" it reproduced then (argparse REMAINDER) is closed: such a case is no longer read. Blocking: 38 integration tests (tests/obligations_blocking.rs) and 47 unit tests under src/obligations/standing/ outside fallbacks/; an independent review rejected it twice (a .toml effects key the wildcard sweep missed, a route id with * read as a pattern, an option that takes the rest of the line credited in two more forms, an ADR accepted on its heading alone, a temporary file written through a planted link) and accepted the third round, where 9 of its 10 mutants failed a test; the survivor shows that no test ties the HTTP replay comparison to the list the wildcard sweep walks (Known limits). Fallback journal: 54 integration tests (45 in tests/obligations_fallbacks.rs, one of them through the MCP tool, and 9 in tests/obligations_fallbacks_door.rs, which builds real CLI and HTTP front doors over Node originals) and 39 unit tests under src/obligations/standing/fallbacks/, 17 of which send the generated writer's lines through the strict reader. An independent review rejected it twice (first: a front door that hung on a named pipe given as its journal, a line added to the program's output through /dev/stdout, a status of 999 the reader refused, skipped lines dropped without blocking, --inputs written over a source file; then: a skipped or truncated entry identified by its size alone, so one waiver covered the next unknown fallback of that size) and accepted the third round, where its 5 mutants each failed a test, every one in only one of the two suites (unit or integration); the check made after the journal is opened still has no test (Known limits). Agents: three MCP tools (obligations and obligations_check only read; obligations_fallbacks writes when asked; none waives, attests or binds), app_lift refused for the registry is the error obligations_open, and the skill has four rules, the first that a port is not finished while obligations --check lists a blocker. 7 integration tests (tests/obligations_undocumented.rs) record two fixtures from their README alone, an argparse flag and a Flask-style route that only the code declares (Flask is a stand-in over http.server), and check that the item blocks the standing, the real lift and the MCP app_lift by its exact id; 7 tests in tests/plugin.rs check every command and option the skill cites against the binary's --help. An independent review rejected it once (the skill let the agent write a binding itself, which closes an obligation with no ADR, even toward a case that failed; a skill test that passed with a rule deleted and an option renamed; three tools called read-only when one writes; two rules that contradicted the steps) and accepted the second round with reserves, where its 11 mutants each failed a test, two of them in one test only. A binding toward a failing case still closes an obligation: the skill forbids the agent to write one, nothing prevents it, and the MCP obligations_check lists such obligations by id in closed_by_binding (Known limits). Rebased on 5.1.0, the registry follows what replay reads there: a recorded request's body as body or body_base64 (a body_file, or a body it cannot read, explains no fallback), a ... line as a wildcard only in the fields a recorded case lists in wild (one definition, app::wild_in, for replay and the sweep), an error for a repository whose cases are in spec/cases, and a refusal of a case folder that holds a name that is not UTF-8; a targeted review of those changes, by reading only, accepted them with reserves (Known limits). Rebased again on the state machine audit (#1110), the registry asks TypeScript discovery's own function which folders are skipped (ts::discover::skips: a build-output name such as dist, build or target only at the root or beside a package.json), so src/build and src/target are read and followed as code and a packages/x/dist is still reported; a fallback of the HTTP front door is journaled with the status the original announced, before its body streams through. The whole suite: 2379 tests in 83 binaries, 2376 passed, with cargo fmt and cargo clippy --all-targets -- -D warnings clean (2026-12-01, same container, which has no Go and runs as root, run alone). The 3 that failed are upstream's: two expect go on PATH (mcp::tests::numeric_args_reject_wrong_types_negatives_and_overflow and an_unknown_bug_or_a_language_without_an_original_is_an_error in tests/selftest.rs) and pass in that container with a stand-in go on PATH; enable::tests::a_failed_write_puts_back_the_files_already_written fails the same way on upstream's own tree in that container. A maintainer review before the merge (2026-12-02, merged with main, macOS arm64, full suite passing) fixed Python exports missed by a chained assignment, a case block or a type alias, the methods of a local class exported as default, a class assigned to module.exports and exec/eval leaving the exports complete, a Python global option credited by a subcommand's option of the same spelling, decisions lost or left unreadable by waives run at the same time, an id holding a line break that forged an ADR title, --write following a link out of the repository, import scans that grew with the square of a file's imports, unquoted paths in the commands lift prints, and gate's coverage ignoring bindings. Not yet run on a real project; what is not read, not linked or blocks more than it should is under Known limits in DECISIONS.md |
bridge, record, diff, gate, build |
Verified for the languages marked Verified above, Tested for Kotlin, PowerShell and Swift | the runs above; bridge --as-json on json-server's paginate; PHP and C# units in tests/loop.rs (skipped without php with FFI or without dotnet), PowerShell units in tests/powershell.rs (skipped without pwsh 7.4+), Swift units in tests/swift.rs (skipped without swiftc) |
build --profile android |
Tested | Kotlin fixture, one ABI per test run (all three built by hand), entry points and 16 KB alignment checked; armeabi-v7a library loaded on an Android 11 TV and called through JNI |
record/diff --profile android |
Tested | Kotlin fixture on an Android 11 TV: record 291 cases under ART, then diff against the Android .so (12 of them did not match yet, not investigated); guarded test tests/android_device.rs skips without a device |
Types for untyped JS in bridge and analyze (sibling .d.ts/.d.mts/.d.cts, then JSDoc) |
Tested | tests/untyped_js_types.rs; analyze uses bridge's rules; tested there with a .d.ts, a class method and an alias (tests/analyze.rs) |
Parameters decoded inside a function in analyze and record (TS/JS) |
Tested | an exported function that passes a parameter, directly or through one local, to JSON.parse, atob, Buffer.from with base64/base64url/hex, decodeURIComponent or new URLSearchParams is named with the call and its line (src/ts/scan.rs, tests/analyze.rs), and record lists it after its summary (tests/loop.rs, the #679 payloadDate shape); both commands recommend real payloads with --inputs even for decoders that accept any string. A function that only calls JSON.stringify is not. Python is not checked yet |
Calls followed in bridge and analyze (Java, Kotlin) |
Tested | a function reaching a class object, a singleton (X.instance(), getInstance()) or, in Java, a static field that is not final, directly or through another function of the unit, stays in the original, chains named (tests/state_through_calls.rs); calls are not followed into other units, and other languages do not list calls yet |
Arguments after the call and standard output in record and diff |
Tested (TS/JS napi, Python, Ruby, Go, Java, Kotlin, PHP, C#) | A no-op port of an in-place mutator and of a printer fails diff, and a faithful one passes, in each: with a JS, Python or Ruby stand-in for the module (tests/post_call_state.rs) and with ports built for real (tests/native.rs: a napi .node, a PyO3 extension, a magnus extension, a cgo library, a JNI library (Java and Kotlin), a PHP FFI library and a C# P/Invoke library, run on Linux x86-64 on 2026-11-29 with Go 1.24.7, OpenJDK 21, Ruby 3.3.6, PHP 8.3.6 with FFI, .NET SDK 8.0.134 and the Ubuntu package of Kotlin 1.3.31; the changed argument reaches the caller's own list and console.log/print output reaches process.stdout/sys.stdout). The generated shadow for TS/JS, Python, Ruby, Go and Java was run by hand on the same crates (the Go and Java ones compare the result and the arguments after the call, not the printed text) (no mismatch, output printed once). The wasm bindings for a function that changes arguments are generated by the same code but were not built. Not covered: PowerShell and Swift (no toolchain in the container: PowerShell could not be installed and Swift's download host is not reachable), printing from C, methods of classes, a C# ref/out parameter, Kotlin Array and Java generics beyond lists and maps, standard error, a port that prints with println!, a mutation of an argument the original reaches through another one (aliasing), async Python. Recordings made before this compare return values only and the verdict says so. PowerShell and Swift still keep such exports in the original (src/lang/effects.rs, observes) |
bench |
Verified | the runs above; numbers in real-world.md |
fuzz |
Tested | TS/JS (napi) and Python (PyO3, including kwargs cases): find a planted mismatch the recording missed, --keep makes gate fail, and kept kwargs cases replay in diff (tests/fuzz.rs); record --inputs and fuzz both catch an ISO-only port of a date inside base64url JSON, from one recorded payload (tests/fuzz.rs, #679); fuzz --generator finds a planted mismatch in a string domain the built-in generator misses, gives the same report twice with --seed, and fails on a bad line (with its number) or a non-zero exit (TS/JS napi, tests/fuzz.rs); other languages share the record/diff path untested |
gate held-out check |
Tested (TS/JS napi, Python PyO3) | tests/held_out.rs: a port that matches every recorded case and differs for other inputs (all three arguments above 1) fails gate with seed 7 (a seed from the clock draws no input in that region about once in 600 runs, 32 of 20,000 seeds measured on the generator, so the tests pin one with --held-out-seed; 5 of 5 earlier runs with a clock seed failed it), a correct port passes, --held-out-cases 0 says it is off, the same two cases are tested on a Python PyO3 port (seed 7: the wrong port fails, and a correct port with float parameters and a keyword-only one passes, and a signature with only keyword-only parameters receives perturbed inputs), a Python add(a: int, b: int) ported with plain i64 passes the check under a {"fn": "add", "when": "int-beyond-i64"} entry over five seeds, says how many inputs it accepted, and fails without the entry or when a result that fits in i64 is wrong, a unit of a language nobody has run end to end says it is skipped, an input set the recording already holds says nothing new was tried, and inputs the original cannot run (it hangs) fail instead of reading "0/0"; unit tests for each perturbation. Other languages skip with a note; no test plants a port that only the perturbed half catches |
record --pin-clock |
Tested | TS/JS (napi: Date.now(), new Date().getTime(), Math.random) and Python (PyO3: time.time(), from time import time, datetime.now(timezone.utc), naive datetime.now(), date.today() under TZ=UTC, random.random(), and random.randint via pinned::randbelow) recorded and matched by Rust ports (tests/fuzz.rs) |
record --messages |
Tested (TS/JS napi, Python PyO3; the Java, Ruby, PHP, C# and PowerShell drivers) | tests/error_messages.rs, macOS arm64, 2026-12-02: a port that throws the recorded class with another message passes diff without the flag, with error messages not compared: 1 recorded error checked by class only in the text and unchecked_messages in --json, fails it with the flag, and one with the recorded message passes (napi .node and PyO3 extension built for real); the Java, Ruby, PHP, C# and PowerShell drivers run on a hand-written recording with and without the flag. Kotlin uses the Java driver but is not run (needs kotlinc); the Java driver's flag on an Android device is not run. Go, C and Swift compared an error's text before this and are unchanged. --batch index checks hold a typed error to its message under the flag (src/batch_check.rs) |
record --from-tests |
Verified (TS/JS), Tested (Python) | vercel/ms's Jest suite. Calls whose arguments include a function, symbol, cycle, RegExp, Error, URL, ArrayBuffer, boxed primitive or toJSON object are left out, and the count of those is not reported |
record --sandbox, app record --sandbox, fuzz --sandbox |
Tested (macOS) | tests/sandbox.rs on macOS 27.3 with sandbox-exec: a Python unit and a Python CLI that connect to a local port and write into their own folder do both without the flag and neither with it; a Python unit that writes into its own folder does so under fuzz and not under fuzz --sandbox (macOS 27.3); a Python server still answers on loopback, and a CLI's effect sinks were checked by hand. There is no memory limit on macOS (sandbox-exec does not enforce one), so a recorded case that allocates gigabytes is stopped only by the watchdog. The Linux path (bubblewrap, --unshare-net, read-only root, memory limit) is written but not run yet: the tests skip without a working bwrap, and on Linux --http and effects do not combine with the flag. Not on Windows |
Coverage of the original in record and gate |
Verified (TS/JS), Tested (Python) | Fuse.js: cases run 81% of the lines it imports; Python: tests/recording.rs, the unit's own files measured with the standard library (sys.monitoring on 3.12+, sys.settrace before), a branch no case reaches listed as missed, and a docstring, a comment and a blank line not counted; other languages do not measure it yet |
--batch |
Verified (TS/JS only) | Fuse.js, vercel/ms, x18n search. Python and Ruby batches are fixtures only, and the Go and Java speedups first published were withdrawn (the Java original was faster under JMH). diff, gate, enable, go and library replay check a hand-written <Fn>Index (run, typed errors, known-diffs.jsonl and custom rank) against the recorded cases through a generated integration test (end-to-end tests in tests/loop.rs cover TS/JS; non-TS error-matching rules are unit-tested in src/batch_check.rs; not yet re-run on the real projects above). The generated *Batch wrapper class itself is still checked by running the app, and bench times only the single-call exports and classes |
wasm bridge (--kind wasm) |
Verified | x18n search |
shadow |
Verified (TS/JS only) | x18n's packages/core. It is offered for Python, C, Go, Ruby, Java and Kotlin on fixtures only: no real run |
profile |
Tested | Child-process waits checked by hand on macOS arm64, 2026-11-23: a Node script running execSync('sleep 0.2') 10 times shows 99% of 2120 ms in sleep from run.js:12, and go stops with that advice; a Python script with five subprocess.run(["sleep", "0.1"]) and one os.system("sleep 0.1") shows 83% of 787 ms with Xcode's Python 3.9, and 84% of 794 ms from a venv of it. go passes over a hot function whose own child_pct is 50% or more and stops when the run's is; hand-built profiles in profile::tests and go::tests. An async spawn/exec waits while the thread is idle and is not listed. Java: tests/profile.rs profiles a workload that starts a second JVM and fails unless that JVM's stdout holds only what it printed, as Gradle's JDK probe does (Windows 11, Temurin 21) |
go |
Tested (this repository's fixtures only; no real project) | Run with --agent claude (Claude Code 2.1.308) on macOS arm64, 2026-11-22. Python tests/fixtures/go-fuzzy: picks dedupe over levenshtein, 207 cases, ported in one turn, 207/207, gate passes, switched on. TS tests/fixtures/go-search-ts: picks score, called per item by main, with --batch score:text, 1,233 cases (1,000 captured from the run), ported in one turn, 1,233/1,233, gate passes; bench times it 7.6x slower per call, so it stays off and go points at ScoreBatch, which the fixture's app then used with the same 1,494,560 hits. Not run with codex |
enable, disable |
Tested | TS/JS (napi, ESM), Python and PowerShell: callers get the stand-in Rust module, the kill switch brings the original back, disable restores the file byte for byte (tests/switch.rs); wasm units untested |
report |
Tested | Markdown and SVG in src/card.rs, including the end state, intended differences and kept exports; the go fixture above by hand (207/207, bench on a loaded machine, so its number is not published) |
Shared build cache, clean |
Tested | one owner per package name and per-crate copies in src/cache.rs; two crates named alike built into one shared folder keep their own library in tests/switch.rs. Front doors keep their own target/ |
map |
Tested | ports, upstream changes and --crates in tests/port_map.rs |
gate's cheat guard (literals, tests, edited cases.jsonl, spawns) |
Tested; no real port has passed it (every real run predates 5.0.0) | a TS/JS stand-in crate in tests/loop.rs (three recorded outputs written into the port fail, // recorded-literal: lets them pass, a removed case fails while an appended one passes, a removed assertion fails) and literal scanning in src/gate.rs; spawns (a port starting a process, with and without a // SPAWNS: mark) by unit tests in src/gate.rs and by selftest on TS/JS and Python; not yet run on a real port |
gate's size decisions ([[size]] in rust/obligations-decisions.toml) |
Tested (unit tests only; no real port has used one) | src/gate.rs: a Python port at 12x fails without a decision, passes on one that allows 15x with the ADR and reason in the detail and a note naming the ADR, fails on one that allows 5.5x, and fails with the fault when the file is invalid; src/obligations/standing/decisions.rs: the last entry for a unit counts, and a missing unit, a max of 3 or less, or an ADR that does not name the unit is a fault |
selftest: planted wrong ports and recording tampering against diff and gate |
Tested (TS/JS, Python) | tests/selftest.rs, 2026-11-29, Linux x86_64 (4 cores): 28 rows across TS/JS and Python; after the recording, error-class, known-differences and runtime checks came in, 2026-11-29, macOS arm64 (Apple M4): 34 rows, 26 caught by the check meant to refuse them (diff, the wrong error type included; gate's literals for a hard-coded table, marked or not, and for a port that includes cases.jsonl; gate's recording for deleted cases, deleted recorded-from.json and a raised float tolerance; gate's accepted diffs for added known-diffs.jsonl entries; gate's runtime and spawns for a port that runs the original, marked or not), 6 documented gaps, both correct ports pass; with gate's held-out check (fixed seed in selftest) running for Python PyO3 as well, 30 caught and 2 gaps, since it refuses the port that differs only outside the recording and the wrong port behind a legacy-marked recording in both languages; --strict, --only, an unknown id, a language without an original and a missing toolchain are tested too. The two recording rows and the shell-out row failed on the first run and are fixed in gate. Open gaps, named in docs/how-it-works.md: a port that prints passes diff and gate; a recording marked "legacy_recording": true is used unverified, with a note, though gate's held-out still refuses a port that differs only outside it. Other languages have no built-in original and are listed as not run. Not run on Windows (CI runs it on Ubuntu and macOS, not on the Windows job) |
Audit log (rust/audit.jsonl), log |
Tested | tests/audit.rs: enable (--force, --only) and disable append one entry each and keep earlier lines byte for byte, a torn line is skipped and the next entry starts on its own line, log on a repository without a log writes nothing, map shows the last switch, the MCP log tool reads the same entries; gate entries (pass, then fail with the failed checks and case counts) in tests/fuzz.rs; app wire and app lift entries (refused lifts left out) in tests/app.rs's lift runs. Not yet kept on a real port |
JSON for tools: schema on map, gate, diff, report, enable, disable, selftest, errors, spec check, spec approve, analyze, profile, and obligations (including --evidence, --check and fallbacks); at and port where applicable; saved last gate and diff; report.json; --version --json; gate --json-events |
Tested | tests/json_output.rs: --version --json lists the advertised schemas and matches the schema from analyze --json, map reports enabled before and after enable --force and disable, a new port after port.rs changes, and gate/diff failures under --json print the error JSON on stdout with code not_bridged while plain runs keep stdout empty; tests/fuzz.rs: the saved last-gate.json of a failing gate (failed checks, behavior numbers, the port version now, no absolute repository path); tests/card.rs: report.json with language_id and the port version; unit tests for the port version and macOS /private paths. --json-events and the saved last-diff.json checked by hand on a three-unit sample |
new, spec approve, spec check (new CLI apps) |
Tested | tests/spec.rs: a new app fails until its case is approved and the app is written, then passes; an edited approved case (or the input folder its fs.base names, in src/spec.rs), a deleted one, an unapproved case that passes and an open question in SPEC.md each keep it from done; new refuses a folder with files and a name cargo would refuse; rules writes spec/RULES.md. Not yet run with an agent, and only CLIs |
rules (rust/RULES.md) |
Tested | tests/rules.rs (add, duplicates skipped, a crate folder resolves to its repository, go's TASK.md carries the rules) and the MCP prompts in src/mcp_prompts.rs; not yet measured with an agent |
app record, app replay |
Verified (Node servers and CLIs), Tested (the other languages, on this repository's fixtures) | json-server: 514 HTTP cases with --fresh, --arg, --pace; Prettier: 17,224 CLI cases with --inputs, 63 of them with config files around the input; CLIs in tests/app.rs, CLI --fresh in tests/app_fresh.rs |
app shadow (servers) |
Tested | a TS server shadowed by a build with a changed message: clients get the original's answers, one body mismatch logged without values, --keep re-recorded as a case (tests/http.rs); a Python server whose build mails twice mails once for real, the build into the sink (tests/effects.rs) |
Side effects (app record --effects, --effect-response, --db-reset, --db-dump) |
Tested | email (the common charsets decoded, an unknown label compared by its bytes), webhooks (with configurable --effect-response / MCP effect_response rules, @FILE fixtures and 200 {} fallback) and SQLite rows for a CLI and a server in tests/effects.rs, tests/mime.rs and src/effects.rs |
Front door (front-door), wire |
Verified (TS server and CLI) | Prettier: one unit wired, 17,224/17,224 at 7.9% fallback, plus 355 cases from fuzzing and mutation testing (demo/real-world/prettier-rs/equiv) (JS, TS, JSX, JSON, GraphQL, YAML, Markdown, CSS, SCSS and Less in Rust), glue declining per case with original::run_with_stdin; json-server: reads wired first (22.6% fallback), then every route (0%); a rust/ that is a symlink in tests/app_fresh.rs; servers in eight languages in tests/http.rs |
lift |
Verified (TS server), Tested (CLIs) | json-server: pure Rust binary, 514/514; CLIs in all eight languages in tests/app.rs. Re-recording a lifted CLI keeps hand-added skips for existing cases and leaves other edits to its trycmd test intact. |
app drift |
Tested | TS CLI in tests/app.rs: a clean run, a changed error message upstream ("original changed, port still old") and a new README example; TS server in tests/http.rs: a port regression and a new curl example. The GitHub Actions workflow in docs/whole-apps.md has not run yet |
package |
Tested (libraries), Verified (CLI front doors) | napi, wasm and PyO3 demos installed from their packages on macOS arm64 (2000/2000, 2000/2000, 1144/1144); Prettier and ESLint front doors installed from their npm tarballs on macOS arm64 and replayed (17,224/17,224 at 7.9% fallback; 10,492/10,585, the other 93 print ESLint's install path exactly as ESLint 10.15.0 from the same install does); napi tarball install and fallback, and the CLI launcher, postinstall swap and pinned original in tests/package.rs; the generated GitHub workflows and ports-npm.yml have not run yet |
MCP server (mcp) |
Tested | protocol test in src/mcp.rs; on Unix, output capture wakes readers blocked on silent descendant-held pipes (src/process.rs, with the app timeout tests in src/app.rs); on Windows a blocked reader is still let go only at its next read |
The skill (skills/rust-anything) |
Tested (static), Not yet measured (agent runs) | tests/skill.rs: front matter, every rust-anything command and app subcommand it names exists, links resolve. scripts/skill-eval/run.py A/Bs skill versions by gate pass rate, turns and cost on a fixed task; its harness has not been run end to end with an agent yet and only one task (py-slug) exists, so no skill-wording result is claimed |
setup |
Tested | registers the MCP server (and the skill, where the agent reads skills) with Claude Code, Codex, Cursor, Gemini CLI and OpenCode; per-agent tests in src/setup.rs, read back in src/doctor.rs and tests/doctor.rs. The OpenCode entry was also confirmed by OpenCode 2.3.2 itself (mcp.servers, command as an array). A copy run from npx's cache writes npx -y rust-anything@<version> mcp (unit test only; not yet run through a real npx) |
GitHub Action (action.yml) |
Tested | its gate step was run by hand on demo/fixtures/async-rs (900/900, exit 0) and on a copy whose upper lowercases (607/900, exit 1); the npm install step and a real Actions run are not yet tried |
Package managers (Homebrew, Scoop, .deb, Nix) |
Tested (Homebrew), Not yet run (Scoop, .deb, Nix) |
the 5.1.1 formula passed brew style and brew audit --strict --online, installed from a local tap on macOS arm64 and passed brew test (2026-12-04); the Scoop manifest passes Scoop's schema.json and its autoupdate hash regex finds the 5.1.1 zip in SHA256SUMS, not installed on Windows; cargo-deb packed the 5.1.1 Linux binaries into .deb files on macOS, not installed; flake.nix parses (nixfmt) but has not been built. The release jobs that build the .deb files and update the tap have not run yet |
bridge --end-state, gate's count of new known diffs |
Tested | tests/end_state.rs bridges a Python unit with and without the flag; unit tests in src/bridge.rs (old manifests load without one), src/gate.rs and src/mcp.rs; not yet run on a real port |
MCP skills extension (skills/list, skills/get, resources/read) |
Tested | unit tests in src/mcp.rs against the SEP-2640 message shapes, SHA-256 checked on known vectors; not yet tried with a real client such as VS Code |
Evals (evals/) |
Tested | cases load with claude plugin eval --max-cost-usd 0; score.py checked on hand-made workspaces (rust-anything's flow and hand-written bindings pass the runs-in-Rust probe, untouched originals fail it); no agent has run the current prompts |
Which command covers which language
The tables above say how far each part has been proven. This one says what each language can be
asked for today, so a reader does not have to open the code to find out that enable covers only
TS/JS, Python and PowerShell, or that profile has no C entry point. yes means the command does its job for that
language; part means it works with a restriction named in the row; no means it refuses and
prints what to use instead.
| Language | analyze |
whole app | unit bridge | record/diff |
shadow |
enable |
profile |
package |
|---|---|---|---|---|---|---|---|---|
| TypeScript/JavaScript | yes | yes | napi-rs, wasm-bindgen | yes | yes | yes (napi, wasm) | yes (node on 22.6+; npx and npm run where Node allows --cpu-prof in NODE_OPTIONS, as 24 does) |
napi, wasm, CLI front door (Node CLIs) |
| Python | yes | yes | PyO3 | yes | yes (module) | yes (PyO3) | yes | PyO3 |
| C | yes | yes | extern "C" drop-in |
yes | yes (CAbi file) |
no | no (perf record -g) |
no |
| Go | yes | yes | dispatcher + generated driver | yes | yes | no | yes | no |
| Ruby | yes | yes | magnus, FFI | yes | yes | no | yes | no |
| Java | yes | yes | JNI + binary wire | yes | yes | no | yes | no |
| Kotlin | yes | yes | JNI through the Java bridge | yes (kotlinc on PATH) |
yes | no | no (JFR) | no |
| PHP | yes | yes (php -S front door) |
JSON dispatcher over ext-ffi |
yes (php with FFI) |
no | no | no (SPX or Xdebug) | no |
| C# | yes | yes (ASP.NET) | JSON dispatcher over P/Invoke | yes (dotnet on PATH) |
no | no | no (dotnet-trace) |
no |
| C++ | no | yes (any program: app record/app replay) |
no | no | no | no | no | no |
| Swift | yes | yes (any program: app record/app replay) |
JSON dispatcher over the C ABI (module map) | yes (swiftc on PATH) |
no | no | no (Instruments) | no |
| Dart | no | yes (any program: app record/app replay) |
no | no | no | no | no | no |
| PowerShell | yes | yes (any program: app record/app replay) |
JSON dispatcher over P/Invoke (Reflection.Emit) | yes (pwsh 7.4+) |
no | yes | no (Measure-Command; start-up first) |
no |
| CUDA | no | yes (any program: app record/app replay) |
no | no | no | no | no | no |
| Assembly | no | yes (any program: app record/app replay) |
no | no | no | no | no | no |
A no in one column is a scope decision, not a gap in the row: package covers napi-rs,
wasm-bindgen and PyO3 crates plus CLI front doors of Node CLIs only, and says so when handed a
c-abi crate; enable switches TS/JS, Python and PowerShell ports in place and points everything
else at shadow.
Where the cells come from: entry points in whole_app.rs, the unit-bridge guard in lang/mod.rs,
the per-shape branches in shadow.rs, enable.rs's is_supported, profile.rs's alternatives for
C, Kotlin, PHP, C#, PowerShell and Swift, and package.rs's layout match.
C++, Dart, CUDA and Assembly have no adapter yet, so analyze does not read their source; their
programs still run through the whole-app flow, which compares any runnable program's output.
CMake is read only as part of C project discovery. Requested in #200, where the order is tracked.
go needs profile, so it runs where profile does.
Where the tests run
CI installs Node, Python, Go, Ruby and Java on macOS and Windows, and runs the PowerShell tests
with pwsh on Linux, macOS and Windows (installed when the runner image lacks it). The macOS job
also installs PHP, the .NET SDK and Kotlin when the image lacks them and lists php, dotnet and
kotlinc among the tools it requires, so the PHP, C# and Kotlin tests run there and a missing one
fails the job; Linux and Windows do not have them, so those tests skip there. No CI job installs
the Android NDK or an Android device, so the Android tests skip and run only on a machine that has
them: that row is not in CI.
tests/swift.rs runs wherever swiftc is on PATH (GitHub's macOS images ship Xcode) and the
macOS job lists swiftc among the tools it requires, so a missing Swift fails the job instead of
skipping the test; it has been run on macOS arm64 only. A test that skips without its tool says so in the test log, but
the run still passes: a green CI run covers only the tools the job requires. The Windows job runs only the
app::tests::shell_words unit tests and the analyze, diff_missing_folder, doctor and native
suites; the rest of cargo test runs on Ubuntu and macOS.