Skip to content

feat(elements): recover exact Wall/Door/Window/Column instance sets from Revit 2024 partition element records (#211) - #221

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/wall-door-window-instances
Aug 30, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/wall-door-window-instances

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Aug 30, 2026 •

Copy link
Copy Markdown
Owner

Closes #211. Explains and closes #216.

2024_Core_Interior.rvt (sha256 c805df44…) against Revit's own full-project
export IFC Exports/2024_Core_Interior_slim.ifc (sha256 bfdf36ff…), whose
per-entity Tag carries the source ElementId.

The rule

#210 established that the Revit 2024 partition element-record header reaches
100 % of the exported ElementIds in every architectural category. What was
missing was precision. Two fields inside the 54 bytes #210 recorded as
"0xff sentinel padding + three unattributed words" supply it:

+0x32  u64  container ElementId, 0xffff_ffff_ffff_ffff = none
+0x42  u32  placement kind: 0xffffef7f placed instance
                            0xffff8000 family/type symbol envelope

A record is a standalone placed instance — what Revit's exporter emits as a
building element — iff u64 @ +0x32 == 0xFFFF_FFFF_FFFF_FFFF and
u32 @ +0x42 == 0xFFFF_EF7F.

PartitionElementRecord::is_exported_instance. Both halves are required;
neither is sufficient alone.

This is not a re-opening of RE-19. The carrier is the element record's own
BuiltInCategory field, not the ArcWallRectOpening index and not a
schema-field decode. Both RE-19 negatives stand and are still reported:
schema_field_wall_instances still fires (its check now requires a wall whose
body did not come from an element record, so an element-record wall cannot
clear it by accident), and door/window host binding is still unsupported.

Set-difference evidence

Prologue bytes +0x1a..+0x50, exported vs not exported:

side distinct patterns shape
exported 1 per category ff×40 then 7fefffff <w46> <w4a> ffffffff
container members 9 owner values ff×24 then <owner u64> then ff×8 then 7fefffff …
type symbols 2 per category ff×40 then 0080ffff <w46> <w4a> ffffffff

Rules measured independently and together (ElementId sets, not counts):

category A: +0x32 unset B: +0x42 placed A ∧ B exported
OST_Walls (-2000011) 361 (1 FP) 1209 (849 FP) 360 exact 360
OST_Doors (-2000023) 147 (15 FP) 185 (53 FP) 132 exact 132
OST_Windows (-2000014) 8 (2 FP) 7 (1 FP) 6 exact 6
OST_Columns (-2000100) 273 (17 FP) 375 (119 FP) 256 exact 256

Every non-sentinel +0x32 value is a container ElementId: all nine are
declared in Global/ElemTable, all are lower than every member id that names
them, each owns a contiguous ElementId block spanning several categories at
once, and none has an element record of its own (brute scan of all 23470
decodable records finds none).

owner columns walls doors windows member range
16229 23 66 14 1 16347 – 16995
21984 24 8 – – 22008 – 22077
23117 24 57 11 – 23134 – 23733
26863 24 63 14 – 26880 – 28001
26908 – 27 – – 26993 – 27045
33696 24 70 14 – 33748 – 34467
81029 – 277 – – 81041 – 87363
87754 – 4 – – 87758 – 87764
108205 – 277 – – 108216 – 114538

Full write-up, histograms and reproduction commands:
reports/element-framing/RE-21-partition-element-record-instance-rule.md.

Measured before → after

cargo build --profile ci --bin rvt-ifc && ./target/ci/rvt-ifc <rvt> -o /tmp/x.ifc --diagnostics /tmp/d.json

decoder metric before after export expects manifest status
by_ifc_type.IFCWALL 0 360 360 known_gap → known, tol 0
by_ifc_type.IFCDOOR 0 132 132 known_gap → known, tol 0
by_ifc_type.IFCWINDOW 0 6 6 known_gap → known, tol 0
by_ifc_type.IFCCOLUMN 256 256 256 known (rule replaced)
by_ifc_type.IFCSLAB 64 64 80 known_gap (#212)
by_ifc_type.IFCSPACE 18 18 116 known_gap
exported.material_count 102 102 10 known_gap
step.IFCPROPERTYSET 320 818 0 known_gap
step.IFCUNITASSIGNMENT 1 1 1 known
exported.storey_count 11 11 15 decoder_baseline
building_elements_with_geometry 256 754 — —
exported.storey_bound_elements 256 743 of 836 — —
step.IFCRELCONTAINEDINSPATIALSTRUCTURE 11 11 — —

("before" = main at f4b88df, i.e. after #217.)

Id-set check on the emitted IFC (not just counts):

IFCWALL:   rvt-rs=360 export=360 exact=True missing=0 extra=0
IFCDOOR:   rvt-rs=132 export=132 exact=True missing=0 extra=0
IFCWINDOW: rvt-rs=6   export=6   exact=True missing=0 extra=0
IFCCOLUMN: rvt-rs=256 export=256 exact=True missing=0 extra=0

#216 falls out

The 136 OST_Columns ids Revit omits split with no remainder:

So the #204 heuristic is retired: partition_schema_mvp no longer drops
origin-centred family-local bounding boxes and no longer collapses co-located
footprint groups to their highest ElementId. It applies the direct test,
reproduces the same 256/256 columns, and additionally the wall / door / window
id sets — which the heuristic could not (648 / 139 / 8). is_family_local is
kept as a documented, strictly weaker diagnostic: the +0x42 symbol set is a
superset of it on every category, catching 15 door, 2 window and 1 wall
symbols whose envelope is centred on only one axis (e.g. id 17331 spans
x −1.749…1.749 but y −0.332…3.251).

What did not move

OST_Floors stays known_gap (#212), measured not hand-waved: 124 distinct
ids carry the category, 79 of the 80 exported slabs have a record at all, and
the rule selects 99 (TP 79 / FP 20 / FN 1). +0x42 is 0xffffef7f on all 146
floor records — there are no slab type symbols on this file — so the rule
degenerates to +0x32 alone there. That needs a slab-appropriate identity
key, not a looser tolerance. No tolerance was widened anywhere in this PR.

Storey elevations — the #213 evidence base did not widen silently

#217 derives storey elevations from element-record base z. Adding three
categories to the record set would have widened that evidence base by
accident, so the restriction is now measured, against the fifteen
IfcBuildingStorey.Elevation values in the export:

category distinct base elevations equal to a storey not a storey
OST_Columns 11 11 —
OST_Doors 11 11 —
OST_Walls 13 12 (adds −40 ft) 56.4167
OST_Windows 6 0 80.73, 95.73, 110.73, 125.73, 140.73, 155.73

A window sits at its sill height above the level that hosts it, so its record
base is never a storey elevation; a wall may start mid-storey. Only
IFCCOLUMN therefore supplies elevations (new
ifc::STOREY_ELEVATION_SOURCE_TYPES), which keeps #213's measured "no false
positives" claim exactly as recorded and storey_count at 11. Every
record-bodied element still binds by exact match, so
IfcRelContainedInSpatialStructure stays 11 while storey-bound elements go
256 → 743 of 836: all 256 columns, all 132 doors, 355 of 360 walls. The 5
walls at −40 / 56.4167 ft and all 6 windows stay unbound rather than being
placed by proximity.

Of the four export elevations #213 could not reach (−40, −20, 15, 185.5 ft),
these categories surface exactly one: −40 ft, from wall records — and taking
it costs one elevation that is not a storey.
That trade is left open rather
than taken. The other three carry no record of any of the four categories.

IFC4 attribute arity (#214)

tools/ci/ifc_schema_arity.py on a fresh Core Interior export including the
new walls/doors/windows:

IFC schema conformance passed
  schema: IFC4
  instances checked: 15035 across 36 entity type(s)
  PredefinedType populated: IfcColumn=256, IfcSlab=64, IfcWall=360

Verdicts

magnetar-2024-core-interior-slim: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs
  surface: 8 fields, excluded: 5, diffs: 0

surface IFCWALL, IFCDOOR, IFCWINDOW, IFCCOLUMN, IFCROOF, IFCBEAM,
IFCFLOWTERMINAL, IFCUNITASSIGNMENT (was 5 fields / 8 excluded);
verdict_hash_sha256 afa87bb0a4e35ea8e5fa9a1adb21b29f8a0ba532571c88fd00c14dabcd4c7145.

magnetar-2024-core-interior: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs
  surface: 4 fields, excluded: 8, diffs: 0

verdict_hash_sha256 ae4679f6044a4c3caa0b2f3a6030648bc633b1d878957a759120f011f71ded5e.

Both rvt-rs.json observations were regenerated after merging origin/main
at f4b88df (#217), so their observation_hash_sha256 reflects both changes:
d88897c6d9b8223350a831f4caf48d76d469a4d4f47815da56da6d34e9364fb7.

Diagnostics vocabulary made precise

Two composite unsupported_features were half-true after this change, so they
were split into what is actually still missing:

  • typed_door_window_discrimination_and_host_binding now fires only when no
    typed door or window is exported at all. When they are exported but carry no
    host, the narrower door_window_host_wall_binding fires instead.
  • New revit_element_parameters_to_ifc_property_sets fires while every
    exported IfcPropertySet is rvt-rs provenance about a recovered body rather
    than a Revit element parameter (M4-07: Recover common parameters #35). The two manifest rows that previously
    borrowed the door/window feature name now use accurate ones.
  • schema_field_wall_instances keeps firing (see above).

Docs

docs/status.md, docs/support-matrix.json
(column-instance-recovery → element-record-instance-recovery, still
verified, scope restated for four categories; typed-door-window and
schema-field-wall stay unsupported with their honesty invariants intact),
docs/verification-protocol.md edges table + honesty note,
docs/supported-profile.md, README.md (three surgical lines),
CHANGELOG.md, and the new RE-21 report.

Gates run

cargo fmt --all, cargo clippy --profile ci --all-targets -- -D warnings,
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps, cargo +1.85.0 check --all-targets (MSRV 1.85, no let-chains), tools/check-local.sh, and the full
cargo test --profile ci suite with RVT_PROJECT_CORPUS_DIR /
RVT_CORPUS_TIER1_DIR — all green, including every tier-2 target from #209
(elem_table_corpus, arc_wall_corpus, partition_scanner,
iter_elements_typed, re15_geometry_invariants,
re19_door_window_wall_negative, walker_to_ifc_integration) plus
witness_verdict, witness_registry, project_count_fixtures,
support_matrix.

tests/iter_elements_typed.rs::core_interior_2024_rect_openings_not_fake_doors
now pins the exact counts and asserts every recovered Wall/Door/Window
carries provenance partition_schema_mvp::element_category_record, so the
RE-19 negative is enforced by mechanism, not by a zero.

Merge with #217

origin/main at f4b88df was merged into this branch before the final
measurement, so every number above is post-#217. The STEP emitter and
category_map predefined_type values are untouched; the hunks in
src/ifc/mod.rs are unsupported_export_features, the new
STOREY_ELEVATION_SOURCE_TYPES restriction described above, one re-export
line, and one expect message.

Follow-ups

  • Slab instance selection from partition element records loses 37 of 80 #212 slab instance identity — the rule does not hold there; the record bbox
    is also the obvious source for the unresolved extrusion thickness.
  • Door/window host-wall binding (door_window_host_wall_binding) — the record
    body past +0xa8 was dumped but not yet mined for a host reference.
  • docs/octetproof-spec.md §6's worked verdict example is a two-lineage
    snapshot and was already stale before this PR (the committed verdict has
    three lineages); refreshing a published 1.0.0 artifact is a separate call.
  • +0x46 / +0x4a remain unattributed; their values correlate with class,
    which may be a schema class-id join worth a look.

Note

Medium Risk
Changes core decode/IFC export and cross-witness gates for a corpus-proven Revit 2024 edge; scope is narrow but wrong instance filtering would skew real-project exports and CI verdicts.

Overview
Revit 2024 partition element records now drive typed Wall, Door, Window, and Column recovery using a direct byte rule instead of the retired #204 column heuristic (family-local bbox drop + highest-ElementId per footprint). Records decode container reference at +0x32 and placement kind at +0x42; PartitionElementRecord::is_exported_instance keeps only standalone placed instances. On Core Interior that matches Revit’s export ElementId sets at tolerance 0 (360/132/6/256), with bbox envelope geometry and shared RvtElementRecordGeometry property sets in IFC.

Production and verification wire walls/doors/windows through partition_schema_mvp::instances_from_partition_category_records, unify element-record geometry in export_content, and narrow storey elevation sourcing to columns only (STOREY_ELEVATION_SOURCE_TYPES) while other record-bodied elements still bind storeys by exact base elevation (743/836 bound). OctetProof manifests move walls/doors/windows to known on the slim edge (8-field claimed surface); diagnostics split host binding vs discrimination and add revit_element_parameters_to_ifc_property_sets. RE-19/schema-field walls and door/window host binding stay explicitly unsupported; slabs (OST_Floors) remain #212 known_gap.

Reviewed by Cursor Bugbot for commit cb75c37. Configure here.

…rom Revit 2024 partition element records (#211)

Two fields inside the 54 bytes #210 recorded as sentinel padding separate
the records Revit's own exporter emits from the rest:

  +0x32  u64  container ElementId, 0xffff_ffff_ffff_ffff = none
  +0x42  u32  placement kind: 0xffffef7f placed / 0xffff8000 type symbol

A record that is standalone AND placed reproduces the export's ElementId
set exactly: 360/360 IFCWALL, 132/132 IFCDOOR, 6/6 IFCWINDOW, 256/256
IFCCOLUMN on 2024_Core_Interior.rvt, sets not counts, tolerance 0.

This is a different carrier from RE-19 (the record's own BuiltInCategory,
not the opening index and not a schema-field decode); both RE-19 negatives
stand and are still reported. It also explains #216: the 136 omitted
column ids are 17 type symbols plus 119 members of five container
elements, so the #204 family-local proxy and highest-id-per-footprint
collapse are replaced by the direct test.

OST_Floors does not follow the rule (99 selected against 80 exported) and
stays known_gap (#212). No tolerance was widened.

Closes #211.
…ord categories to them

#213 derives storey elevations from element-record base z. The #211
categories carry record bboxes too, so that evidence base would have
widened silently. Measured against the export's fifteen storey
elevations: columns 11 of 11, doors 11 of 11, walls 12 of 13 (they add
-40 ft at the cost of one non-storey elevation), windows 0 of 6 — a
window base is a sill height, not a level.

Only IFCCOLUMN now supplies elevations, so #213's "no false positives"
claim stands unchanged and storey_count stays 11. Every record-bodied
element still binds by exact match: IfcRelContainedInSpatialStructure
stays 11 and storey-bound elements go 256 -> 743 of 836 (all columns,
all doors, 355 of 360 walls). The 5 walls at -40 / 56.4167 ft and all 6
windows stay unbound rather than being placed by proximity.

Observations and verdicts regenerated after the merge with main.
@cursor

cursor Bot commented Aug 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_2d6fc256-39ec-4089-9360-92d5fed788da)

@DrunkOnJava
DrunkOnJava merged commit db64081 into main Aug 30, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/wall-door-window-instances branch August 30, 2026 15:40
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
…rom Revit 2024 partition element records (#211) (#221)

Closes #211. Explains and closes #216.

`2024_Core_Interior.rvt` (sha256 `c805df44…`) against Revit's own
full-project
export `IFC Exports/2024_Core_Interior_slim.ifc` (sha256 `bfdf36ff…`),
whose
per-entity `Tag` carries the source ElementId.

## The rule

#210 established that the Revit 2024 partition element-record header
reaches
**100 %** of the exported ElementIds in every architectural category.
What was
missing was precision. Two fields inside the 54 bytes #210 recorded as
"0xff sentinel padding + three unattributed words" supply it:

```text
+0x32  u64  container ElementId, 0xffff_ffff_ffff_ffff = none
+0x42  u32  placement kind: 0xffffef7f placed instance
                            0xffff8000 family/type symbol envelope
```

> A record is a standalone placed instance — what Revit's exporter emits
as a
> building element — **iff** `u64 @ +0x32 == 0xFFFF_FFFF_FFFF_FFFF`
**and**
> `u32 @ +0x42 == 0xFFFF_EF7F`.

`PartitionElementRecord::is_exported_instance`. Both halves are
required;
neither is sufficient alone.

**This is not a re-opening of RE-19.** The carrier is the element
record's own
`BuiltInCategory` field, not the `ArcWallRectOpening` index and not a
schema-field decode. Both RE-19 negatives stand and are still reported:
`schema_field_wall_instances` still fires (its check now requires a wall
whose
body did *not* come from an element record, so an element-record wall
cannot
clear it by accident), and door/window **host binding** is still
unsupported.

## Set-difference evidence

Prologue bytes `+0x1a..+0x50`, exported vs not exported:

| side | distinct patterns | shape |
|---|---:|---|
| exported | 1 per category | `ff`×40 then `7fefffff` `<w46>` `<w4a>`
`ffffffff` |
| container members | 9 owner values | `ff`×24 then **`<owner u64>`**
then `ff`×8 then `7fefffff` … |
| type symbols | 2 per category | `ff`×40 then **`0080ffff`** `<w46>`
`<w4a>` `ffffffff` |

Rules measured independently and together (ElementId sets, not counts):

| category | A: `+0x32` unset | B: `+0x42` placed | **A ∧ B** | exported
|
|---|---:|---:|---:|---:|
| `OST_Walls` (-2000011) | 361 (1 FP) | 1209 (849 FP) | **360 exact** |
360 |
| `OST_Doors` (-2000023) | 147 (15 FP) | 185 (53 FP) | **132 exact** |
132 |
| `OST_Windows` (-2000014) | 8 (2 FP) | 7 (1 FP) | **6 exact** | 6 |
| `OST_Columns` (-2000100) | 273 (17 FP) | 375 (119 FP) | **256 exact**
| 256 |

Every non-sentinel `+0x32` value is a container ElementId: all nine are
declared in `Global/ElemTable`, all are lower than every member id that
names
them, each owns a contiguous ElementId block spanning several categories
at
once, and none has an element record of its own (brute scan of all 23470
decodable records finds none).

| owner | columns | walls | doors | windows | member range |
|---:|---:|---:|---:|---:|---|
| 16229 | 23 | 66 | 14 | 1 | 16347 – 16995 |
| 21984 | 24 | 8 | – | – | 22008 – 22077 |
| 23117 | 24 | 57 | 11 | – | 23134 – 23733 |
| 26863 | 24 | 63 | 14 | – | 26880 – 28001 |
| 26908 | – | 27 | – | – | 26993 – 27045 |
| 33696 | 24 | 70 | 14 | – | 33748 – 34467 |
| 81029 | – | 277 | – | – | 81041 – 87363 |
| 87754 | – | 4 | – | – | 87758 – 87764 |
| 108205 | – | 277 | – | – | 108216 – 114538 |

Full write-up, histograms and reproduction commands:

[`reports/element-framing/RE-21-partition-element-record-instance-rule.md`](reports/element-framing/RE-21-partition-element-record-instance-rule.md).

## Measured before → after

`cargo build --profile ci --bin rvt-ifc && ./target/ci/rvt-ifc <rvt> -o
/tmp/x.ifc --diagnostics /tmp/d.json`

| decoder metric | before | after | export expects | manifest status |
|---|---:|---:|---:|---|
| `by_ifc_type.IFCWALL` | 0 | **360** | 360 | `known_gap` → **`known`**,
tol 0 |
| `by_ifc_type.IFCDOOR` | 0 | **132** | 132 | `known_gap` → **`known`**,
tol 0 |
| `by_ifc_type.IFCWINDOW` | 0 | **6** | 6 | `known_gap` → **`known`**,
tol 0 |
| `by_ifc_type.IFCCOLUMN` | 256 | 256 | 256 | `known` (rule replaced) |
| `by_ifc_type.IFCSLAB` | 64 | 64 | 80 | `known_gap` (#212) |
| `by_ifc_type.IFCSPACE` | 18 | 18 | 116 | `known_gap` |
| `exported.material_count` | 102 | 102 | 10 | `known_gap` |
| `step.IFCPROPERTYSET` | 320 | **818** | 0 | `known_gap` |
| `step.IFCUNITASSIGNMENT` | 1 | 1 | 1 | `known` |
| `exported.storey_count` | 11 | 11 | 15 | `decoder_baseline` |
| `building_elements_with_geometry` | 256 | **754** | — | — |
| `exported.storey_bound_elements` | 256 | **743** of 836 | — | — |
| `step.IFCRELCONTAINEDINSPATIALSTRUCTURE` | 11 | 11 | — | — |

("before" = `main` at 55491d7, i.e. after #217.)

Id-set check on the emitted IFC (not just counts):

```
IFCWALL:   rvt-rs=360 export=360 exact=True missing=0 extra=0
IFCDOOR:   rvt-rs=132 export=132 exact=True missing=0 extra=0
IFCWINDOW: rvt-rs=6   export=6   exact=True missing=0 extra=0
IFCCOLUMN: rvt-rs=256 export=256 exact=True missing=0 extra=0
```

## #216 falls out

The 136 `OST_Columns` ids Revit omits split with no remainder:

- **17 type symbols** (`+0x42 == 0xffff8000`) — ids 5755, 19250, 22374,
24299,
  28008, 53894, 75407–75417, exactly the 17 #216 lists as family-local;
- **119 container members** (`+0x32` set) — the blocks 16347–16369,
22045–22068, 23134–23157, 26880–26903, 33748–33771 that #216 identified
as
"exact co-locations of an exported column", each owned by the id
allocated
  just before its block.

So the #204 heuristic is **retired**: `partition_schema_mvp` no longer
drops
origin-centred family-local bounding boxes and no longer collapses
co-located
footprint groups to their highest `ElementId`. It applies the direct
test,
reproduces the same 256/256 columns, and additionally the wall / door /
window
id sets — which the heuristic could not (648 / 139 / 8).
`is_family_local` is
kept as a documented, strictly weaker diagnostic: the `+0x42` symbol set
is a
superset of it on every category, catching 15 door, 2 window and 1 wall
symbols whose envelope is centred on only one axis (e.g. id 17331 spans
`x −1.749…1.749` but `y −0.332…3.251`).

## What did not move

`OST_Floors` stays `known_gap` (#212), measured not hand-waved: 124
distinct
ids carry the category, 79 of the 80 exported slabs have a record at
all, and
the rule selects 99 (TP 79 / FP 20 / FN 1). `+0x42` is `0xffffef7f` on
all 146
floor records — there are no slab type symbols on this file — so the
rule
degenerates to `+0x32` alone there. That needs a slab-appropriate
identity
key, not a looser tolerance. No tolerance was widened anywhere in this
PR.

## Storey elevations — the #213 evidence base did not widen silently

#217 derives storey elevations from element-record base `z`. Adding
three
categories to the record set would have widened that evidence base by
accident, so the restriction is now measured, against the fifteen
`IfcBuildingStorey.Elevation` values in the export:

| category | distinct base elevations | equal to a storey | not a storey
|
|---|---:|---:|---|
| `OST_Columns` | 11 | 11 | — |
| `OST_Doors` | 11 | 11 | — |
| `OST_Walls` | 13 | 12 (adds **−40 ft**) | 56.4167 |
| `OST_Windows` | 6 | **0** | 80.73, 95.73, 110.73, 125.73, 140.73,
155.73 |

A window sits at its sill height above the level that hosts it, so its
record
base is never a storey elevation; a wall may start mid-storey. Only
`IFCCOLUMN` therefore *supplies* elevations (new
`ifc::STOREY_ELEVATION_SOURCE_TYPES`), which keeps #213's measured "no
false
positives" claim exactly as recorded and `storey_count` at 11. Every
record-bodied element still *binds* by exact match, so
`IfcRelContainedInSpatialStructure` stays 11 while storey-bound elements
go
**256 → 743 of 836**: all 256 columns, all 132 doors, 355 of 360 walls.
The 5
walls at −40 / 56.4167 ft and all 6 windows stay unbound rather than
being
placed by proximity.

**Of the four export elevations #213 could not reach (−40, −20, 15,
185.5 ft),
these categories surface exactly one: −40 ft, from wall records — and
taking
it costs one elevation that is not a storey.** That trade is left open
rather
than taken. The other three carry no record of any of the four
categories.

## IFC4 attribute arity (#214)

`tools/ci/ifc_schema_arity.py` on a fresh Core Interior export including
the
new walls/doors/windows:

```
IFC schema conformance passed
  schema: IFC4
  instances checked: 15035 across 36 entity type(s)
  PredefinedType populated: IfcColumn=256, IfcSlab=64, IfcWall=360
```

## Verdicts

```
magnetar-2024-core-interior-slim: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs
  surface: 8 fields, excluded: 5, diffs: 0
```
surface `IFCWALL`, `IFCDOOR`, `IFCWINDOW`, `IFCCOLUMN`, `IFCROOF`,
`IFCBEAM`,
`IFCFLOWTERMINAL`, `IFCUNITASSIGNMENT` (was 5 fields / 8 excluded);
`verdict_hash_sha256`
`afa87bb0a4e35ea8e5fa9a1adb21b29f8a0ba532571c88fd00c14dabcd4c7145`.

```
magnetar-2024-core-interior: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs
  surface: 4 fields, excluded: 8, diffs: 0
```
`verdict_hash_sha256`
`ae4679f6044a4c3caa0b2f3a6030648bc633b1d878957a759120f011f71ded5e`.

Both `rvt-rs.json` observations were regenerated **after** merging
`origin/main`
at 55491d7 (#217), so their `observation_hash_sha256` reflects both
changes:
`d88897c6d9b8223350a831f4caf48d76d469a4d4f47815da56da6d34e9364fb7`.

## Diagnostics vocabulary made precise

Two composite `unsupported_features` were half-true after this change,
so they
were split into what is actually still missing:

- `typed_door_window_discrimination_and_host_binding` now fires only
when no
typed door or window is exported at all. When they are exported but
carry no
  host, the narrower **`door_window_host_wall_binding`** fires instead.
- New **`revit_element_parameters_to_ifc_property_sets`** fires while
every
exported `IfcPropertySet` is rvt-rs provenance about a recovered body
rather
than a Revit element parameter (#35). The two manifest rows that
previously
  borrowed the door/window feature name now use accurate ones.
- `schema_field_wall_instances` keeps firing (see above).

## Docs

`docs/status.md`, `docs/support-matrix.json`
(`column-instance-recovery` → `element-record-instance-recovery`, still
`verified`, scope restated for four categories; `typed-door-window` and
`schema-field-wall` stay `unsupported` with their honesty invariants
intact),
`docs/verification-protocol.md` edges table + honesty note,
`docs/supported-profile.md`, `README.md` (three surgical lines),
`CHANGELOG.md`, and the new RE-21 report.

## Gates run

`cargo fmt --all`, `cargo clippy --profile ci --all-targets -- -D
warnings`,
`RUSTDOCFLAGS="-D warnings" cargo doc --no-deps`, `cargo +1.85.0 check
--all-targets` (MSRV 1.85, no let-chains), `tools/check-local.sh`, and
the full
`cargo test --profile ci` suite with `RVT_PROJECT_CORPUS_DIR` /
`RVT_CORPUS_TIER1_DIR` — all green, including every tier-2 target from
#209
(`elem_table_corpus`, `arc_wall_corpus`, `partition_scanner`,
`iter_elements_typed`, `re15_geometry_invariants`,
`re19_door_window_wall_negative`, `walker_to_ifc_integration`) plus
`witness_verdict`, `witness_registry`, `project_count_fixtures`,
`support_matrix`.


`tests/iter_elements_typed.rs::core_interior_2024_rect_openings_not_fake_doors`
now pins the exact counts **and** asserts every recovered
Wall/Door/Window
carries provenance `partition_schema_mvp::element_category_record`, so
the
RE-19 negative is enforced by mechanism, not by a zero.

## Merge with #217

`origin/main` at 55491d7 was merged into this branch before the final
measurement, so every number above is post-#217. The STEP emitter and
`category_map` `predefined_type` values are untouched; the hunks in
`src/ifc/mod.rs` are `unsupported_export_features`, the new
`STOREY_ELEVATION_SOURCE_TYPES` restriction described above, one
re-export
line, and one `expect` message.

## Follow-ups

- #212 slab instance identity — the rule does not hold there; the record
bbox
  is also the obvious source for the unresolved extrusion thickness.
- Door/window host-wall binding (`door_window_host_wall_binding`) — the
record
  body past `+0xa8` was dumped but not yet mined for a host reference.
- `docs/octetproof-spec.md` §6's worked verdict example is a two-lineage
snapshot and was already stale before this PR (the committed verdict has
three lineages); refreshing a published 1.0.0 artifact is a separate
call.
- `+0x46` / `+0x4a` remain unattributed; their values correlate with
class,
  which may be a schema class-id join worth a look.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes core decode/IFC export and cross-witness gates for a
corpus-proven Revit 2024 edge; scope is narrow but wrong instance
filtering would skew real-project exports and CI verdicts.
> 
> **Overview**
> **Revit 2024 partition element records** now drive typed **Wall, Door,
Window, and Column** recovery using a direct byte rule instead of the
retired #204 column heuristic (family-local bbox drop +
highest-`ElementId` per footprint). Records decode **container
reference** at `+0x32` and **placement kind** at `+0x42`;
`PartitionElementRecord::is_exported_instance` keeps only standalone
placed instances. On Core Interior that matches Revit’s export
**ElementId sets** at tolerance 0 (360/132/6/256), with bbox envelope
geometry and shared `RvtElementRecordGeometry` property sets in IFC.
> 
> **Production and verification** wire walls/doors/windows through
`partition_schema_mvp::instances_from_partition_category_records`, unify
element-record geometry in `export_content`, and narrow **storey
elevation sourcing** to columns only (`STOREY_ELEVATION_SOURCE_TYPES`)
while other record-bodied elements still **bind** storeys by exact base
elevation (743/836 bound). OctetProof manifests move walls/doors/windows
to **`known`** on the slim edge (8-field claimed surface); diagnostics
split host binding vs discrimination and add
`revit_element_parameters_to_ifc_property_sets`. RE-19/schema-field
walls and door/window **host** binding stay explicitly unsupported;
slabs (`OST_Floors`) remain #212 `known_gap`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
2c9d2971d7e42cc2473d0da579485467340216c4. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Sep 22, 2026
Three '||||||| <base>' diff3 markers had been committed into CHANGELOG.md:
two since #221 and one from rebasing this branch. No entry was
duplicated; only the marker lines are removed.
DrunkOnJava added a commit that referenced this pull request Sep 22, 2026
## Summary

The required PII guard job gains a step that fails when a merge-conflict
marker is committed.

## Motivation

Three diff3 base markers (`||||||| <base>`) sat in CHANGELOG.md, two of
them since #221. A rebase can be resolved and still leave the base
marker behind, and nothing checked for it. #290 removed them; this stops
them coming back.

## Changes

- `.github/workflows/ci.yml`: `git grep -I -E
'^(<<<<<<<|\|\|\|\|\|\|\||>>>>>>>)( |$)'` over the tree, in the existing
PII guard job so it is required without a ruleset change. `=======`
alone is excluded because it is also a Markdown setext underline.

## Testing

- [x] The pattern matches nothing on main after #290
- [x] The same regex matches a planted `||||||| abc` line
- [x] Workflow YAML parses

## Audit-honesty checklist

- [x] N/A for docs: CI-only
- [x] No emojis, no private paths

## Breaking changes

None.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CI-only guardrail with no runtime, auth, or data-handling impact.
> 
> **Overview**
> Adds a **required conflict-marker scan** to the existing `pii-guard`
CI job so PRs fail if unambiguous merge/rebase markers are committed
anywhere in the tree.
> 
> The new step runs `git grep` for line-anchored `<<<<<<<`, `|||||||`,
or `>>>>>>>` (including diff3 base markers that can linger after a
“resolved” rebase). It deliberately **does not** match `=======` alone,
since that string is also valid Markdown underline syntax.
> 
> No application code changes—only `.github/workflows/ci.yml`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
9d394fa. 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

1 participant