Repository navigation
feat(dxf): score TOLERANCE in the value oracle (§20.4.49) - #392
Merged
Merged
Conversation
The TOLERANCE decoder (#226) is now compared with AutoCAD's export field by field, under AcDbFcf: the insertion point (10), the x direction (11), the extrusion (210) and the text (1, with the export's caret escapes undone). The R13-R14 unknown short, height and dimgap are not in an R2000+ record, and the dimension style is a handle. On the 49 drawing pairs: 18 records, R2000 to R2018 (3 per release), 72 values equal the export and 54 by its default (the extrusion, which it omits when it is (0, 0, 1)); none differ. The export omits the x direction on every record, so its 54 decoded values have no DXF group to compare. tools/oracle/baseline.tsv gains the 60 new rows, and the §20.4.49 row of docs/spec-coverage.md says what the oracle measured. The oracle's section map files TOLERANCE under §20.4.49. Refs #99, #102, #140
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. |
# Conflicts: # docs/data/spec-coverage.tsv # docs/spec-coverage.md # tools/oracle/baseline.tsv
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff9eb8aae7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # README.md # STATUS.md
DrunkOnJava
enabled auto-merge (squash)
October 28, 2026 10:50
2 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
The value oracle scores TOLERANCE (§20.4.49, decoded by #226) against AutoCAD's DXF export under AcDbFcf: 18 records, R2000 to R2018 (3 per release).
Scored: the insertion point (10), the x direction (11), the extrusion (210) and the text (1, with the export's caret escapes such as
^Jundone before comparing). The R13-R14 unknown short, height and dimgap are not in an R2000+ record, and the dimension style is a handle.Spec reference
Spec §20.4.49 TOLERANCE. Before and after, on the 49 drawing pairs:
No field comes out different. The 54
defaultvalues are the extrusion, which the export omits when it is (0, 0, 1) (the DXF Reference's default). The 54 DWG-only values are the x direction: the export omits group 11 on every record, and the DXF Reference gives it no default, so the oracle does not assume one. The not-decoded groups are the dimension style name (3), the owner (330) and the layer (8).tools/oracle/baseline.tsvgains the 60 new rows; no existing row changes (the ratchet against main's baseline passes). The §20.4.49 row ofdocs/spec-coverage.mdsays what the oracle measured; its state stayscloses.Test plan
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test --release --all-features,RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features,python3 tools/ci/spec_coverage.py --checkSource-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:
CLEANROOM.md.No such reading was needed: the mapping is the spec's DXF column and the DXF Reference's AcDbFcf groups, read from AutoCAD's own exports as data.
See
CLEANROOM.mdfor the full allowed/forbidden source list and the honest scope of what "clean-room" means for this project.Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the
Developer Certificate of Origin 1.1.
Specifically, I affirm that the contribution is my own work (or rightfully
licensed to me) and that it can be distributed under the project's Apache-2.0
license.
I will sign off commits with
git commit -swhen asked, which adds aSigned-off-bytrailer to the commit message asserting the DCO.Refs #99, #102, #140.