Skip to content

docs(partitions): the record marker and ElemTable header are class tags in the file's own schema (#154) (RE-80) - #422

Merged
DrunkOnJava merged 2 commits into
mainfrom
research/re80-schema-tag-constants
Sep 27, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
research/re80-schema-tag-constants

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

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 of ElemTable, Outline, ElementParents and ElementHeader, and how the partitions use them.
  • reports/element-framing/RE-80-schema-tag-constants.md, a dated addendum to docs/rvt-moat-break-reconnaissance.md, CHANGELOG.
  • Doc comments: ElemTableHeader::element_count is the ElemTable class tag; BBOX_MARKER is [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/ElemTable opening u16 equals the ElemTable tag on all 14 files.

  • Every [Outline tag][0xFF x 4] prefix in every partition ends in the ElementParents tag 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 equal BBOX_MARKER and BBOX_MARKER_2025.

  • RE-35's chain constant is the ElementHeader tag 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 check

  • No output change: no code path changed

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; clean-room byte observations on the corpus's own schema streams.

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/Latest schema (RE-76), not lookup-table entries.

The opening u16 of Global/ElemTable is the ElemTable class 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 the ElementHeader tag (2024+).

No decoder or export behavior changes — bbox_marker still uses its release table; only rustdoc on ElemTableHeader::element_count and BBOX_MARKER is 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.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 27, 2026 21:29
@cursor

cursor Bot commented Sep 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava
DrunkOnJava merged commit da594fe into main Sep 27, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/re80-schema-tag-constants branch September 27, 2026 21:35
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