Skip to content

feat(dxf): score IMAGEDEF_REACTOR and RASTERVARIABLES in the value oracle - #350

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/dxf-oracle-image-companions
Oct 27, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/dxf-oracle-image-companions

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The value oracle scores the two decoders of #305 against AutoCAD's DXF export:

  • IMAGEDEF_REACTOR (§20.4.82): its class version, group 90 of AcDbRasterImageDefReactor. The IMAGE it serves is a handle the decoder does not read.
  • RASTERVARIABLES (§20.4.91): the class version, display frame, display quality and units, groups 90, 70, 71 and 72 of AcDbRasterVariables.

The oracle's section map now files the two classes under §20.4.82 and §20.4.91, so their notes land in those rows.

Measured (49 drawing pairs)

Section Records Equal Different Not decoded
§20.4.82 IMAGEDEF_REACTOR 6 (R2000-R2018) 6 0 12
§20.4.91 RASTERVARIABLES 6 (R2000-R2018) 24 0 12

tools/oracle/baseline.tsv gains the 30 new rows (ratchet against main's: no count fell). The oracle's other disagreements are unchanged.

Test plan

  • cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, python3 tools/ci/spec_coverage.py --check
  • Oracle over the 102 pinned files with --baseline tools/oracle/baseline.tsv (main's): exit 0; the regenerated TSV is committed
  • cargo run --release --example spec_examples: OK: 425 checks

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:

  • No Autodesk DWG SDK source (RealDWG, ObjectARX, ObjectDBX) or NDA-protected Autodesk documentation was consulted or imported.
  • No Open Design Alliance Teigha / Drawings SDK source was consulted or imported. The ODA's public Open Design Specification for .dwg files PDF is explicitly allowed (see CLEANROOM.md).
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

Based on the DXF columns of ODA spec v5.4.1 §20.4.82 and §20.4.91 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, #150.

…acle

The decoders of #305 (§20.4.82, §20.4.91) are now compared with
AutoCAD's export field by field: IMAGEDEF_REACTOR's class version in
group 90 of AcDbRasterImageDefReactor, and RASTERVARIABLES' class
version, display frame, display quality and units in groups 90, 70, 71
and 72 of AcDbRasterVariables. The reactor's IMAGE is a handle the
decoder does not read and stays not-decoded. The oracle's section map
now files the two classes under §20.4.82 and §20.4.91.

On the 49 drawing pairs: 6 records of each, R2000 to R2018; all 6 and
24 decoded values equal the export. tools/oracle/baseline.tsv gains the
30 new rows, and the two rows of docs/spec-coverage.md say what the
oracle measured.

Refs #99, #102, #150
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T01:47:27.547312Z aba3866 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 01:49
@DrunkOnJava
DrunkOnJava merged commit b9beccb into main Oct 27, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/dxf-oracle-image-companions branch October 27, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant