Repository navigation
feat(dxf): score SORTENTSTABLE in the value oracle (§20.4.93) - #351
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. |
DrunkOnJava
force-pushed
the
feat/dxf-oracle-sortentstable
branch
from
October 26, 2026 21:57
ea50918 to
be89ec5
Compare
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
DrunkOnJava
force-pushed
the
feat/dxf-oracle-sortentstable
branch
from
October 26, 2026 21:57
be89ec5 to
60799df
Compare
3 tasks done
DrunkOnJava
enabled auto-merge (squash)
October 27, 2026 10:31
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
….tsv too The README's oracle line was typed by hand and went stale when #351 landed: 105,690 equal fields became 105,756. readme_status.py now renders it from the oracle baseline that CI pins, and --check covers it.
5 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
…red table from the baseline (#376) * docs: bring README.md and RELEASE.md up to main, and render the measured table from the baseline README.md still showed the 2026-10-26 measurement: 13,781 decoded, 308 errored, 85.7 %, with the errors tracked in four issues that are now closed. main measures 15,527 decoded, 547 skipped and 0 errored on the 52 pinned drawings (96.6 %). The README now says that, lists the 30 skipped types with the open PR for each, gives the DXF value oracle's totals, and brings the capability matrix, the streaming section, the CLI list and the "does not do" list up to what has landed. The table and the totals are rendered from tools/corpus/baseline.tsv by tools/maintainer/readme_status.py (--write, --check). audit.py runs the check, and docs/maintaining.md adds housekeeping item 10: refresh the README after any landing that moves the baseline or ships a capability. STATUS.md's coverage line uses the same blocks. RELEASE.md cited a "#418" and "Q-07" that do not exist, listed five CLI tools where release.yml builds seven, and promised "4 binaries on 3 platforms" where it ships seven on five targets. It now names the twelve required checks and the README refresh as release steps. * docs: the README names #374 as landed and #375 as what remains of code pages * docs: render the DXF value oracle's totals from tools/oracle/baseline.tsv too The README's oracle line was typed by hand and went stale when #351 landed: 105,690 equal fields became 105,756. readme_status.py now renders it from the oracle baseline that CI pins, and --check covers it. * fix(tools): readme_status requires every marker block in both documents A STATUS.md edit that dropped or damaged its corpus-summary markers made --check pass with stale numbers, and --write left them untouched. Each document now lists the blocks it must carry. --check reports a block that is missing or doubled, and --write refuses to run until it is fixed. * docs: record #379 and #351, and re-render the numbers they moved #379 decoded the last two skipped types that had no decoder in progress, so every skipped type now has one in review, and #351 changed the oracle's totals. readme_status.py re-renders both, and the CHANGELOG gets the three 2026-10-27 entries the catch-up (#378) predates.
This was referenced Oct 27, 2026
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 SORTENTSTABLE (§20.4.93, decoded by #307) against AutoCAD's DXF export. The decoder reads the 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 entry count is compared with the number of those 5 groups, and each sort handle with the next 5, all entries under one field. The section map files the class under §20.4.93.
Measured (49 drawing pairs)
These are the same 66 values
examples/probe_sortentstablecompares: 18 entry counts and 48 sort handles.tools/oracle/baseline.tsvgains the 12 new rows (ratchet against main's: no count fell). The §20.4.93 row's probe sentence is corrected: it said the export equals "the 24 R2000 to R2018 records", but the probe compares 18; the other 6 R2018 records are export_sample.dwg's, which has no DXF twin.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.93 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.