Skip to content

feat(ifc): storeys, the building and spaces carry Revit's spatial property sets (#35) - #603

Merged
DrunkOnJava merged 7 commits into
mainfrom
feat/spatial-sets
Oct 3, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
feat/spatial-sets

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Revit's IFC4 exports of the four RE1 models give storeys, the building and spaces these sets, which rvt-rs did not write (#35):

  • each storey: Pset_AirSideSystemInformation.Name and Pset_ProductRequirements.Name (its name, IfcLabel), Pset_BuildingStoreyCommon.AboveGround (unknown, IfcLogical);
  • the building: Pset_BuildingCommon.NumberOfStoreys (IfcInteger) and IsLandmarked (unknown);
  • each space: the two Name sets, with the room's name.

Changes:

  • PropertyValue::Logical (IfcLogical, None for unknown) and PropertySet::name_sets.
  • step_writer: emit_property_set, shared by the element sets (output unchanged) and the new storey and building sets. A model with no decoded Level gets neither.
  • export_content: a room's two name sets.

Test: tests/spatial_property_sets.rs (real target). Red on main: draft #602, run 37139848516, 29 of Revit's 29 sets missing on RE1 Architecture; the output is in the test commit's message.


Note

Medium Risk
Touches STEP property-set emission for spatial hierarchy and adds a new PropertyValue variant, but element property output is refactored only and changes are covered by corpus regression tests.

Overview
Closes #35 by aligning IFC export with Revit’s spatial property sets on storeys, the building, and spaces.

Model & emission: Adds PropertyValue::Logical (IfcLogical, including unknown) and PropertySet::name_sets for the two Revit Name label sets. The STEP writer introduces shared emit_property_set (element sets unchanged, just refactored) and emits per-storey Pset_AirSideSystemInformation, Pset_ProductRequirements, and Pset_BuildingStoreyCommon.AboveGround (unknown); on the building, Pset_BuildingCommon with storey count and IsLandmarked (unknown) when levels exist. Export: Rooms get the two name sets from m_name via ElementPropertySet. Viewer: scene_graph formats logical values as Yes/No/Unknown.

Tests: New spatial_property_sets real-target test compares RE1 RVT exports to reference IFC; CI target list updated.

Reviewed by Cursor Bugbot for commit 0e07b3c. Configure here.

…y-count and unknown-logical property sets (#35)

tests/spatial_property_sets.rs compares, on the four RE1 models, every
Pset_AirSideSystemInformation, Pset_ProductRequirements,
Pset_BuildingStoreyCommon and Pset_BuildingCommon Revit's export gives a
storey, the building or a space with rvt-rs's, property for property.

Red on main (draft #602, run 37139848516, Corpus health tier 2):

---- re1_spatial_property_sets_are_revits stdout ----
thread 're1_spatial_property_sets_are_revits' panicked at tests/spatial_property_sets.rs:170:9:
RE1 Architecture: 29 of Revit's 29 spatial property sets differ in rvt-rs's
export ((object, set), Revit's, rvt-rs's):
[(("IFCBUILDINGSTOREY Level 1", "Pset_AirSideSystemInformation"), {"Name": "IFCLABEL('Level 1')"}, None),
 (("IFCBUILDINGSTOREY Level 1", "Pset_BuildingStoreyCommon"), {"AboveGround": "IFCLOGICAL(.U.)"}, None),
 (("IFCBUILDINGSTOREY Level 1", "Pset_ProductRequirements"), {"Name": "IFCLABEL('Level 1')"}, None),
 (("IFCBUILDINGSTOREY Level 2", "Pset_AirSideSystemInformation"), {"Name": "IFCLABEL('Level 2')"}, None), ...

failures:
    re1_spatial_property_sets_are_revits

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.92s
…perty sets (#35)

Revit's IFC4 exports of the four RE1 models give each storey
Pset_AirSideSystemInformation and Pset_ProductRequirements with Name its
name, and Pset_BuildingStoreyCommon with AboveGround unknown; the building
Pset_BuildingCommon with NumberOfStoreys and IsLandmarked unknown; and each
space the two Name sets with the room's name. rvt-rs now writes the same.

- entities: PropertyValue::Logical (IfcLogical, None for unknown);
  PropertySet::name_sets.
- step_writer: emit_property_set, shared by element sets and the new
  storey and building sets. A model with no decoded Level has neither.
- export_content: a room's two name sets.
… the spatial sets, with the maintainer's approval (#35)
…spatial sets, with the maintainer's approval (#35)
… the spatial sets, with the maintainer's approval (#35)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 17:56
@DrunkOnJava
DrunkOnJava merged commit b798497 into main Oct 3, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/spatial-sets branch October 3, 2026 18:11
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
Phase 0 of session 2: repository state, test inventory, the property-set
gap after #603/#605/#608, RE-157's finding, and ranked items B26 to B43
with the 16 committed for this session. Also records #601 to #608 in
B21's progress and corrects the B23 table's stale statuses.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only maintainer backlog updates; no runtime, CI config,
or application code changes in this diff.
> 
> **Overview**
> Updates **`BACKLOG.md`** for maintainer **session 2 (2026-10-03)**:
session settings now record test policy **(a)** (leave remaining suites
untouched after B23), the **ordered committed queue** (B27→B33 and
related ids), and a fresh **Phase 0** snapshot (git/CI, unit-test
inventory post-mirror deletion, `psets_vs_ifc` gaps, RE-157 pipe inner
diameter).
> 
> Adds a **session-2 work table** for **B26–B43** (16 items committed,
B42/B43 blocked on models), extends the **B21 progress log** with
**#601–#608** and reframes still-open parameter/property-set work toward
the new items, logs **four session findings** (witness CI cycles/B27,
duct segment quirk, etc.), and **marks B23 mirror-deletion areas** as
done in **#574–#577** with Python kept under **B25**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
502bb34. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
The slim (full-project) OctetProof step ran only when every step before
it passed, so a change that moves rvt-rs's observation showed the slim
drift one push after the full one, and regenerating the witness took two
CI rounds (#603: run 37140112338 skipped the slim step).

The full verdict step gets `id: witness_full`, and the slim step runs
`if: !cancelled() && (steps.witness_full.outcome == 'success' ||
steps.witness_full.outcome == 'failure')`. The job still fails if either
verdict fails.

Verified on scratch draft #610 (run 37144054315): with one extra
property set per storey injected, the full verdict failed with
REPLAY_DRIFT, the slim verdict ran, and the published artifact held both
fresh observations (IFCPROPERTYSET 2963 in each).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CI workflow step ordering and conditions only; no product code or
witness logic changes.
> 
> **Overview**
> The **slim** OctetProof verdict step no longer depends on the full
verdict passing—only on the full step having **finished** (success or
failure, unless the job was cancelled).
> 
> The full verdict step is tagged with **`id: witness_full`**, and the
slim step uses a conditional so it still runs when the full verdict
fails (e.g. `REPLAY_DRIFT`). That way a single CI run can publish
**both** fresh observation sets in the `octetproof-core-interior`
artifact (B27), instead of skipping slim and forcing a second push to
see slim drift. **Job failure semantics are unchanged**: either verdict
failing still fails the job.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
6885393. 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