Skip to content

feat(ifc): Areas from Revit's plan topology, and on Revit 2025 to 2027 (#1261, #1194) - #1428

Merged
DrunkOnJava merged 19 commits into
mainfrom
feat/1261-area-plan-topology
Nov 5, 2026
Merged

DrunkOnJava merged 19 commits into
mainfrom
feat/1261-area-plan-topology

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

This reopens #1371 by puzzbobb on a branch of this repository, as puzzbobb agreed on that pull request ("it can be reopened on a branch here"). puzzbobb's two commits are cherry-picked in order and keep them as author (fec15008, c4889e7f, signed by the committer, as main-protection requires); the maintainer's five commits that followed on #1371's branch come after them, with the archived head refs/archive/2026-11-04/pr1371-area-plan-topology (e5b1c8be) as the source. Their reader is the substance: an Area that the arrangement of its lines leaves without a region takes the loop of Revit's own plan topology, checked against the area Revit saves for it, and the Areas of Revit 2025 to 2027 are read.

It supersedes the wall-line rule of #1367, which was worked out from the same IFC2X3 export it is scored against; #1367 becomes research notes only once this lands (Griffin, 2026-11-04).

The gate (Griffin, 2026-11-05, "Ship, labelled", then "Same-project gate")

The Areas of Revit 2025 to 2027 and the 108 Area spaces of the recorded Autodesk 2024 Snowdon Towers samples are written by default. They are not measured against any Revit export; RE-333 section 9, the changelog fragments and docs/rooms.md, status.md, evidence.md and supported-profile.md say so and name the evidence: the drawn loop equals the area Revit saves in the file for it and holds the Area's point, and on 2025 to 2027 the same project's 2024 save gives the same Areas.

The marker (Griffin, 2026-11-05, "Mark 2025 to 2027 in the file"). His earlier "their own outline source value" had two readings, and the docs-only one was mine; he wants the file to show it. Areas read from Revit 2025, 2026 and 2027 now get SpaceOutlineSource area_plan_topology_unchecked, wherever the marker shows: the IFC property, list_rooms (space_outline_source), the schedule CSV's outline source column, and the MCP field's description (the watcher syncs the contract). Snowdon Towers 2024 and every other 2024 file keep area_plan_topology, because they share a release and a code path with the office and a release is not split; 2015 to 2023 keep it too (they are the Areas with the IFC2X3 check). It is decided by release in one place, partition_area_records::area_release_unchecked (AREA_UNCHECKED_RELEASES, 2025 to 2027), which sets a field of the decoded Area that export_content reads. BodySource and exported.body_sources do not split: the body is read by the same code, and the marker says how far it is checked, not how it was read. tools/re/areas_across_saves.py expects exactly that per release: a 2025 Area reading area_plan_topology and a 2024 Area reading the unchecked value are failures. Consumers checked: export_content (marker, contain_in_spaces), schedule_csv and element_record_plan_profiles (keyed on ProfileSource, which does not split), element_provenance and the COVERAGE rows (keyed on BodySource, unchanged), rvt-mcp (passes the text through; descriptions updated), space_profiles_vs_ifc.py (knows the value). #1439's SpaceKind scorer has its own list of Area values, and that lane adds the new one.

The first gate tested nothing, and I recommended it. It was "no Area written that Revit's export lacks (only in rvt-rs 0) on every held-out Revit 2025 to 2027 model with Areas". None of the seven held-out Revit 2025 to 2027 models writes an Area, and all seven exports are byte-identical to main's (Measure run 42003913780 on bcb02107), so only in rvt-rs 0 could not have failed. I did not count what it would count before recommending it.

The gate now (Griffin's "Same-project gate"): this lands only if rac_advanced's 25 Areas on its 2025, 2026 and 2027 saves equal its 2024 save's, Area by Area. The fields are GlobalId, number, name, storey, outline source (the value each release gets, above), body area (1e-6 relative), top surface (the symmetric difference of the two top surfaces, 1e-6 relative), height (1e-5 ft) and lowest vertex (1e-5 ft); Griffin's list is the first six and the rest are a floor raised, so that a translation, a rotation, a shear that keeps the area, a raised base or another outline source is a difference. tools/re/areas_across_saves.py compares them. tools/ci/measure-reference-models.sh runs it on the head side of any Measure run of the samples that holds the four rac_advanced samples (whatever sample_years says, as long as it includes 2024 to 2027), once every export is done and before any sample's IFC is deleted; with fewer than the four it checks nothing and prints a notice. The job "The Areas agree across rac_advanced's saves" in measure.yml turns the run red unless the output ends exit 0 and has the scorer's passed line. It fails on a missing or unreadable save, on other than 25 Areas or other than 25 Areas with a body on any save (so 26 fails the same way the workflow's grep does), on an Area with no storey, and on any difference, missing or extra Area; a pass on nothing is impossible. Measure is not a required check, so "blocks landing" means by the landing rule: the result is read before merging. It prints counts by field and the number of Areas compared on each save, nothing else.

What the first two passes got wrong, found by the second review. Runs 42008539696 and 42010805118 read "storey 25 equal" on None equal to None: the first version of the scorer read the storey with get_container, and rvt-rs writes a space under its storey with IfcRelAggregates, so the storey was never compared; and it pinned 25 Areas but not 25 bodies, so all four saves losing their bodies stayed green. Both are fixed (get_aggregate, a missing storey, other than 25 bodies and a missing body are failures). The real storeys of the four saves are 01 - Entry Level (9), 02 - Floor (9) and 03 - Floor (7) with 0 differences, so the fix cannot turn a correct head red.

The proof, run through read_areas on written IFC and not through compare() on dictionaries. The reviewer's generator (IfcOpenShell) writes the four saves, each Area an IfcSpace aggregated under an IfcBuildingStorey with its SpaceOutlineSource and an extruded body, and the fixed scorer reads them as it reads an export, then the workflow's own check reads its output file. 23 cases, 0 wrong. Green: the control (25 Areas, 25 with a body, every field equal) and a height 5e-6 ft off (within the tolerance). Red: (1) no body on any save; (2) one body on every save; (3) later saves that lose their bodies; (4) one Area moved to another storey; (5) storeys renamed on a later save; (6) no storey on any save; (7) every body of a later save moved 100 ft; (8) every body turned a quarter turn; (9) one body sheared to the same area; (10) the base of every body raised 5 ft; (11) a different outline source on a later save; (11b) one 2025 Area reading area_plan_topology; (11c) one 2024 Area reading area_plan_topology_unchecked; (11d) every later Area reading area_plan_topology, the release rule not applied; (11e) a lines value on 2027; (12) 26 Areas on every save; (13) 24 on every save; (14) one Area missing from the last save; (15) a save missing; (16) a height 2e-4 ft off; (17) a body area 1e-4 relative off. The harness is in the lane's scratch directory (it needs IfcOpenShell to write files), not in the repository.

Tried on real data. Run 42008535484, main's exports of the four saves (this branch's scorer and workflow, main's binaries at ce0b2398, no #1428): 2024 has 25 Areas, 16 with a body, and 2025, 2026 and 2027 have 0, so each later save fails and the job turned red. Run 42008539696 and run 42010805118 (the pushed head 401f5244, finished green): 25 Areas on each of the four saves, the gate passed, and the 58 sample exports' hashes are identical to run 42003913780's (I read the second run's myself). Both ran the scorer before the fix above, so their "storey equal" counts were None against None; the final run below is the first with the fixed scorer on real files.

What it cannot catch: an error that the 2024 read shares with the later reads (the same wrong region, number, name or height on all four saves), and an error in how the saves are exported that is the same in all of them. It compares rvt-rs with itself, on one project of 25 Areas.

The 2021 save does not move (a measured residual)

Autodesk's rac_advanced 2021 save keeps its 25 Areas as area_without_proven_body (22 boundary_lines_not_readable, 3 named_lines_not_in_scheme_and_level), as on main, although RE-333 section 4 says the topology has a region for all 25 on it. From the code: the save holds both states of the model (RE-324 section 4), so 16 area boundary lines have two disagreeing copies; group_arrangement returns Group::Unreadable for a group that holds one, and locate returns that before the plan topology is asked; draw_area refuses the 3 Areas that name such a line. That order is the refusal about safety that the review of #1371 asked for (no fallback to the topology after conflicting copies, stray heights or a design option), so it is not changed here. Measured (probe run 42008543772): the topology's 25 regions on the 2021 save equal the 2022 save's and the 2023 save's, Area by Area, in vertex count, holes, arcs and area, so its current native copy holds the later state; no Revit export of that state exists. It gets its own issue.

Motivation

#1261: BIM Whale's 2021 Areas were not written, and on Autodesk's rac_advanced main writes 16 of the 25 Areas (the 9 it leaves out are the ones the plan topology draws; #1367's "18 of the 25 drawn" is not on main). #1194: Areas were read on Revit 2015 to 2024 only. RE-333 has the measurements and the reasons.

Changes

The review findings on #1371, in code

  1. Crafted file panics. partition_area_records.rs:497-498: buf.get(span.start..body) and buf.get(body + span.entries..span.end); a narrow record is taken whole through buf.get(span.start..span.end), and a span that does not lie in the partition is skipped. No raw slice of parsed spans is left in the module.
  2. The fallback to the topology after a refusal about safety. locate returns Group::Unreadable (a non-primary design option, stray heights, conflicting copies, a missing line) before the topology is looked at (partition_area_records.rs:1166, from group_arrangement at :1043-1062); the topology is asked for only where the lines are sound but not arranged (Group::Unarranged) or an Area's region touches a line off the axes (group.blocks). The refusals before it (no Levels, an unaccounted line, no lines) refuse every Area as before.
  3. Arcs as chords. Written as arcs, IfcIndexedPolyCurve with three-point arcs (src/ifc/export_content.rs, indexed_area_curve); the outline is checked as written, arcs as arcs, against the circuit's saved area, and an arc that cannot be read finitely refuses the Area (area_arc_not_finite).
  4. Unrecorded Snowdon Towers 2025 claims. Out of the report, the changelog and the docs (Griffin, 2026-11-04). The Snowdon Towers figures that remain are the recorded Autodesk 2024 samples in research/autodesk-sample-projects.tsv (sha256 33271010..., 6dc833f9...), quoted as counts of what rvt-rs writes. Nothing in the tree cites the 2025 file, its Revit 2025 export or the Japanese sample except RE-333 section 7's sentence that they await a recorded source.
  5. Behind main, RE number. Rebuilt on main at 182ed21, then a signed merge of a4044dc8; RE-333 is free on main and in the open pull requests.
  6. Smaller. The REFUSED_* reasons reach the diagnostics (topology.remove(&u64::from(id)) is passed whole, with no .and_then(Result::ok)). !sub replaces -sub - 1 (native_area_regions.rs:784, :836). docs/status.md and docs/support-matrix.json say 2015 to 2027.

The second review, in code

  • Bounds against a crafted file (native_area_regions.rs): a circuit is refused before its edges are built once they pass MAX_CIRCUIT_SIDES (10,000), or once its lines' offset parts pass MAX_CIRCUIT_OFFSET_PARTS (20,000); the edges are no longer cloned.
  • checked_add in chain_entries; a circuit side whose line has no u32 ElementId refuses the Area (add_line_ids); byte_range includes the skipped entry bytes (AreaRecord::skipped).
  • Two readers, one region. Where Revit's plan topology and the lines' arrangement both give a region and they are not the same one (net area to 1e-6, the same corners within 1e-4 ft, no arc in the topology's), the Area has no body and says area_regions_disagree in exported.area_body_refusals (and in the decisions log). Measured at e9124b3a, before the check: the regions were the same on 16 of 16 and 30 of 30; with the check, not yet measured, so whether it loses an Area is what the new run says.
  • dropped chain records are counted by ElementId, not by record and partition, and the warning says an area boundary line among them is not among the lines an Area is checked against. The Areas of the Snowdon Towers samples are still written.
  • BodySource and ProfileSource of an Area drawn from the topology are native_area_plan_topology, with their own body_readers row and COVERAGE row; schedule_csv and the plan-profile reader accept it. This moves exported.body_sources (the count of partition_area_boundary_lines splits) and nothing else that is measured.
  • Tests. The plan records are read with NATIVE_RELEASES. area_boundary_lines and area_point are pinned on no gate model: the office's 30 Areas all take the topology first and no other gate model is known to draw an Area from its lines, so a regression in note_area_sources would pass until one does (said at MIN_READERS).
  • Docs. RE-333 keeps no per-Area data of the three.js export (counts only, feat(elements): rooms take off the round columns their stored solid holds, and a Measure pair for rac_advanced against the public IFC2X3 export (#1354) #1377; the archived commits of feat(ifc): Areas from Revit's plan topology, and on Revit 2025–2027 (#1261, #1194) #1371 carry the earlier version, which is already public, and the policy is applied from here on); six plan-topology reasons, not five; the office's vertex wording is exact (3 outlines start at another vertex and the holes of 6 come in another order as built; 2 and 6 at permit); every figure says which run measured it: the counts of what is written come from Measure run 42003913780 on bcb02107, the vertex-level and equality figures from the archived head e9124b3a.

The third round (the second review of this PR), in code

  • Hole bound (native_area_regions.rs): a hole that a plan lists again is one hole (plan() keeps the first listing of each pair); more than MAX_REGION_HOLES (1,000) is area_circuit_too_large; one Budget for sides, edges and offset parts covers the outer loop and every hole of a region, so duplicates cannot each ask for a full budget.
  • A topology read and failed is not replaced by the lines (partition_area_records.rs, locate): when area_circuit_area_differs, area_point_outside_circuit, area_arc_not_finite or area_circuit_too_large is the topology's answer and the lines draw the Area, the Area has no body and says that reason, counted in exported.area_body_refusals. Where the saved area disagrees with the face the lines give, the rule is fail closed. Where the topology was not read (area_not_in_one_plan_topology, area_circuit_not_found, area_circuit_side_not_read) the lines draw as before. No public model had an Area in the first case in run 42003913780: none of its refusals is one of these but Snowdon Architectural's single area_circuit_area_differs, and that Area was refused, so the lines did not draw it.
  • area_regions_disagree, helpers and tests (regions_agree, same_outline, near_outline, ring_perimeter, point_segment_distance): the comparison was by corner counts, which a step jog of a few micrometres changes and a ring over 5,000 corners refused outright. It is now by distance: every vertex of each outline within 1e-4 ft of the other's edges, and the area difference within 1e-6 relative plus the band that tolerance allows along the outline. The failure-first tests (a few, next to the helpers, under the pure-helper exception) cover a region of another area, a shifted, a sheared and a curved one, a hole one reader lacks and two holes matched to one, an outline that is not finite, and then the same region called the same: a ring turned to start elsewhere, a vertex on a straight edge, a 5e-5 ft step, a ring of 6,000 vertices, and the same holes in another order. Which branch has run on real data: the agree branch (16 of 16 rac_advanced joins and 30 of 30 office Areas at e9124b3a, and no area_regions_disagree refusal on any public model in run 42003913780); the refusal branch has run on no Revit file, only in those tests. A scheme whose lines all have one offset, where the arrangement could close at other positions than the topology, is not found in any file here; if it exists the Area is refused, the fail-closed side.
  • Bounds on the gate's reach and wording: see above. arm.sh should read "blocks landing by the landing rule".
  • Docs. No per-Area figure of the three.js export is left in the tree (RE-333 said "three four-sided Areas of under 83 ft2" and how that export writes the curved Area; docs/rooms.md said "worst 2.0e-7"; now "all 25 within 1e-6 relative", counts only). docs/rooms.md and docs/status.md name area_regions_disagree, mark area_plan_topology "not measured" on Revit 2025 to 2027 and the Snowdon samples, say that it is the Areas' own outline source and not per release (a 2024 Snowdon Towers Area and an office Area take the same path), no longer say "Areas as on 2024" beside models that write none, and say that the office no longer writes area_boundary. Snowdon's counts say which head they are from everywhere. RE-333 section 3 reports the disagree check measured (it said "not yet measured").

What the evidence is, exactly

  • Revit's IFC4 export has no export of these Areas. The rac_advanced check is against the one public export of it, from the three.js repository: IFC2X3, by a build of Revit 2021's exporter whose string ends "IU alternativa 21.0.0.383" (publisher not established), showing the project's 2015 to 2020 state. It is counted apart, never used to remove a value or to settle a disagreement between exporters, and its Measure uploads are counts only (racadv-*, feat(elements): rooms take off the round columns their stored solid holds, and a Measure pair for rac_advanced against the public IFC2X3 export (#1354) #1377).
  • It is out of sample for this rule. The topology's loops, and the areas Revit saves for them (PlanCircuit m_area) that every loop is checked against, are in the file; nothing was read off the export. That is the difference from research(areas): RE-332, the position of a wall-hosted area boundary line is the offset the file stores (#1261) #1367's wall-line rule, whose rule was worked out from the export it was scored on. On the 2020 save, measured on the archived head e9124b3a: 25 Areas written, 25 in that export, 0 extra, all within 0.1% in area and 0.01 ft in outline; main's 16 joined Areas equal their topology loops.
  • Revit 2025 to 2027 are checked against the same project's 2024 save only.
  • Per Griffin (2026-11-04): Areas checked against a non-IFC4 or third-party export may ship labelled; the trust marker area_plan_topology names the rule, and RE-333, the docs and the changelog name the oracle.

Testing

Unit tests are banned in this repository: none added. The test that changes is a real-file one (tests/value_sources_offsets.rs).

  • tools/check-local.sh passes: not run locally (no local builds on this checkout); cargo fmt --all -- --check and python3 tools/release/changelog.py check pass here, CI's clippy, MSRV and doc jobs and the corpus tests are the gate. No let-chains; every nested tuple in a collection has a type alias.
  • Verified end to end on real Revit files, on 5008247d, the code before the area_plan_topology_unchecked marker: Measure run 42017400629 (unfiltered, base main, nordic, r2025, holdout, samples, racadv). These are the figures of record for that code; the run after the marker (below) replaces them where it differs:
    • 26 of 117 exports move, the same set as in run 42003913780 (below);
    • rules: findings 0 on 90 models and on 18 held-out;
    • held-out spaces move on one model only, from (0 in both, 0 only in rvt-rs's, 8 only in Revit's) to (6, 0, 2);
    • the racadv pairs 2015 to 2020: 116 in both files, 0 only in rvt-rs's, 0 only in Revit's;
    • MCP: 0 differ on 629 lines;
    • refusals: next_storey_not_proven 9, area_circuit_area_differs 1, point_not_read 4, and no area_regions_disagree and no area_circuit_too_large;
    • the gate passes on the 2024 2099 shard, 25 Areas and 25 with a body on each of the 4 saves, every field equal, and says skipped on the 2008 2023 shard;
    • the semantic merge check (Semantic merge check: a blind Jev score of each output-changing PR's semantic diff against main #1334) reads a pass, with 5 findings for feat(ifc): Areas from Revit's plan topology, and on Revit 2025 to 2027 (#1261, #1194) #1428.
      Earlier, on bcb02107: Measure run 42003913780 and timing run 42003917325: 25 public exports move and one held out; bodies native_area_plan_topology 30 on each office, 25 on each rac_advanced save above, 96 on Snowdon Towers Architectural and 2 on Structural; time over main's at most 1.05 (rst_basic 2026), peak memory at most 1.03 (rme_advanced 2027, 559 to 573 MiB), and the lost samples-2008-2023 job of run 41990405944 did not recur. The vertex-level and equality figures in RE-333 section 8 are from the archived head e9124b3a and were not re-read.
      The check on the earlier pushed head 401f5244: run 42010805118, green, with the scorer that compared the storey as None; its ifc.sha256 equal to run 42003913780's on 58 of 58.
      The final unfiltered run on this head 7188e2e8: 42023345111 (-f base=main -f nordic=true -f r2025=true -f holdout=true -f samples=true -f racadv=true), unread when this body is written. Expected, against run 42017400629: only the exports of rac_advanced 2025, 2026 and 2027 move (their Areas read area_plan_topology_unchecked), the gate passes on the new expectation, nothing else changes. No timing run: what changed since the timing run bounds crafted input, compares two regions by distance (quadratic in one ring's vertices, tens on the files measured) and sets a marker.
  • If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed. Core Interior has no Areas, so its export is expected to be unchanged; the replay is CI's.
  • If this is a performance change: N/A.

Final unfiltered Measure on the code of this head, run 42023345111 (7188e2e; the later commit is the MCP contract sync), read by the maintainer: against 42017400629's head exactly 3 exports move, rac_advanced 2025, 2026 and 2027, by the new marker. Against main 91 of 117 are identical and 26 move, the same set as before, 1 of them held out. The same-project gate passes on the expected values: 25 Areas with 25 bodies on each of the 4 saves, every field equal, area_plan_topology on 2024 and area_plan_topology_unchecked on 2025 to 2027. rules: findings 0 on 90 models and 18 held-out, MCP 0 differ on 629 lines, semantic check pass: 5 findings in 34 models.

Audit-honesty checklist

  • Docs reflect the state after this PR.
  • A user-visible change has its fragment under changelog.d/added/, not in CHANGELOG.md.
  • Limitations: the RE-333 report's "not measured" list is kept (Revit 2026 and 2027 against a Revit export, the Snowdon Towers 2025 file, a scheme with more than one plan on a Level, an Area Revit reports as not enclosed, the straight step where two offset curves do not cross, Revit 2008 to 2014).
  • Commit messages describe what changed and why.
  • No emojis, no private paths in committed files.
  • Reverse-engineering finding: probes/examples/probe_re333_area_plan_topology.rs, reports/element-framing/RE-333-area-plan-topology.md and an addendum in docs/format-reconnaissance.md.

Legal and contribution hygiene

The declaration is puzzbobb's on #1371, quoted here, and the maintainer's commits are Apache-2.0 as the rest of the repository:

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII

The class and field names come from the schema each file embeds (Formats/Latest), as rvt-schema prints them. Autodesk's samples are fetched for the run and never stored. The office is CC BY-SA 4.0, read by byte range and never stored.

(The last sentence of that declaration on #1371 about a local Revit 2025 export of Snowdon Towers is not repeated: those figures are out of this pull request.)

Breaking changes

None. native_area_regions is a new public module and AreaRegion a new public type. Areas of Revit 2025 to 2027 files are new IfcSpace, and an Area that main draws from its lines now says area_plan_topology where the topology is read.

Output samples

SpaceOutlineSource on rac_advanced (the archived head e9124b3a, run 41894715743): the 6 Areas main marks area_boundary and the 10 it marks area_boundary_joined say area_plan_topology, as do the 9 it did not write.

Related issues

Refs #1261, Refs #1194, Refs #763. Reopens #1371. Supersedes the wall-line rule of #1367.

Co-authored-by: puzzbobb [email protected]

puzzbobb and others added 9 commits November 5, 2026 02:33
…es the loop of Revit's plan topology (#1261) (RE-330)

For each area scheme on each Level Revit keeps a LevelRoomPlan whose
PlanTopology holds the scheme's area boundary lines cut where they meet,
the closed loops they make, each with its area and its sides, and which
loop encloses which. Each Area names its loop (m_cachedCircuitId). An
area boundary line that follows a wall carries the area rule's offset
over each part of it (AreaMeasureCurveData.m_schemeSegments): its area
is measured that far to its right, to the wall's face.

native_area_regions rebuilds an Area's loop from its lines, each moved
by its offset and met where the moved curves cross, arcs included, and
keeps it only where its area is the one Revit saves for the loop and the
Area's point is inside. partition_area_records takes it where the lines'
boxes give no region.

On Autodesk's rac_advanced, 71 of 127 lines are offset: lines that meet
in plan do not meet once offset, so RE-317 found no loop for 4 Areas it
put down to walls, and groups with an arc were not read. Every save from
2015 to 2027 rebuilds all 25 loops to Revit's saved areas, and the 2015
to 2024 exports write 25 Area bodies where main writes 3 (22 on 2021,
where 3 Areas name lines whose copies disagree). On the BIM4LCA office
all 30 loops have the area of Revit's own export to 2.1e-10, and both
exports are byte-identical to main's, as is every other file compared.
…ecord after the entries before its body (#1194) (RE-330)

An Area's partition chain record was read on 2015 to 2024 only. On
2025 to 2027 it is the 2024 record, but a file saved by those releases
may put a block of 22-byte entries before a record's body, counted by
the u16 after the class tag (+0x0e): an i64 BuiltInParameter, an i64 -1,
a u16 and a u32 each. None of the 2024 files read has one; 2027
rac_advanced has up to 15 per record, Snowdon Towers Architectural
(2025) up to 1,815. The Area reader now reads a record after them.

Snowdon Towers Architectural, against a Revit 2025 export of it (local
only), gave three rules for the plan topology's regions:
- a spur (a segment the loop runs out and straight back) is left out:
  offset, its two sides leave a notch Revit's area does not have;
- a line is cut only where its offset changes, not where its saved
  parts meet with the same offset at a segment's end;
- an Area whose partition point is not read takes the topology's
  region, checked against the point the topology's Area saves.

rac_advanced 2025 to 2027 write the 25 Areas of the 2024 save, with the
same GlobalId, number, name, storey and body. Snowdon writes all 101 of
Revit's Area spaces, none extra; 95 of its 96 bodies have Revit's area
within 0.1%, and the other is one Revit writes without a shape. The
BIM4LCA office, Core Interior, RE1 and every file without Areas export
byte-identical to main.
…t the IFC2X3 export, the joins cross-checked, the office's vertices (#1261, #1194)
… says area_plan_topology, and warns about dropped chain records only where an Area could be lost (#1261, #1194) (RE-333)
…dPolyCurve with three-point arcs, and the Snowdon 2025 figures leave the report and docs (#1261, #1194) (RE-333)
…: Area 10's arc against the IFC2X3 export in both tessellations, the vertex rule, the office's exact differences, the warning scope (#1261, #1194) (RE-333)
…e's two merges, the 2008 to 2023 notes beside the chain-entry count, and a value source that names the records a topology region was read from (#1261, #1194) (#1368) (RE-333)

The cherry-picks of the archived head keep their authors; the two merges of
main that head carried are carried here as this commit, with:

- the merge of main at 182ed21: the Area value sources (#1403) beside the
  plan topology's region, reader counts and the new warning beside #1389's
  record stages;
- area_plan_topology, a value source of rule native whose parts are the Area's
  own RoomElem, the LevelRoomPlan that holds its circuit and the CurveElem of
  each line that bounds it, each at its place in its partition. An Area drawn
  from the topology no longer carries area_boundary_lines or area_point, which
  name records its region was not drawn from;
- tests/value_sources_offsets.rs: the new reader in COVERAGE and in the
  office's MIN_READERS, and its parts read again from their ElementIds;
- area_arc_not_finite in the Area refusal lists.
…an topology goes by in the rooms page, and the figures labelled as measured on the archived head (#1261, #1194) (RE-333)
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 07:54
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
…s' arrangement, and counts only from the three.js export (#1261, #1194) (RE-333)

Code:
- native_area_regions: a circuit is refused once its edges pass
  MAX_CIRCUIT_SIDES or its lines' offset parts pass MAX_CIRCUIT_OFFSET_PARTS,
  before the edges are built or cloned; a circuit side whose line has no u32
  ElementId refuses the Area.
- partition_area_records: chain_entries uses checked_add; the dropped chain
  records are counted by ElementId and the warning says an area boundary line
  among them is not accounted; byte_range includes the entry block that was
  skipped; where the topology and the lines both give a region and they are
  not the same one (net area to 1e-6, the same corners within 1e-4 ft) the
  Area has no body and says area_regions_disagree.
- An Area drawn from the topology has BodySource and ProfileSource
  native_area_plan_topology, with its own body_readers row; the schedule and
  the plan-profile reader accept it.
- tests/value_sources_offsets.rs: the plan records are read with
  NATIVE_RELEASES, and the new body source has its COVERAGE row; the comment
  at MIN_READERS says no gate model pins area_boundary_lines and area_point.

Docs: the per-Area data of the three.js IFC2X3 export leaves RE-333 (counts
only, #1377); six plan-topology reasons, not five; the decision of 2026-11-05
(ship, labelled, with a gate) in RE-333 section 9, the fragments and the
docs; the office's vertex wording made exact.
…saves, and a failure turns the run red (#1261, #1194) (RE-333)

Griffin, 2026-11-05, "Same-project gate": none of the seven held-out Revit
2025 to 2027 models writes an Area, so 'only in rvt-rs 0' on them could not
fail. The gate is that the 25 Areas of rac_advanced's 2025, 2026 and 2027
saves equal its 2024 save's in GlobalId, number, name, storey, body area and
height.

- tools/re/areas_across_saves.py compares them and prints counts by field
  and the Areas compared; it exits 1 on a missing or unreadable save, on
  fewer than 25 Areas on any save, and on any difference, missing or extra
  Area.
- measure-reference-models.sh runs it once every export is done and before
  any sample's IFC is deleted, on the head side of a shard that holds all
  four saves, into areas_across_saves.txt.
- measure.yml fails the job (after the results are uploaded) unless that file
  ends in exit 0 and has the scorer's passed line, so a missing result is
  never a pass; the summary lists its counts.
…s evidence, and the figures are those of bcb0210 (#1261, #1194) (RE-333)

Griffin, 2026-11-05, "Same-project gate": none of the seven held-out Revit
2025 to 2027 models writes an Area and all seven exports are byte-identical
to main's, so 'only in rvt-rs 0' on them could not fail.

- RE-333 section 9, the fragments, rooms, status, evidence, supported-profile
  and support-matrix name the new gate (rac_advanced's 2025 to 2027 saves must
  give its 2024 save's Areas, Area by Area), keep 'not measured against any
  Revit export', and say what the check cannot catch.
- RE-333 section 8 has the counts of Measure run 42003913780 on bcb0210 and
  the timing run 42003917325; the figures it did not re-read stay labelled
  with the head they come from.
- The 2021 save's residual is explained from the code (a group with
  conflicting line copies is refused before the topology is asked) with the
  probe run that shows the topology's 2021 regions equal the 2022 and 2023
  saves'.
…pology that failed its own check is not replaced by the lines, and the two readers' outlines are compared by distance (#1261, #1194) (RE-333)

The second review of #1428:

- tools/re/areas_across_saves.py reads the storey with get_aggregate (rvt-rs
  writes a space under its storey with IfcRelAggregates; get_container gave
  None on every Area, so the storey was never compared), fails an Area with no
  storey, requires exactly 25 Areas and 25 with a body on each save (a missing
  body is a failure), and compares the outline source, the top surface's
  symmetric difference and the lowest vertex as well, so a translation, a
  rotation, a shear, a raised base or another outline source is a difference.
  It was run through read_areas on written IFC for 19 cases.
- The check runs whenever the four rac_advanced samples are in the run, and
  prints a notice and checks nothing when they are not; the docs say that a
  failure blocks landing by the landing rule.
- native_area_regions: a hole a plan lists again is one hole; the bounds on
  sides, edges and offset parts are one budget for an Area's outer loop and
  its holes together; more than 1,000 holes is area_circuit_too_large.
- partition_area_records: a topology that was read and failed a check of its
  own (area_circuit_area_differs, area_point_outside_circuit,
  area_arc_not_finite, area_circuit_too_large) no longer leaves the lines'
  region drawn in its place; the refusal is counted. The two readers' outlines
  are compared by the distance of each vertex to the other's edges (a step of
  a few micrometres and a ring of thousands of vertices are the same outline;
  a moved, turned or sheared outline is not), with failure-first tests of the
  pure helpers.
- RE-333 keeps no per-Area figure of the three.js export; rooms.md, status.md
  and RE-333 say what they did not, and that area_plan_topology is the Areas'
  own outline source, not per release.
…ed in the file, and the same-project gate expects each release's own value (#1261, #1194) (RE-333)

Griffin, 2026-11-05, "Mark 2025 to 2027 in the file": the docs said that
nothing outside the file checks the Areas of Revit 2025 to 2027; the file now
says it too. SpaceOutlineSource of an Area drawn from Revit's plan topology is
area_plan_topology_unchecked on Revit 2025, 2026 and 2027 and
area_plan_topology on every other release, 2024 included (the Snowdon Towers
2024 samples share a release and a code path with the office, and a release is
not split).

- partition_area_records::area_release_unchecked (AREA_UNCHECKED_RELEASES) is
  the one place the release is decided; it sets a field of the decoded Area
  that export_content reads. BodySource and exported.body_sources do not
  split.
- tools/re/areas_across_saves.py requires the value each release gets: a 2025
  Area that reads area_plan_topology and a 2024 Area that reads the unchecked
  value are failures; four mutations added to the harness (23 cases, 0 wrong).
  space_profiles_vs_ifc.py knows the value.
- rvt-mcp's descriptions of space_outline_source, docs/mcp.md, rooms.md,
  status.md, evidence.md, supported-profile.md, support-matrix.json,
  export-diagnostics.md, RE-333 and the fragments name it. The figures of
  record for the code before this change are those of Measure run 42017400629
  on 5008247.
@DrunkOnJava
DrunkOnJava merged commit 5988d83 into main Nov 5, 2026
42 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1261-area-plan-topology branch November 5, 2026 12:18
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
…s Compare's report (DrunkOnJava#1190) (RE-341)

DrunkOnJava#1428's Areas gate was a step of the measure job, so a failure skipped
Compare. It and the bodies check are now steps of the job same-project-gates,
each running whatever the other did, reading the head shards one directory
each (two shards write an areas_across_saves.txt), with a notice and a
summary line on every skip.

Refs DrunkOnJava#1190, DrunkOnJava#421
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…-hosted line is the offset the file stores (#1261) (RE-332)

Merge main into the wall-line branch with its tree set to main plus the
research only: no reader, exporter, MCP, schema or docs change. The rule
that drew Areas 2 and 5 along a wall-hosted line is dropped; the plan
topology of RE-333 (#1428) draws all 25 Areas of every rac_advanced save but
2021's from the offsets the file stores. The branch tip before this commit is
kept at refs/archive/2026-11-05/feat/1261-areas-bounded-by-walls.

Kept: the probe, and the report rewritten as notes (the 127 lines against the
walls they name; the two compound lines; the reader's measurements, labelled
as not landed). Added: tools/re/wall_lines_vs_offsets.py, which joins the
probe with probe_re333_area_plan_topology and shows that each line's position
is its stored offset on all 127 lines. Corrected: the first version said
nothing in the file records where a line steps from face to centre; the
stored offsets (AreaMeasureCurveData) do. The three.js export's per-Area
positions are replaced by counts (#1377).
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
… lines (#421) (#1426)

## Summary

Revit 2026 and 2027 projects now draw beams along their axes, stair runs
and tread landings from their records, and floors, ceilings and slabs
from their sketch lines, as 2024 and 2025 projects do. Five readers'
release lists gain 2026 and 2027, and the Sketch curve list reader is
read there too. It's a first slice of #1190, held to the same Autodesk
samples saved by Revit 2024 and 2025. [Maintainer correction: the
contributor's text said "sloped roofs as their planes" and "six
readers"; sloped roofs are left out and the roof slope list is not
widened, and a monolithic landing stays its box. See the maintainer
sections below.]

## Motivation

#1190 asks for each capability 2024 and 2025 have on every release from
2015 to 2027, "one capability on one release" at a time. On `main`, 2026
and 2027 already read the 2025 records (RE-124, RE-179): walls with
their layers and joins, family boxes and saved meshes are the same as on
2025. Six readers were still limited to 2024 or 2025, so on 2026 and
2027 their elements were drawn as their record boxes.
`exported.body_sources` on `main`:

| body source | `rac_advanced` 2024 / 2025 / 2026 / 2027 | `rac_basic`
2025 / 2026 / 2027 | `rst_basic` 2024 / 2026 / 2027 |
|---|---|---|---|
| `partition_beam_axis` | 29 / 0 / 0 / 0 | | 345 / 0 / 0 |
| `partition_beam_box_along_axis` | 8 / 0 / 0 / 0 | | 9 / 0 / 0 |
| `partition_stair_run_sketch` | 5 / 10 / 0 / 0 | 2 / 0 / 0 | 1 / 0 / 0
|
| `native_landing_tread` | 5 / 0 / 0 / 0 | | |
| `partition_roof_slope` | 1 / 1 / 0 / 0 | | |

## Changes

- `src/research/partition_beam_axes.rs`:
`BEAM_AXIS_SUPPORTED_REVIT_VERSIONS` 2024 → 2024, 2026, 2027;
`SKETCH_LINE_SUPPORTED_REVIT_VERSIONS` gains 2026, 2027.
- `src/research/native_stairs.rs`: `NATIVE_RUN_REVIT_VERSIONS`,
`NATIVE_RUN_SHAPE_REVIT_VERSIONS` gain 2026, 2027;
`NATIVE_LANDING_REVIT_VERSIONS` 2024 → 2024, 2026, 2027.
- `src/research/partition_roof_slopes.rs`:
`ROOF_SLOPE_SUPPORTED_REVIT_VERSIONS` gained 2026, 2027 on the first
head; it is 2024, 2025 again (maintainer).
- `src/research/partition_schema_mvp/walls.rs`: a wall's profile
openings (RE-151) checked the beam reader's list, so they now have their
own, `WALL_PROFILE_OPENING_REVIT_VERSIONS` = 2024, the release they're
measured on.
- `tools/re/save_pair_bodies.py` (new): two rvt-rs exports of the same
project, element for element by `Tag`, world box (3 mm) and volume
(0.1%).
- `reports/element-framing/RE-341-2026-2027-beams-stairs-roofs.md`, an
addendum to `docs/format-reconnaissance.md`, `docs/status.md`,
`docs/supported-profile.md`,
`changelog.d/added/1190-2026-2027-beams-stairs-roofs.md`.

2025 isn't widened. Its beams and landings would change as well, and no
Revit 2025 export that holds them can be published here.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks)
- `tools/check-local.sh --corpus` on the branch head, on `main`
77d71cb: passes (300 integration tests, 15 MCP).
- [ ] Verified end to end on real Revit files: the command, the files
(and their licence), and the measured result against Revit's own export
are in the PR body, with the script or probe that reproduces it
- **Not against Revit's own export:** Measured instead against the same
Autodesk samples saved by 2024 and 2025, whose exports are measured
against Revit's (RE-50, RE-56, #357, #824). The files are the pinned
samples in `research/autodesk-sample-projects.tsv` (fetched, never
stored).
  - Bodies these readers now draw:
- `rst_basic` 2026 and 2027: 355 of 355 are the 2024 save's (345 beams
by their axis, 9 along it, 1 stair run).
- `rac_advanced` 2026 and 2027: 43 of 43 are the 2024 save's (37 beams,
5 tread landings, the sloped roof); 10 of 10 stair runs are the 2025
save's. [Maintainer: the sloped roof is no longer drawn on 2026 and
2027, so 42 of 42; the contributor's local figures are not re-run, and
run 42016210686's check reads 42 beams and tread landings and 10 stair
runs equal.]
    - `rac_basic` 2026 and 2027: 2 of 2 stair runs are the 2025 save's.
- Every body in the file, differing from the reference save, `main` →
this branch:
- `rst_basic` 2026 and 2027 against 2024: 35 → 1 of 453 (the one left is
a column, as on `main`).
- `rac_advanced` 2026 and 2027 against 2025: 64 → 63 of 5,527. 10 stair
runs become 2025's. 9 stop being 2025's and become 2024's: 2 beams and 5
landings that 2025 still draws as boxes, and a ceiling and a floor the
sketch lines now draw as on 2024.
    - `rac_basic` 2026 and 2027 against 2025: 27 → 23 of 438.
- Byte identity: of 107 local files, 101 export IFC and diagnostics byte
for byte as on `main` (`SOURCE_DATE_EPOCH=1700000000`). That covers
every 2015 to 2025 file: Autodesk's samples, Core Interior, the RE1
models, Einhoven, the BIM4LCA office and terrain housing, and puzzbobb's
R2025 models. The 6 that change are the 2026 and 2027 saves of
`rac_advanced`, `rac_basic` and `rst_basic`.
- [x] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior (2024) exports byte for byte as on `main`, so its
observations are unchanged.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
  - N/A.

```
tools/fetch-autodesk-samples.sh samples 2024 2027
for f in samples/*.rvt; do rvt-ifc "$f" -o "${f%.rvt}.ifc"; done
python3 tools/re/save_pair_bodies.py samples/2027-rstbasicsampleproject.ifc samples/2024-rstbasicsampleproject.ifc
python3 tools/re/save_pair_bodies.py samples/2026-racadvancedsampleproject.ifc samples/2024-racadvancedsampleproject.ifc \
    --sources partition_beam_axis,partition_beam_box_along_axis,native_landing_tread,partition_roof_slope
```

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims
of features that are not actually shipped in this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
- `docs/supported-profile.md` (the 2026 row; 2027 is "as on 2026") and
`docs/status.md`.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- None new. 2025's beams and landings, and a wall's profile openings
beyond 2024, are noted in the constants' docs and RE-341 §5.
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or
"updates"
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [ ] If this is a reverse-engineering finding: a reproducible probe
under `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
- The addendum is included. No new byte layout is decoded (the records
are RE-124's and RE-179's), so there is no probe.
`tools/re/save_pair_bodies.py` reproduces the measurement.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`)
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`,
`FY-20XX`, etc.) and contain no real-world PII
  - No fixtures.

## Breaking changes

None. Only release lists change; their public constants keep their names
and types.

## Screenshots or output samples

`tools/re/save_pair_bodies.py` on 2027 `rst_basic` against 2024, `main`
then this branch:

```
main:
same 418, differ 35, not in the reference 0
  IfcBeam: same 338, differ 32, not in the reference 0
  IfcColumn: same 29, differ 1, not in the reference 0
  IfcFooting: same 36, differ 0, not in the reference 0
  IfcMember: same 2, differ 0, not in the reference 0
  IfcSlab: same 4, differ 1, not in the reference 0
  IfcStairFlight: same 0, differ 1, not in the reference 0
  IfcWall: same 9, differ 0, not in the reference 0

this branch:
same 452, differ 1, not in the reference 0
  IfcBeam: same 370, differ 0, not in the reference 0
  IfcColumn: same 29, differ 1, not in the reference 0
  IfcFooting: same 36, differ 0, not in the reference 0
  IfcMember: same 2, differ 0, not in the reference 0
  IfcSlab: same 5, differ 0, not in the reference 0
  IfcStairFlight: same 1, differ 0, not in the reference 0
  IfcWall: same 9, differ 0, not in the reference 0
```

## Related issues

Refs #1190, #421


---
Maintainer note: main was merged in, and the report renumbered from
RE-340 to RE-341, since RE-340 on `main` is #1401's report. No reader
changed.

---
## Maintainer changes (2026-11-05)

The contributor's text above is kept as written. Where it is out of date
it is corrected here. Six signed commits sit on top of the PR's earlier
two (the contributor's 20bc9f2, untouched, and the earlier merge of
`main`): a merge of `main` (5f52be1), the code (d50d53b),
`tools/re/save_pair_bodies.py` (8e2a9e4), the docs (14952a4, f903515)
and a clippy range fix (f149e22).

**The title still says "and sloped roofs"; sloped roofs are no longer in
this PR.** It cannot be edited from the branch; retitle at the squash,
for example "feat(ifc): Revit 2026 and 2027 beams, stair runs, landings
and sketch lines".

**Sloped roofs are left out.** `ROOF_SLOPE_SUPPORTED_REVIT_VERSIONS` is
2024 and 2025 again, so the Summary's "sloped roofs as their planes" and
the Changes line for `partition_roof_slopes.rs` above no longer apply.
- The source comment said `rac_advanced`'s roof is its 2025 save's;
RE-341 section 3 had it right: it is its 2024 save's body (532
triangles, 5.33 m3), and the 2025 save's is 12 triangles and 6.88 m3. No
Revit export scores either.
- On 2026 and 2027 an edge takes the 2024 reading of its slope, and the
fascia, rafter cut and several-arrow readers are 2025 only, so a roof
whose eave cut cannot be told would be drawn as a plain sloped slab.
- The held-out digest has no roof-body scorer line: the third held-out
model's roof left the record-box set on the first head with nothing
scoring what replaced it.

**A Sketch's curve list (RE-97) is read on 2026 and 2027.** The beam and
sketch-line lists gate the readers floors, ceilings, slabs, footprint
roofs and shaft voids use, so those change on 2026 and 2027 too (named
in the docs and the changelog fragment now); but the list reader stayed
`2024 | 2025`, so the guard for an edited sketch could not fire there. A
list is taken only where it validates (RE-97).

**What the PR changes on 2026 and 2027:** beams along their axes, stair
runs and landings, the stair property sets and quantities (read from
native records), and the floors, ceilings, slabs, footprint roofs and
shaft voids drawn from sketch lines. Unread there: sloped roofs, spiral
runs, stair names, railing heights and lengths, a wall's profile
openings, IFC export overrides, the opening index.

**Measured (Measure run 41988011289, head 1d5bbf0, base `main`
182ed21; counts only for held-out models).** The Testing section above
says no Revit 2026 or 2027 export is available; five are held out in
Measure.
- Of 111 exports, 102 are byte for byte `main`'s and 9 differ, all 2026
or 2027: the six Autodesk samples and three held-out models.
- Held-out 2026 and 2027: one stair flight each leaves the record-box
set; property values equal Revit's go 209 to 224 of 352 (2026) and of
354 (2027), quantities 21 to 23 of 322 and 17 to 19 of 367; different
and values Revit does not write unchanged.
- The held-out 2026 and 2027 office models are identical, so no beam or
landing is scored against a Revit export.
- MCP consistency: 0 differ on every line of the three held-out models
that moved. IFC rule findings on the 2026 and 2027 samples are the
sloped-beam ones the 2024 saves have (#1432).

**Not yet measured: the current head** (roofs left out, Sketch lists on
2026 and 2027, the script's counts). Measure run 42004827803 is on
f903515; a later commit (f149e22) only rewrites an OR pattern of
releases as a range for clippy, so it measures the same behaviour, but
the figures above are not carried to it until it is read. The section 3
figures (355 of 355, 43 of 43, 10 of 10, 2 of 2) are the contributor's
local pairs; the script dropped unmeshed shapes and repeated Tags
silently, so they cannot say how many bodies were never paired, and it
now counts those and exits 1.

---
## Maintainer changes, round two (2026-11-05): roofs, and a check
against the earlier save

Head e56d31b (signed) is f149e22 plus four commits: roofs held to the
record-box solve (8f10a03), the check (85c7f01), docs (a57f4f5), a
style fix (e56d31b). **Measure run 42010304828** measures this head:
filtered (samples on, held-out models only), dispatched from branch
`fix/1426-bodies-across-saves`, because the scorers and the workflow
step come from the dispatch ref. **Not read yet**; nothing below is a
result of that run.

**The held-out house's roof is a guess, so roofs stay out of the widened
readers.** With the slope list reverted its `IfcRoof` still left the
record-box list (run 42004827803, head f903515: `box bodies` 45 to 44).
A roof whose slope is not read is drawn as its sketch outline at the
record box's full height, a level block at the highest point, and
Revit's roof volume there is 14.2% of its box, so it is very likely
sloped. 2024 and 2025 ship that body for such roofs (RE-50, RE-98,
#884's hips over a T or U footprint), with its slab quantities withheld
unless the layers fill the body, and measured it as a plan outline
against Revit's upward-face area, never as a volume. Nothing measures it
on 2026 or 2027. So on 2026 and 2027 a roof takes neither the Sketch
curve list nor the lines' exact ends and no shaft void is cut from it
(`roof_reads_exact_sketches`): it is read as on `main`. Floors, ceilings
and slabs keep the widened readers, with shaft voids cut from floors and
ceilings. The roof's state on this head is not measured, and the check
below does not reach held-out models.

**The check.** `tools/re/bodies_across_saves.py` holds each 2026 and
2027 save of `rac_advanced`, `rac_basic` and `rst_basic` to the same
project's earlier saves, matched by `Tag`: beams, landings and sketch
outlines (floors, ceilings, slabs and roofs with a recovered outline,
shaft voids included) to the **2024** save, stair runs to the **2025**
save. The 2025 save draws no beam or landing (its body sources hold
none: record boxes), so it cannot be their reference. The 2025 save
reads runs from native records as 2026 and 2027 do and draws all 10 of
`rac_advanced`'s and 2 of `rac_basic`'s runs; the 2024 save's
byte-anchor reader draws 5 and 1. It fails on a difference in IFC class,
GlobalId, storey, `BodySource`, representation types and solid kinds,
placement (0.001 ft), body volume or vertices (0.001 ft, both ways); on
an element with no counterpart, one the earlier save draws otherwise,
one of the earlier save's missing here, a missing export, fewer bodies
than the sample holds (29 axes, 8 along them, 5 landings and 10 runs on
`rac_advanced`; 345, 9 and 1 on `rst_basic`; 2 runs on `rac_basic`), the
ceiling 147534 or floor 139803 not compared equal, and a check that
compared nothing. It prints the number compared per class and the number
left as boxes (counted, not scored). Measure's sample shard keeps the
2024 to 2027 exports of the three projects until it has run, and
`tools/ci/check-bodies-across-saves.sh` fails the head side's shard
(after the results upload) on any failure or any sample whose file was
not written. The base side is not gated: its `bodies_across_saves.txt`
shows what the check says of `main`.

**It cannot catch** an error the earlier save shares with the 2026 or
2027 read. `RepresentationType` is compared as written: both saves come
from the same build, so #1432's change to it does not show. The
fragment, status, evidence, support matrix and RE-341 say all of this.

**Proof it can fail.** Not on Autodesk's files yet: that is run
42010304828. On synthetic IFC pairs made with IfcOpenShell (not
committed), the identical pair passes, and each of these exits 1: a
candidate beam 1 mm deeper (volume), a beam moved one metre (placement
and vertices), a different `BodySource`, a slab left out of the
candidate (missing element), a missing 2025 save. On `main` the 2026 and
2027 saves draw no beam, so the base side's output should fail.

**Differences.** If the check finds any on the real files, the reader
narrows until it is never wrong and what it leaves out stays a box,
counted; none is allowlisted.

**Run 42004827803 figures** (head f903515, the main session's reading):
102 of 111 exports identical, 9 move (the six samples, the held-out
house, the held-out 2026 and 2027 models); MCP 0 differ on 629 lines;
rule findings `rac_advanced` 2 and `rst_basic` 14 each (the
fixed-reference sweep, #1432); body sources base, head, 2024 save:
`rac_advanced` beam axis 0, 29, 29, beams along 0, 8, 8, landings 0, 5,
5, runs 0, 10, 5, record boxes 5,205, 5,153, 5,157; `rst_basic` 0, 345,
345 and 0, 9, 9, run 0, 1, 1, record boxes 428, 73, 73; `rac_basic` runs
0, 2, 1, landing slab 0, 0, 1, record boxes 330, 328, 328. The slab and
ceiling body source counts do not move on `rac_advanced` and equal the
2024 save's: a count match, not per element.

---
## Maintainer changes, round three (2026-11-05): the check's first
results

**Run 42010304828** (head e56d31b, filtered; the head side's check
turned it red). Held to the same project's 2024 save (beams, landings,
sketch outlines) and 2025 save (stair runs), every compared body equal
in every field:
- `rst_basic` 2026 and 2027, PASS: 354 `IfcBeam`, 1 stair run, 5
`IfcSlab` outlines.
- `rac_basic` 2026 and 2027, PASS: 2 stair runs, 12 outlines (2
`IfcCovering`, 10 `IfcSlab`). Left as boxes where the 2024 save draws
them: 1 `IfcSlab` (a landing slab) and 1 `IfcRoof`.
- `rac_advanced` 2026 and 2027, FAIL, one failure each: ceiling 147534
was required as a compared outline and was not compared. Everything else
was equal: 42 beams and landings (37 `IfcBeam`, 5 `IfcSlab`), 10 stair
runs, 82 outlines (64 `IfcCovering`, 1 `IfcRoof`, 17 `IfcSlab`), floor
139803 among them. Left as boxes: 4 `IfcRoof`.
- On the base side (`main`) the check fails as it should: 42 beams and
landings and 10 runs left as boxes, floor 139803 differs in volume
(440.512245 m3 against the 2024 save's 441.111228), and 147534 is drawn
as an outline where the 2024 save draws its record box.

**The ceiling 147534** is a record box in the 2024 save. At base the
2026 save drew an outline. On the head it is neither compared as an
outline nor left out, so the Sketch curve list now holds it to the
record box as 2024 does (inferred from the counts). The check now
compares it under whatever source each save gives it and prints class,
`BodySource`, `ProfileResolved` and volume in every save, so the next
run states it. Nothing was removed from the required list or
allowlisted.

**The held-out house's roof** is back in the box list: its export is
byte for byte `main`'s in that run. **rac_advanced's one compared
`IfcRoof` and 4 left as boxes** are the same on both sides, so roofs are
on `main`'s reader.

**Head fec4833** is e56d31b plus the named-element check, these counts
in the docs, a signed merge of `main` (with #1432 and #1431) and a
signed merge of puzzbobb's own merge of `main`. **Final unfiltered
Measure run 42016210686** (`base=main`, nordic, R2025, held-out,
samples) is on it, dispatched from `fix/1426-bodies-across-saves` (the
same head): it should read `rules:` findings 0 on the 2026 and 2027
samples now that #1432 is in. Not read yet; the docs carry run
42010304828's counts.

---
## Maintainer changes, round four (2026-11-05): the second read

**Run 42016210686** (head fec4833, unfiltered; the main session's
reading and mine of its artifacts): 103 of 111 exports identical, 8 move
(the six 2026 and 2027 samples and the held-out 2026 and 2027 models);
the EXPRESS `rules:` findings are 0 on 90 models and on 18 held-out ones
(#1432 cleared them); MCP 0 differ on 629 lines; the check reads PASS on
all six samples. Ceiling 147534: 2024 record box 5.14728698 m3, 2026
record box 5.14728698 m3, 2025 outline 4.15431293 m3. The semantic merge
check reads NOT MEASURED on this commit because a fork's pull request is
never scored there, which is by design.

**Head d3635bb** (final unfiltered Measure: run 42023546789, not read
yet):
- **Only tread landings are drawn on 2026 and 2027.** A monolithic
landing's outline lines go through `scan_landing_lines` and
`scan_run_data`, which read 2024 only, so it stays its box:
`rac_advanced`'s 5 landings are `native_landing_tread`, `rac_basic`'s
one landing slab is a box. The matrix name, `user_impact` and notes,
README, status, evidence, compatibility, supported-profile, the
changelog fragment and RE-341 say so.
- **The check is a job of its own** (`bodies-across-saves`, reading the
head results), so a failure turns the run red and Compare still reports.
A sample without its 2024 or 2025 save is SKIPPED, one with only some
PARTIAL, and neither is a pass: each prints a notice and a line in the
run summary, as does a run without `samples=true`, a `scorers` input
that excludes it, or `sample_years` with no 2026 or 2027 sample.
`sample_years="2026 2027"` no longer fails falsely. An unknown project
fails. `docs/maintaining.md` says a change to a reader of Revit 2024 to
2027 is measured with `samples=true`.
- **Outlines are compared with both earlier saves** (the 2025 one
without scoring), and floor 139803 is printed in every save with its
volume and vertex count. **Resolved in round five:** the floor is
441.111228 m3 with 170 vertices on the 2024, 2026 and 2027 saves and
440.512245 m3 with 24 on the 2025 save, which draws its arcs as chords
because the arc readers (RE-96, RE-100) are not enabled on 2025; the
2024 reading is the one measured against Revit. It stays an outline.
Enabling the arc readers on 2025 is #1440.
- **Public docs say a sloped roof on 2026 and 2027 can still be a level
block** (the record-box solve, as on `main`), that the check compares
bodies and not quantities or property sets, that it cannot catch an
error the earlier save shares, and that no 2026 or 2027 held-out model
holds an `IfcBeam`, so the beam reader has run only on two Autodesk
samples saved from earlier releases.
- The fragment and report are renamed `...-beams-stairs-sketches`.

---
## Maintainer changes, round five (2026-11-05): #1428 merged, and the
floor

**Run 42023546789** (head d3635bb, unfiltered; the main session's
reading): 103 of 111 exports identical, 8 move (the six 2026 and 2027
samples and two held-out models), `rules:` findings 0 on 90 models and
18 held-out, all six checks PASS, Compare green. **The floor is
resolved, not open:** floor 139803 has 170 vertices and 441.111228 m3 on
the 2024, 2026 and 2027 saves and 24 vertices and 440.512245 m3 on the
2025 save, so the 2025 save draws its arcs as chords (the arc readers
RE-96 and RE-100 are not enabled there) and the 2024 reading is the one
measured against Revit. Sketch outlines against the 2025 save: 81 equal,
1 differs (this floor), 0 drawn otherwise. Ceiling 147534 is a record
box on 2024, 2026 and 2027 (5.147 m3) and an outline on 2025 (4.154 m3),
because 2025 has no Sketch curve list reader. #1440 is the 2025 arc
readers.

**Head c8fb8d1** is d3635bb plus a signed merge of `main` (8f1c136,
#1428 and #1432 and #1431 among it) and one commit. Two conflicts, both
resolved by keeping both: `tools/ci/measure-reference-models.sh` (my
bodies check and #1428's `areas_across_saves` side by side; the Areas
call runs right after the exports and before any sample's IFC is
deleted, so the saves my check keeps change nothing for it) and
`docs/format-reconnaissance.md` (the RE-333 and RE-341 addenda).

**A red Areas gate skipped Compare.** #1428's gate was a step of the
measure job, so a failure there removed Compare's report, as my first
bodies check did before round four. Both gates are now steps of one job,
`same-project-gates` (`tools/ci/check-bodies-across-saves.sh` and
`tools/ci/check-areas-across-saves.sh`, the Areas step moved with its
logic unchanged: an `exit 0` and the scorer's own `passed: 25 Areas, 25
with a body, on each of 4 saves` line), each running whatever the other
did, reading the head shards one directory each (two shards write an
`areas_across_saves.txt`). Compare does not need that job, so a red gate
leaves its report. Each gate keeps its own notice on a skip, and the job
still needs `samples=true`. Tested with fake results: pass, skipped
shard beside a passed one, fail, no result, no samples.

**Final unfiltered Measure: run 42027058162** on c8fb8d1 (`base=main`,
nordic, R2025, held-out, samples), the first run with both gates and the
merged `rac_advanced` Areas. Expected: the same 8 exports against the
new `main`, all six bodies checks PASS, the Areas gate passing. Not read
yet; the docs carry run 42023546789's counts, labelled as that head.

---

**Final unfiltered Measure on the merged head, run 42027058162
(c8fb8d1), read by the maintainer:** 103 of 111 exports are identical
to main; 8 move, the six 2026 and 2027 samples of `rac_advanced`,
`rac_basic` and `rst_basic` and 2 held-out models. `rules:` findings 0
on 90 models and 18 held-out, MCP 0 differ on 629 lines. The new
`Same-project gates` job passes: all six bodies checks read PASS and the
Areas gate passes with 25 Areas and 25 bodies on each of 4 saves.
Compare is green. The semantic check reads NOT MEASURED because a fork's
pull request is never scored, by design.

Refs #1190, #421

---------

Co-authored-by: Griffin Long <[email protected]>
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…line is the offset the file stores (#1261) (#1367)

## Summary

Research notes only, no export change. This pull request first carried a
reader that drew two more Areas of Autodesk's `rac_advanced` along a
boundary line Revit picked from a wall (`area_boundary_wall_line`, 18 of
25 Areas, read off the three.js IFC2X3 export). #1428 landed the plan
topology (RE-333), which draws all 25 Areas of every save but 2021's
from the offsets the file stores, so that reader is not landed
(decision: Griffin, 2026-11-05, research notes only). What stays is what
was measured.

**Kept**

- `probes/examples/probe_re332_wall_hosted_lines.rs`: each area boundary
line against the wall its reference list names (centre line, face,
compound, other, no host).
- `reports/element-framing/RE-332-wall-hosted-lines.md`, rewritten as
notes: the 127 lines against the walls they name (61 name a basic wall,
50 a curtain wall, 16 none), the two compound lines (177377 and 177363),
the numbers the rule used and what the data pins, and the measurements
of the reader that was not landed, labelled as such.
- `tools/re/wall_lines_vs_offsets.py` (new): joins the probe with
`probe_re333_area_plan_topology` line by line. On the 2021, 2022 and
2023 saves, all 127 lines match: a face line has an offset of half its
wall's thickness, a centre line none, a curtain wall's line 0.041010 ft,
a line naming no wall none, and the two compound lines both; 71 lines
have an offset, RE-333's 71.
- `changelog.d/research/1261-wall-hosted-lines.md`.

**Dropped** (everything else the branch changed): the reader in
`partition_area_records.rs`, the `area_boundary_wall_line` marker in
`export_content.rs`, the MCP schema and contract, the docs and support
matrix paragraphs, the `changed` fragment. The tree is main's plus the
four files above.

**Corrected.** The first version said nothing in the file records where
a line steps from face to centre, and read the step from the export. The
file stores it: `AreaMeasureCurveData.m_schemeSegments` of 177377 is 0
from 0 to 0.833320 of the line and -0.497047 after, of 177363 0 to
0.310893 and 0.497047 after, a step at x -13.405 on both. The export's
per-Area positions that the first version kept are replaced by counts
(#1377).

**History kept.** The branch tip before this change,
`98ba33b3a4e0b6d9723ee8f5b1f821aaaf9ddb17`, is at
`refs/archive/2026-11-05/feat/1261-areas-bounded-by-walls`. The branch
itself moves forward (a signed merge of main whose tree is main plus the
four files), with no force push.

## Testing

Unit tests are banned: none added.

- [x] `python3 tools/release/changelog.py check`, `python3
tools/ci/api-doc-ids.py`, `python3 -m py_compile` and `rustfmt --check`
pass locally; no local build, per this checkout's rules.
- [x] End to end on real Revit files: Measure run 42027944261 (`--ref
main`, `ref` 19d27bb, which differs from the head only in two lines of
the report, samples 2020 to 2022, both probes, no scorers) is green, so
the probe builds and runs on main's library;
`tools/re/wall_lines_vs_offsets.py` on its output for the 2020, 2021 and
2022 saves reads `passed: 127 lines, 71 with an offset, every position
matches its stored offsets`. The same on the outputs of runs 41862228192
and 42008543772 (the 2021, 2022 and 2023 saves). Fed one line with a
changed offset, one missing line, a compound line with its step removed
and a centre line with an offset, it exits 1.
- [x] No export changes: the tree is main's plus a probe, a report, a
research tool and a fragment, so no IFC moves.

## Audit-honesty checklist

- [x] The report says what is measured and what was not: no Revit IFC4
export of these Areas exists; the three.js export is counts only; the
reader of section 7 was in-sample and is not on main.
- [x] A changelog fragment (`research`), not `CHANGELOG.md`.
- [x] No emojis, no private paths.
- [x] Probe under `probes/examples/`.

## Legal and contribution hygiene

- [x] Apache-2.0.
- [x] No Autodesk proprietary source; the corpora are fetched, not
stored (CLEANROOM.md).
- [x] No new fixtures.

## Breaking changes

None.

## Related issues

Refs #1261. The 2021 save of `rac_advanced` is #1434.
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…space or family_instance (#1437) (#1439)

## Summary

Every `IfcSpace` gains a `SpaceKind` property in its
`RvtElementRecordGeometry` set: `room`, `area`, `mep_space` or
`family_instance`, from the Revit class of the record it was read from.
In diff terms, on each model with spaces:

- the IFC export: each `IfcSpace`'s `RvtElementRecordGeometry` gains one
`IfcPropertySingleValue` named `SpaceKind` (an added property, one per
space; `IFCPROPERTYSINGLEVALUE` rises by the space count, 116 on Core
Interior, and `IFCPROPERTYSET` and `IFCRELDEFINESBYPROPERTIES` do not
move);
- the MCP server: each row of `list_rooms` gains `space_kind`; the
summary (`open_model`, `get_summary`) gains `space_kinds`, the spaces by
kind, and its `room_count`, which has always counted every `IfcSpace`
(308 on the office, of which 234 are rooms), is described as that; a
sampled `get_element` on a space shows the added property in its
`RvtElementRecordGeometry` set; and `get_diagnostics`
(`diagnostics.json`) gains `exported.space_kinds` and
`exported.spaces_without_kind`;
- the room schedule (`rvt-schedule --schedule rooms`, Python
`schedule_csv`, the viewer's room schedule) gains a last column,
`space_kind`;
- nothing else in the export moves: `SpaceOutlineSource` is unchanged
and keeps meaning only where an outline came from.

## Motivation

#1437 (Griffin, 2026-11-05). An importer cannot tell an Area from a room
by asking what it is: the only marker in a default export was
`SpaceOutlineSource`, and a filter on its values stops catching Areas
when a release reads them by another rule (#1428, merged, gives the
office's 30 Areas `area_plan_topology` and the Areas of Revit 2025 to
2027 `area_plan_topology_unchecked`). #1359 reports what that costs an
importer that places rooms by footprint. `docs/rooms.md` now leads with
which property answers which question and says never to filter on the
values of `SpaceOutlineSource`.

Closes #1437. The reply on #1359 was corrected by a comment Griffin
approved (issuecomment-6657669525).

## Changes

- `src/ifc/export_content.rs`: `SPACE_KIND_PROPERTY` and the four
values; the kind is added to the space's `RvtElementRecordGeometry`
(made for a space that has none) after every other step, in every export
mode, so `typed_no_geometry` carries it too. Taken from the class
(`Room`, `Area`, `Space`) or, for any other class written as `IfcSpace`
through its own "Export to IFC As" (#763), `family_instance`.
`contain_in_spaces` now takes an Area from its kind and not from four
values of `SpaceOutlineSource` (the same Areas: an Area with a body has
a kind and an extrusion, one without has no extrusion to contain
anything in). `SpaceOutlineSource` is otherwise untouched.
- `src/ifc/mod.rs`, `src/bin/rvt_ifc.rs`,
`docs/schemas/export-diagnostics.schema.json`,
`docs/export-diagnostics.md`: `exported.space_kinds` and
`exported.spaces_without_kind`, counted from the model the IFC is
written from; `rvt-ifc` says so when a space has no kind.
- `src/ifc/schedule_csv.rs`, `docs/user-guide.md`, `python/`, `rvt-py/`,
`viewer/index.html`: the `space_kind` column and `RoomRow.space_kind`,
and the texts that list the room schedule's columns.
- `rvt-mcp/src/{schema,views,server}.rs`, `docs/mcp.md`:
`RoomOut.space_kind`, `SummaryOut.space_kinds` and the redescribed
`room_count`, and the `list_rooms` description, which lists no outline
values beside the advice not to filter on them. The tool contract in
`docs/mcp-tools.*` is main's, synced by the watcher on this head.
- `tools/re/space_kinds_vs_ifc.py` (new): per-model count of `IfcSpace`
by kind, the spaces with no kind or another value, and the
disagreements: `area` holds exactly where `SpaceOutlineSource` is one of
`AREA_SOURCES`, and no other kind holds one. `AREA_SOURCES` and
`ROOM_SOURCES` are the one list of the values in code; a value in
neither fails, on any kind, so a release that writes a new one has it
listed here first. `--total` judges a run on each model's counts and not
its verdict word, fails a model whose spaces are not the number its own
export counted (`diagnostics.json`, or for a model kept as counts only
the MCP server's `rooms`), so a result that saw none of a model's spaces
cannot pass, and fails a geometry export whose spaces have lost their
`SpaceOutlineSource` (an export whose diagnostics say
`typed_no_geometry` has none by design). A run of models with no space,
such as one filtered to two Revit 2025 roofs, passes when every export
agrees it has none. Wired into `tools/ci/measure-reference-models.sh`
(every model and every sample), `tools/ci/scrub-holdout-results.sh` (the
`space kinds:` lines, fixed words and integers only, kept for the
held-out models), the Measure compare job (last step, in a run that
names no `scorers` or names this one) and the IfcOpenShell job of CI.
- `tools/re/mcp_answers_vs_ifc.py`: `mcp answers` checks each room's
`space_kind` against the IFC's `SpaceKind`, the summary's `space_kinds`
against the rooms and the diagnostics, and counts the rooms by kind.
With `--require-space-kind` (Measure passes it on the head side, as it
does `--require-folded-field`) a missing kind, in the answer, the IFC or
the summary, is a difference, where two absences used to read as equal.
- `tools/re/space_profiles_vs_ifc.py` and
`tools/re/areas_across_saves.py` take an Area from `SpaceKind` (the
first keeps its old inference, from the shared list in
`space_kinds_vs_ifc.py`, for an export from before this change, so
main's side of a run prints the same lines); the second no longer has a
list of its own.
- Docs: `docs/rooms.md`, `docs/status.md`, `docs/support-matrix.json`,
`docs/maintaining.md`, `docs/python.md`, a changelog fragment; the Core
Interior witness observations and the dated notes of the two
project-count manifests.

Looked at and left alone: the viewer's info panel lists the whole
`RvtElementRecordGeometry` group, so `SpaceKind` appears in it with no
code change; the viewer's schedule summary groups by IFC entity and does
not split `IfcSpace`; the viewer's support matrix is drawn from
`docs/support-matrix.json`. `docs/schemas/` has no schema for the room
schedule or `list_rooms`. `RvtElementRecordGeometry` is rvt-rs's own
set: `pset_property_value_count` and `psets_vs_ifc` count `Pset_` sets
only, so `SpaceKind` is in none of `Pset_` counting,
`decoded.parameter_value_count` and the W7 census.

Not done, and why:

- **A space whose property set is not `RvtElementRecordGeometry` gets no
kind.** That is a wall or floor read through the schema walker
(`RvtWallGeometry`, `RvtFloorGeometry`) whose "Export to IFC As" names
`IfcSpace`; the diagnostics count it (`exported.spaces_without_kind`)
and the texts now say so. Giving it a kind means a second property set
on the entity and a second place to read it from in the diagnostics, the
schedule and the MCP server: not a one-line change, for a case no model
measured has (0 on all 111). A wall or floor read as a partition record
carries `family_instance`.
- **`ifc::build_ifc_model`**, the library builder, adds no kind: it
writes the property sets its caller hands it, and no rvt-rs exporter
uses it.
- **`mep_space` is never written today**, and "no model measured holds a
Revit Space" is a statement about what rvt-rs writes: the schema
walker's `Space` class is the only source, `PRODUCT_RECORD_CATEGORIES`
has no MEP space category, and none of the 93 class censuses
(`diagnostics.json`) of Measure run 42019512273 lists a `Space`, among
them the 12 `rme_*` samples', which list ducts, pipes and rooms. A
census says what rvt-rs reads, not what the files hold. The texts say
so.

## Testing

No local build; GitHub's runners are the build. The figures of record
are those of Measure run 42027776156 at 04d1b10 (`-f base=main -f
nordic=true -f r2025=true -f holdout=true -f samples=true`, base main
5988d83); the code of the Rust and the scorers is the same at 34fcf83
(the watcher's contract sync) and at this head, which adds main's #1426
(other elements) and the figures.

- CI at 34fcf83 is green, `full / CI passed` included. Its IfcOpenShell
job runs the check on Core Interior (116 spaces, 116 rooms, PASS) and
RE1 Architecture (11, PASS), then on three broken copies of Core
Interior's export, each failing as it should: property renamed `no
SpaceKind 116`, every room called an area `area without an Area outline
source 116`, every room's outline source made an Area's `other kind with
an Area outline source 116`. It also runs a `typed-no-geometry` export
of Core Interior (`room 116`, `not checked 116`, PASS) and five cases of
the run total (`--total`): a geometry export beside the typed one
passes; a run of a model with no space passes; spaces that lost their
outline source in a geometry export, a PASS over a failure count and a
result that saw none of the 116 spaces each fail. The `pull_request`
Measure at 34fcf83 is green.
- Measure run 42027776156 (success): `tools/re/space_kinds_vs_ifc.py`
passes on all 117 models and samples it exported, 66 of them with
spaces, and its compare step passes: 4,453 `IfcSpace`s, 3,733 rooms, 628
Areas, 92 family instances, 0 `mep_space`. No space without a kind or
with another value, none with an outline source the scorer does not
know, no `area` without an Area outline source (all 628 have one) and no
other kind with one.

| Group | Checked | With spaces | Spaces | room | area | family_instance
|
  |---|---|---|---|---|---|---|
  | BIM4LCA office files | 4 | 4 | 634 | 482 | 60 | 92 |
  | Autodesk samples | 58 | 32 | 2,575 | 2,163 | 412 | 0 |
  | held-out and spent | 19 | 16 | 409 | 403 | 6 | 0 |
| rac_advanced saves against the IFC2X3 export (counts only) | 6 | 6 |
696 | 546 | 150 | 0 |
  | reference models | 6 | 2 | 127 | 127 | 0 | 0 |
  | Revit 2025 models | 24 | 6 | 12 | 12 | 0 | 0 |

The 93 exports that keep their own results hold 3,421 spaces: 2,857
rooms, 472 Areas, 92 family instances; the 24 kept as counts only (18
held-out, 330 rooms and 6 Areas, and the six `rac_advanced` saves) hold
876 rooms and 156 Areas. The office holds 308 at both stages: 234 rooms,
30 Areas, 44 family instances; `rac_advanced` 25 Areas and 91 rooms on
every save but 2021's (91 rooms).
- Against base on that run, nothing else moved: `ifc.sha256` (which
leaves out `FILE_NAME` and `IFCOWNERHISTORY`) differs on exactly the 66
models and samples with spaces and on none of the other 51;
`diagnostics.json` differs on every model only by `exported.space_kinds`
and `exported.spaces_without_kind`; `mcp answers` and the held-out
`counts.txt` differ only by the kind lines and the three checks it
gained; the schema rules read 0 findings on all 90 models that have
them; every other scorer's output is equal; the Core Interior witness
moves `IFCPROPERTYSINGLEVALUE` 27708 to 27824 and nothing else. `mcp
answers` is PASS on every model it scores except the six `rac_advanced`
saves against the IFC2X3 export, whose `rooms` check reads 1 difference
of 116 on base and head alike (not from this change).
- The Areas gate (`same-project-gates`), which now takes Areas from
`SpaceKind`, passes on that run, and `space_profiles_vs_ifc` prints the
same lines as base.
- The new `--total` was also run, in a Python session, on the 111 result
files of the earlier run 42019512273 (with the one line the scorer has
added since injected) and passes, then on copies with one thing changed
each: a PASS over `no SpaceKind 1` fails; the same over
`SpaceOutlineSource this scorer does not know 3` fails; `not checked
116` on a geometry export fails and on a `typed_no_geometry` one passes;
a result of 0 spaces for Core Interior's 116 fails and for a model with
none passes; a held-out count that differs from the MCP server's fails;
a model with no result fails.
- Witness: refreshed from Measure, identical to the committed files on
run 42027776156; `tools/ci/witness-verdict.py` replays PASS for both
artifacts with the committed verdict files unchanged. The project-count
manifests' `IFCPROPERTYSET` stays 6510; their notes say so.
- An earlier run (42016267367, head a2dc72c) had the check crash on
every file with a space, because it kept no reference to its IFC file;
the compare step caught it and failed the run, as designed. Fixed in
0207224.

## Audit-honesty checklist

- [x] A user-visible change has its entry as a fragment:
`changelog.d/added/1437-space-kind.md`
- [x] No emojis, no private paths
- [x] Docs name measured figures only from runs, with the run and head

## Breaking changes

None. A column is added after the existing ones of the room schedule, a
field to `list_rooms`, `space_kinds` to the MCP summary and two fields
to the diagnostics, and a property to the set of every `IfcSpace`.
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
3 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
## Summary

Release 0.16.0:
- Revit 2015 to 2023 projects: beams along their location lines (#1509,
RE-362), walls joined by their join lists and angled walls along their
lines (#1517, RE-364), `Phase Created` (#1521, RE-368), `Constraints`
Level parameters (#1522, RE-369), pipes with their type, cylinder and
ports (#1523, RE-370), and Revit 2015 files following the export phase
(#1332, RE-372).
- Revit 2026 and 2027 projects: beams, stair runs, tread landings and
sketch outlines (#1426, RE-341), and pipes, ports, door and window cuts
and the 2025 properties (#1454, RE-346). Revit 2025 beams, tread
landings and sketch arcs (#1440, RE-345); shaft cuts on 2024 only.
- Spaces: Areas of Revit 2025 to 2027 (#1428), `rac_advanced`'s Areas
from Revit's plan topology (#1261, #1434), `SpaceKind` on every
`IfcSpace` (#1437), and the room phase fallback (#1359).
- Doors and windows: Revit's placement axes (#1447, RE-347), a door in
no wall at its stored origin (#1494, RE-361), and both flips decoded
(#1357, RE-343).
- Values Revit's export writes: wall-cut openings (#1165, RE-338),
`FireRating` and `Manufacturer` (#1185, RE-354), cut column quantities
(#1203, RE-353), Furniture Systems (#1444, RE-352), and a plumbing
fixture that draws nothing left out (#1496, RE-363).
- Walls: hosts of embedded curtain walls from their saved mesh (#1385,
RE-340), profile-edited ends, bases and cut-outs (#1396, #1410, #1411,
#1473), previous location lines (#1475, RE-360), and floor voids tagged
as Revit tags them (#1408, RE-355).
- The writer: IFC4 EXPRESS rules held (#1430), non-finite numbers
refused (#1559); the diagnostics, elements CSV, viewer panels and MCP
server count and place what the IFC writes (#1327, #1417, #1422, #1424);
export memory restored (#1429).
- The viewer's saved parameters panel (#35, RE-207); the provenance
table's new sources (#1368, #1498); the native readers' speed-ups
(#1335); release tag preflight and attested wheels (#1457, #1466);
measured numbers named by model (#1192); Measure's semantic diff
(#1334).

## Changes

- Version 0.15.0 -> 0.16.0 in:
  - Cargo.toml;
  - rvt-py/Cargo.toml and its `=` pin;
  - rvt-mcp/Cargo.toml and its `=` pin;
  - rvt-wasm/Cargo.toml;
  - tools/stream_evidence/Cargo.toml;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 56 fragments go into
`[0.16.0]`, with an introduction, a "Not measured" paragraph, credits
and "Upgrading from 0.15".
- README: the latest release and the "Upgrading from" pointer.

## Testing

- **Measure 42555357168**, `main` at 9c66e9b against v0.15.0,
unfiltered with timing: the reference models, the BIM4LCA office, Revit
2025, Autodesk's samples of every release, the held-out models,
`rac_advanced`'s IFC2X3 pairs and BIMcollab, 118 exports (no families).
Every figure in the "Measured against 0.15.0" paragraph is from it:
  - 97 exports move and 21 do not;
- no property value or quantity goes from equal to different or missing
on any model;
  - the IFC4 rules check finds nothing on all 118;
  - the `same-project gates` check passes on 9c66e9b;
- time is 1.015 in total over 68 files, and peak memory 0.54 to 1.29
times 0.15.0's.
- Since 9c66e9b this branch adds only the version strings, the
changelog and the witness and fixture refresh.
- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name checkout --sha HEAD` reads version 0.16.0
in every file. `changelog.py check` finds no fragment left, and
`measured_numbers.py` and `api-doc-ids.py` pass.
- **Witness and fixtures** come from this pull request's CI run
42555924918, on 4dac3e6.
- The changes are `witness_version`, the two verdict hashes and the
fixtures' version strings.
- Both rvt-rs observations also gain RE-354's one diagnostic note ("1
type text parameter(s) ... left out"), which the committed observations
had missed since #1185.
- Both verdicts replay PASS locally with CI's arguments, byte-identical
to the committed ones.
- **Release review** (rvtReview's second read) blocked on two
overclaims, and both are fixed:
- `IsExternal` on 2026 and 2027 walls, curtain walls, members and
plates;
  - the same-project check's reach.
It found two dropped caveats, also fixed: the beam rule's reach (#1514)
and #1489's two doors. Its two minor points were fixed too: the
non-finite refusal's scope and the wall-hosted origin.
- Checking the run myself added three corrections: the held-out pipe,
wall and beam counts on 2015 to 2023 (the notes had said none was
scored), Vitoria's 44 `InvertElevation` values counted apart, and the
pipe entry's matching claim.

## Audit-honesty checklist

- [x] The introduction keeps each entry's caveats and adds a "Not
measured" paragraph: the 2015 to 2023, 2026 and 2027 readers held to the
same project's other save, and 2015 to 2023 scored on held-out projects
only, as counts; the 2025 to 2027 and Snowdon Towers Areas checked
against no Revit export; the one-project Furniture Systems and wall end
order; the office-only thresholds; the door origin; the release workflow
checks first run by this tag.
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source, decompiled internals
or NDA'd SDK content.

## Breaking changes

Behaviour changes are listed under "Upgrading from 0.15": the
diagnostics' `building_elements` and `by_ifc_type` count only written
elements, door and window placements and their rotations move, Furniture
Systems change class, a space has no material association by default,
the room schedule gains a column, and a non-finite export is refused.
The stable API's changes are additions; `semver checks` in this pull
request's CI reports on them.

## Related issues

Refs #1190, #869, #1165, #1185, #1203, #1261, #1194, #1332, #1334,
#1335, #1357, #1359, #1368, #1385, #1396, #1408, #1410, #1411, #1417,
#1422, #1424, #1429, #1430, #1437, #1440, #1444, #1445, #1447, #1457,
#1465, #1466, #1473, #1475, #1492, #1494, #1496, #1498, #1559, #35,
#155, #156, #1158, #1192.
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.

2 participants