fix(hopper): bind file mappings to verified source bytes

Read source digests, FAT tables and embedded headers from one opened source stream before translating native offsets. Preserve native mapping observations through changed, missing, nonregular and access-denied source failures; keep filesystem work outside the Hopper API thread.

Exercise source drift, relocated slices, missing files, permissions and recovery through real Hopper CLI/MCP verification for thin, FAT32 and FAT64 inputs.
This commit is contained in:
morluto
2026-10-09 06:13:41 +08:00
parent ae06dcf83f
commit 82626c4499
14 changed files with 536 additions and 85 deletions
@@ -0,0 +1,12 @@
/** Native mapping facts retained when original-file coordinates cannot be verified. */
export interface FileOffsetPartialObservation {
readonly operation: "address_to_file_offset";
readonly address: string;
readonly provider_file_offset: number;
readonly provider_source_path: string | null;
readonly provider_image_header_hex: string | null;
readonly original_file_offset: {
readonly available: false;
readonly reason: string;
};
}