Repository navigation
feat(objects): decode MATERIAL from AutoCAD's own DWG and DXF output (#49, #152) - #325
Merged
Merged
Conversation
…49, #152) ODA spec v5.4.1 prints no MATERIAL layout. The field list is derived by the CLEANROOM.md method of 2026-10-26: the data bits of all 212 corpus records (R14 to R2018) against the AcDbMaterial AutoCAD exported to DXF for the same handle. Every record closes on its data-stream boundary on every release, from R2007 on a string stream the list consumes entirely, and 13,058 values equal the DXF twin by handle with 0 differences. Fields no DXF group shows are named unknown_* and listed in ARCHITECTURE.md section 7s. probe_material becomes the twin probe over the shared harness (examples/support/twin.rs, identical to the objects lane's copy). The strings-only read_strings and its tests are kept untouched. Baseline: decoded +212, skipped -212, errored 0.
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 26, 2026
Merged
Unprinted classes: decoded from one drawing each; provisional until controlled AutoCAD drawings
#348
Open
# Conflicts: # ARCHITECTURE.md # tools/corpus/baseline.tsv
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 398d5602dd
ℹ️ 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".
Merged
2 tasks done
# Conflicts: # ARCHITECTURE.md
DrunkOnJava
enabled auto-merge (squash)
October 27, 2026 23:31
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
…ce the Corpus job passes (#418) * fix(ci): settle a Codex thread that asks for the measured baseline once the Corpus job passes The train's merge of main carries main's baselines until the PR's own CI run measures the merge, and Codex reviews that intermediate commit and asks for the regenerated baseline (#325 and #388 on 2026-10-27). The train then commits the measured baseline, but the open thread kept the PR from landing until a person answered it. With the Corpus job green on the current head, whose ratchet is exactly that check, land.sh replies and resolves such threads; it touches only the Codex bot's threads that name tools/corpus or tools/oracle/baseline.tsv. * fix(ci): settle only a Codex thread whose title asks to regenerate the corpus baseline Codex on #418: naming a baseline file is not enough; a finding about weakened or retired oracle comparisons passes a green Corpus job (oracle_base.py lets the PR's retired rows go) and must keep stopping the train. The thread's title must now ask to regenerate or re-measure the corpus baseline, its text must name tools/corpus/baseline.tsv, and it must not mention the oracle.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
… counts; MATERIAL landed (#325)
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…10-27 (#416) * docs: bring README, ROADMAP and CHANGELOG up to the landings of 2026-10-27 README's code-page and DXF writer text named work in review that has landed (#371, #380, #382, #384); jev_review.py prose ranked those sentences 0.72 to 0.96. ROADMAP's "where it stands" table was a 2026-10-21 snapshot whose numbers, CI row and release row were all out of date; it now points to the rendered numbers instead of repeating them. CHANGELOG gains #371, #380, #382, #384, #385 and #404. * docs(changelog): record the CI-only merge train (#408) * docs: OBJECTS landed (#372): README, ROADMAP and CHANGELOG * docs: LAYOUT, GROUP and MLINESTYLE (#373), the class map writer (#405) and the double-byte round trip (#414) landed * docs: VISUALSTYLE landed (#413) * docs(readme): name the skipped types still in review without per-type counts; MATERIAL landed (#325) * docs(readme): point to the open decoder PRs instead of a list that each landing makes stale
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
Decodes MATERIAL (
AcDbMaterial) on every release from R14 to R2018. ODA spec v5.4.1 prints no layout for it; the field list is derived by the CLEANROOM.md method of 2026-10-26 from the data bits of AutoCAD-written drawings and AutoCAD's own DXF export of the same handles.Spec reference
None: §20.3 lists MATERIAL and §20.4 has no entry, so there is no
docs/data/spec-coverage.tsvrow; the class row indocs/spec-coverage.md("Classes the spec does not prescribe") movespartialtocloses. Layout and evidence table: ARCHITECTURE.md §7s (provisional letter). Method and per-class record: CLEANROOM.md (2026-10-26, two entries).Evidence (
cargo run --release --example probe_material -- ../dwg-corpus, exit 0):Corpus baseline: decoded +212, skipped -212, errored 0 (
measure.py checkpasses against the committedtools/corpus/baseline.tsv). From R2007 the boundary cannot see the map-source conditional, so the decoder also requires the string stream to be exhausted. Fields no DXF group shows are namedunknown_*or documented as unverified by value in ARCHITECTURE.md §7s; a colour method or map source other than 0 or 1, a non-zero tail slot and a wider group 93 or 94 are refused asError::Unsupported.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 locallyprobe_materialover the 52 pinned drawings (212 MATERIAL records, 13,058 values against the DXF twins, 0 differ)python3 tools/ci/spec_coverage.py --checkpassesread_stringsand the two tests of it inacad_material.rsare kept as they were;examples/probe_material.rs(a budget probe) is replaced by the twin probe, overexamples/support/twin.rs(byte-identical to the objects lane's copy, md5 f4c195ca).Source-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:
My contribution is based on AutoCAD's own output, by the method recorded in CLEANROOM.md (2026-10-26): AutoCAD-written DWG files compared with AutoCAD-written DXF exports of the same drawings, from the pinned public corpus (
nextgis/dwg_samples, ACadSharpsamples/; 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. Field names follow theAcDbMaterialvocabulary of Autodesk's public DXF Reference as recalled (names only), disclosed in the CLEANROOM.md entry.Developer Certificate of Origin
I affirm that the contribution is my own work and can be distributed under the project's Apache-2.0 license.