Skip to content

fix(elements): of an element framed in several partitions the exporter keeps the newest frame, not the one with the greatest height (#1710) (RE-444) - #1799

Merged
DrunkOnJava merged 7 commits into
mainfrom
research/444-frame-copies
Nov 12, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
research/444-frame-copies

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

A Revit 2024 and later project rewrites an edited element into a higher-numbered partition and leaves the older frame, and select_instance_records kept, of an element's frames, the one with the greatest vertical extent (RE-22) and only on a tie the newest, so an element made shorter after an earlier save kept its older, taller frame (its box, type slot and joint geometry). It now keeps the newest frame (highest partition, then the greater extent, then the later offset), as Revit 2008 to 2023 already do (RE-107). Measure 43144816471: 126 exports, 121 identical, 5 move, none with an element added or removed; in each only the elements whose frame changed (their provenance stream is now the newest frame's partition):

  • Timber office at permit, 450 of 10,825: 250 IfcPlate (curtain panels) and 66 IfcDoor (box height, location up to 0.22 ft; door 1432311 2.245 to 2.23 ft; sizes equal to Revit's 200 to 265 of 266), 74 IfcMember (mullions: 38 take Revit's name and type, 18 gaining a type where they were CurtainWallMullion- and 20 changing type, for example Rectangular Mullion:150 x 50 mm alumiini maalattu to 50 x 50 mm alumiini maalattu 2; 34, and the IfcCurtainWall 3076052, move from storey Roof to Level_05; 3 Lengths and 3029161's NetSurfaceArea become Revit's), 48 IfcWall (base and top both Revit's 549 to 573 of 586), 7 IfcSpace (area within 0.1% of Revit's 302 to 305), 4 IfcColumn (2 Lengths become Revit's).
  • Concrete housing as built, 108 of 1,589: 60 IfcPlate, 16 IfcCurtainWall, 13 IfcWindow, 8 IfcSlab, 5 IfcCovering, 4 IfcWall, 1 IfcDoor, 1 IfcSpace (panels 2.715 to 2.65 ft and curtain walls 2.915 to 2.85 ft tall; windows' size equal to Revit's 47 to 53 of 64; slab layers within 0.001 ft 64 to 68 of 70); at permit, 29 of 1,541: 20 IfcWall (base and top Revit's 310 to 330), 7 IfcWindow (box within 0.001 ft 30 to 37), 1 IfcRoof (0.210288 to 0.194256 ft tall), 1 IfcSpace.
  • Timber housing as built, 8 of 1,806: 4 IfcCovering, 2 IfcWall, 1 IfcDoor, 1 IfcSpace (layers within 0.001 ft 84 to 88 of 93); at permit, 7 of 1,735: 7 IfcWindow (box within 0.001 ft 30 to 37).
    Against Revit's export the timber office's different values fall from 18 quantities and 52 properties to 1 and 1, and the housing gains 25 equal quantities. Costs: five equal values on the timber office are no longer written (Timber office at permit: walls of the types VS-2.CLTpinta and SPR-1 have no layers, so no IfcWallType, Width or Reference; RE-444 moves two retyped walls into the first #1802, Timber office at permit: mullions 3028901 and 3028902 lose their NetSurfaceArea once a neighbour keeps its newest frame (RE-444) #1803) and wall 2177212 is drawn from its record box (Wall 2177212: its saved mesh is 0.114 ft shorter than Revit's IFC body (RE-340 follow-up) #1407).

Motivation

On the BIM4LCA timber office at building permit 999 of 10,825 elements are framed in an older partition than their current record (none of the two as-built offices' are), and the frame kept was not the newest for 414 elements with a body in Revit's export (251 curtain panels, 65 doors, 52 mullions, 42 walls, 4 columns): the newest frame has Revit's height on 405 of them and the frame kept on 1 (537 of 546 against 1 over the BIM4LCA files). They were the source of 3 mullions' and 2 columns' Length (0.05 to 0.123 m too long), the mullions' Span, 2 walls' Width, 20 members' type and Reference, 9 openings' Depth and 3029161's NetSurfaceArea.

#1710 (point 2: two timber-office columns whose Length differs from Revit's while the extent of their mesh equals it, and whether a mesh extent may replace a held Length: the cause is the frame), #1767 (the last different NetSurfaceArea of the timber office at permit) and #1046 (W7).

Changes

  • src/research/partition_schema_mvp/records.rs: frame_rank and select_instance_records keep the newest frame; four failure-first tests of the pure selection (an element made shorter since an earlier save keeps its newer frame; Partitions/9 is older than Partitions/46; within one partition the greater extent and then the later offset; a newer frame that is no exported instance or has no volume is not kept).
  • The descriptions of the rule: rvt-mcp/src/schema.rs, src/ifc/element_provenance.rs, src/ifc/export_decisions.rs, docs/mcp.md, docs/mcp-tools.json and .md, docs/export-diagnostics.md and its schema.
  • probes/examples/probe_re444_frame_copies.rs, tools/re/frame_copies_vs_ifc.py and tools/re/length_vs_mesh_extent.py: the probe and the scorers.
  • reports/element-framing/RE-444-frame-copies.md, the reconnaissance addendum, the criteria entry and changelog.d/fixed/1710-newest-frame-of-an-element.md.

Testing

Measure 43144816471 (unfiltered, keep_ifc, held-out pairs; head e2bec53 against main 80cd04a; same-project gates pass; the first run, 43139762399 on b48edd0, moved the same five exports the same way). Census of 42 models, equal/different/missing: quantities 159,338/26/14,476 to 159,508/5/14,337; properties 201,961/61/11,734 to 202,046/10/11,706; values Revit does not write stay 17 and 273.
Timber office IfcWall: streams to Partitions/424 (20), 456 (8), 449 (7), 449 to 456 (4), 458 (2), 424 to 425 (1); 11 body_source join_trimmed to centreline_layer_joins (6 keep their frame; 2177158 the reverse); 1347198/1347199/1347200: thickness 0.435/0.435/0.74 to 0.35/0.35/0.525 ft, box height 4.1/4.1/3.8 to 3.13/3.45/3.1 ft, join trim 0.2175 to 0, TopCoverElementId 1498471 (1347198) and 1384047 (1347199), BodyHeightSource wall_top_stepped_at_covering_floor and body extrusion to solid on 1347198 and 1347199; 1436343 and 2114950 take their current type VS-2.CLTpinta, written without a wall type as its layers are not read (#1802). IfcSpace: 1743309 body_source bbox to saved_graphics_mesh, space_outline_source stored_solid to saved_mesh, no profile_source, area_square_feet 3284.8 not written; 1743279 profile_source partition_room_solid_edges, outline stored_solid_edges, 2057.95 to 2055.37 sq ft; 2990767 385.98 to 381.64 sq ft; housing room 1399700 box 2.009198 to 2.0 ft. Diagnostics: body_sources centreline_layer_joins 213 to 223, join_trimmed 499 to 490, bbox 438 to 437; wall_base_sources sloped_at_covering_floor 4 to 11, sloped_at_floor_covering_in_part 8 to 1; wall_end_refusals joined_wall_face_inside_the_wall 3 to 5; wall_profile_cuts cut_in_body 9 to 10; height_checks carried_level_high 1 to 2, carried_sloped_low_falling_below 0 to 2, kept_sloped_low_falling_below 2 to 0; profile_sources level_past_the_high_end 1 to 2, sloped_past_the_low_end 0 to 2; profile_refusals level_cut_between_two_lines 1 to 0, stub_longer_than_the_wall_is_thick 2 to 0; cut_openings_left_out curtain_wall_within_half_foot_of_wall_end 6 to 5, cabinet_not_reaching_wall 2 to 0; end_reads_unmarked end_join_curve_not_at_the_box_end 2 to 0; edge_outline_spaces 0 to 1; layered_element_count 554 to 553; total_entities 76,170 to 76,184; parameter_value_count 46,359 to 46,393; wall 2114950's curve length leaves wall_curve_lengths_feet.

  • Rows registered on List the shipped rules that rest on one project, and the second model that could test each #1636 before each run (the probe's and the change's); the probe is Measure 43139570505 (43137611524 with its first version), all read in the report. The probe's model of the selector names the frame the export itself names on every element both hold (10,509 of 10,509 on the timber office at permit).
  • b48edd07, 7803da19, a918f504 and the head e2bec539 (a merge of main, measured again against it) are archived as refs/archive/2026-11-12/cited/<12 hex>. The merge's own delta against b48edd07 is main's alone: the sorted + and - lines of git diff -U0 are identical (759 lines). The change adds no read, so it is not timed.
  • full / CI passed on the final head.

Not done

  • The costs, each with its issue. Five values that were equal on the timber office at permit are no longer written: the NetVolume of wall 1436343 and the Height and Width of opening 2793737, and the NetSurfaceArea of mullions 3028901 and 3028902. Walls 1436343 and 2114950, retyped since the earlier save, take their current type VS-2.CLTpinta (3408088), whose layers the export does not read for the 8 other walls of that type either: its copies disagree and the export drops a type then (the latest copy's width is Revit's 158 mm, the older's 166), so their Reference, Width and their openings' Depth are missing, not different (#1802, RE-446 next). The two mullions stand on a mullion whose kept frame moved (#1803). Wall 2177212 is drawn from its record box, its base 8.2 ft below Revit's, where it was drawn from its saved mesh (#1407).
  • The one different value left on the timber office at permit is 3027671's Length and Span (the mesh's own 0.05 mm); rvt-rs values Revit does not write stays 17 and 273.
  • The 25 elements of the timber office at permit and the 10 of the concrete office at permit whose frame kept is the newest and whose box is still not Revit's height; the 131 columns a save of the Autodesk rme samples whose Length is not their mesh's, which this change does not move (#1801).

Related issues

Refs #1710, #1767, #1046, #1636, #1801, #1802, #1803, #1407.

…r keeps for an element framed in several partitions against Revit's body (#1710) (RE-444)
…the newest, the scorer uses the probe's own choice, and the report says the probe models the selector (#1710) (RE-444)
…r keeps the newest frame, not the one with the greatest height (#1710) (RE-444)
@DrunkOnJava DrunkOnJava changed the title research(elements): a probe and two scorers set the frame the exporter keeps for an element framed in several partitions against Revit's body (#1710) (RE-444) fix(elements): of an element framed in several partitions the exporter keeps the newest frame, not the one with the greatest height (#1710) (RE-444) Nov 12, 2026
…e timber office at permit's 18 and 52 differences to 1 and 1, 5 of 126 exports move (#1710) (RE-444)
…1): the same five exports move, quantities equal 159,338 to 159,508
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 12, 2026 03:47
@DrunkOnJava
DrunkOnJava merged commit 1d76c82 into main Nov 12, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/444-frame-copies branch November 12, 2026 03:58
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…rlier save takes its current partition's layers on Revit 2024 and later (#1802) (RE-446) (#1807)

## Summary

A wall, floor, ceiling or roof type edited after an earlier save is
rewritten into a newer partition and the older copy stays, and
`scan_type_layers` dropped a type whose copies gave different lists, so
every type edited since had no layers. On Revit 2024 and later it now
takes the copy of the partition the element index routes the type to
(RE-216), none if it routes none; Revit 2008 to 2023 keep dropping such
a type (#1805). Measure 43155545709: 126 exports, 120 identical, 6 move,
no element added or removed, and in each only the 180 elements of a type
whose copies disagree. Each gains its type object (IfcWallType,
IfcCoveringType, IfcSlabType or IfcRoofType: Identity Data.Type Name,
Other.Category, Family Name), Other.Family and Family and Type,
Pset_EnvironmentalImpactIndicators.Reference, its class's Reference
(Pset_WallCommon, Pset_CoveringCommon, Pset_SlabCommon,
Pset_RoofCommon), Pset_ReinforcementBarPitchOfWall.Reference on walls,
RvtElementRecordGeometry.FamilyName and FamilyNameSource
system_family_by_category (also trust_markers.FamilyNameSource), a layer
set, and Qto values (wall Width, NetVolume, Height and side areas;
covering GrossArea; slab Depth, GrossVolume, NetVolume; opening Depth,
Height, Width):
- Timber office at permit, 14 of 10,825 IfcWall (10 VS-2.CLTpinta, 4
SPR-1; "Wall-1416616" to "Basic Wall:VS-2.CLTpinta:1416616", Width
0.158); 4 of them body_source join_trimmed to centreline_layer_joins;
wall 1436343's NetVolume and opening 2793737's Height and Width written
again.
- Concrete housing as built, 46 of 1,589: 34 IfcWall (22 US-1, 11 US-3,
1 PE-3), 8 IfcCovering ("Ceiling-1691157" to "Compound
Ceiling:AK-1:1691157"), 4 IfcSlab ("Roof-1551460" to "Basic
Roof:YP-1.OL:1551460"). At permit, 68 of 1,541: 32 ceilings (AK-1,
AK-2), 16 walls of SPR-1 exported as IfcCovering (they also gain
JoinStartWallElementId, JoinEndWallElementId, JoinStartRunsThrough,
JoinEndRunsThrough, ProfileResolved false to true, ThicknessSource
bbox_thin_axis to wall_type_compound_structure, body_source
centreline_layer_joins), 18 IfcWall (6 US-3, 8 US-4, 4 MS-1; 4
centreline_layer_joins, 4 centreline), 1 IfcRoof (KA-1).
- Timber housing as built, 35 IfcCovering (AK-1, AK-2); at permit, 17
(AK-2); terrain timber housing, 1 IfcRoof ("Roof-1473225" to "Basic
Roof:VK-1.pelti:1473225").
Costs: 12 walls and 16 coverings change body, two wall ends going from
exact to 0.27 and 0.29 m off (#1806); the 19 new types carry no
IsExternal (#1185).

## Motivation

The BIM4LCA timber office at building permit had 12 walls with no
IfcWallType, Width or Reference (8 of the type `VS-2.CLTpinta`, 4 of
`SPR-1`), and RE-444 (#1799) retypes two more walls into the first. The
newest frame of each of the office's 728 multi-framed walls names
exactly one type, so the type is right; its layers were dropped because
its copies disagree: `VS-2.CLTpinta` is 140 + 13 + 13 = 166 mm in
`Partitions/374` and 140 + 18 = 158 mm in `Partitions/410`, and Revit's
`Width` of the retyped walls is 0.158 m. Nine wall types in three files
disagree (the office at permit, the concrete housing as built and at
permit), and on every one the partition the element index routes the
type to is the latest. The same scan serves floor, ceiling and roof
types, so 108 coverings, 4 slabs and 2 roofs of the housing files were
untyped as well.

Closes #1802. Refs #1046, #1016 (W7), #1636.

## Changes

- `src/research/partition_compound_structure.rs`: `scan_type_layers`
collects every decoded copy of a type's layers; `choose_copy` (pure)
takes the first where all agree, the routed partition's where they
disagree (`native_document::current_partitions`, Revit 2024 and later
only) and none where no partition is routed, none of the copies is in it
or its copies disagree; the element's `wall_type_layers` and
`roof_type_layers` sources get the rule `current` there. Five
failure-first tests of `choose_copy`.
- `probes/examples/probe_re446_type_layer_copies.rs` and
`probe_re444_frame_type_slots.rs`: every copy a wall type has, and what
each frame of a multi-framed wall names as its type.
- `reports/element-framing/RE-446-type-layer-copies.md`, the
reconnaissance addendum, the criteria entry,
`docs/export-diagnostics.md` (the two rows now `agreeing` or `current`),
`changelog.d/fixed/1802-type-layers-of-a-type-edited-since-a-save.md`,
and RE-444's run and equal counts in its two entries (145 and
43144816471, which the merged PR had not updated).

## Testing

Measure 43155545709 (unfiltered, keep_ifc, held-out; head 0047fbf
against main 1d76c82; same-project gates pass; the first run,
43151004964 on a09e1f5, took the current copy on every release and
moved the same six exports and held-out bimspeed-frigento-2020, byte for
byte main's now). Census of 42 models, equal/different/missing:
quantities 159,508/5/14,337 to 159,866/5/13,962; properties
202,046/10/11,706 to 202,534/10/11,237; values Revit does not write stay
17 and 273; no row gains a different or loses an equal. Timber office
IfcWall: Width equal 572 to 586 of 586, Reference 572 to 586, NetVolume
514 to 525, openings' Depth 270 to 284 of 284, Height and Width 92 to 99
and 76 to 83 of 124; layer sets written 553 to 560, whole sets within
0.001 ft of Revit's 552 of 552 to 559 of 559; wall ends within 0.001 ft
311 to 316 of 586; wall_curve_lengths_feet gains 1416616 (41.100722),
1636357, 2114950, 3065979, 3066427, 3071333, 3094656; body_sources
join_trimmed 490 to 486, centreline_layer_joins 223 to 227;
parameter_value_count 46,393 to 46,445; total_entities 76,184 to 76,226.
Concrete housing as built: parameter_value_count 6,942 to 7,090,
total_entities 10,614 to 10,734, wall_curve_lengths_feet gains 1347014;
at permit: body_sources join_trimmed 244 to 220, centreline 30 to 34,
centreline_layer_joins 107 to 127, 24 wall curve lengths,
parameter_value_count 6,674 to 6,856, total_entities 10,273 to 10,396;
the 5 SPR-1 coverings' wall_type_layers source is rule current,
Partitions/1143, 2 copies; wall ends within 1.0 ft 322 to 325 of 345,
ends of 1347019 and 1347016 exact to 0.285 and 0.270 m off. Timber
housing: parameter_value_count 7,960 to 8,030 and 7,732 to 7,766,
total_entities 12,176 to 12,246 and 11,743 to 11,777.

- Rows registered on #1636 before each run ([the
probe's](#1636 (comment)),
[the
change's](#1636 (comment))
and [the second
run's](#1636 (comment))),
all read in the report. The probe is Measure 43149619654 (43147467736
with its first version), `probe_re444_frame_type_slots` Measure
43145747467.
- The six moved exports of the second run are byte for byte the first
run's, so every scorer file of them is. `0047fbf1` and `a09e1f5e` and
RE-444's head `985cdb70` are archived as
`refs/archive/2026-11-12/cited/<12 hex>`. The merge of main (`a2a77c33`,
v0.19.0) is clean: the sorted `+` and `-` lines of `git diff -U0`
outside docs, changelog and reports are identical to those of main's own
delta (`1d76c82f` to `09b18bd3`), and
`src/research/partition_compound_structure.rs` and the probes are byte
for byte the measured head's. The change adds one element-index lookup
for a file whose host types disagree and no read otherwise, so it is not
timed.
- `full / CI passed` on the final head.

## Not done

- **Revit 2008 to 2023** keep dropping a type whose copies disagree: the
first run's held-out Revit 2020 file got 5 floors layer sets of Revit's
widths and, on 4, materials Revit's export does not give (`IfcSlab`
different sets 2 to 6), and its export cannot be dated against its save
([#1805](#1805)).
- **Two wall ends**: 1347019's end and 1347016's start of the concrete
housing at permit, exact on `main`, are 0.935 and 0.886 ft off beside
ends that are nearer (the worst end of each wall, and of 1426918, falls:
wall ends within 1.0 ft 322 to 325); the cause is not read
([#1806](#1806)).
- The rule is measured on one project (six BIM4LCA files): no other
model's export changes, the held-out models of Revit 2024 to 2027 and
the Autodesk samples among them, so none gates it. The 19 type objects
it creates carry no `IsExternal`, which no type has (#1185, Revit's
newer exporters do not write it); 17 walls' `Length` move from missing
to the walls counted apart (RE-252), none written.
- The two mullions' `NetSurfaceArea` RE-444 stopped writing
([#1803](#1803)) and wall
2177212's body
([#1407](#1407)) are not
this cause.

## Related issues

Closes #1802. Refs #1805, #1806, #1803, #1407, #1185, #1046, #1636.
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…volutions read as the code does (#96, #227, #1067, #1189) (#1963)

## Summary

Ten doc lines that said less than the code does, found by the issue
triage batch (batch 10) and each checked against `main`:

- `docs/supported-profile.md`, Pipes row: "ducts and fittings keep their
box" was stale. A duct is its record's swept section, its box within
0.01 ft of Revit's on all 1,053 ducts of Snowdon Towers HVAC and all 25
of RE1 Mechanical (RE-371). A fitting whose saved mesh decodes whole is
drawn from it on 2023 to 2027 (#1191), RE-443 adding 105 duct fittings
of `rme_basic` 2023 checked against a native reference that is not
shared, not a Revit export; any other keeps its box. Flex ducts are not
read. (#96)
- `docs/supported-profile.md` (doors, windows and openings row) and
`docs/evidence.md` (openings row): the cut-loop opening was said to be
2024 and 2025 only. `CUT_LOOP_REVIT_VERSIONS` is 2024 to 2027 (RE-346)
and `CUT_LOOP_32BIT_REVIT_VERSIONS` 2015 to 2023 (RE-450). On 2015 to
2023 the size is the 2024 save's and the place too, but for 24 windows
of `rac_advanced`'s 2015 to 2020 saves 0.0075 m off (RE-450); on 2026
and 2027 the 2025 save's (RE-346); neither is held to a Revit export of
those releases, and the lines say so. (#227)
- `docs/release-1.0-criteria.md`, W4's wall-top line: the stub wall
3004978 "keeps its full height" was stale. #1596 (RE-375) cuts it whole,
labelled and counted apart, by a rule that rests on that one wall. The
counts beside it are from before that change, and the line now says so.
(#1067)
- `docs/supported-profile.md`, Family row, and
`docs/release-1.0-criteria.md`, W3: the family geometry said "none". A
standalone Revit 2020 family's one visible positive revolution is
exported, confirmed against Revit's own IFC of the family (RE-394), as
`docs/compatibility.md` and the support matrix already say, marked
experimental as the README marks it. W3 stays **failed**. (#1189)
- `docs/rooms.md` and `docs/reference-models.md`: BIM Whale's held-out
Revit 2021 project was said to write 0 of its 8 Areas. Since RE-333 it
writes 6 of 8 with no extras, and 2 of Revit's are still missing
(Measure run 42003913780, counts only). (#1261)

- `docs/supported-profile.md`, "Not supported": rebar, Structural Beam
Systems and Revit assemblies now say why they are not read (RE-350 §3,
§3.3), which #1444's done-when asks for. The files hold rebar and beam
systems as framed boxes, but no Revit export in reach shows what Revit
writes for them. (#1444)
- `docs/support-matrix.json`, the raised embed-host claim ("all are
drawn from their mesh and every base is Revit's", run 41973316830):
since RE-444 (#1799), 2177212 at permit is drawn from its newest frame's
record box, its base 8.2021 ft below Revit's, and the matrix now says
so. (#1407)

## Testing

Docs only. `tools/ci/api-doc-ids.py` and `tools/ci/measured_numbers.py`
pass locally (276 of 294 numbers name a model of the index).

## Audit-honesty checklist

- [x] Each line now says what the code does, with the source it rests
on; nothing claims a measurement that was not made.
- [x] No status changes.
- [x] No private paths or emojis.
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…mullions at its near end (#1803) (#2024)

## Summary

The RE-441 exception that leaves out a mullion beside an overlapped one
(an end with no partner, where an overlapped mullion's axis lies on that
end's plane, "a vertical standing on the face of a bar") now counts the
overlapped mullion only where its end nearest the point is the end that
is lain over. The vertical 3027086 of the BIM4LCA timber office at
permit is overlapped only at its foot. In its newest frame, which RE-444
keeps, the foot lies 0.164 ft inside the mullion below it, and the trace
reads `PAR_IN` there. Its top is under the joint of the 0.1 m pieces
3028901 and 3028902. Their chain bends, so neither end has a partner, so
RE-441's exception left both out, and they lost the `NetSurfaceArea`
that `main` wrote equal to Revit's before #1799. Closes #1803 if the
Measure holds.

## Motivation

#1803 asked which end test the two pieces fail with 3027086's newest
frame. The trace (scorer `mullion_ends_vs_boxes` with a tag trace,
branch `research/1803-mullion-trace`, Measure
[43650076310](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43650076310),
`--no-saved-meshes` so the boxes are written, timber office at permit on
`8529bb01`) shows:

- 3027086 has labels `PERP_FACE` and `PAR_IN, PERP_FACE` and is
overlapped. End 1, the foot, lies inside 3028434's box.
- 3028901 and 3028902 have empty end labels, so no partner and nothing
hides an end. Each has 3027086 at 0.08202 ft from an end (within
`NEAR_FEET`), and each is left out as "an end meets one left out or
overlapped".
- The scorer's own left-out step is the older RE-268 form. The export
follows the Rust rule, where it is RE-441's second exception
(`doubtful`) that applies.

With the old frame, 3027086 was not overlapped, and the plain rule (no
partner, no centre, both ends kept) gave Revit's value on both pieces.

## Changes

- `src/research/partition_schema_mvp/mullion_ends.rs`: the rule records
which ends of each overlapped mullion are lain over, and `doubtful`
takes an overlapped mullion only by its end nearest `p`. The module doc
says so.
- `changelog.d/fixed/1803-overlapped-end.md`.

## Testing

Measure
[43650837777](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43650837777),
`d9e44803` against `8529bb01`, unfiltered with samples, nordic, r2025
and holdout: `ifc.sha256` 116 of 120 equal. The four that differ are the
BIM4LCA office in concrete and in timber, as built and at permit, all
one project. `diagnostics.json` is 102 of 102 equal, and `same-project
gates` pass (15 samples held). The only scorer lines that move are
mullion `Qto_MemberBaseQuantities.NetSurfaceArea`, with `different` 0
before and after on every file:

| file | equal | missing |
|---|---|---|
| concrete as built | 9,892 to 9,896 | 111 to 107 |
| concrete at permit | 9,920 to 9,924 | 111 to 107 |
| timber as built | 7,755 to 7,759 | 121 to 117 |
| timber at permit | 7,751 to 7,755 | 121 to 117 |

Row 1 holds, and more widely than registered: 4 mullions in each office
file, 16 values, not only 3028901 and 3028902. Rows 2 and 3 hold:
`different` does not rise anywhere, and nothing else moves. The
narrowing rests on this one project, which the RE-441 row of
`docs/one-project-rules.md` already covers.

The head after it adds one pure-helper test beside the module's others
(a vertical overlapped only at its foot, two bars on its top meeting
over its axis with no partner; it fails on the code before this change),
and fixes the fragment's count. Neither changes what the export does.

- [ ] `tools/check-local.sh`: CI runs it
- [x] End to end: Measure

## Audit-honesty checklist

- [x] Changelog fragment (its wording is settled once the Measure reads)
- [x] No emojis, private paths or jargon

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source; no fixtures

## Breaking changes

None.
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