Repository navigation
feat(objects): decode ACDBASSOCPERSSUBENTMANAGER and ACDBPERSSUBENTMANAGER from AutoCAD's own DWG and DXF output (#152) - #379
Merged
Conversation
…NAGER from AutoCAD's own DWG and DXF output (#152) ODA spec v5.4.1 prints no layout for either persistent-subentity manager. Derived by the CLEANROOM.md method of 2026-10-26 from the data bits of the 14 corpus records (one per class per release, R14 to R2018, all from ACadSharp's sample_base) against the object of the same handle in the DXF export: a BL version, then arrays of BL (a BL count and that many BL); the ASSOC adds an ids array, one array per id, one more array at version 2 and a final B. All 14 close on the data-stream boundary, from R2007 on an empty string stream, and 120 values equal the DXF on R2000 to R2018 with 0 differences, the number of groups 90 included. The DXF writes every number as group 90, so where each array ends, the meaning of every value, the BL width (BS is bit-identical) and whether the version-2 array is gated by the version word or the release are unverified by value; one drawing supplies all 14 records. A version word the corpus does not hold is refused as unsupported. The DXF oracle scores both classes (108 new rows, 0 different). Baseline: decoded +2, skipped -2 on each of the seven sample_AC10xx drawings. Tests touched: none; none added.
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
enabled auto-merge (squash)
October 27, 2026 12:09
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
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
Decodes ACDBASSOCPERSSUBENTMANAGER and ACDBPERSSUBENTMANAGER, the last two skipped types with no decoder and no open PR, on every release from R14 to R2018, and scores both in the DXF value oracle. ODA spec v5.4.1 prints no layout for either; the field lists are derived by the CLEANROOM.md method of 2026-10-26 from the data bits of the 14 corpus records against AutoCAD's own DXF export of the same handles: a
BLversion and arrays ofBL(aBLcount, then that manyBL); the ASSOC adds an ids array, one array per id, one more array at version 2 and a finalB(group 290).Spec reference
None: §20.4 has no entry for either class, so there is no
docs/data/spec-coverage.tsvrow; a class row is added todocs/spec-coverage.md("Classes the spec does not prescribe") ascloses. Layout and evidence: ARCHITECTURE.md §7aq (provisional letter; the train renumbers). Per-class record: CLEANROOM.md (2026-10-27). Tracking: #152.Corpus measurement (
tools/corpus/measure.py run, thencheckagainst the regenerated baseline, over the 52 pinned drawings):mainbaseline)+2 decoded and -2 skipped on each of
sample_AC1014tosample_AC1032(7 drawings, 14 records), nothing else moves.Evidence (
cargo run --release --example probe_assoc_pers_subent -- ../dwg-corpusandprobe_pers_subent):Every group 90 of both DXF objects is compared with the decoded
BLs in file order, their number included (so a shorter or longer decode fails on the count), and group 290 with the finalB. The DXF value oracle scores both with the same pairing by handle: 64 and 44 values equal on six releases, 0 different, and the 12 groups left are the owner and reactor (330).tools/oracle/baseline.tsvgains 108 rows and loses none; the ratchet passes.What the corpus cannot tell apart is listed, not hidden. All 14 records are one drawing (ACadSharp's
sample_base, handles 0xD62 and 0xD63 on every release), so every field stays provisional (#348). Unverified by value:BL0, the leadingBL3 (and PERS'sBL0) as a lone scalar.BLwidth: every value is under 256, soBSis bit-identical; the 32-bit form is never exercised.A version word the corpus does not hold (not 2 for the PERS, not 1 or 2 for the ASSOC) is refused with
Error::Unsupported(reported as unhandled), never read on a guess.README.md and STATUS.md are not refreshed here:
tools/maintainer/readme_status.pyis not onmainyet (#376 adds it), so the integrator regenerates them after this lands.Test plan
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features,cargo test --release --all-featurespass locally on this headprobe_pers_subentandprobe_assoc_pers_subentover the 52 pinned drawings (14 records close, 120 values against the DXF twins, 0 differ); the oracle ratchet;measure.py checkagainst the regenerated baselinepython3 tools/ci/spec_coverage.py --checkandpython3 tools/maintainer/train/arch.py checkpassSource-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.See
CLEANROOM.mdfor the full allowed/forbidden source list and the honest scope of what "clean-room" means for this project.For this PR specifically: the layouts come from AutoCAD's own output alone, by the method recorded in CLEANROOM.md (2026-10-26): AutoCAD-written DWG files compared with AutoCAD-written DXF exports of the same drawing, from the pinned public corpus (ACadSharp
samples/sample_base; data files only). No third-party DWG or DXF implementation was consulted, ACadSharp's and ezdxf's reading code, comments, tests and derived data included, and no algorithm-description comment of any project was read. No vocabulary beyond the DXF group codes and subclass markers in the twins and the class names inAcDb:Classeswas used;version,idsandarraysare positional names of this crate's.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.