Skip to content

feat(objects): decode ACSH_CYLINDER_CLASS and ACSH_REVOLVE_CLASS to their record boundary (#152) - #425

Merged
DrunkOnJava merged 4 commits into
mainfrom
feat/acsh-cylinder-revolve
Oct 28, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
feat/acsh-cylinder-revolve

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Decodes ACSH_CYLINDER_CLASS (2 records) and ACSH_REVOLVE_CLASS (1 record), the last two ACSH solid-history classes the corpus still skips, from layouts derived from the records' own bits. State decoder: the boundary closes, the values are unscored, because the one drawing that holds them (3d.dwg of the pinned kurema/BookViewerApp3 drawings, AC1014) has no DXF export in the corpus.

Spec reference

None: ODA spec v5.4.1 prints no layout for either class, so there is no docs/data/spec-coverage.tsv row; the class row in docs/spec-coverage.md ("Classes the spec does not prescribe") is new, at decoder. Layout and what the bytes settle: ARCHITECTURE.md §7bq (provisional letter). Method and the no-twin rule: CLEANROOM.md (2026-10-28).

Evidence (data bits read as data from the pinned drawing, with a throwaway reader; the decoder is measured by this PR's Corpus job):

Class Records Close How the layout was settled
ACSH_CYLINDER_CLASS 2 2 the box's evaluation base and node, then BL, BL and four BD: 284 bits left after the node on both records, 2 x 10 + 4 x 66, nothing over; the values read 0.4, 0.15, 0.15, 0.15 and 0.1, 0.25, 0.25, 0.25
ACSH_REVOLVE_CLASS 1 1 the same base and node, BL, BL, 3 BD, 3 BD, one BD (2 pi), six 2-bit zero codes, BL 77, then a BL bit count of 1272 that equals the 1272 bits left in the record

Expected corpus baseline change: decoded +3, skipped -3, errored 0; the baseline is committed from the Corpus job's artifact.

Not settled by the bytes, and said so in ARCHITECTURE.md and the spec-coverage row: the role of every value, the types of the revolve's six zero slots (the decoder refuses any slot that is not the zero form), and whether the cylinder's three equal values are radii. A DXF export of the drawing would score them and let the state move to closes.

Test plan

  • cargo fmt --all -- --check, python3 tools/ci/spec_coverage.py --check and python3 tools/maintainer/train/arch.py check pass locally
  • Clippy, Test, Documentation and the Corpus job run on CI only (no local builds)
  • Shown working on real files: the Corpus job's per-file decode counts for the three records. probe_sh_cylinder and probe_sh_revolve are added for a reader to run over the corpus; they were not run here, since builds and probes run on CI only
  • No new unit tests. Tests touched: none.

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.
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

My contribution is based on the data bits of the pinned public corpus drawing (data file only), by the method recorded in CLEANROOM.md (2026-10-26 and the 2026-10-28 entry for classes with no DXF twin). No third-party DWG or DXF implementation was consulted, ACadSharp's and ezdxf's reading code, comments, tests and derived data included. No vocabulary from the DXF Reference was taken; the field names in the structs are read from the values and are marked unverified.

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.

…heir record boundary, with no DXF twin to score the values (#152)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T09:33:01.347122Z b63c148 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 247df7d663

ℹ️ 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".

Comment thread src/entities/dispatch.rs Resolved
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 28, 2026 09:38
@DrunkOnJava
DrunkOnJava merged commit 4bdd0cd into main Oct 28, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/acsh-cylinder-revolve branch October 28, 2026 09:45
DrunkOnJava added a commit that referenced this pull request Oct 28, 2026
…, and record them (#437)

README named LIGHT, ACSH_CYLINDER_CLASS, ACSH_REVOLVE_CLASS and RAPIDRTRENDERENVIRONMENT as skipped; they decode since #425, #426 and #427, and main's baseline now skips 32 records. CHANGELOG records those and the HATCH and TOLERANCE scorers (#389, #392).
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