Skip to content

research: probe_1842_levels_named counts the Levels each element record's reference list names, by category, and where they lie against the record's box (#1842) (#1864) - #1878

Merged
DrunkOnJava merged 1 commit into
mainfrom
research/1842-levels-named
Nov 13, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

probe_1842_levels_named counts, per category, how many Levels each element record's reference list names, and where those Levels lie against the record's box. It prints counts only, so a reporter can run it on a file that must stay on their machine (probe-binaries.yml). Part of #1842 and #1864.

Motivation

A record that names exactly one Level is bound to it (RE-27), one that names exactly two to its base constraint (RE-59), and one that names three or more matches neither rule and stays unbound (fail closed). #1864's probe showed 12 beam records of Autodesk's rst_basic that name one more Level in the 2026 save than in the 2025 save, the same Level in all 12, which leaves 2 of them unbound. #1842's confidential Revit 2027 structural model reports 104 columns, beams, slabs, stair flights and footings on no storey. Whether those 104 are records naming three or more Levels, or none, and whether any model that has Revit's own export holds a record naming three, is not counted anywhere.

Changes

  • probes/examples/probe_1842_levels_named.rs (new):
    • reads every element record as the export does (partition_element_records);
    • per category, counts the placed instances naming 0, 1, 2 and 3 or more Levels, and the records that are not instances;
    • for records naming two or more, counts how many of the named Levels lie at or below the box base, strictly within the box and at or above its top;
    • prints no name, no ElementId and no elevation.

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 #1842 and #1864 (both stay open).

…rd's reference list names, by category, and where they lie against the record's box (#1842) (#1864)

A record whose reference list names exactly one Level is bound to it
(RE-27), one that names exactly two to its base constraint (RE-59), and one
that names three or more matches neither rule and is left unbound. Autodesk's
rst_basic saved by Revit 2026 holds 12 beam records that name three or two
Levels where the 2025 save names two or one (#1864), and a Revit 2027
structural model reports 104 columns, beams, slabs, stair flights and
footings on no storey (#1842). Whether those 104 are records that name three
or more Levels, or none, has not been counted.

The probe counts, per category, the placed instances by the number of Levels
their list names (0, 1, 2, 3 or more), and for the records naming two or
more, how many of those Levels lie at or below the box base, within the box
and at or above its top. It prints counts only, so a reporter can run it on a
file that cannot leave their machine (probe-binaries.yml).

No src change. Part of #1842 and #1864.
@DrunkOnJava
DrunkOnJava merged commit 5f9180b into main Nov 13, 2026
40 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1842-levels-named branch November 13, 2026 06:53
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