Repository navigation
fix(sections)!: DataPageHeader carries the measured §4.6 layout - #314
Merged
Merged
Conversation
section_map::DataPageHeader labelled its eight words after the §4.6 table, and from 0x14 on the labels matched no data page of the pinned corpus. After the Sec_Mask XOR, on all 580 data pages of the 28 pinned R2004-family drawings and the four canonical fixtures (examples/probe_data_page_header --strict, which the Corpus job runs): 0x08 data size (the stored bytes after the header), 0x0C page size (the page map's size for the page, not the decompressed size), 0x10 start offset (8 bytes), 0x18 header checksum (§4.2 over the header with its own field zeroed, seeded with the data checksum) and 0x1C data checksum (§4.2 over the stored bytes, seed 0). Breaking: start_offset is u64 (was u32); page_header_checksum (0x14, the high half of the start offset) is gone; header_checksum (0x18) is new; data_checksum reads 0x1C (it read 0x18); _unknown (0x1C) is gone. read_section_payload takes its LZ77 capacity hint from the section's declared page size instead of the page's size on disk; a hint only, the assembled bytes are unchanged (verify_sections.py's legacy comparison runs on it). ARCHITECTURE.md §7n, the probe's wording and CHANGELOG.md say so. Refs #205
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
section_map::DataPageHeadercarries the layout measured on every data page of the pinned corpus instead of labels that matched none past offset 0x14. Breaking change, recorded in CHANGELOG.md. Refs #205; Griffin's decision relayed by the integrator.Spec reference
ODA v5.4.1 §4.6 and §4.2. Evidence:
cargo run --release --example probe_data_page_header -- --strictreads 580 of 580 data pages of the 28 pinned R2004-family drawings (592 of 592 with the four canonical fixtures) as0x08data size,0x0Cpage size (the page map's size for the page, not the decompressed size),0x10start offset (8 bytes),0x18header checksum (§4.2 over the header with its own field zeroed, seeded with the data checksum) and0x1Cdata checksum (§4.2 over the stored bytes, seed 0); the former labels agree with 0 of 580 (ARCHITECTURE.md §7n). The Corpus job already runs the probe with--strict.Test plan
start_offset: u32->u64;page_header_checksumand_unknownremoved;header_checksumadded;data_checksumnow reads0x1C.read_section_payloadtakes its LZ77 capacity hint from the section's declared page size (a hint only).cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features,cargo +1.85 check --all-features.--strict, exit 0);tools/streaming/verify_sections.py(its legacy comparison reads every section of 25 real/canonical drawings throughread_section_payload, byte-equal to an independent assembly) passes unchanged.probe_section_pages,stream_lz77) compile unchanged.Source-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
CLEANROOM.md).dwg-rsis Apache-2.0 and must remain compatible.My contribution is based on: