Repository navigation
docs(partitions): the record marker and ElemTable header are class tags in the file's own schema (#154) (RE-80) - #422
Merged
Conversation
…gs in the file's own schema (#154) (RE-80)
DrunkOnJava
enabled auto-merge (squash)
September 27, 2026 21:29
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_dfc7b733-a412-41ab-b9d6-38972ff06feb) |
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
Three numbers rvt-rs carries as per-release constants are serialization tags of classes in the file's own
Formats/Latest(RE-80). Documentation, a probe and a report; the export is unchanged.Motivation
jakobhirn-bit suggested in Discussion #112 that the record marker is a schema class tag, so a reader needs no version table. RE-76's grammar reader (#416) made that checkable.
Changes
examples/probe_re80_schema_tag_constants.rs: for each file, the tags ofElemTable,Outline,ElementParentsandElementHeader, and how the partitions use them.reports/element-framing/RE-80-schema-tag-constants.md, a dated addendum todocs/rvt-moat-break-reconnaissance.md, CHANGELOG.ElemTableHeader::element_countis theElemTableclass tag;BBOX_MARKERis[Outline][0xFF x 4][ElementParents].Testing
Probe on the 11-release family corpus (2016 to 2026), Core Interior (2024), RE1 Architecture (2025) and Snowdon Towers (2024, local only):
The
Global/ElemTableopeningu16equals theElemTabletag on all 14 files.Every
[Outline tag][0xFF x 4]prefix in every partition ends in theElementParentstag and is followed by a well-formed box: 16 to 32 per family file, 23,815 on Core Interior, 1,562 on RE1, 33,611 on Snowdon. On 2024 and 2025 the derived markers equalBBOX_MARKERandBBOX_MARKER_2025.RE-35's chain constant is the
ElementHeadertag on 2024, 2025 and 2026; before 2024 no partition opens with a chain of that shape.fmt, clippy
-D warnings(all targets, the probe included), rustdoc-D warnings,cargo +1.85.0 checkNo output change: no code path changed
Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #154, #223, #421. Credit: jakobhirn-bit (Discussion #112).
Note
Low Risk
Documentation, changelog, and a read-only probe only; no production parsing or IFC export paths were modified.
Overview
Documents RE-80: three values rvt-rs has treated as release-specific constants are actually serialization tags from the file's own
Formats/Latestschema (RE-76), not lookup-table entries.The opening
u16ofGlobal/ElemTableis theElemTableclass tag (not an element count). The 8-byte record marker before the bounding box is[Outline][0xFF×4][ElementParents]— matching how the record serializes box vs reference lists; the old "ElemTable + 40" rule is an accidental ordinal gap. Partition record-chain headers use theElementHeadertag (2024+).No decoder or export behavior changes —
bbox_markerstill uses its release table; only rustdoc onElemTableHeader::element_countandBBOX_MARKERis corrected.Adds
examples/probe_re80_schema_tag_constants.rs(family corpus 2016–2026 plus sample projects),reports/element-framing/RE-80-schema-tag-constants.md, a reconnaissance addendum, and CHANGELOG credit to Discussion #112.Reviewed by Cursor Bugbot for commit 5062bb5. Configure here.