* feat(artifacts): inspect MetaTrader 5 EX5 program headers and resources
Recognize compiled MQL5 programs by their EX5 magic and inventory them
through inspect_artifact and extract_artifact. Report the program type,
compiler build, copyright/link/version property slots, nonzero header
fields of unknown meaning, and the resource table. List the opaque body
and resource payloads as stored byte ranges; nothing is decrypted,
decompressed or decompiled.
Refs #16495
* feat(artifacts): read MetaTrader 4 EX4 programs with the EX5 layout
EX4 (magic EX-) shares the EX5 header, property slots and resource
table, so both containers become one mql-program format with a
container field. The version slot is 64 bytes and the opaque body
starts at 0x2E8 in both containers; the earlier 0x3A8 header length
counted 192 opaque bytes as part of the version slot. EX4 type code 3
is a library; build is reported under a neutral name because its EX4
meaning is not established.
* fix(artifacts): bound repeated MQL resource ranges and let tar outrank printable magics
Resource records may share one payload range, and each occurrence is
hashed and extractable, so the reader now charges every record against
artifact_limits.expanded_bytes, as the DTBO reader does.
A checksum-valid tar header now runs before the recognizers that match a
printable magic at offset 0. A tar whose first member was named EX-...,
GDPC... or UnityFS was claimed as an MQL program, Godot PCK or UnityFS.
Slot text keeps a leading U+FEFF, which is declared content rather than
an encoding mark.
* fix(artifacts): refuse an invalid tar header only after leading-magic formats
Only a checksum-valid tar header outranks the printable leading magics. A
Godot pack can hold ustar at 257 inside its own content without a valid
tar checksum; refusing that header first rejected the valid pack.
* fix(artifacts): compare MetaTrader resource declarations
A resource's name, kind, record index and unpacked size live in the
resource table, outside the stored payload that content comparison
hashes, so a renamed resource compared as unchanged. Compare them as
the resource's declaration, as tar, ar and UnityFS members do.
* fix(artifacts): keep unreadable MetaTrader resource names unknown in comparison
* fix(artifacts): report an unrecognized file's leading bytes and working fallbacks
A file no format route recognizes was refused with only the raw-binary
load as recovery, which suits headerless machine code but not data
containers. The refusal now reports the file size and first 16 bytes,
names inspect_byte_entropy and inspect_yara_matches, which accept any
file, and keeps raw-binary for machine code. The REA skill gains a
workflow for continuing analysis when no route recognizes a file.
* docs(development): require recovery fallbacks to fit and accept the refused input
* docs(skill): describe entropy ranges as places to inspect, not content labels
* test(mcp): cancel analyze_javascript_application through an MCP client
Refs #1065. The existing JavaScript cancellation tests either call the
analysis function directly or cancel through a mocked progress reporter
in the process-global project. These six mcp-boundary tests cancel
through the production server, the real 100 ms progress throttle and a
real worker, and pin the delivered cancelled result, the absent reply
frame, the removed worker folders and the next call. The last test pins
the late race: a cancel that arrives while the success reply is being
written still lets that reply out, keeps the Evidence and logs ok.
The terminal-progress cancel is left to the process-global test, which
already covers it. The observer helper lives in tests/support so the
reply and progress holds are not copied between files.
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(mcp): assert no reply only after the cancelled call settles
The three no-reply checks followed a client ping, which only raced the
server's handler tail on microtask order. With REA's transport changed to
keep notifications/cancelled from the SDK, so the SDK really writes the
cancelled result, the old tests still passed 6 of 6.
observeToolCall now offers settled(): it waits until REA's handler for the
call returned, lets the SDK make its reply decision, and joins any reply the
SDK handed to REA's transport. The same late-reply change now fails all five
cancellation tests at their no-reply check, also with a 50 ms delay in the
handler or in REA's publish path.
Raised by Greptile on #16476.
🤖 Generated with Claude Code (Opus 5.5) 🦊
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(ida): compare verifier reads in one database state
With IDA Pro 9.5, decompiling a function applies its inferred prototype
and can merge adjacent stack slots in the live database. The verifier
read the dossier before its first pseudocode, then compared
procedure_assembly and read_function_instructions with it after that
pseudocode, so the public fixture's rea_fixture_add failed parity.
Keep the CLI/MCP dossier comparison, which both read before any
decompilation, and compare the later MCP reads with a second dossier
read in the same post-decompilation state. Document the behavior and
the IDA 9.5 Windows x64 headless run.
* test(ida): cover verifier reads after a frame change
The verifier fixture always returned the same assembly, so pointing the
later assembly or instruction comparison back at the first dossier still
passed. The fixture now changes main's assembly once it has been
decompiled a chosen number of times: a change after the MCP dossier's
decompilation must pass, and a change before the assembly or instruction
read must fail in that phase.
Drop the second dossier's address, name and pseudocode assertions.
procedure_pseudo_code already compares later pseudocode with the first
dossier, and a second dossier for another function fails the assembly
comparison.
* test(ida): check the post-decompilation dossier's identity and pseudocode