Repository navigation
feat(entities): route LIGHT by class name and read it with the layout its R14 record closes on (#152) - #426
Merged
Merged
Conversation
… its R14 record closes on (#152)
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3f16aa5ce
ℹ️ 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".
# Conflicts: # ARCHITECTURE.md # CLEANROOM.md # tools/corpus/baseline.tsv
DrunkOnJava
enabled auto-merge (squash)
October 28, 2026 10:34
This was referenced Oct 28, 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
Routes the LIGHT entity by class name, which the dispatcher never did, and replaces the LIGHT field list with one the corpus's only LIGHT record closes on: handle 0x34F of
3d.dwg(kurema/BookViewerApp3, AC1014, 784 data bits). Statedecoder: the boundary closes, the values are unscored, because that drawing has no DXF export in the corpus.Spec reference
None: ODA spec v5.4.1 prints no layout for LIGHT. The row in
docs/spec-coverage.md("CAMERA / LIGHT / HELIX",decoder) gains the note; the state does not move. Layout, evidence and what the bytes do not settle: ARCHITECTURE.md §7bq (provisional letter). Method and the no-twin rule: CLEANROOM.md (2026-10-28).The wiring gap was real, but wiring alone could not close the record. The decoder behind the fixed-code path read LIGHT from R2007 only and with a different field list, so a class-name route to it would only have turned the R14 record into an unsupported skip, or into an error on release R14. Read against the record (text inline), that list ends 395 bits before the boundary. The new list, in the data's own order:
closes the record to the bit. The values read as plain numbers: hotspot and falloff of 45 and 50 degrees in radians, attenuation limits 1 and 10, a shadow map of 256; the name's Shift-JIS bytes read as the Japanese for "point light 1", which fits light type 2.
Not settled by the bytes, and said so in ARCHITECTURE.md and the spec-coverage row: how the seven
BDafter the plot glyph split. They close the record equally as intensity, position, target (taken, as the DXF Reference lists the groups) and as position, target, intensity. Also unverified: the light types 1, 3 and 4, the shadow fields' roles, and the colour form from R2004 (read as the ACSH nodes have it).Light's public fields change with the list (the position and target are no longer optional, and the colour is aShColor). The three unit tests that pinned the old list are removed; no test is added.Expected corpus baseline change: decoded +1, skipped -1, errored 0; the baseline is committed from the Corpus job's artifact.
Test plan
cargo fmt --all -- --check,python3 tools/ci/spec_coverage.py --checkandpython3 tools/maintainer/train/arch.py checkpass locallyprobe_lightis added for a reader to run over the corpus; it was not run here, since builds and probes run on CI onlysrc/entities/light.rsare removed with the list they pinned.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 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). Autodesk's public DXF Reference was recalled for the field names and the order of the first of the two
BDgroupings, disclosed in the CLEANROOM.md entry. No third-party DWG or DXF implementation was consulted, ACadSharp's and ezdxf's reading code, comments, tests and derived data included.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.