Repository navigation
fix(objects): route the R14 XRECORD class to the §20.4.104 decoder (#149) - #254
Merged
Merged
Conversation
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. |
) §20.4.104 types XRECORD (varies): from R2000 it has the fixed code 0x4F, but R14 files give it a class number from AcDb:Classes, and dispatch sent only the fixed code to objects::xrecord. Routing the XRECORD class name there decodes all 1,154 R14 XRECORDs of the public corpus, each closing on its boundary; no XRECORD in the 52-file corpus is now skipped or errors. §20.4.104 moves to closes; tools/corpus/baseline.tsv records the eight R14 drawings' new decoded and skipped counts.
DrunkOnJava
force-pushed
the
fix/149-xrecord-r14
branch
from
October 26, 2026 10:34
5edb122 to
47a9b3f
Compare
DrunkOnJava
enabled auto-merge (squash)
October 26, 2026 10:34
DrunkOnJava
disabled auto-merge
October 26, 2026 10:43
DrunkOnJava
enabled auto-merge (squash)
October 26, 2026 10:57
This was referenced Oct 26, 2026
Merged
Merged
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
Route the
XRECORDclass name to the existing XRECORD decoder. On R14, XRECORD has a class number from AcDb:Classes rather than the fixed code0x4F, so every R14 XRECORD was skipped. All 1,154 R14 XRECORD records of the public corpus now decode, and each closes on its boundary. No XRECORD anywhere in the 52-file corpus is skipped or errors.Spec reference
§20.4.104 XRECORD, typed
(varies):BLnumdatabytes, the databytes, thenBScloning flag on R2000+.src/objects/xrecord.rsalready reads exactly this and closes on every R2000-R2018 record; dispatch sent only the fixed code0x4Fthere. #149's measurement (the probe in #222) showed all 345 R14 records of the 19-file corpus close under that list. This PR adds the onedispatch_object_classarm.The RS-versus-RC string-length finding in #149 is about the body's group-code pairs. The decoder still carries the body as bytes, so this PR does not use that finding and does not depend on it.
Coverage,
../../samplescargo run --release --example coverage_report -- ../../samples, base2e9f7e2:XRECORD (custom class) → 345leaves the unhandled histogram; nothing enters the error histogram.Public corpus:
tools/corpus/baseline.tsv(regenerated, committed)python3 -I tools/corpus/measure.py run --corpus <fetch dest> --bin target/release/examples --out r.jsonthenmeasure.py check --results r.json(exit 0 aftermeasure.py baseline):Only the decoded and skipped columns move, and only on the eight R14 drawings. The R14 band (8 files) goes from 1841 decoded / 1351 skipped / 105 errored to 2995 / 197 / 105, and the 52-file total from 13781 / 1985 / 308 to 14935 / 831 / 308. The census, tiling and reference columns are unchanged.
Class census and reference closure
probe_class_censusandprobe_reference_closureon all 19 files of../../samplesgive output identical to the run before the change. The census and closure columns of the 52-row baseline do not move.Docs
docs/data/spec-coverage.tsv§20.4.104partial→closes. The old note ("Skipped as unmatched across the corpus") is replaced: it was true only of R14.docs/spec-coverage.mdis regenerated.src/objects/xrecord.rs: the stale§19.6.5 / §19.5.67citations are corrected to §20.4.104, and the module doc records the R14 measurement.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningsRUSTFLAGS="-D warnings" cargo test --release --all-features(real-file tests ran against../../samples)RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-featurestools/corpus/measure.py checkpasses against the committed baselineSource-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).My contribution is based on §20.4.104 of the ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1) and on the corpus bytes. No third-party code or comments were read.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.