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 cross-version observation and clean-room research context.
The technical statements below are reported claims, not yet independently reproduced by rvt-rs. Griffin will perform the repository-side probing, testing, integration, and documentation; this issue does not assign work to Steffen's team.
Reported finding
The body of Global/ElemTable is reportedly an ownership tree, with a versioned record layout:
- Revit 2014: 28-byte records, with the owner encoded as the trailing
u32. - Revit 2026: 40-byte records, with ownership represented as
u64.
The report notes that current rvt-rs documentation describes this body as partial.
Reported evidence
The layouts were reportedly observed during clean-room analysis of a Revit 2014 manufacturer family and a Revit 2026 project. Discussion #112 does not include the raw offsets, sample records, endianness proof, owner/root sentinel semantics, or a full field map; those details must be derived or obtained and independently reproduced before implementation.
Why it matters
An ownership tree could provide structural relationships that are more reliable than heuristic partition scans. If confirmed, it may improve element hierarchy recovery, parent/child traversal, version-aware ElemTable parsing, and the interpretation of the existing ElementId-to-offset index.
This is related to, but not a duplicate of, closed issue #25. #25 delivered ElementId-to-partition-offset linkage; this issue is specifically about independently validating and representing the reported ownership semantics and versioned body records.
Independent verification still required
- Locate record boundaries and reproduce the exact 28-byte and 40-byte strides.
- Verify that the trailing values are owners rather than correlated identifiers.
- Determine endianness, root/no-owner representation, duplicate-owner behavior, and whether every record participates in one tree.
- Test releases between 2014 and 2026 to identify the actual format transition instead of assuming only two layouts.
- Compare ownership edges against independent model or stream evidence.
The hypothesis would be falsified or narrowed if the trailing values do not form stable ownership relationships or if record stride/field width varies by factors other than Revit release.
Repository-side acceptance criteria
Status 2026-09-28 (RE-31 #294, RE-31 §6 #499):
- A probe that prints the candidate element and owner with validation diagnostics, without private paths:
examples/probe_re31_owner_frame.rs(owner pairing, self-ownership, and the element's own reference list as oracle). The olderexamples/probe_elem_table_ownership.rsstill hardcodes/workspacepaths. - Reproduce or refute the reported 2014 and 2026 layouts on provenance-safe fixtures. RE-147 (research(elements): RE-147 the ElemTable's invariants on a 2014 family and every file of 2016 to 2027 (#152) #568): the Stertil 2014 family STE1200 pointed to (pinned in
research/public-families.tsv) has 28-byte records, 11,331 of them, every set owner declared (10,208), none self-owned or looping; the 2026rac_basicproject has 40-byte records with 3,884 of 3,884 owners declared. All 54 files of 2014 to 2027 measured hold the invariants. - Establish the version gate from corpus evidence. The record is 28 bytes on all eight Autodesk families of 2016 to 2023 and on Einhoven (2023), and 40 bytes on the 2024 to 2026 families, Core Interior and the four RE1 models: 17 files, no other length and no file with two (RE-136, research(elements): RE-136 older releases and the ElemTable lengths, RE-137 the Q4 reading (#152) (#153) (#154) (#548) #549). Project files before 2023 are not in the corpus.
- Validate tree invariants. With the owner read as closing the record before the parsed frame (STE1200's frame), no record names itself and no owner chain loops, on Core Interior, Snowdon Towers, RE1 Architecture and Einhoven. The frame's own field gave 304, 1,342, 26 and 7 self-owned records. Every owner is a declared ElementId.
- Expose an ownership representation without regressing the ElementId index:
ElemRecord::owner_id(experimental), corrected in fix(elem-table): report each record's owner from the field that closes it (#152) (RE-31) #499. - Parse the table's first record, at
0x06, which the0x1Eframe skips. fix(elem_table): read the table's records from 0x06 (#152) #559 reads every record from0x06: the first isrecords[0]with its own owner (17 on the 2016 to 2026 families), andtests/elem_table_frame.rsrequires the stated count, rising ids and declared owners on every family and on Einhoven and Core Interior. -
Synthetic byte-pattern tests: superseded by the repository's no-unit-test policy. The corpus testtests/elem_table_corpus.rspins the invariants on real files instead. - Reconnaissance addendum:
reports/element-framing/RE-31-elemtable-owner-field.md§6.
Evidence and fixtures 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 (magnetar corpora) — trailing-owner claim not confirmed
Credit: reported finding from @STE1200 / Discussion #112. This comment is repository-side evidence only on the redistributable magnetar project samples — not a contradiction of Steffen's 2014-family / 2026-project observations, which we do not have in-corpus.
Method
Parsed
Global/ElemTablewith the existing layout detector (28 B/FF×4on 2023 Einhoven;40 B/FF×8on 2024 Core Interior) and inspected trailing words + every aligned payloadu32after the marker. Probe output saved under the Cloud session artifactissue152_elemtable_ownership_probe.txt.Results (fail-closed / negative on these two files)
u32== 0u32∈ declared id setu64hi half nonzeroRevit_IFC5_Einhoven.rvt(2023)2024_Core_Interior.rvt(2024)Sample early records are marker + id_primary + id_secondary + zero payload (matches
docs/elem-table-record-layout-2026-04-21.md).On 2024, some interior payload words (not the trailing word) coincide with other declared ids at high rates (~88–92% at certain word indices). That is not the reported “trailing owner
u32/u64” shape, and coincidence with the dense 1…N id space is expected without an independent oracle — do not treat as ownership-tree confirmation.What this does / does not close
Next evidence needed (still open)
Leaving open. No decoder changes from this pass.
feat: Phase 1 identity/evidence/ES contracts + research scaffold (#172)
docs(RE-152): magnetar negative on ElemTable trailing-owner claim (#173)
docs: record Phase 1 leftovers (#177–#179) in DISC-112 notes (#180)
33 remaining items
STE1200 commentedon Oct 2, 2026
A data point on "the first record is id 1 on most projects", from the ten project files we have,
read from 0x06 in the same frame (count at 0x02 equals the records that fit, 19/24-byte tail, ids
rising on all ten):
So the first record is the same element on all of them, AllProjectPhases, and only its id differs:
1 on Autodesk's own samples, 0 on the five files from other authors. In every file id 1 is either
AllProjectPhases (if it is not 0) or the first ProjectPhase. We do not know what sets 0 or 1;
the template the project started from would be our first guess, untested. A reader that
assumes 1 would drop AllProjectPhases on these five.
puzzbobb commentedon Oct 3, 2026
Thanks, that's a useful check. It reproduces on my copies: Einhoven and Core Interior (the MIT files, same hashes as
research/witness-registry.json) haveAllProjectPhasesat id 0 andProjectPhaseat 1, and Autodesk'srac_basic2017 and 2024 haveAllProjectPhasesat 1.I did some more testing and on a wider set, though, the first record isn't always
AllProjectPhases. It's whatever element has the lowest surviving id, and that depends on the file's history:AllProjectPhases(0)rac_basic2016 to 2027,rac_advanced2027, Autodesk's 2015DefaultMetric.rteAllProjectPhases(1); id 0 unusedrst_advanced2019 and 2027, Autodesk's 2015Structural_Analysis-DefaultMetric.rteProjectPhase(0)DimensionStyle(0)Projects keep their template's low ids.
rac_advanced2027 matchesDefaultMetric.rteon every id below 400, andrst_advancedmatches the structural template. A project built from blank in current Revit getsAllProjectPhasesat 0. When an early element is deleted, its id stays a gap in every later copy. I haven't seen a freed id reused.AllProjectPhases(itsm_phaseIdslists the phase elements) is an element like any other.However does this matter? for a file reader I don't think so. The ids are where the file's history happened to put them, and nothing in the format depends on it. What a reader can rely on:
Global/ElemTable's records are unique and in ascending order. That's all their position means.The one place this touches the code is the extra frame
parse_recordsreturns on 40-byte files, read from the tail bytes (my comment above). It has to be dropped by position, as the last frame. Filtering out id 0 instead would also drop Core Interior's realAllProjectPhases, which is element 0 there.So I'd read the first-record pattern as a fingerprint of the file's ancestry, not a format rule.
STE1200 commentedon Oct 3, 2026
On the open evidence item (a 2014 family and a 2026 project with set owners), both files are public:
2014 family. Stertil's Stertil_Dock_Products_Closed Pit SP-XP-PP.rfa, from their architect library: https://stertil-dockproducts.co.uk/uploads/2016/07/closed_pit.zip (9,449,001 bytes, zip sha256 6e65aae1e2603252a44857e9b397f5e4d285e5ded31eb57a734c1a78a755eca2; the .rfa inside is 4,923,392 bytes, sha256 b3b46ded5fc26bfa9e554442f089b51e6331f2fe89c86188b5ed41ec5a98de0c, the file of our 2014 vectors). BasicFileInfo: Autodesk Revit 2014 (Build 20140709_2115). Read from 0x06: 28-byte records, count 11,331 equals the records that fit, 19-byte tail, ids rising; 10,208 records with a set owner, every owner an id of the table, 0 self-owned. Our two elemtable_record vectors are records 6,645 and 6,719 (7919 → 7920, 7993 → 7994, sketch → owning extrusion). One difference to the 2016+ families: the first record is id 1274 (the lowest surviving id, as puzzbobb describes) and its owner field is ff ff ff ff, not 17.
2026 project. Autodesk's rac_basic 2026 is in RE-140 already. In addition, the flowbim.ee house.rvt (sha256 eeff78f3d07dc23397d276f870f42240cb453cfdd39d965531a9d0ccc7d0a654, in our 2026-09-28 pack): 40-byte records, 11,981 of them, 5,524 with a set owner.
rvt_vectors_magnetar_261003.zip
docs(backlog): a ranked session backlog from the 2026-10-03 sweep (#557)
fix(type_parameters): a value block owned by 0 still ends the block b…
fix(elem_table): read the table's records from 0x06 (#152) (#559)
research(elements): RE-147 the ElemTable's invariants on a 2014 famil…
DrunkOnJava commentedon Oct 3, 2026
Thank you both. This is now how rvt-rs reads the table.
parse_recordsreads from0x06(#559). After theu16tag and theu32count at0x02, it reads the stated number of records at 28 bytes (to 2023) or 40 (from 2024), each closing with its owner, as STE1200's frame has it.(0, 0)on the 40-byte projects, id 18 after 7259 on the 2016 family.AllProjectPhasesis element 0, and the tail frame is dropped by position. The new real-file targettests/elem_table_frame.rsrequires these invariants on every family of 2016 to 2026 and on Einhoven and Core Interior; its red run on the old reader failed on both of the cases above.mainis byte-identical on every model, family and sample. The one output that moved during the change, a type parameter on RE1 Architecture, came from the false id 0 and was fixed in the same PR.The 2014 and 2026 items (RE-147, #568).
.rfapinned by sha256) is fetched for Measure runs.rac_basicproject has 3,884 of 3,884 owners declared.The first record. Agreed with puzzbobb: it is the lowest surviving id, a fingerprint of the file's history (1 on Autodesk's samples and RE1 Architecture, 0 on Einhoven, Core Interior and the other RE1 models, 1274 on the 2014 family), and nothing in the reader depends on it.
The checklist is updated.
fix(elem_table): detect the record size by the ElementId, the second …
DrunkOnJava commentedon Oct 19, 2026
Every repository-side criterion above is met, each with its probe, report or PR: the owner frame (RE-31,
examples/probe_re31_owner_frame.rs), the 2014 and 2026 layouts on provenance-safe files (RE-147, #568), the 28- and 40-byte version gate, the tree invariants,ElemRecord::owner_id(#499), and the first record at0x06(#559). The synthetic-test item is superseded by the repository's no-unit-test policy, as its line says;tests/elem_table_corpus.rspins the invariants on real files instead. Thank you, STE1200 and puzzbobb, whose reports this reproduces.