Skip to content

ci(measure): run a two-file probe on each sample and the same project saved by another release (#740) (#742) - #799

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/measure-probe-pairs
Oct 18, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/measure-probe-pairs

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measure can now run a two-file probe on each Autodesk sample and the same project saved by another release. A new sample_years input limits a run to the releases a comparison needs.

Motivation

#740 and #742 check their readers by comparing each sample with the same model saved by a release rvt-rs already reads: 2027 against 2026, 2019 to 2022 against 2023, 2016 to 2018 against 2019. Measure could not run those comparisons, because its samples loop calls a probe with one file and --records. In #740 that call read --records as a path, so Measure confirmed only that element totals match. The per-ElementId and per-field tables in the README and the CHANGELOG were measured only on the contributor's machine. With this mode those tables are re-measured on the runners.

Changes

  • .github/workflows/measure.yml: two new inputs, both passed to the steps through env:
    • probe_pair_release: the release whose copies the samples are paired with;
    • sample_years: the first and last year handed to tools/fetch-autodesk-samples.sh. One year means from that year on, and empty means every release, as before.
  • tools/ci/measure-reference-models.sh: when PROBE_PAIR_RELEASE is set, each sample of another release is paired with the copy of the same project saved by that release and gets a probe-pair.txt. The probe is called with the sample first and the copy second, which is the argument order of probe_re179_revit_2027 (<file.rvt> [<other release's copy.rvt>]) and of feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) #742's two probes (<old> <2023 or 2019 copy>). The output ends with the probe's exit status. A project is identified by its file name without the year, the underscores and the sampleproject suffix, because 2016's rac_basic_sample_project is 2020's racbasicsampleproject. On the 49 pinned files this gives 10 projects: three span 2016 to 2027, two span 2024 to 2027, and five are Snowdon Towers 2024 models. No file maps to two projects.
  • CHANGELOG.md: a Research entry.

Testing

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • 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
  • N/A: no reverse-engineering finding, no IFC output change.

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
  • No new fixtures. Autodesk's samples are fetched for the run from their pinned hashes and never stored.

Breaking changes

None. Without the new inputs, Measure runs as before.

… saved by another release (#740) (#742)

A probe that compares two saves of one model, such as RE-179's 2027 against
2026, had no way to run in Measure: the samples loop calls each probe with
one file and --records. With probe_pair_release set, the probe also runs on
every sample of another release and the same project saved by that release
(paired by file name without the year, the underscores and "sampleproject"),
the sample first, into probe-pair.txt. sample_years passes a first and last
year to the sample fetcher, so a comparison reads only the releases it needs.
@DrunkOnJava
DrunkOnJava merged commit 05cecf9 into main Oct 18, 2026
48 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/measure-probe-pairs branch October 18, 2026 21:08
DrunkOnJava pushed a commit that referenced this pull request Oct 18, 2026
… layout (RE-180, RE-181) (#742)

## Revit 2015 to 2023 element records (RE-180, RE-181, #421)

Follows #741 (Revit 2019 to 2022, RE-180, folded into this PR) and is made on top of it. Revit 2015 to 2018 write their element records in the same 32-bit layout as 2019 to 2023, so the readers from #741 now read them too, using each release's own schema tags. Before this change, a 2015 to 2018 project exported no building element.

### What changes

- `REVIT_32BIT_RELEASES` is now 2015 to 2023, and `schema_tags` gains rows for 2015 to 2018. Each release's tags were read from its own schema. (2014 is left out; see the maintainer notes.)
- **Level placement kind.** A 2015 to 2018 Level record holds `0xffffef6f` where 2019 and later hold the instance kind `0xffffef7f`. Without this, no Level became a storey and no element was bound to its Level. `LEVEL_PLACEMENT_KIND_2015` now reads as the instance kind.
- **Wall flip.** As on 2019 and 2020, 2015 to 2018 write no word between a wall's location line and its flip.
- **Material shading.** The frame holds two pattern slots where 2019 holds four, because 2019 split each fill pattern into foreground and background. Without this, no material had a colour.
- **Element-data names (2015 to 2018 only).** A type's name is now looked for only in the type's own data, up to the next element's header, and one-unit entries are skipped. This fixes two cases: 9 walls of the 2018 `rac_basic` whose type was ambiguous, and 5 roofs of the 2016 samples that had no type. 2019 to 2023 are unchanged.

### Checked

There is no Revit export of a 2015 to 2018 file. The oracle is the same Autodesk sample saved by Revit 2019. The samples are pinned in `research/autodesk-sample-projects.tsv`, and none is committed.

| model | 2016 | 2017 | 2018 |
|---|---|---|---|
| `rac_basic`, fields agreeing / differing | 6,613 / 63 | 6,669 / 7 | **6,676 / 0** |
| `rst_basic` | 6,411 / 224 | 6,623 / 73 | 6,623 / 73 |
| `rac_advanced` | 62,795 / 12 | 62,806 / 1 | **62,807 / 0** |

- Every ElementId that a release shares with its 2019 copy has the same class in both.
- Every remaining field difference comes from the files' own bytes: element boxes, reference lists, 2016's shading colours, and 2016 `rst_basic`'s renamed families (RE-181 §6).
- The IFC exports have the 2019 copies' building elements, class for class. The 2018 `rac_basic` and the 2017 and 2018 `rac_advanced` exports match the 2019 exports line for line, apart from GlobalIds.
- 18 exports pass IfcOpenShell 0.9.0's schema validation with 0 issues: the 9 samples, the 2019 copies, three 2015 templates, the 2016 sample family and a 2014 project (which is not evidence and is no longer read).
- The IFC export is byte-identical to #741's on 91 local files of 2008 to 2027. Only the 2016 sample family changes, because it is now read from its records.
- `cargo fmt --check` and `cargo clippy --all-targets -D warnings` are clean.
- `cargo test --test integration` with the local corpus: 261 passed and 1 failed. The failure is `synthetic_project_emits_valid_ifc4`, which fails the same way on #741's head.

The table is the runners' (maintainer notes). Autodesk's six 2015 sample projects (pinned by #801) frame their records as 2019 does and carry the 2015 tags, and on five of them every ElementId shared with the 2019 copy has its class. The sixth, `rst_basic`, is another model (RE-181 §6).

### Limits

- Autodesk publishes no 2014 sample project, and Revit 2014 is not read, since its one project's origin is not documented.
- Revit 2013 and earlier are not covered.

Report: `reports/element-framing/RE-181-revit-2015-2018-element-records.md`. Probe: `examples/probe_re181_revit_2015_2018.rs`. The 2019 to 2022 report and probe are `RE-180-revit-2019-2022-element-records.md` and `probe_re180_revit_2019_2022.rs`.

## Legal and contribution hygiene

The changes in this PR are based on byte observations of Revit files (CLEANROOM.md Accepted sources 1): Autodesk's public sample projects `rac_basic`, `rst_basic` and `rac_advanced` of 2016 to 2019, as pinned in `research/autodesk-sample-projects.tsv`; Autodesk's `rac_basic_sample_family-2016.rfa` as the phi-ag/rvt corpus holds it; three Autodesk Revit 2015 templates; and one local Revit 2014 project. 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. I agree this work is licensable under Apache-2.0. The 2015 files are Autodesk's own templates shipped with Revit 2015 (build 20140117_1515), unmodified; the 2014 project is a local file whose origin cannot be documented. (puzzbobb, [comment](#742 (comment)))

## Maintainer notes (landing)

- **Revit 2014 is left out, as the contributor asked (fail closed).** No documented 2014 file backs it. So `REVIT_32BIT_RELEASES` is 2015 to 2023, the 2014 row of `schema_tags` is removed, and every release list and range this PR adds starts at 2015. `LEVEL_PLACEMENT_KIND_2014` is named `LEVEL_PLACEMENT_KIND_2015`. The RE-181 report keeps the 2014 measurements, marked as not evidence.
- **Renumbered** RE-178 to RE-180 and RE-179 to RE-181. RE-172 to RE-178 are helenkwok's PRs and RE-179 is #740's. That covers the reports, the probes, code comments, the support-matrix entries (`element-records-revit-2015-2018`), the CHANGELOG, README and supported profile. Only lines this PR adds were changed.
- **Rebased onto `main`** after #740, as one signed commit with puzzbobb as author; the merge commits are dropped. The 2027 lines this branch carried from #740 come from #740 itself, as the review said they would. Apart from the 2014 removal and the renumbering, each source file's added and removed lines are the PR's own, checked line by line against the branch's changes. The one exception is a list rustfmt rewrapped.


- **Reproduced on the runners.** Measure run [39161812159](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39161812159) (`-f samples=true`, base `main`) read Autodesk's 49 sample projects and CI's 6 reference models.
  - `rac_basic` 2016 to 2022 export 464 building elements and `rst_basic` 454, where `main` exports none; each equals its 2023 copy, class for class.
  - `rac_advanced` 2021 and 2022 export 5,657, as 2023 does. 2016 to 2020 export 5,606: 36 `IfcMember`, 5 `IfcSlab` and the 10 `IfcStairFlight` fewer, which RE-180 §6 explains as an earlier edit of the model.
  - Every 2024 to 2027 output and every reference model is byte-identical. Of the 2023 samples, only `rac_advanced` changes: 2 more entities and 2 more property values, from the one-unit name rule, which 2023 shares.
- **Two claims corrected to that measurement.** The CHANGELOG said "every 2023 to 2027 export is byte-identical" and gave every 2019 to 2022 export 2023's building elements. Both now say what Measure shows, and RE-180 §8 records the 2023 `rac_advanced` change.
- **Every table reproduced on the runners with Measure's paired probe** (#799): runs [39164970308](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164970308) for 2019 to 2022, [39164971874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164971874) for 2016 to 2018, and [39173916922](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39173916922) for 2015 and the 2019 MEP and `rst_advanced` projects.
  - Every marker count, every schema tag, and every `rst_basic` and `rac_advanced` row is exactly the contributor's.
  - On `rac_basic` the runners read one element fewer in both files and 79 more agreeing fields, at this commit and at both earlier heads (057f27a, 97cf970). Those rows of RE-180 §6 and RE-181 §6, and the table above, are the runners'.
  - The 2015 rows of RE-181 come from Autodesk's six 2015 sample projects, which #801 pinned, and no longer from templates only. The four 2019 counts in RE-180 §7 reproduce exactly.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…t, on its commit and on main (#740)

Measure could not run probe_re179_revit_2027, which takes two files, so the
2027 field counts in the CHANGELOG and the support matrix were the
contributor's. With #799 the runners give RE-179's table exactly at the
commit it was measured on (run 39166281214) and, on main at 70984ce, 616
more agreeing fields and the same 184 differing (run 39164968387): 363,072
of 363,256. The ElementId and class counts (20,818 of 20,818) are the same
on both. The report's Reproduce section named a Measure call that breaks
the probe; it now gives the paired one.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…t, on its commit and on main (#740) (#802)

## Summary

Records RE-179's 2027-against-2026 comparison as Measure's paired probe (#799) gives it on GitHub's runners. The CHANGELOG and the support matrix now give the field counts that `main` produces.

## Motivation

#740's README, CHANGELOG and support-matrix claims came from the contributor's machine. Measure's samples loop calls a probe with one file and `--records`, which `probe_re179_revit_2027` reads as a second path, so Measure could not check those claims. With #799 it can:

- At the commit #740 measured (4038188, run [39166281214](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39166281214)), the runners give RE-179's table exactly. That is 20,818 of 20,818 ElementIds with the same class, and 362,456 of 362,640 fields agreeing.
- On `main` at 70984ce (run [39164968387](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164968387)), the ElementIds and classes are the same. Later changes read more fields, so 363,072 of 363,256 agree: 616 more agreeing, and the same 184 differing.

| model | agreeing at 4038188 | agreeing on `main` | differing (both) |
|---|---:|---:|---:|
| `rac_basic` | 9,624 | 9,646 | 45 |
| `rac_advanced` | 104,254 | 104,420 | 129 |
| `rst_basic` | 8,064 | 8,064 | 0 |
| `rme_basic` | 120,706 | 120,920 | 10 |
| `rme_advanced` | 119,808 | 120,022 | 0 |

## Changes

- `reports/element-framing/RE-179-revit-2027-element-records.md`:
  - The dated table is kept, with both runs and `main`'s counts below it.
  - The Reproduce section named a Measure call that breaks the probe. It now gives the paired call.
- `CHANGELOG.md`: the #740 entry gives `main`'s field count.
- `docs/support-matrix.json`: `element-records-revit-2027` gives `main`'s field count.

The README's 2027 row cites only the 20,818 ElementIds, which both runs reproduce, so it is unchanged.

## Testing

- Docs only. `json.load` parses `docs/support-matrix.json`, and `tests/support_matrix.rs` runs in CI.
- The numbers come from the two runs above. Each run's artifact holds each 2027 sample's `probe-pair.txt`.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [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] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
- [x] No fixtures

## Breaking changes

None.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## Summary

Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then.

## Motivation

Since 0.5.1, `main` has:

- **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked.
- **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820).
- **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records.
- **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838).
- **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806).

## Changes

- **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries.
- **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary.
- **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now.
- **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run.

## Testing

- CI on this pull request, the witness replays included.
- Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate.
- Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [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] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

## Breaking changes

See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and documentation-only release prep with no runtime code changes in this PR.
> 
> **Overview**
> **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19).
> 
> **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list.
> 
> No application or library source changes in this diff; it packages and narrates work already on `main`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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