Commit Graph
12386 Commits
Author SHA1 Message Date
Vincent Koc bc6f999b8b test(apple): share asset catalog fixture inputs (#17102) 2026-12-05 22:53:00 +08:00
Vincent Koc ef161b00b0 refactor(environment): reuse state entity provenance fields (#17097) 2026-12-05 22:52:51 +08:00
Vincent Koc 9536c19836 test(sqlite): share catalog selection fixtures (#17099) 2026-12-05 22:51:34 +08:00
Vincent Koc 918feddb4d test(kiro): share registration default path fixtures (#17096) 2026-12-05 22:50:33 +08:00
Vincent Koc 1212407b96 refactor(electron): reuse AST edge input fields (#17092) 2026-12-05 22:20:01 +08:00
Ysopwnableandgensokyo-dev c07901b9c9 feat(artifacts): inventory and extract .NET resource sets (#17072)
* feat(managed): decode .NET resource set headers and values

Parse the ResourceManager and RuntimeResourceSet headers of a .resources
stream, its name table and each entry's type code and payload range, as
System.Resources.ResourceReader lays them out. Fixed-size primitives get a
decoded value; strings, byte arrays and streams are payload ranges;
serialized user types are named from the type table and never decoded.

The test fixture writes resource sets the way ResourceWriter does, and its
output is byte-identical to .NET Framework 4.8 ResourceWriter for the same
values.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): bound .NET resource set admission

Add the dotnet_resources reader limit group: the resource count follows the
session member count, and the type count and header bytes bound what a
reader holds before it reaches the data section.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): read .NET resource sets as members

Serve each named resource of a .resources stream as a member whose bytes
are one range of the set: a string's UTF-8 bytes, a byte array's or
stream's payload, or a primitive's stored bytes with its decoded value in
the entry metadata. Serialized objects are listed by type name. Names that
are not safe paths, malformed values, hash table damage and version 1 sets
are reported as limitations.

Entry heads are read through windows of the data section in offset order,
so a large set costs few reads.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): recognize .NET resource sets for inventory and extraction

Claim a .resources stream by its 0xBEEFCACE magic and a usable
ResourceManager header, open it as an archive target, and register the
extractable dotnet-resources container so inspect_artifact,
extract_artifact and inventory views reach its members.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* test(artifacts): cover .NET resource sets through the artifact provider

Open a resource set as a target, inventory its members with value facts,
extract payloads, and recover from a resource count limit.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(managed): document .NET resource set inventory

Describe how resource sets are recognized, what each member's bytes and
metadata hold, which values stay unknown, extraction, and reader admission.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(reference): list .NET resource set limits and compared metadata

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(skill): route .NET resource sets to artifact inventory

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(managed): read resource set fields through BinaryReader

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(skill): sync the Cursor plugin skill

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* test(artifacts): select the .NET resource count among explicit member counts

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* test(artifacts): resolve .NET resource limits from the member count setting

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(managed): reject negative type codes and show Local dates as UTC instants

A version 2 type code decoded as a negative Int32 is malformed, so the
entry is omitted instead of failing the metadata schema. DateTime.ToBinary
stores a Local value's UTC instant, so it is shown with a Z suffix like a
Utc value. Name records are read without decoding, so callers can bound
decoded names.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): bound retained .NET resource names

Count every decoded name, including names several table entries share,
against dotnet_resources.retained_name_bytes.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(artifacts): bound shared resource names and keep neighbors' data ranges

Entry data ranges now come from every record with a data offset, so an
entry whose name does not decode no longer extends its neighbor. Decoded
names are charged against retained_name_bytes; a set that exceeds it keeps
the members read before the limit.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(artifacts): inventory .NET resource names that collide as paths

Resource names are flat keys, so a and a/b are distinct resources. Inventory
lists both, as for PyInstaller, Bun and Deno members, and extraction still
refuses to write colliding destinations together.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(managed): describe resource name limits, flat keys and DateTime instants

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(managed): report resource set header failures through ParseFailureError

The header parser now throws the shared parse failure with the format,
offset and field: truncated with the available and required bytes,
unsupported for a set version ResourceReader does not read, limit naming
the exceeded artifact_limits.dotnet_resources field, and malformed
otherwise. Name and value decoders take the caller's BinaryReader instead
of allocating one per record, and the metadata schemas live in
formatMetadata.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(artifacts): report the full retained name requirement in bytes

The retained name refusal now names every reference's bytes, which are
known before decoding, so retrying with that value succeeds, and both byte
allowances report the bytes unit. The reader maps shared parse failures,
grows its header read on truncation inside the set, and holds one reader
per name section and data window.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* ci: select the Apple artifact lane for .NET resource set changes

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(cli): show .NET resource set inventory and extraction

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(skill): describe .NET resource set members for agents

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-05 22:15:09 +08:00
Vincent Koc 1ad61b1441 refactor(image4): reuse manifest contents state (#17093) 2026-12-05 22:12:43 +08:00
Vincent Koc ce6a324eee refactor(session): reuse port lifecycle option types (#17090) 2026-12-05 22:07:50 +08:00
Vincent Koc 856981118c test(adb): share package user ID issue fixtures (#17091) 2026-12-05 22:06:49 +08:00
Vincent Koc 3543aeec77 refactor(firmware): share compressed RISC-V access observations (#17086) 2026-12-05 22:04:31 +08:00
Vincent Koc f8415b168d refactor(png): reuse IHDR facts in pixel comparison (#17089) 2026-12-05 21:50:32 +08:00
Vincent Koc fc1d3d3864 refactor(iso9660): share primary volume descriptor fields (#17087) 2026-12-05 21:47:56 +08:00
Vincent Koc 8a58154f6a test(macho): share analysis view page fixtures (#17088) 2026-12-05 21:45:21 +08:00
Vincent Koc 1b0b5a6e8f test(desktop): share command output fixtures (#17085) 2026-12-05 21:44:55 +08:00
Vincent Koc 6ea57e503c refactor(zip): share Zip64 end record probe offsets (#17084) 2026-12-05 21:30:46 +08:00
Vincent Koc 56a03e349b refactor(analysis-view): reuse state list query page fields (#17083) 2026-12-05 21:29:55 +08:00
Vincent Koc 0413488445 refactor(firmware): share ARM vector literal rows (#17080) 2026-12-05 21:28:16 +08:00
Vincent Koc 9aa48b05b8 test(pyinstaller): share stored data member fixtures (#17082) 2026-12-05 21:26:55 +08:00
Vincent Koc 0de82e59ed refactor(contracts): share empty Evidence bundle examples (#17077) 2026-12-05 21:21:50 +08:00
Vincent Koc dcee5d1d7d refactor(ogg): share OpusTags prefix reads (#17081) 2026-12-05 21:20:46 +08:00
Vincent Koc 1b519a0a64 refactor(sourcemap): share malformed input diagnostics (#17078) 2026-12-05 21:20:03 +08:00
Vincent Koc 28f4ef26b3 test(managed): share member Evidence fixtures (#17079) 2026-12-05 21:17:02 +08:00
Vincent Koc bf1ab68443 test(ubi): share first logical block fixtures (#17076) 2026-12-05 21:15:36 +08:00
Vincent Koc c01de55ec4 refactor(plist): share preflight table width calculation (#17075) 2026-12-05 21:03:35 +08:00
Vincent Koc 4b5894ccff refactor(analysis-view): reuse read identity fields (#17074) 2026-12-05 21:02:43 +08:00
Vincent Koc a9f761f0d8 test(evidence): share observation fixtures (#17073) 2026-12-05 21:00:23 +08:00
Vincent Koc 9a72145674 test(binary): share ARM64 host fixtures (#17065) 2026-12-05 20:56:33 +08:00
Vincent Koc ee740b5152 refactor(nib): share malformed archive diagnostics (#17070) 2026-12-05 20:46:37 +08:00
Vincent Koc 521d31ab5c refactor(adb): share paged listing result fields (#17069) 2026-12-05 20:46:28 +08:00
Vincent Koc cdd16e7d23 refactor(android): share OTA truncation results (#17067) 2026-12-05 20:43:33 +08:00
Vincent Koc 70b253f6bb refactor(cli): reuse help schema fields (#17066) 2026-12-05 20:42:42 +08:00
Vincent Koc 4d39a2cfdd test(comparison): share changed-dimension expectations (#17068) 2026-12-05 20:42:01 +08:00
Vincent Koc f15a2ddeea refactor(kuna): reuse installation observation types (#17062) 2026-12-05 20:22:53 +08:00
Vincent Koc 5a48a94961 refactor(dtbo): share malformed field failures (#17063) 2026-12-05 20:22:01 +08:00
Vincent Koc 64ff510afc refactor(journal): reuse the bounded header reader (#17059) 2026-12-05 20:19:58 +08:00
Vincent Koc b0b4b5b58b refactor(reference): reuse source reader error fields (#17058) 2026-12-05 20:19:49 +08:00
Vincent Koc 59445170ff test(javascript): share candidate binding expectations (#17061) 2026-12-05 20:18:16 +08:00
Vincent Koc ff1a68da13 test(setup): share provider settings registration fixtures (#17060) 2026-12-05 20:16:49 +08:00
Vincent Koc 37da005e14 refactor(binary): share session status options (#17057) 2026-12-05 20:02:55 +08:00
Vincent Koc 01f4bf79c0 refactor(image4): share header result construction (#17053) 2026-12-05 19:44:52 +08:00
Vincent Koc 383f52b3eb refactor(android): centralize sparse image parse failures (#17055) 2026-12-05 19:41:00 +08:00
Vincent Koc d8b506a49e test(cli): share dylib resolution JSON requests (#17056) 2026-12-05 19:38:41 +08:00
Vincent Koc fd86f1f7fd refactor(binary): reuse session open options (#17052) 2026-12-05 19:38:16 +08:00
Vincent Koc f04c73ad74 test(lifecycle): share Grok Build client fixtures (#17054) 2026-12-05 19:37:48 +08:00
Vincent Koc f1c2f02657 test(oci): reuse the index fixture serializer (#17051) 2026-12-05 19:37:24 +08:00
Vincent Koc ebe2feb908 refactor(evm): reuse interface observation fields (#17046) 2026-12-05 19:21:00 +08:00
Vincent Koc 9dfbd5f981 refactor(tar): share malformed member diagnostics (#17047) 2026-12-05 19:15:49 +08:00
Vincent Koc 252910967a refactor(json): share parse failure construction (#17044) 2026-12-05 19:13:14 +08:00
Vincent Koc eb2597e487 refactor(cli): reuse shared projection fields (#17043) 2026-12-05 19:12:21 +08:00
Vincent Koc d29fafc553 test(javascript): share unresolved path expectations (#17045) 2026-12-05 19:11:20 +08:00