Repository navigation
feat(ifc): the 2021 save of rac_advanced writes its 25 Areas from the plan topology alone, marked unchecked (#1434) (RE-333) - #1450
Merged
Conversation
…n copies are drawn from the plan topology alone, and the 2021 save is held to the 2022 save (#1434) (RE-333) A line whose copies in several partitions disagree only in box or in the lines it names, each copy naming the same Level and scheme at the same height, can lie in one group only. Its group is now Group::Conflicted, not Unreadable: the lines' arrangement is not read (which copy is current is not known from the partitions) and Revit's plan topology, which reads the current copy of each line and is checked against the area Revit saves for every loop and the Area's point, may draw the Area. A copy that names another Level or scheme or lies at another height still puts the line in more than one group and its groups stay unreadable; so do a design option, a stray height, a missing line and a line off the Level. An Area drawn this way may name such a line; the lines must still bound its region. The gate holds the 2021 save of rac_advanced to its 2022 save in Area number, name, storey, GlobalId, outline source, body area, top surface, height and lowest vertex, in the shard that holds both.
# Conflicts: # tools/ci/check-areas-across-saves.sh # tools/ci/measure-reference-models.sh
…ays area_plan_topology_unchecked, and the docs and the gate say so (#1434) (RE-333) The 2021 save of rac_advanced holds both states of the model; the plan topology reads the later one, which no Revit export shows (the only export of the project shows the earlier state, and 7 of the 25 Areas differ between the two). An outline no Revit export checks must not read as area_plan_topology, so an Area drawn from a Conflicted group says area_plan_topology_unchecked, decided in area_unchecked beside the release rule. The 2022 to 2024 saves' later-state Areas keep area_plan_topology by Griffin's release rule. The gate expects the 2021 save to read the unchecked value against the 2022 save's checked one. The MCP description of space_outline_source, its generated contract and the docs state the marker; the rooms, status, evidence, profile and support-matrix paragraphs no longer say that the 2021 save writes none.
… same-project gates holds it (#1434) (RE-333) Section 10 answers the question of #1434 with the measurements: the 2021 save's topology regions equal the 2022 save's on 25 of 25 and differ from the 2020 save's on exactly the 7 Areas where the 2020 and 2022 saves differ; one of 117 exports moves in Measure run 42054772905, the 2021 save's 25 Areas; the held-out models are byte for byte as before and do not exercise the change; no public file exercises the design-option refusal, which the failure-first tests of the helpers show on synthetic data. The marker, and the inconsistency with the 2022 to 2024 saves it leaves, are named. tools/ci/same_project_verdict.py reads areas_across_saves_2021.txt as the second part of the Areas gate: required when the run's sample years hold the 2021 and 2022 saves, judged and failing whenever a result that arrived fails, and never standing in for the 2024 to 2027 gate. Its tests cover each way the verdict could read a pass it should not.
… writes no file where it has no save, and the 2021 notes say what they test (#1434) (RE-333) Second read of #1450, and Griffin's decision on the marker (AskUserQuestion, 2026-11-05): the 2021 save's Areas say area_plan_topology_unchecked though the 2022 to 2024 saves, the same later state, read area_plan_topology by his release rule. - Drops the two tests that restated area_unchecked's disjunction against hard-coded years (change detectors); the gate's outline-source field is the check. area_unchecked's doc names the decision as his, not a rule. - The test module's doc comment covers the group helpers too. - Compare's summary reads the gates from each shard's directory: the merged measure-head kept the 2024 to 2099 shard's placeholder over the 2021 gate's real result. A shard holding neither the 2021 nor the 2022 save writes no areas_across_saves_2021.txt. - check-areas-across-saves.sh names every save the gates compare. - Documentation: the 2021 outlines are the later state on 7 of 25 Areas (18 equal the earlier state the only Revit export shows); an Area naming a conflicted line is refused as named_lines_not_in_scheme_and_level, not boundary_lines_not_readable; same_place tests the Level, the scheme and the height, not the box; the area_boundary_lines row and the 1261 fragment no longer say a group with conflicting copies draws nothing.
# Conflicts: # .github/workflows/measure.yml
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 20:44
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 21:08
5 of 6 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 6, 2026
…y read, and CI reads the current copy rule (#1368) (#1481) ## Summary With `--element-provenance`, the table now names the records behind a wall's layers (`wall_type_layers`), a beam or column drawn as its type's I section (`type_i_section`), an Area's Levels (`area_levels`), a tread landing (`native_landing_type`, `native_run_type`) and a spiral run (`native_run_type`). CI's gate also reads the BIM4LCA office at building permit, the one model of 92 with the `current` copy rule. The export is unchanged; only the provenance table gains sources. Closes #1368 ## Motivation #1368 left the profile copies and the landing thickness as "no source yet", listed four more values with no reader, and said no CI model exercises `current`. All three are answered below with the run and head each figure was measured on. ## Measured - Counts on main before this change: Measure run 42111951132 (main at d2439b0; `-f samples=true -f nordic=true -f r2025=true -f ifc_flags=--element-provenance -f scorers=none`, no `models` filter because it is the one run that answers which model exercises `current`). 92 models: Core Interior, Einhoven, 4 RE1, 4 BIM4LCA office files, the 24 Revit 2025 models of puzzbobb's three pinned archives, 58 Autodesk samples. The held-out models, BIMcollab and the `racadv` models were not fetched. - The same run shape on this head, after #1450 (run 42118489328, ee449c3): `selected_frame_box` on 0 of 92 (the profile-copy gap is empty; the doc row is now the stated fallback). `current` on 1 of 92, the office at permit (`sketch_lines` 3, `sketch_list` 1); the 2021 `rac_advanced` has none, its 25 Areas read `area_plan_topology`; `instance_transform`, `sketch_line_data` and `roof_line_data` have none anywhere. New sources: `wall_type_layers` 1,973 elements on 29 models, `area_levels` 483 Areas on 17, `type_i_section` 557 elements on 5 (Autodesk's `rstbasicsampleproject` 2024 to 2027 and Snowdon structural; none on a CI gate model), `native_run_type` 84 on 17, `native_landing_type` 82 on 8. - The default export is unchanged: run 42118484766 (ee449c3, `-f samples=true -f sample_years="2024 2027" -f scorers=bodies_across_saves`, no `ifc_flags`, against main) has the `ifc.sha256` of all 31 exports (Core Interior, Einhoven, 4 RE1, Autodesk's samples 2024 to 2027) identical on both sides, and its `same-project gates` check run on ee449c3 is a success (the neutral one on that commit is the `ifc_flags` run's). The two MCP-text and doc commits after it change no `src/`. - Run 42115109274 (b4d34de, flag on both sides): hashes of Core Interior and the office as built and at permit equal; `native_run_type` 0 to 2 and `native_landing_type` 21 to 22 on both office files. - Corpus health, which runs `tests/value_sources_offsets.rs` on the permit office and the new readers, passed on bd3466c. The second read's fixes after it (d303289: the rule, the stricter test, the docs) have not been through the full CI. - On d303289, the final head: run 42128212880 (`-f base=main -f samples=true -f sample_years="2024 2027" -f scorers=bodies_across_saves`, no `ifc_flags`) has the `ifc.sha256` of all 31 exports identical to `main`'s, and its `same-project gates` check run on d303289 is a success. ## Second read (d303289) - A Level's block (`level_block`) and an Area's Levels (`area_levels`) are rule `frame`, not `agreeing`: `scan_partition_levels` keeps each Level's newest partition and never compares older copies (RE-107); on the office at permit Level 1338637 is `02a_P-talo 2` in Partitions/340 and `Level_02a_Parking` in Partitions/405. `docs/export-diagnostics.md` says so. - `tests/value_sources_offsets.rs`: `REQUIRED` makes the new readers required per `BodySource` (not any-of); `CURRENT_PINS` pins at least 3 `sketch_lines` and 1 `sketch_list` on the permit office; a Level's block decoded again at its offset must give the elevation of a storey the export writes where it is a building story; a wall type's layers read again must add up to the thickness of a layer set the export writes. Not compared: the numbers of the other parts (an I section's dimensions, a hollow section's, a pipe's points) and which Level an Area's base is; no gate model has an I section, so that check would not run in CI. - `wall_type_layers` is noted where the wall's thickness is set, not only where its layers are, so a wall drawn at its type's thickness is sourced even when its bands are empty. - The fragment says "of the four values #1368 listed"; the docs name the wall row's other unlisted inputs, the I-section row's 557 Measure elements and the area-point row's `area_levels`. - The CI cache is not changed: the permit file's entry in `research/bim4lca-models.tsv` changes that key (the whole folder is saved again, 293 MB to about 371 MB, and the first run downloads from the VTT host); Measure's `bim4lca-measure-<hash>` entry is path-versioned (`_bim4lca-measure`), so reuse means a restore-only step and a hardlink, with a one-entry fetch as the fallback. Not done unless asked. - No `src/` outside the provenance path changed in this commit (the two labels are inside `if recording`, the wall note is behind `attribute_value_source`), so no new verdict run: the verdict on ee449c3 stands, and the merge of main was clean. ## Residuals for the follow-up (not what #1368 listed) Filed as #1498. Inputs of the bodies with no source, so none of them is claimed as sourced: - A rectangular column's two sides (a decision: they only gate whether its box quantities are written). - #1456's `PlacementAxesSource`: a door or window's rotation from `instance_transform` is noted but filtered out, because `RECORD_BBOX` lists only `selected_frame`; the wall's native line and the two flips have no source. - #1470's `m_realJoined` and its `Compound` pieces. - A wall's top, base and end rules, its orientation and flip, a tapered wall's face angle, the partner lists of its joins and the layers and frames of the walls it joins; a beam's rotation; cut-loop sizes. - The numbers of the parts the test does not compare (above). ## Changes - `src/reader.rs`, `src/research/native_stairs.rs`: `attribute_value_sources` builds one source from several records and notes none if one is missing; tread landings and spiral runs use it for their run types. All calls return at once when the handle records no sources. - `src/research/partition_schema_mvp/walls.rs`, `src/ifc/element_provenance.rs`: a wall's type layers (the same `type_layers` note a roof's use) go to the wall; `SectionShape` `I` lets `type_i_section` list for a beam. - `src/research/partition_level_records.rs`, `src/research/partition_area_records.rs`: `scan_partition_levels` notes each Level's newest block (`NameElevationBlock` gains an `offset`); an Area lists the block of every Level its base and height compare. - `rvt-mcp/src/schema.rs`: the description no longer says "Absent for a body no reader notes yet"; `docs/mcp-tools.*` came from CI's artifact (23fec52). - `tests/value_sources_offsets.rs`: coverage and `MIN_READERS` for the new readers; a part of `native_run_type`, `native_landing_type` or `wall_type_layers` is read at its bytes; an Area's `area_levels` parts must be all the file's Levels; the permit office is a gate model with `CURRENT_PINS`. - `research/bim4lca-models.tsv`, `corpus/tier2/README.md`, `docs/reference-models.md`: CI fetches the permit office (78.3 MB, same pin as `research/bim4lca-measure.tsv`). - `docs/export-diagnostics.md`, changelog fragment: rows, counts, and the one value without a source. ## Testing - [ ] `tools/check-local.sh`: not run locally (no local builds); the draft's fast jobs and the full CI are the gate. - [x] Measured on real files: the runs above. ## Audit-honesty checklist - [x] A rectangular column's two sides have no source, by decision: they only gate whether its box quantities are written, no number of the type's is written, and the docs say so. - [x] Changelog fragment `changelog.d/changed/1368-tread-landing-and-spiral-run-sources.md` - [x] No emojis, no private paths ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk source. The permit office is CC BY-SA 4.0 and fetched, never committed. ## Breaking changes None to the export. `NameElevationBlock` (research API) gains a field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1434. May the plan topology draw an Area when the partition copies of its lines conflict? Yes, for a conflict that stays in place, and for nothing else. The 2021 save of Autodesk's
rac_advanced, which holds both states of the model (16 lines with two copies that differ in box by 0.0246 ft, each naming the same Level and scheme at the same height), now writes its 25 Areas, from the plan topology alone. They saySpaceOutlineSourcearea_plan_topology_unchecked, and a gate holds the 2021 save to the 2022 save.The rule. A line whose copies disagree but share their Level, scheme and height can lie in one group only. That group is
Group::Conflicted, no longerUnreadable: the lines' arrangement is not read (which copy is current is not known from the partitions), and the topology, which reads the current copy of each line and is checked against the area Revit saves for the loop and the Area's point, draws it. An Area may name such a line; the lines it names must still bound its region. A copy that names another Level or scheme or lies at another height, a design option, a stray height, a missing line and a line off the Level still make the group unreadable. Where the topology is not read, the Area keepsboundary_lines_not_readable.The evidence (RE-333 section 10):
-f base=main -f nordic=true -f r2025=true -f samples=true -f racadv=true -f holdout=true, noifc_flags, head 240989f with main at dd3dc11 merged): green,Same-project gatesgreen. One model of 117 exports moves, the 2021rac_advanced; the other 116 are byte for byte main's. Of the 93 models with public diagnostics it is the only one with a group-level refusal on main (22boundary_lines_not_readable, 3named_lines_not_in_scheme_and_level, now 0). It writes 25 Areas with a body, 25native_area_plan_topology; 25 more property sets and swept solids. Run 42030399700 on 9b5f0bc (before the marker below) gave the same counts.only in rvt-rs0 holds and says nothing about this change.group_arrangementandsame_placeon synthetic data, not on a Revit file.tools/re/areas_across_saves.py 2022=... 2021=..., in the shard that holds both saves: 25 compared, every field equal on 25 (GlobalId, number, name, storey, outline source, body area, top surface, height, lowest vertex), none missing or extra. The 2024 to 2027 gate still passes.tools/ci/same_project_verdict.pyrequires the 2021 gate when the run's sample years hold both saves (sosample_years="2024 2027"does not need it) and fails on a result that fails whether or not it was required; checked on the shards of run 42054772905 (success with and without the 2021 gate required) and by its tests.The marker (Griffin's decision, AskUserQuestion, 2026-11-05). The 2021 save's Areas say
area_plan_topology_unchecked. Their outlines are the later state of the model; the only Revit export of the project shows the earlier state, which equals 18 of the 25 and does not show the other 7. His marker rule of the same day is by release (2025 to 2027 unchecked, 2015 to 2024area_plan_topology), so the 2022, 2023 and 2024 saves, the same later state, keeparea_plan_topology; this save's Areas are his separate decision, made inpartition_area_records::area_uncheckedbeside the release rule. EveryIfcSpacecarriesSpaceKind(the new Areas sayarea).Changes
src/research/partition_area_records.rs:Group::Conflicted,BoundaryLines::moved,same_place(it tests the Level, the scheme and the height, not the box), the topology-only path inlocate, the named-line rule indraw_area,area_unchecked; 15 pure-helper tests.src/ifc/export_content.rs,rvt-mcp/src/schema.rs,docs/mcp-tools.json,docs/mcp-tools.md,docs/mcp.md: the unchecked value's description. The MCP contract changes; the JSON is edited to the text the server writes and the markdown re-rendered withrender-mcp-tools.py, so CI'stool_contract_is_committedis the check.tools/ci/measure-reference-models.sh,tools/ci/check-areas-across-saves.sh,tools/ci/same_project_verdict.pyand its tests,.github/workflows/measure.yml,tools/re/areas_across_saves.py: the second gate.reports/element-framing/RE-333-area-plan-topology.mdsection 10; the Area paragraphs ofdocs/rooms.md,docs/status.md,docs/evidence.md,docs/supported-profile.md,docs/support-matrix.json,docs/export-diagnostics.md;changelog.d/added/1434-areas-2021-save.md.Testing
Unit tests are banned except for pure helpers: the tests added are failure-first tests of
group_arrangementandsame_place, which read no file. The gate's outline-source field, not a test, checks the marker.python3 tools/release/changelog.py check,python3 tools/ci/api-doc-ids.py,python3 tools/ci/test_same_project_verdict.py(30 tests),rustfmt --checkandbash -nof the scripts pass locally; no local build, per this checkout's rules, so CI compiles and runs the Rust tests.-f samples=true -f scorers=bodies_across_saves) on the final head, after feat(ifc): Revit 2025 beams and tread landings, held to the 2024 save (#1440) (RE-345) #1452 lands and main is merged, to write thesame-project gatescheck run.src/Area code is unchanged since run 42054772905: the later commits touchsrc/only in doc comments, the two removed tests and main's merge (door flips feat(elements): decode a door's and window's hand flip and facing flip from the native record (#1357) (RE-343) #1438, saved graphics fix(saved-graphics): the pass frees an owner's graph with its batch, so the walls that embed a curtain wall stop raising the export's peak (#1429) #1441, none in the Area code). The gate scripts changed after it (the verdict, the summary, the notice), so a samples-only run on the final head writes thesame-project gatescheck run; run 42089276000 on c912325 was green and is superseded by it.Audit-honesty checklist
CHANGELOG.md.Legal and contribution hygiene
Breaking changes
None to the API. The MCP
space_outline_sourcedescription ofarea_plan_topology_uncheckedwidens (see above), and a file whose Areas main did not write now writes them.Related issues
Closes #1434. Refs #1261.