#13287
[Bug/FR] Headless IDA: oversized result fails the whole call and the completed analysis database is discarded on exit
Environment
- rea-agents 6.10.1, Windows 11, IDA Pro 9.4 via idalib-mcp headless profile (ida-pro-mcp 1.0.0)
- Target: a 224MB PE; cold open + auto-analysis ~2.5 h (~9000 s uptime measured)
What happened
With all four deadline layers finally raised (worker env knobs to 8 h,
registration timeoutMs to 6 h), the analysis completed:
metadata: status=ok, uptime_sec=8973,
auto_analysis_ready=true, hexrays_ready=true,
strings_cache_ready=true, strings_cache_size=451743...and then the whole call failed for two compounding reasons:
- Oversized adapter output fails the entire call. The search result was
truncated at the MCP transport; rea reported
"IDA MCP truncated its output; the preview cannot establish a complete observation"and exited 1. 2.5 h of analysis produced zero usable output. - The completed database was deleted on the clean error exit. rea's
cleanup removed the private workspace including the finished database
(
auto_analysis_ready=trueat that moment), so a retry re-analyzes from scratch. The expensive artifact — the analyzed DB — is the one thing that is never kept.
Requests
- Degrade gracefully on oversized/truncated adapter replies (paginate, return partial evidence with an explicit truncation flag, or expose a smaller query surface) instead of failing the whole call.
- Keep or explicitly save the completed database on failure paths — e.g. an
opt-in "leave the workspace on error" or "snapshot whatever exists".
For monster binaries the DB is hours of work; rea's own
--snapshotonly helps when the call itself succeeds, which is exactly what truncation prevents. - Optionally: document a large-binary workflow (deadline layers + result
size expectations). We now bypass the stack with a direct idalib driver
that saves the
.i64next to the input, which works well but loses all of rea's normalization.
Evidence
- Exact timings and error JSON for the four deadline layers available on
request (1802 s ×2, 120 min at
timeoutMs=3600000, 150 min completed-run discard).
Activity
0No activity yet.