Repository navigation
feat(dxf): score SPATIAL_FILTER in the value oracle (§20.4.94) - #352
Open
DrunkOnJava wants to merge 2 commits into
Open
DrunkOnJava wants to merge 2 commits into
DrunkOnJava wants to merge 2 commits into
Conversation
The SORTENTSTABLE decoder (#307) reads §20.4.93's BL entry count and that many sort handles, handle code 0 in the data stream. The DXF writes each entry as 331 (the entity, a handle of the handle stream the decoder does not read) then 5 (the sort handle), after the record's own 5. The oracle compares the entry count with the number of those 5 groups and each sort handle with the next one, all entries under one field, and files the class under §20.4.93. On the 49 drawing pairs: 18 records, R2000 to R2018 (three per release), all 66 values equal the export, the 66 the decoder's probe reports. tools/oracle/baseline.tsv gains the 12 new rows, and the §20.4.93 row of docs/spec-coverage.md says what the oracle measured. That row's probe sentence said the export equals "the 24 R2000 to R2018 records"; the probe compares 18, and the other 6 R2018 records are export_sample.dwg's, which has no DXF twin. Refs #99, #102, #149
The SPATIAL_FILTER decoder (#308) is now compared with AutoCAD's export under AcDbSpatialFilter: 70 (the point count), 10/20 per boundary point, 210/220/230, 11/21/31, 71, 72 and 73, then as groups 40 in stream order the front clip distance (when on) and the two twelve-value matrices; the export writes the back clip distance as 41 where the spec gives 40, as the decoder's probe measures. The boundary points count under one field, and the section map files the class under §20.4.94. On the 49 drawing pairs: 6 records, all 228 decoded values equal the export. tools/oracle/baseline.tsv gains the 216 new rows, and the §20.4.94 row of docs/spec-coverage.md says what the oracle measured. Refs #99, #102, #149
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. |
This was referenced Oct 27, 2026
This branch has not been deployed
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 SPATIAL_FILTER (§20.4.94, decoded by #308) against AutoCAD's DXF export, under AcDbSpatialFilter:
The export writes the back clip distance as 41 where the spec gives 40, as the decoder's probe measures. The section map files the class under §20.4.94.
Stacked on #351: its §20.4.93 row and baseline rows sit next to this PR's, so this branch carries #351's commit below its own. Review only the top commit. Queue it after #351.
Measured (49 drawing pairs)
tools/oracle/baseline.tsvgains the 216 new rows (ratchet against main's: no count fell). The probe reports 234 compared values. The difference is its two group-count checks (40 and 41) per record, which the oracle counts as the values themselves.Test plan
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,python3 tools/ci/spec_coverage.py --check--baseline tools/oracle/baseline.tsv(main's): exit 0; the regenerated TSV is committedcargo run --release --example spec_examples: OK: 425 checksSource-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).Based on ODA spec v5.4.1 §20.4.94 and AutoCAD's DXF exports read as data.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.
Refs #99, #102, #149.