Repository navigation
Description
Provenance and credit
This issue records a finding reported by @STE1200 and their team in Discussion #112, “Set of findings”. Thank you to Steffen and the team for sharing the reported framing relationship and measured coverage.
The technical statements below are reported claims, not yet independently reproduced by rvt-rs. Griffin will carry the repository-side probes, tests, decoder integration, and documentation; no formal preparation work is assigned to Steffen's team.
Reported finding
Element records are reportedly frameable around an ElementHeader marker:
- the element ID appears at a fixed offset before the marker;
- the element's class tag appears at a fixed offset after the marker.
Using those relationships, approximately 63% of records in the reporter's data were reportedly immediately class-resolvable. The finding may provide a stronger entry point for the existing CLASS-xx decoder work.
Reported evidence
Discussion #112 provides the relationship and measured percentage, but not the marker bytes, exact signed offsets, sample hex, denominator definition, false-positive rate, release distribution, or treatment of records without a resolvable class. Those details must not be invented; they remain inputs to the repository-side reproduction.
Why it matters
A deterministic framing rule could replace or constrain heuristic candidate scanning, associate records with both identity and class earlier, and give class-specific decoders a measurable coverage baseline. It could also make unresolved records explicit instead of silently assigning an uncertain class.
This issue complements the existing CLASS-xx and RE-15-xx work; it tracks the common framing evidence rather than duplicating any one class decoder.
Independent verification still required
- Identify the exact marker and offsets from allowed bytes.
- Define what counted as a record and as “class-resolvable” in the reported approximately 63% result.
- Measure false positives, collisions, truncated headers, and records whose class tag is unknown.
- Validate the relationship across multiple classes, files, file types, and Revit releases.
- Compare recovered element IDs/class tags against an independent oracle where available.
The hypothesis would be falsified or narrowed if marker hits do not produce stable ID/class relationships or if the offsets vary by record class/version without a defensible gate.
Repository-side acceptance criteria
Status 2026-09-28. Reproduced on Revit 2023, 2024 and 2025 by RE-35, RE-76, RE-80 and RE-81:
- Probes:
examples/probe_re35_record_wrapper.rs(record header[id][u32 size][u16 ElementHeader tag][u16 count]),examples/probe_re76_schema_class_tags.rs(class at +0x4a),examples/probe_re80_schema_tag_constants.rs(the marker is class tags of the file's own schema),examples/probe_re81_2023_element_records.rs(the 32-bit header on 2023). - Fixed offsets reproduced on provenance-safe fixtures: Core Interior (MIT), the four RE1 models (MIT) and Einhoven (MIT), plus local-only Snowdon Towers and the 255ribeiro projects.
- Numerator/denominator for the reported coverage. The ~63 % claim was not reproduced in that form. What is measured instead: every element Revit's own export holds is a placed record with an ElementId and a class (RE-21, RE-32, RE-81), and every exported element's class resolves (RE-76). STE1200's chaining rate (99.5–99.8 % of header records on 2015, 2017 and 2026) is reproduced on our files (RE-136, research(elements): RE-136 older releases and the ElemTable lengths, RE-137 the Q4 reading (#152) (#153) (#154) (#548) #549): candidates against accepted records are 99.46 % on Core Interior (50,951 and 50,674), 99.62 % on Einhoven, 99.87 to 99.95 % on the eleven Autodesk families and 99.96 % on RE1 Electrical, Mechanical and Plumbing; RE1 Architecture is 95.75 % (1,707 positions with the header tag are not records, not examined). No record's class is unresolved, in about 265,000.
- Version and class gates fail closed:
bbox_markerand the 2023 layout admit only measured releases. The ElementHeader tag equals the header constant on every 2024 and 2025 file (Element records beyond 2024/2025: derive the marker from the schema and measure the older envelope (RE-80 follow-up) #421). - Exposed: the class as
RevitClasson every exported element (feat(elements): name every element's Revit class through the schema's definition ordinal (#154, #223) (RE-76) #416). -
Synthetic tests: superseded by the repository's no-unit-test policy; the corpus tests pin the framing on real files. - Reconnaissance addenda:
reports/element-framing/RE-35-partition-record-wrapper.md,RE-76-schema-class-tags.md,RE-80-schema-tag-constants.md,RE-81-2023-element-records.md.
Releases before 2023 are tracked in #421. RE-136 reads the 2016 to 2022 Autodesk families by the 2023 envelope: one record per declared id, none left over, every class resolved.
The probe and regression evidence should follow the repository's reverse-engineering contribution requirements.
Activity
DrunkOnJava commentedon Aug 29, 2026
Audit hygiene (GOV-002 / §18 first-48h): removed stale
needs-triagefrom this maintainer-filed research issue. Related SEC-001 security-reporting fix lands viacursor/audit-p0-security-67f9.DrunkOnJava commentedon Aug 29, 2026
Independent reproduction attempt — ElementHeader framing (#153)
Credit: reported finding from @STE1200 / Discussion #112.
Blocker: marker bytes / offsets not in the public report
Discussion #112 states that ElementId sits at a fixed offset before an
ElementHeadermarker and the class tag at a fixed offset after, with ~63% class-resolvable records on the reporter's data. The discussion does not publish the marker bytes, signed offsets, denominator definition, or false-positive methodology. Per project honesty rules we will not invent those constants.What already exists in-tree (related but not the same claim)
Global/Latest/ partitions (walker,partition_scanner, RE-11) — tags are real wire markers with high observed/expected ratios, but this is tag-soup scanning, not a proven ElementHeader frame with id-before / class-after.Result this pass
Partial / blocked on evidence pack. Cannot confirm or falsify the ElementHeader framing rule without marker bytes + offsets (or an allowed sample hex dump). Leaving open.
What would unblock
No decoder changes from this pass.
DrunkOnJava commentedon Aug 30, 2026
Relabelled P0 → P1 + research-critical (audit finding GOV-002: P0 is reserved for immediate release or security impact; this item is gated on format evidence / an oracle, which engineering time alone does not change). Scope and status are unchanged.
DrunkOnJava commentedon Sep 27, 2026
Milestone review, 2026-09-27: format research with no user-facing acceptance criterion yet is kept open but not scheduled in a release milestone, so it neither blocks a release nor inflates one. When a finding here unlocks something a user can check (an element, a property, a geometry residual against Revit's export), that slice goes into the milestone it serves. Nothing about this issue's substance or credit changes.
DrunkOnJava commentedon Sep 30, 2026
Status, 2026-09-30: RE-133 (report) reads the
ElementHeadertag from each release's own schema on the 11 Autodesk family files, 2016 to 2026 (1201, 1218, 1259, 1261, 1272, 1299, 1340, 1398, 1439, 1479, 1509), and each MIT project carries its release's tag. STE1200's tags for 2017, 2018, 2022, 2023, 2024 and 2026 (Discussion #112) are the same six values.RE-132 reproduced 6 of his 8 record vectors on Einhoven and Core Interior at the same offsets, on both envelopes. The open item is unchanged: the rate at which header records chain on our files, to set beside his 99.5 to 99.8 %. Releases before 2023 stay in #421.
research(elements): RE-136 probe counts the chaining rate and the Ele…
research(elements): RE-136 older releases and the ElemTable lengths, …
DrunkOnJava commentedon Oct 19, 2026
Every repository-side criterion above is met: the record wrapper and class-tag probes (RE-35, RE-76, RE-80), the fixed offsets on the MIT projects, the coverage measured against Revit's own exports in place of the ~63 % figure, gates that admit only measured releases (#421), the class on every exported element (#416), and the chaining rate on 2016 to 2023 (RE-136, #549). The synthetic-test item is superseded by the no-unit-test policy, as its line says; the corpus tests pin the framing on real files. Thank you, STE1200, whose vectors this reproduces.