Commit Graph
7021 Commits
Author SHA1 Message Date
Vincent Koc defa25eb7e test(javascript): reuse the export shape parser fixture (#16590) 2026-12-04 12:57:04 +08:00
Vincent Koc 275ad75606 test(desktop): share package owner fixture replies (#16586) 2026-12-04 12:39:44 +08:00
hhangandhhang 0a71a25e4d fix(tar): recognize gzip archives with long comments (#16188)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-12-04 04:28:45 +00:00
Vincent Koc d4114d7030 test(firmware): share synthetic extraction fixture requests (#16572) 2026-12-04 11:55:10 +08:00
Vincent Koc 8e7fa410de test(artifacts): reuse Apple application inventory fixtures (#16569) 2026-12-04 11:40:27 +08:00
Vincent Koc 6aa3ae45b1 test(cli): share default parser export comparison fixtures (#16550) 2026-12-04 11:05:11 +08:00
Vincent Koc a7e38b20b5 test(cli): share complete model inspection arguments (#16547) 2026-12-04 10:50:25 +08:00
Vincent Koc 1fb434f637 test(mcp): share the analysis settings ASAR fixture (#16545) 2026-12-04 10:49:43 +08:00
Vincent Koc 8a808adc30 test(cli): share retained JavaScript application fixtures (#16541) 2026-12-04 10:32:34 +08:00
Vincent Koc 0ce0bcf0fa test(artifacts): share extraction bundle fixture (#16540) 2026-12-04 10:31:29 +08:00
Vincent Koc 103acfbbbb refactor(mcp): share first collection page defaults (#16538)
* refactor(mcp): share first collection page defaults

* fix(mcp): preserve firmware continuation collections
2026-12-04 10:21:50 +08:00
Vincent Koc c15d9f2905 test(cli): share Go binary inspection fixtures (#16536) 2026-12-04 10:06:23 +08:00
Vincent Koc 471c94c908 test(cli): share Maven and Gradle metadata fixtures (#16532) 2026-12-04 09:54:47 +08:00
Vincent Koc e8ca68f637 test(mcp): share source publication router fixtures (#16526) 2026-12-04 09:33:38 +08:00
Vincent Koc ce43425191 test(release): share checkpoint migration fixtures (#16521)
* test(release): share checkpoint migration fixtures

* test(release): exercise synthetic tag signing override
2026-12-04 08:58:18 +08:00
Vincent Koc 149378bddb test(ci): select npm for the static context fixture (#16524) 2026-12-04 08:33:09 +08:00
Vincent Koc 6195b3d66b test(setup): share Hermes setup argument fixtures (#16523) 2026-12-04 08:23:28 +08:00
morluto a37994b3e8 feat(artifacts): inspect MetaTrader EX4 and EX5 program headers and resources (#16501)
* 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
2026-12-03 19:16:36 -05:00
Vincent Koc 56d2fc1138 test(mcp): share complete browser capture assertions (#16520) 2026-12-04 08:05:29 +08:00
morluto 35d0d013c1 fix(artifacts): report an unrecognized file's leading bytes and working fallbacks (#16508)
* 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
2026-12-04 00:02:34 +00:00
Vincent Koc 3c0edce2a9 test(mcp): share retained analysis view requests (#16513) 2026-12-04 07:41:42 +08:00
Vincent Koc 6e85a561d6 test(lint): share buffer equality fixture diagnostics (#16510) 2026-12-04 07:37:06 +08:00
Vincent Koc 76cb7f37e7 test(release): share manifest check fixtures (#16505) 2026-12-04 07:16:24 +08:00
Vincent Koc 5849d4182e test(process): share directory close failure fixture (#16497) 2026-12-04 07:00:27 +08:00
Cassie_FoxandClaude Opus 5.5 5919dc983a test(mcp): cancel analyze_javascript_application through an MCP client (#16476)
* 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>
2026-12-03 17:49:02 -05:00
RRFZ fe29cab95a test(ida): compare verifier reads in one database state (#16483)
* 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
2026-12-03 17:19:13 -05:00
Vincent Koc 74ecd82a3a test(evaluation): cover all scenario report totals (#16484) 2026-12-04 05:47:45 +08:00
Vincent Koc 5cfc8edb98 refactor(evaluation): summarize scenario totals in one pass (#16481) 2026-12-03 21:37:38 +00:00
RRFZ c80acb9c1d fix(artifacts): read paletted KTX mip chains as one block (#16000) 2026-12-03 20:30:23 +00:00
Vincent Koc 5272a4fc3c test(filesystem): share file format fixture reads (#16459) 2026-12-03 19:58:59 +00:00
RRFZ 2a96f92293 fix(ogg): accept compatible OpusHead minor versions (#16009) 2026-12-03 19:50:31 +00:00
Vincent Koc 35230f2587 test(artifacts): share prefix recognition fixtures (#16453) 2026-12-03 19:41:42 +00:00
Vincent Koc eaec6a9055 test(export): share web script input buffers (#16450) 2026-12-03 19:37:23 +00:00
Vincent Koc 917646c723 test(cli): share managed summary arguments (#16442) 2026-12-03 18:58:32 +00:00
Vincent Koc 1a66acd644 test(lint): share raw file-handle close expectations (#16436) 2026-12-03 18:41:43 +00:00
Vincent Koc 94c0ca874b refactor(test): share required readiness stage summary (#16434) 2026-12-03 18:39:37 +00:00
Vincent Koc 9873058a8d test(ci): share static task context fixtures (#16433) 2026-12-03 18:39:33 +00:00
Vincent Koc 4824a91fa1 test(docs): share README markdown parsing (#16430) 2026-12-03 18:26:45 +00:00
Vincent Koc bf8a092dde refactor(test): share allocation report discovery filter (#16427) 2026-12-03 18:17:24 +00:00
Vincent Koc fdaf644ed1 test(config): share Cursor JSON client fixtures (#16417) 2026-12-03 17:37:06 +00:00
Vincent Koc 00d695c944 test(evaluation): share completed message fixtures (#16414) 2026-12-03 17:24:06 +00:00
Vincent Koc a1e101db1d test(config): share stale DeepSeek Harness registration fixtures (#16411) 2026-12-03 17:21:33 +00:00
Vincent Koc dda05bfa5d test(cli): share command projection context fixtures (#16408) 2026-12-03 17:14:21 +00:00
Vincent Koc fcf976e8aa test(cli): share stream graph output fixtures (#16388) 2026-12-03 15:09:02 +00:00
Vincent Koc 236655afe2 test(mcp): share Rust report validation fixtures (#16371) 2026-12-03 14:04:40 +00:00
Vincent Koc b352b301c7 test(javascript): share CLI and MCP session app fixtures (#16368)
* test(javascript): share CLI and MCP session app fixtures

* test(mcp): remove unused session fixture import
2026-12-03 13:55:28 +00:00
Vincent Koc 66ab6d5e72 test(mcp): reuse keyed archive tool success fixture (#16365) 2026-12-03 13:35:17 +00:00
Vincent Koc 059f129377 test(native): share dispatch environment fixtures (#16357) 2026-12-03 13:25:45 +00:00
gensokyo-dev 766c45de1d feat(firmware)!: replace the literal-pool and split-immediate MMIO tools with inspect_firmware_mmio
inspect_firmware_literal_pools and inspect_firmware_mmio_synthesis answered
the same question and differed only in the instruction idiom they decode.
One tool, inspect_firmware_mmio, now takes a single architecture vocabulary
across all nine ISAs and dispatches to the literal-pool or split-immediate
decoder.

Both decoders write the same report:
- accesses rows: instruction, address register, access kind and width,
  address and MIPS physical address, region kind, architectural block, and
  CMSIS-SVD peripheral and register facts;
- a source object with the decoder's own facts: pool slot and disassembly,
  or pattern and high instruction;
- decoder facts on the report.

firmwareMmioGroups.ts owns grouping MMIO accesses by SVD peripheral,
architectural block or 4 KiB page. mmioAttributionBasis owns the group
basis. The retained view kind is firmware-mmio, with collections accesses,
peripheral_groups and anomalies, and its summary lists the top 16 groups as
compact rows.

max_references and max_syntheses are removed, since max_representation_bytes
already bounds the rows they counted. The literal-pool pre-allocation
measurement now includes an upper bound for each group, so its refusal
reports the exact required bytes. max_scan_bytes defaults to its 16 MiB
maximum, so one call covers a whole application image. mmio_only, default
true, now also drops literal-pool constants that are not MMIO;
counts.candidate_accesses still counts every decoded access.

BREAKING CHANGE: inspect_firmware_literal_pools and
inspect_firmware_mmio_synthesis (CLI inspect-firmware-literal-pools and
inspect-firmware-mmio-synthesis) and the retained view kinds
firmware-literal-pools and firmware-mmio-synthesis are replaced by
inspect_firmware_mmio (inspect-firmware-mmio) and view kind firmware-mmio.
isa becomes architecture, max_svd_nodes becomes max_svd_xml_nodes, and
max_references and max_syntheses are removed. Neither old tool has been
released.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 21:19:29 +08:00
Vincent Koc 7a06eba0f5 test(javascript): share literal mapping assertions (#16360) 2026-12-03 13:16:39 +00:00