TARGET / AUTHORIZATION演示对象:自行编译的 hello ELF(白名单第 3 类)。本课核心是 REA 工具链自身的 fail-closed 行为(lab00 步骤 6 与附录 R8-A A5 实测)。无第三方软件分析。
MODULE // 05

Where the free engine ends — and why that is the lesson

15 mindifficulty: beginner

Most tool tutorials hide the boundaries. This one is about the boundary, because REA's behavior at its limit is the best introduction to its design — and to judging agent decompile claims in general.

analyze vs decompile: the vocabulary first

what happens when you ask decompile anyway

Run decompile and the refusal is explicit — no plausible substitute, just a diagnosis. with no engine installed. A silent tool would guess, or hang, or return garbage. REA refuses — precisely:

bash — lab@realearn verified: ran 2026-10-12
$ npx rea analyze ./hello
error: Analysis failed
code: provider_unavailable
candidate_ids[3]: ghidra,hopper,ida
rejections[3]: ghidra(not_configured) / hopper(executable_missing) / ida(not_configured)

Read that rejection list carefully — it is per-candidate and per-reason. Ghidra is not configured; Hopper's executable is missing; IDA is not registered. Three different problems, three different fixes, all named. When we forced the free provider explicitly (--provider pwntools-elf), the answer was capability_unavailable: "The requested analysis provider is unknown. Choose one of: ghidra, hopper, ida."

And it is not just the CLI. Over MCP, asking for a result too large to return produced resource_constraint — with a redirect to the evidence bundle, not a truncated answer. The pattern generalizes: when REA cannot produce evidence, it says so instead of producing a plausible substitute.

why the decompile engine gap is stated so precisely

REA does not decompile anything itself — no decompile engine ships in the free tier. It is an orchestration layer: it drives engines you install and license. That is why its failures are configuration failures, not analysis failures — and why the fix is always "install/configure the engine", never "wait for a better model". Our own lab proved this the direct way: without Ghidra, deep analysis stayed closed (this lesson); with the free pwntools engine, layout analysis ran fully (previous lesson).

the transferable skill: auditing decompile claims

Whatever decompile-capable agent tool you use next, ask the three questions this lesson teaches:

  1. What does it do when it cannot know? (Guess = red flag. Refuse-with-diagnosis = green.)
  2. Can you trace a claim to evidence? (Content-addressed IDs + input hashes beat "trust me".)
  3. Are the boundaries documented or discovered? (We hit REA's boundary by running it — and the refusal message documented it for us.)

Fail-closed — refuse and report instead of guessing (glossary)

Fail-closed (adjective): a system design property where, when a component fails or a precondition is missing, the system refuses to act instead of degrading to a best guess. The opposite of fail-open ("produce something anyway") and distinct from fail-safe (protect people from harm). For an AI agent doing binary analysis, fail-closed means: if the tool cannot verify a result, it returns an error naming exactly what is missing — never a plausible-looking answer.

The three terms get conflated. Fail-open — on failure, default to allowing / producing output: convenient, dangerous, because an unverifiable answer is still an answer, and agents will repeat it confidently. Fail-safe — on failure, fall back to a state that cannot cause harm: it is about the consequence of failure. Fail-closed — on failure, stop and report: it is about the truth of output — nothing leaves the system that the system cannot prove. A human analyst who gets a blank decompilation knows it is blank; an agent pipeline treats whatever arrives as data, so a tool that guesses on failure poisons every downstream step.

Fail-closed in practice — three refusals we ran on 2026-10-12. First, missing analysis engines: npx rea analyze ./hello failed closed with code: provider_unavailable and three distinct diagnoses (ghidra(not_configured) / hopper(executable_missing) / ida(not_configured)) — three candidates, three different fixes, instead of one fuzzy "analysis failed". Second, oversized results: the same layout request on a 4.5MB library over the MCP channel returned resource_constraint with a pointer to the evidence-bundle path — the tool refused to silently cut results to fit. Third, wrong provider: explicitly requesting --provider pwntools-elf for a decompile-style operation refused with capability_unavailable and the exact list of accepted engines (ghidra, hopper, ida) — the boundary is declared, not discovered by surprise.

How to recognize fail-closed design in any tool: errors name the specific missing precondition (engine? configured? executable present?), not a generic failure; nothing is silently truncated, defaulted, or substituted when a limit is hit; successes are checkable after the fact — see the evidence bundle section of the evidence contract guide.

What is fail-closed in simple terms?

When something fails or a precondition is missing, the system stops and reports instead of producing a best guess. In binary analysis that means an error naming the exact missing engine — never a plausible-looking result nobody can verify.

Is fail-closed the same as fail-safe?

No. Fail-safe is about harm: on failure, fall to a safe state. Fail-closed is about truth: on failure, produce nothing unverifiable. A tool can be fail-safe yet fail-open — degrading to a harmless but unverified answer. REA is fail-closed: it refuses with a specific code instead.

Why does fail-closed matter for AI agents specifically?

An agent consumes tool output as data without human skepticism in the loop. A fail-open tool that guesses on failure contaminates every downstream step silently. Fail-closed refusals are the checkpoints that keep an automated analysis chain auditable.

Note (2026-11-14): the former glossary page for fail-closed is now consolidated into this lesson — the old URL redirects here.

That is the end of the beginners track. From here: wire REA to your agent, or compare the engines that unlock the decompile engine tier.

next: REA Setup Guide →