From f3ce4cabf642bb182eca99b3e666cd715599bf55 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:02:09 -0500 Subject: [PATCH] docs: tighten format pages and correct stated limits (#14199) * docs: tighten format pages and correct stated limits Restructure the GPU code object, UnityFS, IL2CPP, model, Rust and hardening pages for scanning, state the Rust input and report limits as overridable defaults, replace an IL2CPP jq round trip with the --evidence-bundle query, and remove change narratives. * docs(model): separate the big-endian v2 and unknown-version GGUF refusals Only unknown versions report the raw version bytes and both UINT32 interpretations with byte order unknown; big-endian v2 is recognised and refused with its own message. --- docs/binary-hardening.md | 12 +- docs/ci-analysis.md | 2 +- docs/gpu-code-objects.md | 311 +++++++++++++++++++++------------------ docs/il2cpp-metadata.md | 70 +++++---- docs/model-artifacts.md | 34 +++-- docs/rust-binaries.md | 44 +++--- docs/unityfs.md | 127 +++++++++------- 7 files changed, 325 insertions(+), 275 deletions(-) diff --git a/docs/binary-hardening.md b/docs/binary-hardening.md index 002a680731..ecfcc58b1a 100644 --- a/docs/binary-hardening.md +++ b/docs/binary-hardening.md @@ -50,14 +50,14 @@ existing encryption reader, the arm64e subtype, and a stack-protector import. `hardened_runtime` is `unknown` with `next_probe` `inspect_signature`. CodeDirectory flags stay with that tool. -The report states presence of build-time features. It does not state -exploitability. `inspect_binary_layout` is unchanged. +The report states presence of build-time features, not exploitability. The default read budget is 64 MiB (`max_file_bytes`, ceiling 512 MiB). A changed -file is refused. A malformed header, a Mach-O segment or encryption command that fails admission, or a program, section, -or segment payload declared outside the file returns no partial report, except that one bad slice in a universal Mach-O leaves the other slices. A symbol table or +file is refused. A malformed header, a Mach-O segment or encryption command that +fails admission, or a program, section, or segment payload declared outside the +file returns no partial report; in a universal Mach-O, one bad slice leaves the +other slices. A symbol table or symbol name over its budget leaves the import rows `unknown` and keeps the header rows. A GNU property note over its budget, or a compressed note section that may hold one, leaves the CET and BTI/PAC rows `unknown` and keeps the header -rows. A dynamic-table budget still fails the ELF report. The image is never -executed. +rows. A dynamic-table budget still fails the ELF report. diff --git a/docs/ci-analysis.md b/docs/ci-analysis.md index d6c00d8236..f262b50ae9 100644 --- a/docs/ci-analysis.md +++ b/docs/ci-analysis.md @@ -84,7 +84,7 @@ The retained JSON error has category `unsupported_target`; the step exits nonzer Restore the correct path before using the example normally. To exercise partial analysis, append `export const broken = ;` to the demo's -JavaScript. REA 6.7.0 retains `data.normalized_result.statistics.parse_failures` +JavaScript. The pinned REA retains `data.normalized_result.statistics.parse_failures` and an incomplete-coverage limitation while the operation can still exit zero. Inspect those facts instead of treating process success as full coverage. The report JSON and diagnostics remain unfiltered in all three cases. diff --git a/docs/gpu-code-objects.md b/docs/gpu-code-objects.md index 86a4eb0aa9..804d32664f 100644 --- a/docs/gpu-code-objects.md +++ b/docs/gpu-code-objects.md @@ -6,7 +6,10 @@ CUBIN/PTX and Clang HIP bundles, including CCOB v1/v2/v3. It neither executes th artifact nor invokes CUDA/ROCm tools. GPU execution, SASS disassembly and host launch correlation remain outside coverage. -Start with a target inventory: +## Inventory targets + +Start with a target inventory. MCP defaults to `detail: "summary"`, which +retains complete Evidence and returns the selected page: ```json { "path": "/artifacts/library.so", "view": { "collection": "targets" } } @@ -15,75 +18,86 @@ Start with a target inventory: Target rows aggregate inventoried payloads and distinguish an unrequested kernel analysis from a complete or partial one. `objects` pages expose exact object IDs, compression declarations and encoded/header locations. Fields, exact -filters, batch IDs and stable pagination select the facts delivered to the -caller. IDs are positional within the recorded artifact SHA-256. Selecting `object_ids` -in a new inspection requires `expected_sha256` from that inventory; a changed -file is rejected before parsing selected payloads. +filters, batch IDs and stable pagination select the facts delivered. IDs are +positional within the recorded artifact SHA-256. Selecting `object_ids` in a new +inspection requires `expected_sha256` from that inventory; a changed file is +rejected before selected payloads are parsed. `target` is the inventory declaration used for selection; `payload_target` is the independently observed inner declaration when available. Object pages keep both values, their kind, `target_consistency` and inspection coverage even with selected fields. -Conflicting base architectures retain both values, mark object/report/target -coverage partial and annotate the affected kernels. CUBIN flags establish a base -architecture: `base-only` explicitly leaves feature-profile agreement unknown, -including `a` and `f` variants. A standalone declaration is `single-source`, and -unexamined payloads remain `unexamined`. An exact AMDGPU target is normalized at -its note owner for comparison with a Clang bundle declaration; raw values remain -intact. Unresolved feature comparisons stay `unknown`. -A HIP target ID identifies a toolchain target, not its payload representation. -Recognized raw or wrapped LLVM bitcode stays `unsupported` for kernel metadata -inspection, with the bundle ID, range and selected payload digest retained. -Bitcode validity and inner targets remain unexamined; malformed recognized ELF -still reports `malformed`. Standalone bitcode is outside GPU container coverage. +| `target_consistency` case | Result | +| ----------------------------------------- | ------------------------------------------------------------------------------- | +| Conflicting base architectures | Both values kept; object, report and target coverage partial; kernels annotated | +| CUBIN flags give only a base architecture | `base-only`; feature-profile agreement, including `a`/`f` variants, unknown | +| Standalone declaration | `single-source` | +| Payload not examined | `unexamined` | +| Unresolved feature comparison | `unknown` | -HIP bundle and metadata note recognition accept both the legacy `amdgcn` triple -and LLVM's `amdgpu` subarchitecture triples, including declared generic processors -such as `gfx11-generic` and `gfx9-4-generic`. Notes with the empty or explicit -`unknown` environment use the same processor and feature comparison while -retaining their raw triple spelling. CUDA's legacy fatbinary compression flag is -retained as an unsupported codec with its encoded and decoded extents; -compressed bytes are not treated as PTX text. A CUDA entry whose declared -decoded length exceeds the exact integer range of `decoded_size` retains -its encoded range and reports the exact length in a limitation. Kernel decoding -reports `capacity` for a selected entry with a supported codec. -CCOB is recognized by the exact four signature bytes `CCOB`; -high-bit-corrupted bytes are not decoded as ASCII -and accepted as a bundle. CCOB v1 has no stored total size: the completed zlib -or Zstd stream determines its encoded extent. Embedded `CCOB` text is ordinary -compressed data; zero-byte alignment after the stream belongs to neither -payload. If decoding fails or its codec is unsupported, a later `CCOB` marker -is only an uncertain recovery candidate. The affected row retains that -limitation and discovery remains partial. -CCOB v2 and v3 declare the full encoded extent in their headers. If a decode -exceeds the output budget, the row reports `capacity` and inspection can -continue at the next bundle. A v3 decoded length outside the exact integer -range of `decoded_size` leaves that field null and is recorded in the row's -limitation. - -The declared decoded length bounds decompression. An understated length can -stop decoding before codec completion, so any subsequent recovery extent stays -unknown; the decoder does not expand its allowance to prove the bad declaration. -Interrupted observations omit unfinished v1 rows. A terminal capacity row -qualifies its retained range as the containing tail and does not infer siblings. - -`cuda_target_header` retains the OS ABI, normalized raw `e_flags` and exact -header location. CUDA OS ABI `0x33` and the observed `0x41` flags layout use -different architecture fields; they are decoded at one ABI-aware owner. -Unrecognized layouts keep the header and an unknown target instead of -inventing an SM label. Header provenance is validated against its CUBIN object. +An exact AMDGPU target is normalized at its note owner for comparison with a +Clang bundle declaration; raw values remain intact. Target filters select inventory declarations. An unselected payload's inner -target remains unexamined; an empty filtered result does not establish that +target remains unexamined, so an empty filtered result does not establish that no enclosed code declares that target. Discovering every inner declaration requires decoding those payloads. +## Containers and compression + HIP bundle IDs retain the declared processor and v2-v3 `+feature` suffixes for -exact selection. If a recognized AMDGPU bundle ID does not expose a target, the same -bounded note-discovery owner used for standalone AMDGPU files establishes it -before filtering. Those directory/note reads share the inspection work budget; -successive queries can select the target returned by inventory. +exact selection. If a recognized AMDGPU bundle ID does not expose a target, the +bounded note discovery used for standalone AMDGPU files establishes it before +filtering; those reads share the inspection work budget. HIP bundle and +metadata note recognition accept the legacy `amdgcn` triple and LLVM's `amdgpu` +subarchitecture triples, including generic processors such as `gfx11-generic` +and `gfx9-4-generic`. Notes with an empty or explicit `unknown` environment are +compared the same way and keep their raw triple spelling. + +A HIP target ID identifies a toolchain target, not its payload representation. +Recognized raw or wrapped LLVM bitcode is `unsupported` for kernel metadata, +with the bundle ID, range and selected payload digest retained. Bitcode validity +and inner targets remain unexamined; malformed recognized ELF reports +`malformed`. Standalone bitcode is outside GPU container coverage. + +Supported codecs are CUDA raw LZ4 blocks and Zstd, and CCOB zlib/Zstd. Unknown +versions or codecs retain their declarations with explicit limitations. Lengths +are checked before decoding, and CCOB's truncated MD5 is verified against the +decoded bytes. + +- **CUDA.** The legacy fatbinary compression flag is retained as an unsupported + codec with its encoded and decoded extents; compressed bytes are not treated as + PTX text. A declared decoded length beyond the exact integer range of + `decoded_size` keeps the encoded range and reports the exact length in a + limitation. Kernel decoding reports `capacity` for a selected entry with a + supported codec. +- **CCOB signature.** Only the exact four bytes `CCOB` are accepted; + high-bit-corrupted bytes are not decoded as ASCII. +- **CCOB v1** stores no total size, so the completed zlib or Zstd stream + determines its encoded extent. Embedded `CCOB` text is ordinary compressed + data, and zero-byte alignment after the stream belongs to neither payload. If + decoding fails or the codec is unsupported, a later `CCOB` marker is only an + uncertain recovery candidate; the row keeps that limitation and discovery + remains partial. Interrupted observations omit unfinished v1 rows. +- **CCOB v2 and v3** declare the full encoded extent. A decode that exceeds the + output budget reports `capacity`, and inspection can continue at the next + bundle. A v3 decoded length outside the exact integer range of `decoded_size` + leaves that field null with a limitation. + +The declared decoded length bounds decompression. An understated length can +stop decoding before the codec completes, leaving any subsequent recovery extent +unknown; the decoder does not raise its allowance to prove the bad declaration. +A terminal capacity row qualifies its retained range as the containing tail and +does not infer siblings. + +`cuda_target_header` retains the OS ABI, normalized raw `e_flags` and exact +header location, validated against its CUBIN object. CUDA OS ABI `0x33` and the +observed `0x41` flags layout use different architecture fields and are decoded +by one ABI-aware owner. Unrecognized layouts keep the header and an unknown +target rather than inventing an SM label. + +## Decode kernels Decode selected targets and return a kernel page in the same call: @@ -107,59 +121,66 @@ Decode selected targets and return a kernel page in the same call: } ``` -Only selected payloads are decoded. Other inventory entries remain present with -`not-selected` states, and overall payload coverage remains partial. An empty -kernel page proves no matching retained fact; it does not establish that an -unexamined payload contains no kernel. Missing fields remain null. +Only selected payloads are decoded. Other inventory entries remain with +`not-selected` states, and overall payload coverage stays partial. An empty +kernel page proves no matching retained fact, not that an unexamined payload +contains no kernel. Missing fields are null. Kernel representations have different meanings: -- PTX reports parameter declarations and virtual registers. Shared bytes cover - supported static declarations inside that entry; they do not establish module - shared memory, dynamic allocation or physical device resources. - PTX 1.0–1.3 declares entry parameters in the body; PTX 1.4 and later uses the - entry parameter list. Entry-scoped `.pragma` statements before the body do - not end the declaration or suppress its body resources. A `.target - compute_xx` spelling is retained as written; - NVIDIA PTX defines it as a synonym for `.target sm_xx` when comparing its - target identity with the fatbin declaration. `.callprototype` formal - parameters are excluded from entry virtual-register counts. Parameter names - remain available when pointer qualifiers are understood or an unsupported - qualifier prevents layout decoding. A pointer's `.align` describes the - pointed-to memory and does not change parameter layout alignment. Spaced, - joined and partly joined pointer qualifiers have the same meaning. Parameter - alignment before or after the scalar type retains its layout and name. - Parameter names and following declarations are retained when an array - extent uses a parenthesized expression or when dimensions are - multidimensional, even though those forms do not currently yield a layout. - PTX target selection uses the highest-numbered module-scope `.target` - directive, including directives after entry declarations; unsupported or - conflicting target profiles leave the effective target unknown. - Scalar register declarations count each bare or percent-prefixed name and - each parameterized range, including compact keywords such as `.reg.b32`. - Unsupported declaration forms or overflowing totals - retain an unknown count and partial decoding coverage. Unsupported parameter - layouts and unknown shared-memory declarations likewise retain their known - facts, explicit limitations and partial coverage through retained pages. -- CUBIN identifies CUDA entry symbols and reads numeric `nv.info` records, +- **PTX** reports parameter declarations and virtual registers. + - Shared bytes cover supported static declarations inside the entry, not + module shared memory, dynamic allocation or physical device resources. + - PTX 1.0–1.3 declares entry parameters in the body; PTX 1.4 and later uses + the entry parameter list. Entry-scoped `.pragma` statements before the body + neither end the declaration nor suppress its body resources. + - The effective target is the highest-numbered module-scope `.target`, + including directives after entries. `.target compute_xx` is retained as + written and compared as its NVIDIA-defined synonym `sm_xx`. Unsupported or + conflicting target profiles leave the target unknown. + - Scalar register counts include each bare or `%`-prefixed name and each + parameterized range, including compact keywords such as `.reg.b32`. + `.callprototype` formal parameters are excluded. + - Parameter layout accepts spaced, joined and partly joined pointer + qualifiers, and alignment before or after the scalar type. A pointer's + `.align` describes the pointed-to memory, not the parameter's layout. + Parenthesized or multidimensional array extents, and unsupported + qualifiers, keep the parameter name and following declarations but yield no + layout. + - Unsupported declaration forms, overflowing totals, unsupported layouts and + unknown shared-memory declarations keep their known facts with an unknown + value, explicit limitations and partial coverage. +- **CUBIN** identifies CUDA entry symbols and reads numeric `nv.info` records, including V2 kernel-parameter sizes, and native section declarations. Global - register declarations also cover compiler - versions that leave the older text-section register field empty. - Conflicting register declarations keep the physical count unknown, preserve the - kernel's other facts, and mark object/report/target decoding coverage partial. -- AMDGPU reads v3+ MessagePack notes. V3 processor identity comes from the - `EF_AMDGPU_MACH` field in ELF `e_flags`; known processor values are selectable - even when the note omits `amdhsa.target`. This inventory reports the processor - only; it does not interpret version-specific feature flags. Unknown processor values remain unknown. A known - processor conflict between ELF flags and note metadata leaves the processor - unresolved. Argument counts include hidden ABI arguments - when present; SGPR/VGPR counts and fixed group/private segment sizes retain - their declared meanings. Legacy YAML metadata remains unsupported. + register declarations also cover compilers that leave the older text-section + register field empty. Conflicting register declarations keep the physical + count unknown, preserve the kernel's other facts, and mark object, report and + target decoding coverage partial. Missing symbol tables or unresolved section + names also make that coverage partial even when some kernel facts survive. +- **AMDGPU** reads v3+ MessagePack notes; legacy YAML metadata is unsupported. + V3 processor identity comes from `EF_AMDGPU_MACH` in ELF `e_flags`, so known + processors are selectable even when the note omits `amdhsa.target`. Only the + processor is reported; version-specific feature flags are not interpreted. + Unknown processor values remain unknown, and a conflict between ELF flags and + note metadata leaves the processor unresolved. Argument counts include hidden + ABI arguments when present; SGPR/VGPR counts and fixed group/private segment + sizes keep their declared meanings. Note failures preserve earlier parsed + declarations and the original failure reason. PAL-ABI graphics code objects + carry `amdpal` rather than `amdhsa.kernels` metadata and currently report + `malformed` ([#14154](https://github.com/morluto/rea/issues/14154)). + +Standalone PTX recognition scans up to 16 MiB, allowing leading comments and +whitespace, after which `.version` must be the first module token. Inventory and +kernel inspection use strict UTF-8 and reuse a complete, valid scan. Invalid +encoding can leave a recognizable PTX object with an unknown target. A file +longer than the scan budget, including one that ends mid-character at the +budget, gives partial discovery. + +## Read PTX text Each selected PTX payload becomes a retained UTF-8 text artifact with a SHA-256, -byte length and source coordinates. It is omitted from compact replies. Read it -with `inspect_analysis_view` and the parent Evidence ID returned by the compact -receipt: +byte length and source coordinates. Compact replies omit it. Read it with +`inspect_analysis_view` and the parent Evidence ID from the compact receipt: ```json { @@ -178,15 +199,20 @@ Text offsets use UTF-16 code units and must fall on Unicode scalar boundaries. Complete Evidence retains the selected text; `export_evidence_bundle` provides its portable source record. Historical pages never reopen the input file. -A location with `container_id: null` uses original file offsets. Other locations -use that inventoried object's decoded byte coordinates. Follow its parent, -encoded location and digest to trace decompressed metadata back to a native -section and the original file. Decoded offsets are never presented as physical -file offsets. Reads from an ELF or PE GPU section stay within that declared -section extent, so neighboring native section bytes cannot complete a -truncated embedded bundle header. +## Locations -The CLI uses the same service and contracts: +A location with `container_id: null` uses original file offsets. Other locations +use that inventoried object's decoded byte coordinates; follow its parent, +encoded location and digest back to a native section and the original file. +Decoded offsets are never presented as file offsets. Reads from an ELF or PE GPU +section stay within its declared extent, so neighboring section bytes cannot +complete a truncated embedded bundle header. + +## CLI + +The CLI uses the same service and contracts. It defaults to +`--detail complete`; `--view` requires `--detail summary` and +`--evidence_output`: ```sh rea inspect-gpu-code-objects /artifacts/library.so --analysis kernels \ @@ -195,40 +221,33 @@ rea inspect-gpu-code-objects /artifacts/library.so --analysis kernels \ --evidence_output /analysis/library-gpu.evidence.json --json ``` -A full-file SHA-256 always streams every byte. Inventory then reads bounded -native directories and bundle headers; CCOB requires decompression to discover -its inner directory. Kernel analysis reads selected payloads. `bytes_read` -includes hashing and subsequent descriptor reads, so this is not a header-only -hashing workflow. +## Work and limits -CUDA raw LZ4 blocks and Zstd, and CCOB zlib/Zstd are supported. Unknown versions -or codecs retain declarations with explicit limitations. Lengths are checked -before decoding, and CCOB's truncated MD5 is verified against decoded bytes. -Resource limits are one active inspection, 128 MiB per input/output buffer, -512 MiB of payload input, decoded output and AMD note-read work per inspection, -and 16 MiB retained facts including selected PTX. Payload work is reserved before -reading or allocating; a capacity refusal does not reread an aliased payload. -Native tables and decoded section names each have a 16 MiB structural budget; -AMDGPU ELF note discovery admits at most 8 MiB of source note bytes, with -bounded depth and container/string allocations. Standalone AMD targets are read -from those notes before target selection; selected kernel analysis reuses the -same parsed declarations. Pages have a -1 MiB response budget. Resource refusals and interrupted observations preserve -known facts and explicit uncertainty. +The full-file SHA-256 always streams every byte, so this is not a header-only +workflow. Inventory then reads bounded native directories and bundle headers; +CCOB requires decompression to find its inner directory. Kernel analysis reads +selected payloads. `bytes_read` includes hashing and later descriptor reads. -CUDA ELF parsing additionally shares a 262,144 record/symbol visit limit, -128 MiB of cumulative metadata section reads, and a 16 MiB serialized-size -accounting budget for temporary index facts. These limits are checked before -index growth; they are not claims about JavaScript heap size. Equivalent scoped -metadata byte ranges and repeated equal register declarations are coalesced; -conflicting values remain unknown. Parameter sections are parsed once per ELF. +| Resource | Limit | +| ---------------------------------------------------------------- | ------- | +| Active inspections | 1 | +| Each input or output buffer | 128 MiB | +| Payload input, decoded output and AMD note reads, per inspection | 512 MiB | +| Retained facts, including selected PTX | 16 MiB | +| Native tables; decoded section names (each) | 16 MiB | +| AMDGPU ELF note source bytes | 8 MiB | +| Standalone PTX recognition scan | 16 MiB | +| CUDA ELF record and symbol visits | 262,144 | +| CUDA ELF cumulative metadata section reads | 128 MiB | +| CUDA ELF temporary index facts (serialized-size accounting) | 16 MiB | +| Response page | 1 MiB | -Missing CUBIN symbol tables or unresolved section names produce `partial` -object, report and target coverage even when some kernel facts survive. AMD note -failures preserve earlier successfully parsed declarations and the original -failure reason. Standalone PTX recognition scans up to 16 MiB, allowing for -leading comments and whitespace. After that leading text, `.version` must be -the first module token. Inventory and kernel inspection use strict UTF-8 and -reuse a complete, valid scan. Invalid encoding can leave a recognizable PTX -object whose effective target is unknown. If a file extends beyond the byte -budget, discovery is partial, including when the scan ends mid-character. +Payload work is reserved before reading or allocating, and a capacity refusal +does not reread an aliased payload. AMD note discovery also bounds depth and +container and string allocations; standalone AMD targets are read from those +notes before target selection, and kernel analysis reuses the parsed +declarations. CUDA ELF limits are checked before index growth and are not claims +about JavaScript heap size. Equivalent scoped metadata ranges and repeated equal +register declarations are coalesced; conflicting values remain unknown. +Parameter sections are parsed once per ELF. Resource refusals and interrupted +observations preserve known facts and explicit uncertainty. diff --git a/docs/il2cpp-metadata.md b/docs/il2cpp-metadata.md index 1f241da6ea..2fb59d32fa 100644 --- a/docs/il2cpp-metadata.md +++ b/docs/il2cpp-metadata.md @@ -22,8 +22,7 @@ each method to its code address. See [Native method addresses](#native-method-ad ## MCP -MCP defaults to a compact summary and retains the complete decoded Evidence in -the session. MCP requires an absolute filesystem path: +MCP requires an absolute filesystem path: ```json { @@ -34,8 +33,8 @@ the session. MCP requires an absolute filesystem path: } ``` -The summary retains the complete decoded Evidence in the session and returns a -linked `inspect_analysis_view` overview: artifact identity, metadata version, +MCP defaults to a compact summary. It retains the complete decoded Evidence in +the session and returns a linked `inspect_analysis_view` overview: artifact identity, metadata version, index widths and `counts` (`sections`, `images`, `types`, `methods`, `nested_types`, `fields`, `properties`, `events`, `parameters` and `string_literals`) without rows. Use `normalized_result.parent_evidence_id` to page @@ -136,22 +135,19 @@ budget. rea inspect-il2cpp-metadata /absolute/path/global-metadata.dat --json ``` -The CLI defaults to complete Evidence. For compact delivery, explicitly preserve -the full Evidence in a new file: +The CLI defaults to complete Evidence. Compact delivery requires +`--evidence_output`, which never overwrites an existing file. The saved bundle +preserves every decoded row; query it offline by the returned +`parent_evidence_id`, without the original file: ```bash rea inspect-il2cpp-metadata /absolute/path/global-metadata.dat \ - --detail summary --evidence_output /tmp/metadata-evidence.json --json -jq -c '{source: {kind: "inline", evidence: .records[0]}, view: {kind: "il2cpp-metadata", collection: "methods", indices: [9785], fields: ["name", "declaring_type"]}}' \ - /tmp/metadata-evidence.json > /tmp/metadata-query.json -rea inspect-analysis-view /tmp/metadata-query.json --json + --detail summary --evidence_output metadata-evidence.json --json +rea inspect-analysis-view --evidence-bundle metadata-evidence.json \ + '{"source":{"kind":"retained-evidence","evidence_id":""},"view":{"kind":"il2cpp-metadata","collection":"methods","indices":[9785],"fields":["name","declaring_type"]}}' \ + --json ``` -Use the exported Evidence with the CLI's inline Evidence source format described -in [CLI and Evidence](getting-started/cli.md#run-a-command). Compact delivery requires -`--evidence_output`; existing files are never overwritten. The full export -preserves every decoded row for subsequent queries without the original file. - `--binary PATH` links method addresses, `--architecture arm64|amd64` selects exactly one slice of a universal Mach-O and `--generic-instances` adds generic method instances. The report retains the native reader's @@ -251,12 +247,31 @@ same virtual address and file bytes contributes one record. Distinct virtual record addresses remain distinct candidates, and conflicting file mappings remain malformed. -Module records establish names through their declared NUL-terminated string pointers. NUL/0xFF padding, spaces, Unicode and suffix-shared storage are supported. A pointer to a longer string does not match just its suffix; a pointer directly into a shared suffix may name it. Exact reversed UTF-8 matching avoids rescanning the file for every name and retains duplicate-name owners until module records resolve them. A contributor investigated a Linux -`GameAssembly.so` from Unity 2023.2.13f1 whose static registration was not located. When no static pair is resolved on x86-64 or arm64, the reader searches executable ranges for bytes consistent with a reference to a module-array candidate: RIP-relative LEA/MOV on x86-64, an adjacent `adrp`/`add` pair on arm64. Exactly one referenced array candidate must remain. `code_gen_modules_field` is then `null`, and Evidence is **inferred**: instruction boundaries, the absence of a static registration elsewhere, and runtime use were not verified. The module records and slots themselves remain file observations. Static-table associations are **derived**. Otherwise the result is `code-registration-not-found`. Cpp2IL's StrippedCodeRegSupport plugin also recovers the module list of an inlined CodeRegistration from the module names; this fallback additionally requires the exact located module set and a single code reference. A Unity 2022.3.62f3 macOS Master build checked by a contributor keeps neither registration symbol; its type table is then inferred as described below. +Module records establish names through their declared NUL-terminated string +pointers. NUL/0xFF padding, spaces, Unicode and suffix-shared storage are +supported. A pointer to a longer string does not match just its suffix; a +pointer directly into a shared suffix may name it. Exact reversed UTF-8 matching +avoids rescanning the file for every name and retains duplicate-name owners +until module records resolve them. + +A static registration is not always found: contributors checked a Linux +`GameAssembly.so` from Unity 2023.2.13f1 where it was not located, and a Unity +2022.3.62f3 macOS Master build that keeps neither registration symbol. When no static pair is resolved on x86-64 or arm64, the reader +searches executable ranges for bytes consistent with a reference to a +module-array candidate: RIP-relative LEA/MOV on x86-64, or an adjacent +`adrp`/`add` pair on arm64. Exactly one referenced array candidate must remain, +and it must contain exactly the located module set. `code_gen_modules_field` is +then `null` and Evidence is **inferred**: instruction boundaries, the absence of +a static registration elsewhere, and runtime use were not verified. The module +records and slots remain file observations, and static-table associations are +**derived**. Otherwise the result is `code-registration-not-found`. Cpp2IL's +StrippedCodeRegSupport plugin similarly recovers an inlined CodeRegistration's +module list from module names. The Master build's type table is then inferred +as described below. The binary/metadata pair is caller-selected. Name/count/token agreement is structural evidence, not a cryptographic same-build proof. File-offset locations refer to the primary metadata artifact; linked virtual addresses refer to `binary.artifact`. Both SHA-256 identities remain available in compact native pages as `artifact` and `binary_source`. -Contributor-reported verification (not all rerun by the follow-up): macOS arm64 and x86_64 slices from Unity 2021.3.45f2, 2022.3.30f1, 2022.3.62f3 and +Contributor-reported verification, not all rerun by maintainers: macOS arm64 and x86_64 slices from Unity 2021.3.45f2, 2022.3.30f1, 2022.3.62f3 and 6000.0.84f1 against dSYM symbols; Android arm64 and x86-64 from 2022.3.62f3 against `libil2cpp.sym.so`; Windows x64 from 2023.2.13f1 (metadata version 29, the MIT-licensed game Between Two Worlds 1.0.5, `GameAssembly.dll` SHA-256 @@ -278,6 +293,12 @@ The result adds: `code_gen_modules_field` (the address of `codeGenModulesCount`, or `null` as described above), `code_gen_modules_array` (the module pointer array) and `code_gen_modules` (`image`, record `address`, `method_pointer_count`); + Compact summaries omit `code_gen_modules` and keep its count in + `counts.code_gen_modules`; query `collection: "code_gen_modules"` with batch + `image_indices` or source `indices`, `fields` and pagination. A module row's + `index` is its retained position and `image` joins the image collection. + Scalar registration facts and both source identities stay inline, and complete + Evidence retains the full table. - `method_addresses`: one row per method index with `state`, `address` and `rva` (address minus `image_base`), both hexadecimal strings. `state` is `code` when the module slot holds an unambiguously mapped executable address, `no-body` when an observed slot is zero, @@ -440,8 +461,6 @@ reported: versions 27.0 to 27.2 share that header number but place the Il2CppType byref flag in different bits, so a rendered name could gain or lose `&` without warning. -The builds checked are listed after the module search rules above. - | Reason | Category | Meaning | | --------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------ | | `unsupported-container` | unsupported | Not a 64-bit little-endian Mach-O, PE or ELF image (ELF: AArch64 or x86-64 with dynamic section). | @@ -459,7 +478,7 @@ The builds checked are listed after the module search rules above. | `generic-method-registration-not-found` | input error | No CodeRegistration layout bounds every genericMethodTable row, or the generic tables are unreadable. | | `ambiguous-generic-method-registration` | input error | More than one CodeRegistration layout bounds every genericMethodTable row. | -Format failures name `binary_path` and slice-selection failures name `binary_architecture`; capacity refusals remain typed resource errors whose `reported_limits` name the exceeded budget (`boundary`, the capacity reason) and its `maximum`, with `details.refusal.unit` naming the unit the budget counts (`"entries"`, `"bytes"` or `"frames"`). Failed linking preserves the metadata source identity, validated counts, selected binary path/architecture and its SHA-256 when observed, plus prior producer observations. It never publishes an incomplete native table as complete. The binary input is bounded to 1 GiB. The virtual-pointer index has the same 1 GiB estimated representation allowance, reserving 2 KiB per distinct virtual destination before insertion for retained Maps and finish-time lookup storage. Repeated declarations of one destination share that reservation. This conservative allocation accounting is separate from actual process RSS and the report allowance; exhaustion returns a typed `native-index-capacity` refusal before another destination is retained. +Format failures name `binary_path` and slice-selection failures name `binary_architecture`; capacity refusals remain typed resource errors whose `reported_limits` name the exceeded budget (`boundary`, the capacity reason) and its `maximum`, with `details.refusal.unit` naming the unit the budget counts (`"entries"`, `"bytes"` or `"frames"`). Failed linking preserves the metadata source identity, validated counts, selected binary path/architecture and its SHA-256 when observed, plus prior producer observations. It never publishes an incomplete native table as complete. The binary input is bounded to 1 GiB. The virtual-pointer index has the same 1 GiB estimated representation allowance ([#14175](https://github.com/morluto/rea/issues/14175) reports a real Unity 6 arm64 build that exceeds it), reserving 2 KiB per distinct virtual destination before insertion for retained Maps and finish-time lookup storage. Repeated declarations of one destination share that reservation. This conservative allocation accounting is separate from actual process RSS and the report allowance; exhaustion returns a typed `native-index-capacity` refusal before another destination is retained. Scans yield cooperatively in bounded batches. Name-address retention and reverse-trie construction are each limited to 65,536 entries/nodes and fallback module-array candidates to 64 (`native-index-capacity`); exceeding capacity does not prove absence. Rendered type text has a 64 MiB UTF-8 cache-workspace guard, separate from the 64 MiB encoded-report admission, and 64 nested rendering frames (`native-type-text-capacity` / `type-nesting-capacity`). Genuine cycles are malformed; unsupported type kinds are explicit coverage failures. Native row/text admission runs before allocation or retention. Unused generic parameter names are read on demand from the same stable metadata snapshot. There is no cross-inspection file cache; validated immutable Evidence is reused for session views. @@ -588,7 +607,7 @@ were compiled into the native binary or how they behave at runtime. `verify:pcap`, because no real game metadata ships with the repository. Normal inspection does not need it. -The follow-up was checked against the public Cpp2IL +Metadata inventory was checked against the public Cpp2IL [`Simple_2022_3_35` sample](https://github.com/SamboyCoding/Cpp2IL/tree/b5ad444b82267cb1e4b88b8b373c008105bdea52/TestFiles/Simple_2022_3_35): version 31, 1,892,268 bytes, SHA-256 `2441635a7c234a1a34deccc6a9906d6f5abcbdab078a38b2bf488a52a4962c48`. @@ -596,10 +615,3 @@ An independent byte-layout oracle matched all 36 images, 2,468 types and 12,409 methods. Corresponding managed DLLs independently matched names and ownership for 35 images, 2,463 types and 12,406 methods; the generated image has no matching DLL. This does not establish real-producer coverage for versions 29 or 39. - -Compact native summaries omit the `binary.code_gen_modules` table and keep its -count in `counts.code_gen_modules`. Query `collection: "code_gen_modules"` -with batch `image_indices` or source `indices`, selected `fields` and pagination. -Module row `index` is its retained collection position; `image` joins the -metadata image collection. Scalar registration facts and both source identities -remain inline. Complete Evidence retains the original full table. diff --git a/docs/model-artifacts.md b/docs/model-artifacts.md index 542d016577..ab713bdbac 100644 --- a/docs/model-artifacts.md +++ b/docs/model-artifacts.md @@ -5,10 +5,11 @@ GGUF v2/v3 or safetensors file. Detection uses content, including GGUF byte order, rather than its extension. REA does not load a model, interpret weights, run inference, import Python, open external-data references or use the network. -Unsupported GGUF versions remain refused. Their diagnostic preserves the four -version bytes and both UINT32 interpretations with byte order unknown, rather -than inferring big-endian from an unrecognized little-endian value. Little-endian -v2/v3 and big-endian v3 remain supported; big-endian v2 remains refused. +Little-endian GGUF v2/v3 and big-endian v3 are supported. Big-endian v2 is +refused as "Big-endian GGUF requires version 3". Other versions are refused +with the four version bytes and both UINT32 interpretations, byte order +unknown, rather than inferring big-endian from an unrecognized little-endian +value. ```bash rea inspect-model-artifact /absolute/path/model.gguf --json @@ -58,20 +59,21 @@ byte length. Alignment accepts every positive UINT32 multiple of eight, includin non-powers of two. Partial Evidence retains explicit alignment once validated; the default alignment becomes known after metadata completes. Cancellation retains completed declarations with unknown digests and unverified final file -identity. Metadata keys preserve their spelling and use lowercase -ASCII alphanumeric components separated by dots, underscores or hyphens; -standard numeric components such as `general.base_model.0.name` are preserved. -Hyphenated components are retained for compatibility with the published -llama.cpp v0.7.0 writer, which emits keys such as -`gpt-oss.context_length` and `wavtokenizer-dec.context_length`; the current +identity. + +Metadata keys preserve their spelling and use lowercase ASCII alphanumeric +components separated by dots, underscores or hyphens, including numeric +components such as `general.base_model.0.name`. Hyphens are accepted because +the published llama.cpp v0.7.0 writer emits keys such as +`gpt-oss.context_length` and `wavtokenizer-dec.context_length`, even though the +current [GGUF specification](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md#standardized-key-value-pairs) -restricts `general.architecture` values to letters and digits. -This documents producer output that conflicts with that written restriction, -not a claim that the specification permits hyphens. See the pinned +restricts `general.architecture` values to letters and digits. See the pinned [WAVTOKENIZER_DEC](https://github.com/ggml-org/llama.cpp/blob/620d2225cc436ab0b001e3200e590e3b286ef9ab/gguf-py/gguf/constants.py#L1447) and [GPT_OSS](https://github.com/ggml-org/llama.cpp/blob/620d2225cc436ab0b001e3200e590e3b286ef9ab/gguf-py/gguf/constants.py#L1466) architecture names, [context-length key template](https://github.com/ggml-org/llama.cpp/blob/620d2225cc436ab0b001e3200e590e3b286ef9ab/gguf-py/gguf/constants.py#L110), and [writer method](https://github.com/ggml-org/llama.cpp/blob/620d2225cc436ab0b001e3200e590e3b286ef9ab/gguf-py/gguf/gguf_writer.py#L698-L699). + Scalar metadata is complete. Arrays have declared element types, counts and at most eight preview elements per array, with an explicit `preview_complete` flag. This includes tokenizer vocabularies: omitted values @@ -123,7 +125,7 @@ to the default 32-byte alignment; the final column shows why even the same file extents need not distinguish these layouts. REA preserves each K type's name and enforces the common 64-element row multiple, which does not establish a storage block size. Nonempty K tensor -lengths and affected totals are now unknown, including common modern files. +lengths and affected totals are unknown, including common modern files. Empty K tensors still have derived zero-byte storage. Integer IDs also shifted each time IQ types were added. These released @@ -149,7 +151,7 @@ multiple released meanings. REA keeps its numeric `type_id`, uses limitation. Nonempty byte lengths are unknown. Empty declarations still derive zero-byte storage, while their textual identity remains ambiguous. Type filters match the reported `AMBIGUOUS_` label. ID 26 remains I32 across these -snapshots; later stable entries retain their existing interpretation. This audit +snapshots; later stable entries retain their existing interpretation. This does not establish compatibility with every producer fork or future revision. The inventory does not select a historical layout from model names, global @@ -228,7 +230,7 @@ complete detail and a selection are rejected as conflicting choices. CLI uses `--view '{"collection":"tensors","names":["token_embd.weight"]}'` with `--detail summary --evidence_output FILE`. -Call `inspect_analysis_view` with the historical query object above for further pages. `collection: "metadata"` accepts +Call `inspect_analysis_view` with the query object above for further pages. `collection: "metadata"` accepts exact `keys`, indices, fields and paging; use it for `tokenizer.chat_template` or tokenizer array previews. `collection: "types"` pages derived storage and parameter totals and accepts exact `types`. Tensor pages also accept `types`. diff --git a/docs/rust-binaries.md b/docs/rust-binaries.md index 59a27d6131..7868e8ce46 100644 --- a/docs/rust-binaries.md +++ b/docs/rust-binaries.md @@ -95,10 +95,10 @@ limitation and leaves `.dep-v0` presence unknown rather than reporting the section absent. The inline Evidence result contains the artifact path, SHA-256, byte length, -container format, architecture, word size, and byte order. `bits` is -`32 | 64 | null`. ELF, PE and Mach-O reports are 32 or 64. WebAssembly is -null: the container declares no word size, null is not a number, and -consumers must not coerce it. The summary view uses the same field. When a `.dep-v0` +container format, architecture, word size, and byte order. `bits` is 32 or 64 +for ELF, PE and Mach-O and `null` for +[WebAssembly](#webassembly-modules), in both complete and summary results; do +not coerce the null to a number. When a `.dep-v0` section is present, `auditable_metadata` contains: - `section_name`, `.dep-v0` for ELF, PE, and WebAssembly or `__DATA,.dep-v0` @@ -151,11 +151,9 @@ section named `.dep-v0`. For a version 1 core module, such as `wasm32-unknown-unknown` or `wasm32-wasip1` output, the reader walks the section framing without validating, instantiating, or executing the module. The report's `format` and `architecture` are `wasm` and its `byte_order` is -`little`. `bits` is `null` on the `32 | 64 | null` word size: WebAssembly -declares no container word size, and memory address types are not inspected. -JSON output keeps that null. The shared CLI renderer does not substitute a -number. The Evidence subject format is -`file`, as for `inspect_wasm_artifact`. +`little`. `bits` is `null` because WebAssembly declares no container word size; +memory address types are not inspected, and the CLI does not substitute a +number. The Evidence subject format is `file`, as for `inspect_wasm_artifact`. A header, section or section size that ends past the file is truncated. A custom-section name or name length that extends past its section, a size that @@ -168,10 +166,16 @@ selects a universal Mach-O slice. ## Limits and failures -The selected file is limited to 256 MiB. A dependency section's zlib stream is -limited to 1 MiB compressed. Inflated JSON is limited to the smaller of 8 MiB -and 64 times the compressed stream length. The complete report is limited to -8 MiB. Empty sections, +| Limit | Value | Override | +| ------------------------- | --------------------------------------------- | ------------------------------ | +| Selected file | 256 MiB | `producer_limits.input_bytes` | +| Complete report | 8 MiB | `producer_limits.output_bytes` | +| Compressed `.dep-v0` zlib | 1 MiB | Fixed | +| Inflated JSON | Smaller of 8 MiB and 64 × the consumed stream | Fixed | +| Distinct rustc hashes | 64 | `max_rustc_hashes` | +| WebAssembly sections | 65,536 | Fixed (`max_wasm_sections`) | + +Empty sections, truncated streams, nonpadding bytes after a zlib stream, invalid JSON, duplicate object fields, unknown fields, dependency indices outside the package list, more than one root package, and compressed @@ -243,15 +247,11 @@ the recognized canonical family: `386` maps to `x86`, `amd64` to `x86_64`, and `ppc` to `powerpc`. Unknown families such as `ppc64` remain unknown rather than being inferred from a related spelling. -Input and complete-report admission are caller choices through `producer_limits`: -`input_bytes` defaults to 256 MiB and `output_bytes` to 8 MiB. Both accept positive -safe integers and apply to the next call without restarting REA. On CLI, use -`--producer-limits '{"input_bytes":536870912,"output_bytes":16777216}'`. -Graph expansion and compiler-path retention consume the same selected report -allowance. The independent compressed dependency limit (1 MiB), inflated JSON -limits (8 MiB and 64 times the consumed stream), parser nesting and transport -budgets remain enforced; increasing report admission does not raise those. -When PE file alignment adds padding, the reader learns the exact consumed +`producer_limits.input_bytes` and `output_bytes` accept positive safe integers +and apply to the next call without restarting REA, for example +`--producer-limits '{"input_bytes":536870912,"output_bytes":16777216}'`. Graph +expansion and compiler-path retention share the report allowance. Raising it +does not raise the fixed limits, parser nesting or transport budgets. When PE file alignment adds padding, the reader learns the exact consumed stream length only after inflation completes. If inflation stops first, `reported_limits.maximum_bytes` gives the allocation ceiling in force, the smaller of 8 MiB and 64 times the stored extent. If inflation completes, the diff --git a/docs/unityfs.md b/docs/unityfs.md index 90f98a5520..f77a5ca0fe 100644 --- a/docs/unityfs.md +++ b/docs/unityfs.md @@ -5,57 +5,71 @@ containers without running Unity or the producer application. Header format versions 6 through 8 are supported. Version 9 adds a different block-table layout and is unsupported until independently verified. -Inspection retains the header facts: format version, player and engine version -strings, declared size, dataflags, blocks-and-directory table bounds, the -producer's 16-byte data hash as declared, and the resolved data-area offset. -Desktop application inspection uses the same header bounds. When the initial -file probe stops before both version strings and the fixed fields are read, -its normal probe budget applies to the additional bytes. +## Header and members + +Inspection retains the format version, player and engine version strings, +declared size, dataflags, blocks-and-directory table bounds, the producer's +16-byte data hash as declared, and the resolved data-area offset. Desktop +application inspection uses the same header bounds; when its initial file probe +stops before both version strings and the fixed fields, the normal probe budget +applies to the additional bytes. + Members (`CAB-*` SerializedFiles, `.resS` resource streams, shared assets) retain declared source paths, virtual stream offsets, sizes and raw node flags. The directory flag identifies directories. `compare_artifacts` compares each member's declared `source_path` and raw `flags`; its index and offset are -layout. Virtual offsets are not physical -carrier locations: member `source_location` is null. Member reads only examine -their covering blocks. Uncompressed ranges stream directly; compressed ranges -reuse at most one completed decoded block. Independent 64 KiB output chunks -preserve cache ownership. Carrier freshness is checked when a member is opened, -including when a cached block suffices, and after its stream completes. Reader close cancels and -joins outstanding streams before releasing its descriptor. +layout. Virtual offsets are not physical carrier locations, so member +`source_location` is null. + +Member reads examine only their covering blocks. Uncompressed ranges stream +directly; compressed ranges reuse at most one completed decoded block, and +independent 64 KiB output chunks preserve cache ownership. Carrier freshness is +checked when a member is opened, including when a cached block suffices, and +after its stream completes. Closing the reader cancels and joins outstanding +streams before releasing its descriptor. + +## Compression, encryption and malformed input Data blocks compressed with none, LZ4 or LZ4HC are supported. LZMA-compressed blocks and blocks-info tables are reported as unsupported coverage or an -`unavailable` member read; the directory and any readable members are still -retained. Bundles declaring asset-bundle encryption keep their header facts -but report unknown directory coverage; no decryption is attempted. The reused -0x200 encryption/padding flag is interpreted by producer revision. Ambiguous +`unavailable` member read; the directory and readable members are still +retained ([#14176](https://github.com/morluto/rea/issues/14176)). + +Bundles declaring asset-bundle encryption keep their header facts but report +unknown directory coverage; no decryption is attempted. The reused 0x200 +encryption/padding flag is interpreted by producer revision, and ambiguous revisions retain unknown layout coverage. Unread block counts and data offsets -are null, never invented zeroes. A declared -size that exceeds the input file or excludes its header, directory or data -blocks is a malformed-input error, as are node paths outside the block stream -and counts that cannot fit their table. Directory and data ranges use the -declared bundle extent; appended carrier bytes do not replace an end-positioned -directory or become bundle members. +are null, never invented zeroes. + +These are malformed-input errors: a declared size that exceeds the input file +or excludes its header, directory or data blocks; node paths outside the block +stream; and counts that cannot fit their table. Directory and data ranges use +the declared bundle extent, so appended carrier bytes neither replace an +end-positioned directory nor become members. ## Resource bounds -These are resource policies, not format maxima. Encoded and decoded directory -buffers are each limited to 16 MiB. Buffers, parsed rows, retained entries and -path projections share a conservative 64 MiB admission budget, reserved before -allocation. Each LZ4 decode allows at most 64 MiB of output and its bounded -encoded representation; plain blocks stream without this allocation. A reader -admits four active member streams. The shared archive plaintext-work ceiling -is the larger of 256 MiB and 500 times declared bundle size: declared stream bytes, -readable logical occurrences (including aliases), and cumulative block-decode -attempts are each charged against that ceiling. Empty-output blocks retain -their source count and offsets but are removed from member read plans. A separate -member-I/O budget allows four times the larger of 1,024 and the sum of nonempty -blocks, directory nodes, and readable 64 KiB plaintext chunks. It admits ordinary -passes while bounding repeated tiny-block reads independently of output bytes. Unavailable content is retained -as named occurrences with unknown coverage and no invented content hash. +These are resource policies, not format maxima. -Use existing summary delivery and retained inventory views for selected fields, -filters and paging; full Evidence remains available without repeating the graph. +| Resource | Bound | +| ----------------------------------------------- | -------------------------------------------------------------------------------------- | +| Encoded and decoded directory buffers | 16 MiB each | +| Buffers, parsed rows, entries, path projections | 64 MiB shared admission, reserved before allocation | +| One LZ4 decode | 64 MiB output plus its bounded encoded input; plain blocks stream without it | +| Active member streams per reader | 4 | +| Archive plaintext work | Larger of 256 MiB and 500 × declared bundle size | +| Member I/O operations | 4 × the larger of 1,024 and nonempty blocks + directory nodes + readable 64 KiB chunks | + +Declared stream bytes, readable logical occurrences (including aliases) and +cumulative block-decode attempts are each charged against the plaintext-work +ceiling. The member-I/O budget admits ordinary passes while bounding repeated +tiny-block reads independently of output bytes. Empty-output blocks retain their +source count and offsets but are removed from member read plans. Unavailable +content is retained as named occurrences with unknown coverage and no invented +content hash. + +Use summary delivery and retained inventory views for selected fields, filters +and paging; full Evidence remains available. ## CLI @@ -67,7 +81,7 @@ rea extract-artifact assets/hotfix.bundle --json Detection is byte-based on the `UnityFS\0` signature, so `.bundle`, `.ab`, `assets_*` YooAsset bundles and extensionless files all classify as `unityfs` -containers. Compact delivery keeps complete Evidence in the requested bundle. +containers. ## Verification scope @@ -75,19 +89,22 @@ Synthetic fixtures cover format 6–8 layouts, padding independent of header alignment, directories, malformed tables, allocation admission, overlapping members, unsupported LZMA, cancellation inside decoding, paused iteration, close during I/O, cleanup retry, empty blocks with unsupported codecs, cache -freshness and independent output buffers. -Compiled CLI and full/compact MCP tests cover inventory and extraction. +freshness and independent output buffers. Compiled CLI and full/compact MCP +tests cover inventory and extraction. -A public UnityPy `atlas_test` bundle (Unity 2018.4.11f1, format 6) is verified -against independent UnityPy 1.24.2 raw member bytes. Source SHA-256: -`61ee5afb5f5c64f0a4f65f039d09b2509198363e713423289c895067ac215177`. -The source is pinned to UnityPy commit -`417d59522a998fdee9a9c2b29fe35f3063222457`. The same public corpus supplies -`banner_1` (2018.4.4f1) and `char_118_yuki.ab` (5.6.7f1), whose raw members -also match the independent oracle. `xinzexi_2_n_tex` (2017.4.37f1) uses LZMA -data: its member names and sizes are retained with unavailable hashes and -unknown coverage. UnityPy-produced repacks additionally verify format 7/8, -padded and unpadded front tables, end tables, and unsupported LZMA directories. -These repacks are library-produced tests, not Unity engine executions. Synthetic -fixtures alone do not establish real Unity version coverage. SerializedFile objects, textures and runtime -behavior are outside this container reader's verification scope. +Public bundles from the UnityPy corpus, pinned to commit +`417d59522a998fdee9a9c2b29fe35f3063222457`, are checked against independent +UnityPy 1.24.2 raw member bytes: + +| Bundle | Unity version | Result | +| ------------------ | --------------------- | ------------------------------------------------------------------------------------------ | +| `atlas_test` | 2018.4.11f1, format 6 | Members match (SHA-256 `61ee5afb5f5c64f0a4f65f039d09b2509198363e713423289c895067ac215177`) | +| `banner_1` | 2018.4.4f1 | Members match | +| `char_118_yuki.ab` | 5.6.7f1 | Members match | +| `xinzexi_2_n_tex` | 2017.4.37f1, LZMA | Names and sizes retained; hashes unavailable, coverage unknown | + +UnityPy-produced repacks additionally verify format 7/8, padded and unpadded +front tables, end tables, and unsupported LZMA directories. They are +library-produced, not Unity engine executions, and synthetic fixtures alone do +not establish real Unity version coverage. SerializedFile objects, textures and +runtime behavior are outside this reader's verification scope.