Repository navigation
chore(ci): pin remaining third-party Actions to full SHAs - #170
Conversation
Replace floating @vn / @master / @stable / @nightly refs with commit SHAs and version comments (matching publish.yml style). Explicit toolchain: inputs added wherever dtolnay/rust-toolchain is SHA-pinned. Co-authored-by: DrunkOnJava <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Rust-toolchain SHA pins are GC-unsafe
- Replaced stable/nightly branch-tip SHA pins with the master-history commit (6c977a6) across all workflows while keeping toolchain: inputs to select the Rust channel.
Or push these changes by commenting:
@cursor push b7bb3f4e70
Preview (b7bb3f4e70)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,7 +47,7 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
components: rustfmt
@@ -58,7 +58,7 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
components: clippy
@@ -157,7 +157,7 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -199,7 +199,7 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -229,7 +229,7 @@
repository: magnetar-io/revit-test-datasets
path: _project_corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -271,7 +271,7 @@
repository: magnetar-io/revit-test-datasets
path: _project_corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -309,7 +309,7 @@
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -431,7 +431,7 @@
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -456,7 +456,7 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -486,7 +486,7 @@
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
# docs.rs builds with nightly — any `#[cfg_attr(docsrs, ...)]`
# attributes + `#![feature(...)]` gates must be available.
- - uses: dtolnay/rust-toolchain@7c8d7d138f5c09cef361f8214cf96882cd029cdb # nightly
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: nightly
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -522,7 +522,7 @@
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
diff --git a/.github/workflows/corpus-nightly.yml b/.github/workflows/corpus-nightly.yml
--- a/.github/workflows/corpus-nightly.yml
+++ b/.github/workflows/corpus-nightly.yml
@@ -39,7 +39,7 @@
repository: magnetar-io/revit-test-datasets
path: _project_corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -75,7 +75,7 @@
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -122,7 +122,7 @@
repository: phi-ag/rvt
path: _corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
--- a/.github/workflows/fuzz.yml
+++ b/.github/workflows/fuzz.yml
@@ -60,7 +60,7 @@
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install nightly Rust
- uses: dtolnay/rust-toolchain@7c8d7d138f5c09cef361f8214cf96882cd029cdb # nightly
+ uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: nightly
diff --git a/.github/workflows/perf-budget.yml b/.github/workflows/perf-budget.yml
--- a/.github/workflows/perf-budget.yml
+++ b/.github/workflows/perf-budget.yml
@@ -37,7 +37,7 @@
repository: magnetar-io/revit-test-datasets
path: _project_corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -69,7 +69,7 @@
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -179,7 +179,7 @@
repository: phi-ag/rvt
path: _corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -210,7 +210,7 @@
RUSTDOCFLAGS: "--cfg docsrs -D warnings"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@7c8d7d138f5c09cef361f8214cf96882cd029cdb # nightly
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: nightly
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
@@ -230,7 +230,7 @@
repository: phi-ag/rvt
path: _corpus
lfs: true
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
targets: wasm32-unknown-unknown
@@ -285,7 +285,7 @@
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable
+ - uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # master
with:
toolchain: stable
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2You can send follow-ups to the cloud agent here.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9a059da. Configure here.
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable | ||
| with: | ||
| toolchain: stable |
There was a problem hiding this comment.
Rust-toolchain SHA pins are GC-unsafe
Medium Severity
dtolnay/rust-toolchain is pinned to stable and nightly branch-tip SHAs rather than a master-history commit. Those channel refs are rebased, so GitHub eventually garbage-collects the commits and every job using the pins fails to resolve the action.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 9a059da. Configure here.
## Summary Land **Phase 1** of the [unified research report](docs/research/unified-research-report.md) (rev 1.1): foundational document-scoped identity, evidence tiers, ES reference occurrence contracts, observation/capability schemas, and `research/es-remap` + `tools/oracle` scaffolds. **Does not** claim ES ElementId remapping works. Phase 2 fixture generation (N1–N4, R1/R2, C1/C2, …) remains **blocked on a Revit-hosted API oracle** (unavailable on Cloud). ## Changes - `docs/research/unified-research-report.md` — governing program (H-ES5 primary; Phase 0 done → Phase 1 → Phase 2 Revit-blocked) - Rust: `identity`, `evidence`, `es_refs` modules + unit tests (scoping, serialization, no-op transitions) - Schemas: `es-observation.schema.json`, `es-capability.schema.json` (+ research mirrors) - `research/es-remap/` manifest + README; `tools/oracle/README.md` blocker checklist - Pointers in `docs/status.md` / `docs/disc-112-coordination.md` / CHANGELOG ## Honesty / hard walls - No invented Door/Window, schema-field Wall, Level ElementIds, AProperty joins - Formats/Latest strip stays disabled - ES refs outside #152 parent scoring; default IFC omits ES - Discovery = owned synthetics; production corpora = regression only ## Test plan - [x] `cargo test --release --lib identity::` (3/3) - [x] `cargo test --release --lib evidence::` (2/2) - [x] `cargo test --release --lib es_refs::` (3/3) - [x] `cargo test --release --test json_schema_contracts checked_in_schemas` - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --lib -- -D warnings` ## Refs Discussion #112 coordination (doc mirror; comments often 403). Audit P0 already on main (#165–#170). Sibling #171 `source_coverage` left alone. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds documentation and additive public API stubs with no changes to decode, IFC export, or CLI behavior; explicit fail-closed honesty limits product-claim risk. > > **Overview** > **Phase 1** of the H-ES5 ES ElementId remapping program: foundational **types and docs** shippable without Revit, explicitly **not** claiming remapping works or adding ES byte decoders. > > Adds public Rust modules `identity` (`DocumentIdentity`, `ScopedElementRef`, `SourceSpan`), `evidence` (`EvidenceTier` E0–E5, evidence/edge ledgers with ES vs ElemTable separation), and `es_refs` (`EsReferenceOccurrence`, path segments, `FixtureTransition` / one-mutation fixture law). Registers them on the crate root in `lib.rs` with unit tests (serde round-trips). > > Introduces the governing **`docs/research/unified-research-report.md`** (rev 1.1), **`research/es-remap/`** (`manifest.yaml`, README, schema mirrors), **`tools/oracle/README.md`** (Phase 2 blocked on Revit API), and JSON schemas **`es-observation`** / **`es-capability`** (also listed in `docs/schemas/README.md` and `json_schema_contracts`). > > **Coordination docs** updated: CHANGELOG, `docs/status.md`, and `docs/disc-112-coordination.md` now point at the research program and reorder P1 so Phase 1 contracts precede Phase 2 oracle fixture work. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 79c182c55173379907fce58e06e84b7aeab677d0. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
## Summary Land **Phase 1** of the [unified research report](docs/research/unified-research-report.md) (rev 1.1): foundational document-scoped identity, evidence tiers, ES reference occurrence contracts, observation/capability schemas, and `research/es-remap` + `tools/oracle` scaffolds. **Does not** claim ES ElementId remapping works. Phase 2 fixture generation (N1–N4, R1/R2, C1/C2, …) remains **blocked on a Revit-hosted API oracle** (unavailable on Cloud). ## Changes - `docs/research/unified-research-report.md` — governing program (H-ES5 primary; Phase 0 done → Phase 1 → Phase 2 Revit-blocked) - Rust: `identity`, `evidence`, `es_refs` modules + unit tests (scoping, serialization, no-op transitions) - Schemas: `es-observation.schema.json`, `es-capability.schema.json` (+ research mirrors) - `research/es-remap/` manifest + README; `tools/oracle/README.md` blocker checklist - Pointers in `docs/status.md` / `docs/disc-112-coordination.md` / CHANGELOG ## Honesty / hard walls - No invented Door/Window, schema-field Wall, Level ElementIds, AProperty joins - Formats/Latest strip stays disabled - ES refs outside #152 parent scoring; default IFC omits ES - Discovery = owned synthetics; production corpora = regression only ## Test plan - [x] `cargo test --release --lib identity::` (3/3) - [x] `cargo test --release --lib evidence::` (2/2) - [x] `cargo test --release --lib es_refs::` (3/3) - [x] `cargo test --release --test json_schema_contracts checked_in_schemas` - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --lib -- -D warnings` ## Refs Discussion #112 coordination (doc mirror; comments often 403). Audit P0 already on main (#165–#170). Sibling #171 `source_coverage` left alone. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds documentation and additive public API stubs with no changes to decode, IFC export, or CLI behavior; explicit fail-closed honesty limits product-claim risk. > > **Overview** > **Phase 1** of the H-ES5 ES ElementId remapping program: foundational **types and docs** shippable without Revit, explicitly **not** claiming remapping works or adding ES byte decoders. > > Adds public Rust modules `identity` (`DocumentIdentity`, `ScopedElementRef`, `SourceSpan`), `evidence` (`EvidenceTier` E0–E5, evidence/edge ledgers with ES vs ElemTable separation), and `es_refs` (`EsReferenceOccurrence`, path segments, `FixtureTransition` / one-mutation fixture law). Registers them on the crate root in `lib.rs` with unit tests (serde round-trips). > > Introduces the governing **`docs/research/unified-research-report.md`** (rev 1.1), **`research/es-remap/`** (`manifest.yaml`, README, schema mirrors), **`tools/oracle/README.md`** (Phase 2 blocked on Revit API), and JSON schemas **`es-observation`** / **`es-capability`** (also listed in `docs/schemas/README.md` and `json_schema_contracts`). > > **Coordination docs** updated: CHANGELOG, `docs/status.md`, and `docs/disc-112-coordination.md` now point at the research program and reorder P1 so Phase 1 contracts precede Phase 2 oracle fixture work. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 79c182c55173379907fce58e06e84b7aeab677d0. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
…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 -->



Summary
Supply-chain follow-up to the publish.yml pins from #165 / audit A4.
Pins remaining floating third-party Actions across workflows to full commit SHAs with version comments (matching existing repo style):
actions/checkout@v4→34e1148…(# v4 / v4.3.1)actions/setup-python@v6→ece7cb0…(# v6)actions/setup-python@v5→a26af69…(# v5.6.0)actions/upload-artifact@v7→043fb46…(# v7.0.1)PyO3/maturin-action@v1→e83996d…(# v1.51.0)dtolnay/rust-toolchain@{stable,nightly,master}→ branch-tip SHAs with explicittoolchain:inputs (required when SHA-pinning this action)Workflows touched:
ci.yml,corpus-nightly.yml,perf-budget.yml,changelog.yml,fuzz.yml,publish.yml(rust-toolchain only; other publish pins already landed).deploy-viewer.ymlwas already SHA-pinned.Test plan
.github/workflows/*.yml@vN/@master/@stable/@nightlyuses refsNote
Low Risk
Workflow-only supply-chain hardening; behavior should match prior pins once CI runs, with minor risk if a pinned SHA is incompatible with a runner.
Overview
Supply-chain follow-up that replaces floating third-party GitHub Actions tags with immutable commit SHAs (plus version comments), matching the repo’s existing pin style after earlier
publish.ymlwork.Workflows updated:
ci.yml,changelog.yml,corpus-nightly.yml,fuzz.yml,perf-budget.yml, and remainingdtolnay/rust-toolchainsteps inpublish.yml. Typical swaps includeactions/checkout@v4,actions/setup-python@v5/@v6,actions/upload-artifact@v7,PyO3/maturin-action@v1, anddtolnay/rust-toolchain@{stable,nightly,master}.For
dtolnay/rust-toolchain, pinning required adding explicittoolchain:inputs inwith:(stable / nightly / master) so jobs still select the right Rust channel when the action ref is no longer a branch name.CHANGELOG.mdadds an unreleased Security bullet documenting the pin sweep. No application or test logic changes—only CI YAML and changelog text.Reviewed by Cursor Bugbot for commit 9a059da. Configure here.