Skip to content

research: probe_1864_level_binds names the elements that choose their Level differently in two saves and prints what each save's record names (#1864) - #1876

Merged
DrunkOnJava merged 1 commit into
mainfrom
research/1864-level-binds
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
research/1864-level-binds

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

probe_1864_level_binds names the elements whose Level two saves of one project choose differently, and prints what each save's element record holds for them. It reads nothing new: it is the question #1864 asks, put to the elements instead of to counts. Part of #1864.

Motivation

#1843's element diff, run on Autodesk's 2025 and 2026 saves of rst_basic, lists 12 elements that differ in LevelBindSource, LevelElementId or LevelBindResolved (10 take another rule in the 2026 save; 2 lose their bind). The diff cannot say whether Autodesk changed the model between the saves or rvt-rs reads the two saves of one element differently, and probe_1843_element_diff prints counts per property, not the elements. Telling the two apart needs each element and, for each save, what its record names.

Changes

  • probes/examples/probe_1864_level_binds.rs (new):
    • exports both files as rvt-ifc does and takes the element diff (rvt::ifc::element_diff);
    • for each changed element with a level-bind change prints its entity, Tag, the three properties on each side and its name, and counts the changes by the rule each save chose;
    • per save prints the Levels the file holds, each with its Building Story setting;
    • per listed element and save prints each element record the file holds for it: category, stream and offset, container, placement kind, box base and top, the Levels its reference list names and the other elements it names (record=none where the save holds none).

Testing

Unit tests are banned in this repository: none added.

Audit-honesty checklist

  • README / docs reflect the current state after this PR (nothing user-visible changes)
  • N/A: no user-visible change, so no changelog fragment
  • N/A: no limitation resolved or introduced
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • The probe under probes/examples/ states its FACT

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content. revit-ifc is not read for this change.
  • No new test fixtures

Breaking changes

None.

Related issues

Refs #1864 (the issue stays open: its 12 level binds, 6 bodies and 1 profile are read from this probe's output and the next probes).

… Level differently in two saves and prints what each save's record names (#1864)

#1843's element diff lists 12 elements of Autodesk's rst_basic whose
LevelBindSource, LevelElementId or LevelBindResolved differ between the
2025 and the 2026 save, and prints counts per property, not the elements.
Whether the model changed between the saves or rvt-rs reads the two saves
of one element differently is read from the elements.

The probe lists each such element (entity, Tag, the three properties on
each side, name), counts the changes by the rule each save chose, and
prints per save the Levels the file holds (with each one's Building Story
setting) and, for each listed element, every element record the save holds
for it: category, stream and offset, container, placement kind, box base
and top, the Levels its reference list names and the other elements it
names. Equal records with different binds are a reading that differs;
records that differ are a change in the model.

No src change. Part of #1864.
@DrunkOnJava
DrunkOnJava merged commit b89cd06 into main Nov 13, 2026
37 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1864-level-binds branch November 13, 2026 06:46
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
## 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`.
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