Repository navigation
fix(ifc): openings, property sets, quantities and relationships take their GlobalIds from the entity they belong to, so they hold from save to save (#1854) - #1859
Conversation
…lement's Revit GlobalId, so they hold from save to save (#1840) A slab's further pieces, a layered floor's parts and a curtain wall's parts share their element's Tag, and Revit gives only the first a GlobalId. The rest were derived from the document's Unique Document GUID, which changed between two saves of HWT-25's Revit 2027 structural model (#1829), so every part's GlobalId moved on each save while the host's held. They are now derived from the first piece's Revit GlobalId and their place among the entities sharing the Tag. Where the element has no Revit GlobalId, the document-derived one stays.
… between saves, which #1840 makes them keep (#1840) The gate let only one GlobalId under a Tag of several products hold between saves, because the others came from the document's GUID. With the further pieces derived from the first piece's Revit GlobalId, every piece keeps its own, and the gate now compares each as it compares a single product: a piece that takes a new GlobalId, or two that swap, fails.
…BCF users, with the pieces it moves once per measured model (#1840)
…their GlobalIds from the entity they belong to, not the document's GUID, so they hold from save to save (#1854) The STEP writer seeded every GlobalId it derives from the document's Unique Document GUID, which changes on every save of every Autodesk sample measured (probe_1854_project_seeds, run 43327315618). No project-level identity could replace it: the first episode and ProjectInfo's GlobalId are the template's, one value on 64 of 102 models. Each derived GlobalId is now seeded from its owner's written GlobalId, with the same key; only what belongs to no entity keeps the document seed. probe_1854_global_id_census counts, per class, the GlobalIds two saves share.
|
The four rows, read. Rows 1, 2 and 4 hold. Row 3 holds except for two classes of The code under test is The first full run's probe counted the wrong thing: 1. Only derived GlobalIds move: holds, on the 73 exports whose IFC was kept.
2. Unique: holds. 43353251287 (scrubber of 3. Across saves: holds, with the two exceptions named. 43353791041, 25 pairs (each sample of 2021 to 2027 against the same project saved by Revit 2026),
4. Gates: hold. What it means for the release note: a tool following derived GlobalIds across saves now finds them for every element whose own GlobalId holds, with |
## Summary Release metadata for v0.20.0 (RELEASE.md, steps 4 to 7), cut from `main` at `925c482d` and merged with `main` up to `58395b62` (#1855, #1860, #1861, #1863, #1866, #1867 and #1868 among it): - every version file moves to 0.20.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-12; - the fragments under `changelog.d/` are assembled into a `[0.20.0]` section, with its introduction and "Upgrading from 0.19" (the work-budget bullet says a stop warns and the export is still written, as #1855 settled); - the README's release lines name v0.20.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `e10580d0`: only `witness_version`, the verdict hashes, the retired "Unmapped Revit unit identifiers" warning (RE-445) and an unset transparency (#1820) differ. Measured and rehearsed: - the comparison with 0.19.0 is in the section, from Measure runs [43357862138](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357862138) (unfiltered, `58395b62` against `v0.19.0`'s `09b18bd3`: 49 of 146 exports move, 0 census regressions, 0 body regressions) and [43357979238](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357979238) (timing: no file more than 3% slower except one that reads 0.98 in the earlier run of the same code, no peak higher by more than 2%, the samples of 2023 to 2027 at a median 0.76 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `58395b62`, so a run of `main` is the run of the release; a run of this branch would move every export through the header's version string; - `publish.yml` rehearsal on `d9946f4b`: [43359414819](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43359414819) passed. Only the changelog changed since. **Why now.** `main` holds today's crafted-file and security fixes (#1815, #1831, #1833, #1845), and neither GlobalId move. #1850 is back in draft until the tag, and #1854's fix is #1859. Those two ship together in 0.21.0 (#1854 comment 6841360704). ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. - Timing against 0.19.0 is in the section, from run 43357979238 on `58395b62`. ## Related issues Release 0.20.0. Milestone `0.20.0`.
|
The head ( The merge had three conflicts, all comments: The rows above were read at |
…ame three comment conflicts resolved to the text that says both rules
|
Rows for the final runs at
A row that does not hold stops the PR until its cause is read. |
|
The four rows at 1. Only derived GlobalIds move: holds, on the 73 exports whose IFC was kept. Runs 43372147482 (22 models) and 43372152200 (51 models: the BIM4LCA models, puzzbobb's 24 Revit 2025 models and the samples of 2025 to 2027), each against 2. Unique: holds. 43372165635: 3. Across saves: holds, and shows what #1850 adds. 43372170303, the 25 pairs (each sample of 2021 to 2027 against the same project saved by Revit 2026): no class holds fewer on any pair than in the table above. On each 4. Gates: hold. 43372136035, all 126 exports against |
## Summary Release metadata for v0.21.0 (RELEASE.md, steps 4 to 7), cut from `main` at `9b7dee8c` and merged with `main` up to `b76ee16e`: - every version file moves to 0.21.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-13; - the five fragments under `changelog.d/` (#1843, #1838, #1840, #1854, #1871) are assembled into a `[0.21.0]` section, with its introduction, what is not measured, the comparison with 0.20.0 and "Upgrading from 0.20"; - the README's release lines name v0.21.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `10b0a299` (run 43382001273): only `witness_version`, the verdict hashes and the version strings of the IFC header and `IFCAPPLICATION` differ. **Why now.** The GlobalId pair (#1850 and #1859) is in `main`: the GlobalIds an export writes hold from one save of a project to the next, which 0.20.0 was cut without so that they ship together. `rvt-diff --elements` (#1843) and the `--redact` fix for Linux home folders (#1871) are in the same release, and #1874 corrects a warning that called deleted elements an incomplete IFC. Measured and rehearsed: - the comparison with 0.20.0 is in the section, from Measure runs [43381774360](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381774360) (unfiltered, `main` at `9b7dee8c` against `v0.20.0`'s `9bb58fe1`: 146 of 146 exports move and `diagnostics.json` is equal on all 121 models that publish one; the MEP samples' `bodies_across_saves` goes from FAIL to PASS on 6 saves, and no other scorer output differs; that the exports move only in their GlobalIds is what #1850's and #1859's own line-by-line comparisons found, the run compares hashes) and [43381779893](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381779893) (timing: 75 files at 0.94 to 1.06 times the time, median 1.00, and 0.99 to 1.01 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `9b7dee8c`, apart from the probes and the one docs line (#1876, #1877, #1878, #1880) that landed after it and move no export; - `publish.yml` rehearsal on this branch: [43383528785](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43383528785), on `bfa6859c`; only the changelog has changed since. ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. ## Related issues Release 0.21.0. Milestone `0.21.0`.
Summary
Openings, property sets, quantities, material associations and the relationships between entities now take their GlobalIds from the entity they belong to, not from the document's
Unique Document GUID, so they hold from save to save. #1840 found the GUID changes on every save, and #1854 showed it does so on every Autodesk sample. What belongs to no entity keeps the document seed. Closes #1854.Motivation
emit_data'sgidclosure seeded every derived GlobalId from the document's GUID. Between two saves of one project, every opening, property set, relationship and port took a new GlobalId while the elements kept theirs, so a tool that follows them by GlobalId (BCF on an opening, a property diff by set) saw every one removed and added again.probe_1854_project_seeds(run 43327315618, issue comment 6839343356) found no project-level seed that both holds across saves and differs between projects. The first episode and ProjectInfo's Revit GlobalId are the template's, one value on 64 of 102 models.Changes
src/ifc/step_writer.rs,emit_data: 44 of the 56gidsites are nowstable_guid(<owner's written GlobalId>, <same key>). Each owner:IfcRelDefinesByTypeLeft on the document seed (12 sites, and the fallback of the two port sites):
stable_guid's first parameter is nowseed, and its doc says what may seed it.RevitGlobalIds::document(src/ifc/mod.rs) anddocs/evidence.md's GlobalIds row say what the document seeds now.changelog.d/fixed/1854-owner-seeded-global-ids.mdcarries the upgrade note for clash and BCF users: every derived GlobalId changes once, in this release.probes/examples/probe_1854_global_id_census.rs: every GlobalId one export writes, by class, and how many it writes twice. For a sample and its later save, how many GlobalIds of each class both write. For arac_basicsample, how many it shares with therac_advancedsample of its year.This ships in the same release as #1850 (issue comment 6839580056), so each kind of entity moves once.
Testing
Unit tests are banned here. The evidence is one unfiltered Measure of this head against its merge-base with
main: the samples of every year, the BIM4LCA models, the R2025 set,rac_advancedand the held-out models, withprobe_1854_global_id_censusandprobe_pair_release=2026.Rows, registered before the run:
IfcBuildingElementsubtype, storey, type with a Revit GlobalId, project, site or building changes. Everydiagnostics.jsonis equal.duplicates=0on every model the probe reads.both> 0. Reported per pair, against the building elements' share held: the share held forIfcRelDefinesByProperties,IfcPropertySet,IfcOpeningElement,IfcRelVoidsElementandIfcRelAssociatesMaterial. On the base every such GlobalId differs between two saves by construction, since the document GUIDs differ on all 13 saves of each project.same-project gatespass.rustfmt --edition 2024 --checkpasses. CI runs the rest.1abc2fa5: only derived GlobalIds move, and across saves they hold except forrst_basic's containment and aggregation).Audit-honesty checklist
docs/evidence.md, theRevitGlobalIds::documentrustdoc). The fragment states what still moves.changelog.d/fixed/.Legal and contribution hygiene
GUIDUtilwas read for what Revit's export does, not copied (CLEANROOM source 5).Breaking changes
Every derived GlobalId changes once (the upgrade note in the fragment). No API change.