AIToday
AI Coding AssistantsOpen-Source AIZenn AI/MLPublished: Oct 18, 2026, 10:00 JST

REA recovers jQuery 3.7.1 logic from a blind bundle

Send on LINE
REA recovers jQuery 3.7.1 logic from a blind bundle

3 Key Points

  1. What happened

    On an 87,444-byte anonymized jQuery 3.7.1 minified file, REA's static analysis ran fully locally, and with Wakaru 1.14.0 its recover-javascript-sources produced 191,015 bytes across 6,341 lines in 0.549 seconds.

  2. Why it matters

    At the function level, the recovered toType() matched the original jQuery 3.7.1 source, supporting the claim that agents can reconstruct closed-source behavior—though REA's own output marks runtime equivalence as unknown.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The verification used jQuery 3.7.1's minified dist file, stripped its license comment and renamed it bundle.js, so the tool had no way to know what library it was dealing with. Against that blind target, the recovered toType() function matched the original logic exactly, even though variable names and control flow had been rewritten—the original's ternary operator became an if statement. That is a concrete, function-level confirmation of the tool's core claim that behavior can be reconstructed from an anonymous bundle.

The design trade-off is visible in the numbers: an 87,444-byte input produced roughly 38 MB of Evidence JSON, about 440 times the input size, which the author takes to mean the output is meant for an agent to query in slices via flags like --token-limit rather than for a human to read. REA also correctly reported the target was not an Electron app, since all Electron-specific summary fields came back zero.

Two caveats emerged. Code recovery does not work on its own: it fails with capability_unavailable until an absolute path to a Wakaru binary is passed via REA_WAKARU_COMMAND, a dependency not obvious from --help. And in the recovered file, a \0 escape inside a regex literal was emitted as a raw NUL byte while the same line's \x7f stayed intact—equivalence at runtime, but a clear defect for a readability-focused decompiler. The author speculates the cause is inconsistent re-escaping in the conversion pass that rewrites string concatenation into template literals.

FAQ
Do I need paid API keys or a GPU to use REA?
No. REA ran its static analysis and code recovery locally with no paid API keys or GPU, though this verification covered static JavaScript analysis only, not native binary analysis.
Why was the decompiled code checked with grep?
grep reported the recovered file as a binary file because a raw NUL byte was embedded in a regex literal on line 343, which came from a broken \0 escape.
Does REA guarantee the recovered code behaves the same at runtime?
No. REA's own output sets runtime_equivalence to "unknown", noting it does not guarantee runtime equivalence.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleCorrigibility definitions called deficient in new Alignment Forum essay