11871 Commits
Author SHA1 Message Date
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
Vincent Koc 47c6be04ee refactor(evidence): share call comparison coverage projection (#16522) 2026-12-04 08:22:29 +08:00
Vincent Koc 0c80c2fb0d refactor(desktop): index mirrored text sources once (#16511) 2026-12-04 08:19:15 +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 a59694d492 refactor(evidence): share bundle comparison source index (#16519) 2026-12-04 08:15:24 +08: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
morluto f33f0e1c0c fix(artifacts): honor expanded_bytes for FIT images and share repeated-range admission (#16517)
FIT charged its images against the default expansion budget inside the
structure parser, ignoring a configured artifact_limits.expanded_bytes
and refusing without limit facts. The reader now charges every image,
including image-data links that repeat one range, through a helper the
DTBO reader also uses, and reports the standard expanded_bytes refusal.
The parser's untyped copy is removed.
2026-12-03 18:50:50 -05: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 a0fa9a2618 refactor(evidence): share composed observation mapping (#16512) 2026-12-04 07:35:05 +08:00
morluto cbf9e0000b docs(development): add an artifact format guide and contributor skill (#16506)
* docs(development): add an artifact format guide and contributor skill

Document the files, registration points, parsing rules, limits, tests
and docs a new inspect_artifact format needs, and add a
rea-artifact-format skill for the judgment calls: establishing a layout
from samples, naming only established fields, and what a reader exposes.

* docs(development): correct artifact format registration and evidence guidance
2026-12-03 23:34:11 +00:00
Vincent Koc 474c0537c3 refactor(evidence): share bundle inspection option types (#16509) 2026-12-04 07:32:23 +08:00
Vincent Koc a8d6a9f439 refactor(desktop): share sibling text guard checks (#16504) 2026-12-04 07:16:53 +08:00
Vincent Koc e6caca151f refactor(evidence): share mobile inventory projection setup (#16503) 2026-12-04 07:16:36 +08:00
Vincent Koc 76cb7f37e7 test(release): share manifest check fixtures (#16505) 2026-12-04 07:16:24 +08:00
Vincent Koc 472db72f3e test(clients): share JavaScript fixture literal assertions (#16502) 2026-12-04 07:15:43 +08:00
Vincent Koc 86324f6cc8 refactor(desktop): reuse attribute text ancestors (#16499) 2026-12-04 07:04:00 +08:00
Vincent Koc 19c113a893 refactor(evidence): share artifact inventory index lookup (#16498) 2026-12-04 07:02:39 +08:00
Vincent Koc 5849d4182e test(process): share directory close failure fixture (#16497) 2026-12-04 07:00:27 +08:00
Vincent Koc 97d6db35c9 test(mcp): share paged catalog server fixtures (#16496) 2026-12-04 07:00:16 +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
Vincent Koc 47906c1c1d refactor(evidence): share unresolved text comparison output (#16493) 2026-12-04 06:43:02 +08:00
Vincent Koc 53051663d3 refactor(evidence): tally changed-behavior findings once (#16491) 2026-12-04 06:26:06 +08:00
Vincent Koc 66a670a6c4 refactor(desktop): reuse escaped paths in state diffs (#16490) 2026-12-04 06:25:57 +08:00
Vincent Koc dcfa7201e5 refactor(analysis-view): share optional metadata filter sets (#16489) 2026-12-04 06:25:20 +08:00
Vincent Koc 5bf3586b8a test(server): share tool catalog message fixtures (#16492) 2026-12-04 06:23:54 +08: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 289f6bcda6 refactor(analysis-view): reuse optional IL2CPP metadata filters (#16488) 2026-12-04 06:04:29 +08:00
Vincent Koc f9d1f4658c refactor(desktop): index SQLite draft rows once (#16486) 2026-12-04 06:03:44 +08:00
Vincent Koc 2f4140cc78 refactor(desktop): share XML field-record list recognition (#16485) 2026-12-04 06:02:11 +08:00
Vincent Koc c9fdde5b4a test(analysis-view): share Go build info fixtures (#16487) 2026-12-04 06:01:17 +08: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
Vincent Koc daa6a8842f refactor(cli): share formatting failure documents (#16479) 2026-12-03 21:33:15 +00:00
Vincent Koc 7d90ec913f refactor(desktop): reuse located values in draft previews (#16478) 2026-12-03 21:30:49 +00:00
Vincent Koc 24ac6b67cf refactor(desktop): reuse XML member counts in draft checks (#16477) 2026-12-03 21:30:30 +00:00
Vincent Koc ae83a42131 test(analysis-view): share procedure reference page fixtures (#16480) 2026-12-03 21:29:11 +00:00
Vincent Koc 371682a108 refactor(managed): classify unpaired member omissions once per side (#16472) 2026-12-03 21:11:01 +00:00
Vincent Koc 224e76b6ab refactor(cli): let Markdown children render their own sections (#16475) 2026-12-03 21:10:43 +00:00
Vincent Koc 803ec4aca8 test(native): share empty Swift dispatch coverage fixtures (#16473) 2026-12-03 20:59:11 +00:00
Vincent Koc 726fd2d86c refactor(desktop): reuse JSON array count facts (#16474) 2026-12-03 20:54:44 +00:00
Vincent Koc 2f0bfa1f31 refactor(release): render only the selected contribution format (#16469) 2026-12-03 20:49:47 +00:00
Vincent Koc ee683fe827 refactor(desktop): reuse added XML field text and ancestor resolution (#16471) 2026-12-03 20:44:39 +00:00
Vincent Koc 515d9b6580 refactor(cli): share help schema field projection (#16470) 2026-12-03 20:43:40 +00:00
Shuaixin Huang 50d3c11ba9 fix(artifacts): report unmapped bFLT loader image bytes (#15981) 2026-12-03 20:41:31 +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 85308d9873 refactor(desktop): prepare each member pairing side once (#16468) 2026-12-03 20:28:18 +00:00
bde2994aa7 fix(artifacts/ar): recognize COFF EC symbol tables (#16467)
Classify /<ECSYMBOLS>/ as a symbol table in regular archives so
inspection continues to the following object members.

Carry forward the original fix from #15974 and cover the combination
of an EC symbol table and an LLVM-padded COFF long-name table.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Co-authored-by: Shuaixin Huang <3937061056@qq.com>
2026-12-03 20:27:35 +00:00