Skip to content

deps(deps): bump EmbarkStudios/cargo-deny-action from 1.6.3 to 2.0.17 - #5

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

Bumps EmbarkStudios/cargo-deny-action from 1.6.3 to 2.0.17.

Release notes

Sourced from EmbarkStudios/cargo-deny-action's releases.

v2.0.11

[0.18.2] - 2025-03-10

Added

  • PR#753 resolved #752 by adding back the advisories.unmaintained config option. See the docs for how it can be used. The default matches the current behavior, which is to error on any unmaintained advisory, but adding unmaintained = "workspace" to the [advisories] table will mean unmaintained advisories will only error if the crate is a direct dependency of your workspace.

[0.18.1] - 2025-02-27

Fixed

v2.0.10

  • PR#96 resolved #94 by switching to the directory the manifest path is located in and doing rustup toolchain install if rustup show failed due to any reason

v2.0.8

  • PR#93 pins to a hash instead of tag, avoiding future breakage from eg. rustup changes.
Commits

@dependabot @github

dependabot Bot commented on behalf of github Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, github-actions. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot changed the title chore(ci)(deps): bump EmbarkStudios/cargo-deny-action from 1.6.3 to 2.0.17 deps(deps): bump EmbarkStudios/cargo-deny-action from 1.6.3 to 2.0.17 Apr 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17 branch from 9eeaf3b to 65b8042 Compare April 20, 2026 15:15
@dependabot
dependabot Bot requested a review from DrunkOnJava as a code owner April 20, 2026 15:15
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17 branch 5 times, most recently from 89e630b to 763bc5e Compare April 20, 2026 20:05
Bumps [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) from 1.6.3 to 2.0.17.
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](EmbarkStudios/cargo-deny-action@3f4a782...91bf2b6)

---
updated-dependencies:
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-version: 2.0.17
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17 branch from 763bc5e to 9925f7c Compare April 20, 2026 21:45
DrunkOnJava added a commit that referenced this pull request Apr 20, 2026
cargo-deny-action@3f4a7 was v1.6.3 (despite the inline `# v2`
comment), which bundles a Cargo old enough to reject our
`edition = "2024"`:

  error: this version of Cargo is older than the `2024` edition,
         and only supports `2015`, `2018`, and `2021` editions

Bumps the SHA pin to 91bf2b62 (v2.0.17), matching dependabot PR
#5. Same bump lets us revert deny.toml's `unmaintained = "warn"`
workaround back to `"workspace"` — the 2.x action's newer
cargo-deny accepts the workspace-scoped keyword.

(Dependabot PR #5 proposes the same change; closing it once this
lands.)
@dependabot @github

dependabot Bot commented on behalf of github Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

Looks like EmbarkStudios/cargo-deny-action is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Apr 20, 2026
@dependabot
dependabot Bot deleted the dependabot/github_actions/EmbarkStudios/cargo-deny-action-2.0.17 branch April 20, 2026 23:41
DrunkOnJava added a commit that referenced this pull request Apr 21, 2026
…tions landed

First real-world project-file corpus probe (Q-01 partial). Found two
redistributable .rvt files in magnetar-io/revit-test-datasets (MIT-
licensed, Git LFS), plus SSeelos/MyRevitProject.rvt (license-unclear,
probe-only). Ran the full rvt-rs CLI suite against them.

Findings write-up: docs/project-file-corpus-probe-2026-04-21.md

Headline results:

- **Phase D thesis holds on real project files.** The schema→data
  linkage (340× non-uniform tag frequency on family files) reproduces
  at 323× on the 2024 project file. AbsCurveGStep is still the top
  tag, HostObjAttr/GeomStep/AbsDbViewPressureLossReport follow. The
  core 'schema IS the type dictionary' claim survives corpus
  expansion.
- **Correction to README Phase D Finding #5.** The 'stable Revit
  format-identifier GUID' (3529342d-...) is a FAMILY-FILE anchor, not
  a universal Revit-file anchor. Project files carry different GUIDs
  (three observed, three different). The 165-byte invariant region is
  also shorter on project files (85/87 bytes). README finding #5 was
  overclaiming scope; corrected to explicitly say 'family files' and
  cross-link to the new probe doc.
- **Multiple Partitions/NN per file** in real projects (vs 1 in
  family files): observed 6 each in both magnetar files, with
  non-contiguous numbering suggesting per-partition release markers.
  Opens a new research thread, not a bug.
- **Global/Latest on Revit 2025 has no gzip magic at any offset** in
  one probed file. Three explanations possible (corruption, new
  compression, cloud-workshared variant). Three files isn't enough
  to disambiguate. Tracked as an open question.

No code changes in this commit — the inflate_at_auto helper that
handles the prefix-8/prefix-0 variation landed earlier. All 697 lib
tests + 38 fuzz regressions + 9 integration tests still pass.
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
cargo-deny-action@3f4a7 was v1.6.3 (despite the inline `# v2`
comment), which bundles a Cargo old enough to reject our
`edition = "2024"`:

  error: this version of Cargo is older than the `2024` edition,
         and only supports `2015`, `2018`, and `2021` editions

Bumps the SHA pin to 91bf2b62 (v2.0.17), matching dependabot PR
#5. Same bump lets us revert deny.toml's `unmaintained = "warn"`
workaround back to `"workspace"` — the 2.x action's newer
cargo-deny accepts the workspace-scoped keyword.

(Dependabot PR #5 proposes the same change; closing it once this
lands.)
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
…tions landed

First real-world project-file corpus probe (Q-01 partial). Found two
redistributable .rvt files in magnetar-io/revit-test-datasets (MIT-
licensed, Git LFS), plus SSeelos/MyRevitProject.rvt (license-unclear,
probe-only). Ran the full rvt-rs CLI suite against them.

Findings write-up: docs/project-file-corpus-probe-2026-04-21.md

Headline results:

- **Phase D thesis holds on real project files.** The schema→data
  linkage (340× non-uniform tag frequency on family files) reproduces
  at 323× on the 2024 project file. AbsCurveGStep is still the top
  tag, HostObjAttr/GeomStep/AbsDbViewPressureLossReport follow. The
  core 'schema IS the type dictionary' claim survives corpus
  expansion.
- **Correction to README Phase D Finding #5.** The 'stable Revit
  format-identifier GUID' (3529342d-...) is a FAMILY-FILE anchor, not
  a universal Revit-file anchor. Project files carry different GUIDs
  (three observed, three different). The 165-byte invariant region is
  also shorter on project files (85/87 bytes). README finding #5 was
  overclaiming scope; corrected to explicitly say 'family files' and
  cross-link to the new probe doc.
- **Multiple Partitions/NN per file** in real projects (vs 1 in
  family files): observed 6 each in both magnetar files, with
  non-contiguous numbering suggesting per-partition release markers.
  Opens a new research thread, not a bug.
- **Global/Latest on Revit 2025 has no gzip magic at any offset** in
  one probed file. Three explanations possible (corruption, new
  compression, cloud-workshared variant). Three files isn't enough
  to disambiguate. Tracked as an open question.

No code changes in this commit — the inflate_at_auto helper that
handles the prefix-8/prefix-0 variation landed earlier. All 697 lib
tests + 38 fuzz regressions + 9 integration tests still pass.
DrunkOnJava added a commit that referenced this pull request Sep 19, 2026
… dozen times (#266)

## Summary

The weekly Performance Budgets workflow fails the `medium` category on
`2024_Core_Interior.rvt`. The cost is not the geometry the August
element-record work added — it is that work re-inflating the same
partition bytes more than twenty times per export. This memoises the
inflate on the `RevitFile` handle and fixes the two per-byte scans that
dominated what was left. IFC output is byte-identical.

Measured against `main` at `8425a3f` (i.e. **after** #267, #268 and
#269), `ifc_export` goes **17.88 s to 1.45 s** and peak RSS **2642.0 MiB
to 516.2 MiB**, and every `medium` budget passes.

## Motivation

Every partition consumer opened the CFB stream, inflated all its gzip
members and concatenated them for itself:

- `partition_element_records::scan_category_records_multi` — once per
`BuiltInCategory`: columns (RE-26), walls (#211), doors and windows
(RE-23), and floors / building pads / sketch lines (RE-22, RE-25)
- `partition_arc_walls::scan_partition_arc_walls_with_limits`
- `partition_schema_mvp::floors_from_partition_plan_loops` and
`rect_openings_from_partitions`
- `partition_level_records::scan_partition_levels` (RE-24) and
`scan_partition_level_ids` (RE-27, #267)
- `partition_ifc_export_overrides::scan_ifc_export_overrides`
- `partition_scanner::scan_partitions_with_control`
- `object_graph::string_records_from_partitions`, asked for separately
by unit recovery, storey names and the partition MVP

`RvtDocExporter::export_with_diagnostics` then walks the document a
second time to build diagnostics, doubling all of it. On this file the
eight `Partitions/*` streams inflate to 178.9 MiB, so that is well over
3 GiB of redundant inflate per export — plus a byte-at-a-time
`chunks.into_iter().flatten().collect()` per pass, which profiled higher
than the inflate itself.

Hotspot shares from a `samply` profile of `rvt-ifc --mode geometry` on
the pre-change tree (inclusive, 14,467 samples):

| region | share | what it was |
| --- | --- | --- |
| inflate + per-pass concat | 33 % + 24 % |
`inflate_all_chunks_for_stream` and the `flatten().collect()` join,
repeated per consumer |
| `object_graph::extract_string_records` | 34 % (26 % in encoding_rs) |
UTF-16 decode of the whole `Partitions/NN`, run once per consumer |
| `find_category_records` | 3.6 % before, 21 % once inflate was cached |
hand-rolled substring search, once per category over every partition
byte |

## Changes

- `src/compression.rs` — new `InflatedStream`: all gzip members of one
stream inflated and concatenated once, with each member's end offset.
That is exactly the two shapes the callers were rebuilding (plain
concatenation; concatenation plus `chunk_ends` for the scanner), and it
reserves the exact total instead of growing through `Flatten`.
- `src/reader.rs` — `RevitFile::inflated_partition` memoises it per
stream path, `RevitFile::partition_stream_names` replaces six copies of
the same filter, and `RevitFile::partition_string_records` memoises the
`Partitions/NN` string extraction. `RevitFile` never writes a stream, so
one inflate is valid for the life of the handle.
- `src/partition_element_records.rs`, `src/partition_arc_walls.rs`,
`src/partition_level_records.rs`,
`src/partition_ifc_export_overrides.rs`, `src/partition_scanner.rs`,
`src/partition_schema_mvp.rs` — read through the cache instead of
re-inflating.
- `src/object_graph.rs` — `extract_string_records` screens candidates on
the raw code units before decoding. The strict test it applies (every
char graphic, space, tab or newline) is decidable on the bytes: only
ASCII encodes as `[byte, 0x00]` in UTF-16LE, and every other sequence —
non-ASCII, an astral pair, a lone surrogate that decodes to U+FFFD —
yields a char outside that set. Previously it decoded and heap-allocated
at every offset whose length field happened to land in `1..=400`, which
binary data does at a large fraction of offsets, then threw nearly all
of them away.
- `src/partition_element_records.rs` — `find_subslice` now calls
`memchr::memmem::find`, the vectorised form of the
first-byte-then-compare loop it spelled out by hand. The category sweep
runs it over ~180 MiB per category.
- `src/ifc/mod.rs` — `recover_project_units` and
`collect_partition_building_storey_names` take the shared string
records.
- `Cargo.toml` — adds `memchr = "2"`. **This adds no crate to the build
graph**: `cargo tree -p rvt -e normal -i memchr` shows memchr 2.8.0 is
already a normal (non-dev) transitive dependency through both quick-xml
and serde_json. `cargo deny check` passes (advisories ok, bans ok,
licenses ok, sources ok).

### Second commit: the RE-27 sweep

#267 landed while this was in review and added
`scan_partition_level_ids`, a new sweep over every `Partitions/*` stream
— the ~2 s its author measured on Core Interior. The follow-up commit
here routes it through `RevitFile::inflated_partition` like every other
partition consumer, so it costs a scan rather than a decompress. With
that, no partition sweep in `src/` re-inflates:

```
$ grep -rn "inflate_all_chunks_for_stream\|read_stream(&stream)\|read_stream(&partition)" src/ | grep -v "^src/compression.rs"
(no matches)
```

No behaviour flags, no new public semantics, no geometry changes.

## Testing

All numbers below were re-taken against `main` at `8425a3f`, after
merging it into this branch.

- [x] `cargo test --all` passes locally — `tools/check-local.sh` (fmt,
clippy `-D warnings`, rustdoc `-D warnings`, `cargo test --workspace
--all-targets --all-features`) exits 0. With `RVT_PROJECT_CORPUS_DIR`
set to the magnetar Revit tree: **1252 passed, 0 failed**, including
#267's new `core_interior_2024_storey_containment_is_evidence_backed`
corpus gate.
- [x] `cargo clippy --all-targets --all-features -- -D warnings` passes
- [x] `cargo fmt --check` passes
- [x] New / changed code has unit tests — no new behaviour to test; the
change is covered by the existing suite plus the byte-identity evidence
below. `tests/project_count_fixtures.rs` and `tests/witness_registry.rs`
pass against the real reference exports (`IFC
Exports/2024_Core_Interior_slim.ifc` sha256 `bfdf36ff…` and
`Revit/2024_Core_Interior.ifc` sha256 `d07c7462…`, both matching the
manifests), so every scored count — 15 storeys, 360 walls, 80 slabs, 132
doors, 6 windows, 256 columns, 20 shading devices, 138
`IFCRELFILLSELEMENT` pairs — is reproduced.
- [x] IFC exporter byte-identity — see below.
- [ ] `tools/bench.sh` — **not run**: it needs the phi-ag `rac*.rfa`
sample family, which is not in this checkout. `tools/perf_budget.py` was
used instead, which is the harness the failing workflow actually runs.

### Byte-identical output

`rvt-ifc --mode geometry`, a binary built from `main` at `8425a3f`
versus this branch, same input:

| file | main `8425a3f` | this branch | |
| --- | --- | --- | --- |
| `2024_Core_Interior.rvt` | 1,633,625 bytes | 1,633,625 bytes |
identical |
| `Revit_IFC5_Einhoven.rvt` | 44,701 bytes | 44,701 bytes | identical |

`diff` of the two STEP files with the `FILE_NAME` timestamp line
stripped reports exactly one remaining line, the other wall-clock field
the writer stamps:

```
12c12
< #5=IFCOWNERHISTORY(#3,#4,$,.ADDED.,$,#3,#4,1789844650);
---
> #5=IFCOWNERHISTORY(#3,#4,$,.ADDED.,$,#3,#4,1789844652);
```

Normalising both clock fields (drop `FILE_NAME(`, replace the
`IFCOWNERHISTORY` epoch), the two sides hash the same:

```
2024_Core_Interior   main/branch  sha256 4d1382e93b012761c7b1d7810760b0a0f4b9dabdbed0a9b336e407e0b738d489
Revit_IFC5_Einhoven  main/branch  sha256 f6c32f237338b1236757b2849148d421e7672ee5b569fc4f15545c80af640382
```

Note these hashes differ from the pre-#267 ones — that is #267's
intended storey-binding change, which this branch reproduces exactly.

There is no deterministic-timestamp switch (no `SOURCE_DATE_EPOCH`
support in `ifc::step_writer`), so the two clock fields cannot be pinned
without a behaviour change; adding one is out of scope here.

### Performance

`tools/perf_budget.py --require-category medium`, release profile,
`RVT_PROJECT_CORPUS_DIR` on the magnetar Revit tree. Both columns
measured on the same machine (Apple Silicon, macOS) minutes apart,
baseline from a clean `main` tree at `8425a3f`:

| operation | main `8425a3f` | this branch | budget |
| --- | --- | --- | --- |
| `open` | 14.86 ms / 34.6 MiB | 13.13 ms / 34.6 MiB | 1500 ms / 512 MiB
|
| `summarize` | 18.12 ms / 36.0 MiB | 18.64 ms / 36.0 MiB | 5000 ms /
768 MiB |
| `schema_parse` | 14.61 ms / 35.8 MiB | 13.75 ms / 35.7 MiB | 1500 ms /
768 MiB |
| `element_decode` | **6116 ms / 1858.0 MiB** | 919 ms / 478.5 MiB |
12000 ms / 1024 MiB |
| `ifc_export` | **17880 ms / 2642.0 MiB** | 1454 ms / 516.2 MiB | 15000
ms / 1024 MiB |
| `viewer_parse_render` | **18014 ms / 2642.6 MiB** | 1469 ms / 498.8
MiB | 18000 ms / 1024 MiB |

On this machine `main` fails all three heavy rows — `ifc_export` and
`viewer_parse_render` on time, all three on peak RSS. After, every row
passes with an order of magnitude of headroom.

`rvt-ifc --mode geometry` on `2024_Core_Interior.rvt` under
`/usr/bin/time -l`, best of three:

| | wall | peak RSS |
| --- | --- | --- |
| main `8425a3f` | 26.07 s | 2641.4 MiB |
| this branch | **1.69 s** | **490.1 MiB** |

`Revit_IFC5_Einhoven.rvt` control: 0.44 s / 25.1 MiB on main, 0.12 s /
20.7 MiB on this branch.

For reference, the same comparison taken before #267 landed (main at
`730699c`): `ifc_export` 17352 ms to 1366 ms, `element_decode` 5682 ms
to 866 ms. #267 added roughly 0.5-0.9 s of `ifc_export` on the
unoptimised side and none on this one, because its new sweep now reads
an already-inflated buffer.

**No budget change is proposed and none is needed.** Extrapolating to
the GitHub runner from the ratio the workflow reported on the pre-#267
tree — CI `element_decode` 8.5 s against 5.62 s here, CI `ifc_export`
24.5 s against 17.25 s here, so roughly 1.4–1.5× — these numbers project
to about 1.3 s for `element_decode`, 2.1 s for `ifc_export` and 2.1 s
for `viewer_parse_render`, against budgets of 12 s, 15 s and 18 s. Worth
noting that on this machine #267 pushed `viewer_parse_render` past its
18 s budget too (18014 ms against 18000 ms), so the `medium` category
was getting worse, not stable.

One honest caveat on the memory column: the workflow reported ~480–510
MB peak RSS for the failing baseline, where this macOS machine measures
~2640 MiB for the same baseline binary. That is an allocator difference,
not a measurement error — glibc returns freed pages to the OS where
macOS libmalloc retains them, and the baseline's repeated 180 MiB
transient allocations are exactly the pattern that exposes it. The
direction of the change is the same on both platforms: one retained copy
of the inflated partitions replaces many transient ones, and peak RSS
should fall on Linux too.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no doc
claims change; this is a pure performance change with identical output
- [x] If a limitation was resolved, the relevant docs are updated — N/A,
no limitation resolved
- [x] If a new limitation was introduced, it is documented — one
tradeoff, documented in-code on `RevitFile::inflated` and
`InflatedStream`: the inflated `Partitions/*` bytes (178.9 MiB on this
file) now stay resident for the life of the handle rather than being
rebuilt per consumer. Measured peak RSS falls sharply anyway, because
the transient copies it replaces cost more than the one it keeps.
- [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
- [x] If this is a reverse-engineering finding: N/A, no new finding — no
decoder, offset or record shape changes

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals, or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. Three additions to `RevitFile`'s public surface
(`inflated_partition`, `partition_stream_names`,
`partition_string_records`) and one new public type
(`compression::InflatedStream`);
`object_graph::string_records_from_partitions` keeps its signature and
now returns a clone of the shared result.

## Screenshots or output samples

IFC output is byte-identical to `main` at `8425a3f` — see the diff and
hashes above.

## Related issues

Refs the `Performance Budgets` workflow `medium` category failure.
Builds on #267 (RE-27), whose new partition sweep the second commit
routes through the same cache. No issue number was given for the budget
failure.
DrunkOnJava added a commit that referenced this pull request Sep 19, 2026
…mes, numbers, storeys and envelopes (#278)

## Summary

Revit rooms are carried by the same partition element record every other
category uses — `BuiltInCategory` `OST_Rooms` (-2000160), under the
unchanged #211 instance rule — and their number, name and host Level sit
in the room's own parameter block. Recovering both replaces the 18
name-only `IFCSPACE` rows with **116 record-backed rooms** whose id set,
names, numbers, storeys, plan envelope and floor-to-ceiling extent all
match Revit's own export exactly. The boundary **polygon** stays a
measured negative, so #90 stays open for it.

## Motivation

#90 asks for real space boundaries in place of a "placeholder 10x10x8 ft
bounding box". #219 records the 18 name-only `IFCSPACE` as the largest
remaining unbound set. Measured first, the shape on `main` was worse
than #90 describes: 18 rows named `Room-unnamed`, `Representation` `$`,
**no body at all**, and no storey.

The winning pattern in this repo is RE-21 → RE-22 → RE-25: find the
per-instance element record for the category, prove the instance set
against the export's ElementId set, then recover geometry from the same
record family. That is what this does.

## What was proven, with numbers

All against `IFC Exports/2024_Core_Interior_slim.ifc` (sha256
`bfdf36ff…`), Revit's own full-project export.

**1. The carrier, measured not assumed.** `probe_re29_room_records`
brute-scans every offset of every inflated `Partitions/*` stream,
histograms every `BuiltInCategory` across all **23 470** decodable
records, and scores each one's instance-rule selection against the 116
room ElementIds the export carries in `IfcSpaceType.Tag` (`IfcSpace`
declares no `Tag`, so the id travels one hop through
`IfcRelDefinesByType`):

| category | records | ids | instance rule selects | TP | FP | FN |
|---:|---:|---:|---:|---:|---:|---:|
| `-2000160` `OST_Rooms` | 399 | 277 | **116** | **116** | **0** | **0**
|
| every other category | 23 071 | — | — | — | — | — |

No other category intersects the wanted set at all.

**2. Number, name and Level, from the room's own parameter block.**
RE-22 found a parameter value at a fixed *negative* offset from two
copies of the owning `ElementId`; a room's strings are the same shape
read forward from the owner:

```text
+0x000  u64  owning room ElementId
+0x03c  u64  owning room ElementId   (confirmation; must agree)
+0x044  u64  host Level ElementId
+0x1f5  u32  number length, UTF-16 units
+0x1f9  2*n  room Number, UTF-16LE
+…+ 8   u32  name length             (8 bytes past the number's end)
+…+12   2*m  room Name, UTF-16LE
```

The name's offset is not fixed because the number's length is not, which
is why the block is parsed forward rather than backward from either
string.

| | |
|---|---:|
| rooms accepting the framing | **116 / 116** |
| rooms framed twice with no disagreement | **116 / 116** |
| recovered name equals `IfcSpace.LongName` | **116 / 116** |
| recovered number equals `IfcSpace.Name` | **116 / 116** |
| **non-room declared ids accepting the framing** | **0 / 26 309** |

Recovery is all-or-nothing per room: blocks that disagree drop the room
rather than pick a side.

**3. The body.** The record bbox *is* the export's plan envelope and
vertical extent — not an approximation:

| record chosen per id | plan bbox exact | worst plan Δ | `z` base | `z`
top |
|---|---:|---:|---:|---:|
| first by `(stream, offset)` | 5 / 116 | 0.166667 ft | 116 | 116 |
| **newest, per RE-26** | **116 / 116** | **3.730e-12 ft** | **116** |
**116** |

111 of 116 rooms carry frames that disagree about the plan box, so the
RE-26 newest-frame tie-break is load-bearing here. Re-measured on the
emitted IFC after the metre round-trip: plan envelope exact 116/116
(worst 1.640e-06 ft, the writer's six-decimal rounding), `z` range exact
116/116 (worst 1.421e-14 ft).

**4. Storey containment (#219).** All 116 bind through the RE-27 Level
reference — every room record names **exactly one** Level, unlike
columns and walls which carry base *and* top constraints. The ten Level
ElementIds map one-to-one onto ten `IfcBuildingStorey`, and each is the
storey the export aggregates the room into. **This is the first part of
RE-27's bind scored against Revit's own containment.** The parameter
block's own Level slot agrees 116/116 independently, as does the record
base `z` against the storey elevation.

## What stayed negative, and why

**The boundary polygon is not in the file.** Four independent tests:

1. **No ordered vertex run.** Every byte offset of every inflated
partition, tested as the start of each of the 116 polygons' vertex
sequences, cyclically from any vertex, at strides of **2, 3, 4 and 6**
doubles, in **both** windings, quantised to 1e-6 ft → longest run **2**,
complete **0 / 116**. A **translation-invariant** pass (anchored on an
edge *delta*, so a local frame is still found) reaches longest run
**3**, complete **0 / 116** — against polygons of 4 to 22 vertices.
2. **Rooms are not sketched.** The 126 distinct `OST_SketchLines` owners
RE-25 recovers include **0** rooms.
3. **The record tail holds no coordinates** — 64 doubles of `0.0`, `NaN`
sentinels and small words.
4. **The reference list is too short** — `[3, <Level>, <wall>, <wall>,
<own id>]`, length 5 on all 116, against a room with nine vertices.

All 108 distinct reference coordinates and all 186 distinct vertices
*are* in the file, as wall faces — what is absent is any place a room's
own vertices sit in order. This matches Revit's model: a room's boundary
is computed from its bounding elements, not stored. `ProfileResolved`
stays `false`; recovering the enclosure from the recovered wall set is a
different problem and is not attempted.

How good the box is, stated rather than glossed: **76 of 116** record
boxes equal their room's polygon exactly in area, **40** over-state it
(total 20 870.7 sq ft of box against 19 582.1 sq ft of polygon, ratio
1.0658, worst 2.037 on the 22-vertex room 25945).

## Measured before / after on `2024_Core_Interior.rvt`

| | before | after |
|---|---:|---:|
| `IFCSPACE` | 18 (no id, no body, no storey) | **116** (exact id set) |
| building elements | 872 | **970** |
| with a recovered body | 854 | **970** |
| `storey_bound_elements` | 853 | **969** |
| by record Level reference | 372 | **488** |
| on the `IfcBuilding` (storey unknown) | 19 | **1** |
| `IFCPROPERTYSET` / `IFCRELDEFINESBYPROPERTIES` | 854 | 970 |
| total instances | 23 726 | 26 358 |
| `IFCWALL` / `IFCDOOR` / `IFCWINDOW` / `IFCCOLUMN` / `IFCSLAB` /
`IFCSHADINGDEVICE` / `IFCBUILDINGSTOREY` / `IFCRELFILLSELEMENT` | 360 /
132 / 6 / 256 / 80 / 20 / 15 / 138 | unchanged |
| `unsupported_features` | includes `partial_element_geometry` |
**gone** |
| geometry warnings | `curve=18, missing_level=19,
missing_dimensions=18` | `missing_level=1` |

`partial_element_geometry` disappearing is the honest consequence of the
last geometry-free elements gaining a body.

Both OctetProof verdicts stay **PASS**, and the full-project claimed
surface goes **13 → 14 fields** (excluded 3 → 2):
`entity_counts.IFCSPACE` joins it, with rvt-rs, IfcOpenShell 0.8.5 and
IFClite 7.1.1 all at 116, 0 diffs.

## Changes

- `src/partition_room_parameters.rs` **(new)** — the parameter-block
framing, the confirmation test, the forward parse, `resolve_unique`.
- `src/partition_element_records.rs` — `OST_ROOMS`.
- `src/partition_schema_mvp.rs` —
`rooms_from_partition_category_records` / `room_instances_from_records`;
the string-derived rooms stand down where records decode, the same trade
the plan-loop floors take against record-backed slabs.
- `src/ifc/export_content.rs` — `RoomNumber` / `RoomName` join the
record property set.
- `src/ifc/step_writer.rs` — `IfcSpace.LongName` is the recovered room
name when there is one (the slot Revit uses for it); `Name` keeps the
`Room-<ElementId>` identity, because `IfcSpace` declares no `Tag` and
the STEP line would otherwise carry no source id.
- `src/ifc/compare.rs` — the `IFCSPACE` divergence note.
- `examples/probe_re29_room_records.rs` **(new)** — the reproducible
probe: category histogram, instance scoring, record dump, vertex-run
search, name-carrier search, parameter-block scoring.
- `reports/element-framing/RE-29-room-instance-and-envelope.md`
**(new)**.
- `tests/iter_elements_typed.rs` —
`core_interior_2024_room_instances_names_and_envelopes`, which re-reads
the reference export and scores the id set, names, numbers and Level
bindings directly.
- `tests/fixtures/project-counts/*.json`, `research/witness/**`,
`docs/{status,user-guide,ifc-compare,contribution-map,support-matrix}`,
`CHANGELOG.md` — measured numbers only.

Deliberately **not** touched beyond what the space path needs:
`export_content.rs` keeps its structure (two constants and one field
read), and `step_writer`'s change is one private function signature with
a single call site.

## Testing

- [x] `cargo test --all` passes locally
- [x] `cargo clippy --all-targets --all-features -- -D warnings` passes
- [x] `cargo fmt --check` passes
- [x] New / changed code has unit tests — 11 in
`src/partition_room_parameters.rs` (written against synthetic blocks
before the implementation, covering the happy path, a longer number
shifting the name, a disagreeing confirmation slot, a wrong anchor,
implausible and zero lengths, a control character, truncation at three
offsets, scan scoping, agreeing and disagreeing duplicate blocks, an
unsupported release, and a Level slot outside the recovered set) plus
`space_long_name_comes_from_the_room_name_property` in
`src/ifc/step_writer.rs`
- [x] IFC exporter touched: `tests/fixtures/synthetic-project.ifc` is
**byte-identical** — the synthetic fixtures emit no space with a
`RoomName` property, so the `LongName` branch falls back to the element
`Name`, which is what it wrote before
- [x] N/A: no new element decoder in the `elements/` sense (the recovery
is a record scan, gated by `src/partition_room_parameters.rs::tests` and
the corpus gate)
- [x] N/A: not a performance change. The room path costs one extra
needle search in the existing category sweep plus one owner-anchored
pass; end-to-end export on Core Interior is 2.0 s → 2.7 s

Commands run:

```bash
export PATH="$HOME/.cargo/bin:$PATH"
tools/check-local.sh
RVT_PROJECT_CORPUS_DIR=<abs>/_project_corpus/Revit \
  cargo test --profile ci --test project_count_fixtures
RVT_PROJECT_CORPUS_DIR=<abs>/_project_corpus/Revit \
  cargo test --profile ci --workspace --all-targets --all-features
```

All green, re-run after `git merge origin/main`.

## Audit-honesty checklist

- [x] README / docs reflect the current state — `docs/status.md`,
`docs/user-guide.md`, `docs/ifc-compare.md`, `docs/contribution-map.md`
and `docs/support-matrix.json` all carry the new numbers, and the stale
801-of-872 / 853-of-872 / "18 name-only spaces" claims are corrected
- [x] Limitation resolved: `rooms_spaces` moves `known_gap` → `known` on
the full-project manifest at 116 tolerance 0; `partial_element_geometry`
is removed from `unsupported_features` because it genuinely no longer
fires
- [x] New limitation documented: the boundary polygon is a **measured
negative**, recorded in RE-29 §4, in the manifest notes, in the
support-matrix row and in the corpus gate (which asserts no room claims
a plan profile)
- [x] Commit messages describe what and why
- [x] No emojis
- [x] No private paths, personal emails or internal jargon in committed
files
- [x] Reverse-engineering finding: reproducible probe at
`examples/probe_re29_room_records.rs` and a dated report at
`reports/element-framing/RE-29-room-instance-and-envelope.md`. Following
the convention of RE-21 through RE-28, the dated addendum lives in
`reports/element-framing/` rather than in
`docs/rvt-moat-break-reconnaissance.md`

**Clean-room declaration.** The changes in this PR are based on public
byte observations of `2024_Core_Interior.rvt`
(magnetar-io/revit-test-datasets, MIT), Autodesk's publicly documented
`BuiltInCategory` constants, and the buildingSMART IFC4 specification
plus Revit's own publicly-exported IFC file. 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.

## Breaking changes

None to the API. Two output changes a consumer may notice, both
intended:

- `IFCSPACE` goes 18 → 116 on Revit 2024 project files where the records
decode. Earlier releases and files with no decodable element record keep
the string-derived rooms unchanged (verified on the 2023 Einhoven
sample).
- `IfcSpace.LongName` now carries the room's Revit name instead of
repeating the element `Name`, for rooms that recovered one.

## Output samples

Before (`main`):

```text
#171=IFCSPACE('0rvtrs000000000000002h',#5,'Room-unnamed',$,$,#170,$,'Room-unnamed',.ELEMENT.,.SPACE.,$);
```

After:

```text
#180=IFCSPACE('0rvtrs000000000000002q',#5,'Room-20822',$,$,#172,#179,'Stair 2',.ELEMENT.,.SPACE.,$);
#191=IFCSPACE('0rvtrs000000000000002$',#5,'Room-20832',$,$,#183,#190,'Tennant Storage Suite 1',.ELEMENT.,.SPACE.,$);
```

Revit's own export of the same two rooms, for comparison — same
`LongName`, same body:

```text
#186=IFCSPACE('2vrSC4nbr48vzSSOTHS45q',#18,'66',$,$,#177,#185,'Stair 2',.ELEMENT.,.SPACE.,$);
#198=IFCSPACE('2vrSC4nbr48vzSSOTHS452',#18,'68',$,$,#189,#197,'Tennant Storage Suite 1',.ELEMENT.,.SPACE.,$);
```

## Note on the report number

`RE-28` was taken by the wall-type lane (#273) while this branch was in
flight, so the room work is renumbered **RE-29** throughout. The merge
commit resolves one conflict — both lanes appended a corpus gate to the
end of `tests/iter_elements_typed.rs` — by keeping both.

## Related issues

Refs #90 #219

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes real-project IFC export volume and spatial semantics (116
spaces, storey containment, LongName mapping) on a measured but
single-file Revit 2024 edge; fail-closed parsing limits blast radius on
other releases.
> 
> **Overview**
> Replaces **18 name-only `IFCSPACE` rows** (no ElementId, no body, no
storey) with **116 record-backed rooms** on Revit 2024 when partition
element records decode, matching Revit's export id set on the Core
Interior corpus.
> 
> **Decoder path:** Rooms are selected from **`OST_Rooms`** partition
records under the existing #211 instance rule. **Number, name, and host
Level** come from a new **`partition_room_parameters`** scan
(owner-anchored parameter block, same family as RE-22). **Geometry**
uses the record bounding box with the RE-26 newest-frame tie-break.
**String-derived rooms** from `partition_name_candidates` are dropped
whenever record rooms succeed (same pattern as record slabs vs plan-loop
floors).
> 
> **IFC output:** **`RoomNumber` / `RoomName`** land in the record
property set; **`IfcSpace.LongName`** is the recovered Revit name when
present (element **`Name`** stays `Room-<ElementId>`). Storey
containment rises **853 → 969 of 970** as the 116 rooms bind via RE-27
Level references; **`partial_element_geometry`** is removed from
diagnostics because every emitted building element now has a body.
> 
> **Not in scope:** Room **boundary polygons** remain a documented
measured negative (#90 stays open). Docs, witness/OctetProof fixtures,
**`probe_re29_room_records`**, RE-29 report, and corpus gates
(`core_interior_2024_room_instances_names_and_envelopes`) carry the
evidence.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4acddc3. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Nov 4, 2026
…ment records (#1261) (RE-319) (#1306)

## Summary

Conduits, conduit fittings and gutters are exported from their element
records, on every release the exporter reads (RE-319). On the one file
with a Revit export that holds any of them, BIM-Speed Vitoria `ALD26
Before` (Revit 2018, IFC2X3), all 178 instances the RE-21 rule selects
are elements of Revit's export by `Tag`, none outside it: 1,136 to 1,314
of its 1,321 elements written. Cable trays and cable tray fittings are
not recovered (no file with a Revit export holds one), and neither are
the conduit centerline categories Revit's export leaves out.

## Motivation

#1261: RE-315 left 178 conduits, conduit fittings and gutters of `ALD26
Before` as "the next category census". This is that census, on every
development file and every release the exporter reads, and the
categories it shows Revit's export holds.

## Changes

- `partition_element_records.rs`: `OST_CONDUITS` (-2008132),
`OST_CONDUIT_FITTING` (-2008128) and `OST_GUTTER` (-2001391), Autodesk's
published `BuiltInCategory` values, in `PRODUCT_RECORD_CATEGORIES` (42)
and `RECOVERED_CATEGORIES` (49).
- `category_map.rs`: conduits as `IfcCableCarrierSegment`, conduit
fittings as `IfcCableCarrierFitting`, gutters as `IfcPipeSegment`, the
entities Revit's own type objects name in that export (102 of 102, 74 of
74, 2 of 2); `PredefinedType` unset.
- `partition_schema_mvp/fields.rs`: `Gutter` placed by elevation
(`ELEVATION_PLACED_CLASSES`).
- `export_content.rs`: no `Constraints` Level parameter for the three
classes (no export measures its name).
- `rvt_ifc.rs`, `viewer/src/main.ts`: display names.
- `probes/examples/probe_re319_category_census.rs`,
`tools/re/category_census_vs_ifc.py`: the census and its scorer.
- `reports/element-framing/RE-319-conduits-conduit-fittings-gutters.md`,
`changelog.d/added/1261-conduits-gutters.md`, `docs/status.md`,
`docs/support-matrix.json`, `docs/supported-profile.md`,
`docs/evidence.md`, `docs/reference-models.md`,
`docs/release-1.0-criteria.md`.

## Testing

Unit tests are banned in this repository: none added. No local build
(the Mac does not compute here); everything ran on GitHub's hosted
runners through Measure.

- [ ] `tools/check-local.sh` passes: not run locally (no builds on this
Mac); CI runs it on this PR
- [x] Verified end to end on real Revit files, with the probe and the
scorers that reproduce it (below)
- [x] If this touches the IFC exporter: Core Interior, RE1 and every
other model but the 15 below are byte for byte main's, so the witness
verdicts are unchanged
- [ ] Performance change: N/A

Measure run 41741114199 (`-f base=main -f holdout=true -f samples=true
-f nordic=true -f r2025=true -f bimcollab=true`, every scorer; main's
side `4ad28023`, head `46da221f`; later commits change documents only):
112 models exported on both sides, 97 byte for byte main's IFC, 15
moved:

| `ALD26 Before` (Revit 2018, spent) | main | head | Revit's export |
|---|---:|---:|---:|
| elements paired by `Tag` | 1,136 | 1,314 | 1,321 |
| written that Revit's export lacks | 0 | 0 | |
| in Revit's class or IFC4's for its IFC2X3 one | 1,127 | 1,305 | |
| elements on Revit's storey | 1,073 | 1,251 | |
| validation, EXPRESS rules, property sets | 0 findings | 0 findings | |
| psets: different, values Revit does not write | 0, 20 | 0, 20 | |

The 7 still missing are 4 curtain-panel walls and 3 assemblies. The 15
models that moved: `ALD26 Before`, the held-out `ALD26 Project` (counts
only: 1,336 to 1,514 of Revit's 1,520 elements and spaces,
`IfcFlowSegment` and `IfcFlowFitting` absent 104 and 74 to 0, no element
Revit lacks, values Revit does not write 18 to 18), Autodesk
`rme_advanced` and `rme_basic` of 2015, 2019 and 2024 to 2027 (19 or 20
conduits and 14 fittings each), and Snowdon Towers Electrical (530 and
322). The samples have no Revit export: counted, not scored. Every other
model is byte for byte main's, among them Core Interior, RE1, the
BIM4LCA files, the 24 R2025 models, BIMcollab and the 17 other held-out
pairs.

Census (run 41726416015, probe `probe_re319_category_census`): the only
file with a Revit export that holds any of the five categories is `ALD26
Before`; RE1 Electrical, Mechanical and Plumbing, Core Interior, the
four BIM4LCA files, the 24 R2025 models and Einhoven hold none, and
every element of those exports is among the instances the probe selects.

Reproduce:

```bash
gh workflow run measure.yml --ref main -f ref=3a81189c6dde0783004c41d3d2e4daf27930e1e8 -f base=none -f holdout=true -f samples=true -f nordic=true -f r2025=true -f bimcollab=true -f models="spent-* core-interior einhoven re1-* nordic-office-* r2025-* bimcollab-*" -f scorers=none -f probe=probe_re319_category_census -f probe_scorer=category_census_vs_ifc
gh workflow run measure.yml --ref main -f ref=46da221fc89f259d7dd535e06e8f49a7ac0286a3 -f base=main -f holdout=true -f samples=true -f nordic=true -f r2025=true -f bimcollab=true
```

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no claim
beyond what is measured (one Revit 2018 file with an export; the samples
counted, not scored; cable trays not exported)
- [x] A user-visible change has its fragment
`changelog.d/added/1261-conduits-gutters.md`
- [x] If a limitation was resolved, the docs say so: RE-315's 185
missing is now 7
- [x] New limitations are in the PR body, the report (§9) and the
support matrix: cable trays and cable tray fittings are not recovered;
conduit and gutter names and `Reference` are not read on Revit 2018
(Name differs, as for pipes); no `Constraints` Level parameter for the
three classes; no `PredefinedType` (Revit's gutter type objects carry
`GUTTER`, 2 of 2; left unset, a decision); bodies are boxes; no conduit
fitting ports
- [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
- [x] Reverse-engineering finding: a reproducible probe under
`probes/examples/` (`probe_re319_category_census.rs`) and the dated
report RE-319 are included

## 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 new test fixtures

Clean-room declaration (CLEANROOM.md): the changes in this PR are based
on public byte observations of Revit files (BIM-Speed's CC BY 4.0
Vitoria pair, MIT-licensed RE1 models, Autodesk's published sample
projects) and of Revit's own IFC exports of them (accepted source 1),
Autodesk's published `BuiltInCategory` constants (source 2, the public
API enumeration), the buildingSMART IFC4 specification (source 4), and
Autodesk's open-source exporter `revit-ifc`, read for what Revit's
export writes and cited by file and class (`IFCCompatibilityType.cs`,
`ElementFilteringUtil.cs`, `FamilyInstanceExporter.cs`, `IFC4Enums.cs`;
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. `PRODUCT_RECORD_CATEGORIES` and `RECOVERED_CATEGORIES` are
`unstable-research` constants whose array lengths change (39 to 42, 46
to 49).

## Screenshots or output samples

IFC output changed: a conduit is
`IFCCABLECARRIERSEGMENT('...',#5,'Conduit-745533',$,$,#...,#...,'745533',$)`,
a fitting `IFCCABLECARRIERFITTING('...',#5,'M_Codo de tubo -
Aluminio:Est\X2\00E1\X0\ndar:745566',$,'M_Codo de tubo -
Aluminio:Est\X2\00E1\X0\ndar',#...,#...,'745566',$)`, a gutter an
`IFCPIPESEGMENT` with `$` for its `PredefinedType`.

## Related issues

Refs #1261. Follows #1286 (RE-315).
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.

0 participants