Field noteNov 26, 20264 min read1 source

rust-anything v5.0.0 changes how go presents mismatches and adds shadow, drift, and gate guards

In one minute

Released November 26, 2026, rust-anything v5.0.0 changes go so an agent gets each distinct mismatch once, with an example and its starting point, instead of the first five raw mismatches. The upgrade also adds checks that can fail ports that previously passed gate. (github.com)

What changed: rust-anything v5.0.0 changes how Go reports mismatches and adds shadow, drift, and gate guards.

What happened

Mismatch reports now identify the channel, JSON path and mismatch type; string diffs include the differing character and surrounding context. App replay pinpoints failing fields by text line and column, JSON path or status change. diff, app replay and report group cases with the same mismatch into distinct differences with a stable ID and count. Redacted modes show mismatch shapes without arguments, outputs or request paths; replay reports are redacted too.

For live comparison, app shadow proxies requests to the original and compares status, headers and body against a server build using saved normalizers. The build's outbound HTTP and mail go to local sinks, while --fresh files use a separate copy. Shadowing saves redacted mismatch shapes to rust/app-cases/shadow/mismatches.jsonl and groups differences at the end. --keep saves requests in app record --inputs format; --upstream selects a running original and --requests limits the count.

app drift replays the original against recorded cases, lists documented examples without recordings, then replays the build to distinguish upstream changes from port regressions. It writes rust/app-cases/drift-report.md, leaves replay-report.md unchanged and exits 1 on any change.

The new gate literals check flags three or more qualifying recorded arguments or results absent from the original source, or named recording files. Qualifying strings have at least 8 characters; numbers have at least 5 significant digits. gate tests fails if tests or assertions fall below the last passing gate, or ignored tests increase. Recording now stores line counts and hashes and fails if an existing recorded line is edited or removed; appended cases pass.

go inserts rust/RULES.md port rules into TASK.md, so they appear in each retry prompt; rust-anything rules <repo> lists rules and --add appends one while skipping exact duplicates. bridge on an existing port suggests refreshing, choosing another output or name, or removing the folder; bridge --kind napi or wasm stops before writing if the unit is not TS/JS. diff validates float tolerance before running anything, and negative values passed with a space get a range error on record, diff and app record.

What the archive adds

This follows the earlier introduction of rust-anything as a tool for staged Rust application rewrites, then v3.1.0's go loop for profiling, porting and checking hot-path functions. (earlier New Runtime note, earlier New Runtime note)

Why it matters

Treat the upgrade as a verification event, not a routine version bump: the new gates can expose hard-coded recordings, weakened tests and edits to recorded cases that an earlier passing gate did not catch. Run the checks, inspect failures, and distinguish intentional changes from port regressions before relying on the prior pass.

Limits and uncertainty

app shadow supports servers only and has no MCP tool. Older recordings are not checked for integrity until they are recorded again, so the new recording check does not retroactively validate untouched recordings.

Skill to build now

After upgrading, replay and recommit rust/app-cases/replay-report.md; it now includes distinct differences and mismatch locations. For scheduled upstream checks, use the GitHub Actions workflow in docs/whole-apps.md. If a library constant is intentionally retained, add // recorded-literal: <reason> on its line. To accept an intentional test reduction, delete <crate>/.rust-anything/tests.json and run gate to save a new baseline. Use rust-anything rules <repo> and --add "<rule>" to review or append port guidance.

Reader takeaway

Upgrade with a verification pass in mind: v5.0.0 changes replay reports and adds checks for copied literals, reduced tests and edited recordings, any of which can make an existing port fail. Use the new drift and shadow workflows to separate upstream behavior changes from regressions in the Rust build.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/erkamyaman/rust-anything/releases/tag/v5.0.0
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicAnthropicExplore the anthropic topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract