Repository navigation
docs(re): Revit 2015's element GlobalIds are not in the file, measured on BIMcollab's example (#878) (RE-208) - #928
Conversation
…ment's episode (#878) (RE-208)
…t for a stored IfcGUID (#878)
…obalIds on their last 21 characters (#878)
…e history, and tabulates the top bits (#878)
… GUID's middle bytes (#878)
…lists those sharing an episode's middle bytes, and counts first characters by class (#878)
…nd storeys against the stored strings (#878)
… which carry their host's Tag (#878)
…d on BIMcollab's example (#878) (RE-208)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64629e8155
ℹ️ 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".
|
|
||
| This is one export, written on 2014-10-08 by Revit Architecture 2015. Solibri's IFC Optimizer later rewrote it (its `FILE_NAME`). The file was saved later, by the November 2014 build. RE-198 says the optimizer kept the GlobalIds, but no copy from before the optimizer exists to check that. So this report cannot say whether Revit's exporter or the optimizer changed the top two bits. Either way, they cannot be read from the `.rvt`. | ||
|
|
||
| For the 1.0 criteria (W5, identity), this file stays a failure that no reader change can fix. The 2 bits are not in the file, so even the stored parameter's 126 give no exact GlobalId. A second Revit 2015 project, with an unprocessed Revit 2015 export, is needed to tell the exporter's rule from the optimizer's. |
There was a problem hiding this comment.
Limit the conclusion to the fields actually tested
The probe searches episode-history GUIDs and GlobalId-shaped strings, while the entropy script evaluates only the shared bits, Tag residues, class, and selected preceding bytes. If the missing bits are stored elsewhere or derived from another field, a reader change could still recover them; the report even states earlier that they are absent only from the fields tested. Declaring that the bits are not in the file and that no reader change can fix W5 therefore overstates the evidence and may prematurely close identity-recovery work; describe them as not located by this experiment instead.
Useful? React with 👍 / 👎.
| "the 24 bytes before the stored string": [p[4][:48] for p in pairs], | ||
| } | ||
| for name, xs in candidates.items(): | ||
| print(f"{name}: {len(set(xs))} values, H {conditional(r, list(zip(s, xs))):.3f}") |
There was a problem hiding this comment.
Count the combined conditioning states
The entropy is calculated with zip(s, xs), so it conditions on the stored first character together with each candidate, but the displayed value count uses only xs. For example, Tag mod 4 can therefore print at most 4 values even though the report records 16 combined states, and the class and preceding-byte counts have the same mismatch. This prevents the script from reproducing the report's table and misstates the cardinality behind each entropy result; count the distinct (stored_first, candidate) pairs instead.
Useful? React with 👍 / 👎.
| "Tag mod 4": [p[0] % 4 for p in pairs], | ||
| "Tag mod 3": [p[0] % 3 for p in pairs], | ||
| "class": [p[1] for p in pairs], | ||
| "the 24 bytes before the stored string": [p[4][:48] for p in pairs], |
There was a problem hiding this comment.
Analyze the bytes named by the candidate
Each before value contains the full 32 bytes preceding the stored string, but [:48] selects the oldest 24 bytes (offsets −32 through −9), not the 24 bytes immediately before the string as the output and report claim. If the intended candidate is the adjacent 24 bytes, this computes the reported entropy and grouping from the wrong fields; if the final eight-byte parameter header is intentionally excluded, label the candidate as the 24 bytes preceding that header so the experiment is reproducible.
Useful? React with 👍 / 👎.
…deleted branch (#1001) ## Summary Sixteen reports' reproduce commands named a branch that was deleted when it landed (`feat/mullion-span`, `feat/bare-named-parameters`, `feat/wall-extend-to-structure`, `feat/824-hatch-openings`, `re/re155-reference-slots` ... `re/re163-content-documents`, `re/878-2015-episodes`, `re/223-flag-census`, `docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each now names the commit that landed (`--ref main -f ref=<sha>`, and `-f base=<parent>` where it measured a change against `main`). CONTRIBUTING's reverse-engineering steps state the rule. ## Motivation A report's reproduce section is how its counts are checked again. Measure's `ref` input takes a commit, and every probe and scorer these reports name is on `main`. ## Changes - **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`, `RE-225` to `RE-229`**: branch refs replaced by the squash commits of #601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993, #994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it is the ungated branch its scorer needs, and it stays. - **`CONTRIBUTING.md`**: a report's reproduce commands name a commit, never a branch. ## Testing Unit tests are banned in this repository: do not add them. - [ ] `tools/check-local.sh`: CI. - [x] Every probe and scorer the changed commands name exists on `main` (checked file by file), and each commit is the merge of the pull request that added the report. - N/A: no code change. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] No user-visible change, so no changelog fragment - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None.
Summary
RE-208 measures why rvt-rs rebuilds none of Revit's GlobalIds on Revit 2015 (#878), on BIMcollab's structural example against Revit 2015's export of it. The answer is negative: the export's element GlobalIds were not made from the episode history, and the 2 bits that separate them from a parameter the file stores are in no field tested.
Motivation
#878 and W5 of the 1.0 criteria (identity on the held-out 2015 project). RE-198 found 0 of 241 GlobalIds. This finds whether a reader change could fix that.
Changes
examples/probe_re208_episodes_2015.rs: prints the history's episode GUIDs, every ElemTable record, and every GlobalId-shaped string in the partitions andGlobal/Latest, with the 32 bytes before each.tools/re/episodes_vs_ifc.py: joins those to Revit's export. It reports:tools/re/episodes_first_char.py: stdlib only. Measures how much of the first character each candidate field explains.reports/element-framing/RE-208-revit-2015-global-ids.md, aCHANGELOG.mdResearch entry, and the BIMcollab row ofdocs/reference-models.md.Testing
Measure 39998800211 (
-f bimcollab=true, probe and scorer from this branch). The report's tables are that run's output; the first-character table isepisodes_first_char.pyon the run's probe output.229 of the 241 elements have their last 21 characters in a stored IfcGUID parameter (id -1019000), and their first character always differs.
All 8 of the project, site, building and storeys equal a stored string exactly.
Types keep RE-48's rule: 6 wall types and 5 column types.
10 openings take an episode with its top two bits changed.
tools/check-local.shpasses: left to CI (a probe and Python only)Verified on real files: the run above. The BIMcollab files have no stated licence, so they stay local only and Measure fetches them by hash.
N/A: exporter unchanged
Audit-honesty checklist
examples/, dated report underreports/element-framing/Legal and contribution hygiene
Contributor declaration (CLEANROOM.md): the findings in this PR are based on byte observations of the files above (sources 1 to 3) and on revit-ifc read for how it encodes a GlobalId (
GUIDUtil.ConvertToIFCGuid, source 5). I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc.Breaking changes
None.
Related issues
Refs #878. #879 (the footings' storeys) and the storeys' stored GlobalIds both wait on the saved-parameter reader (#887) reaching 2015 records.