Repository navigation
fix(ifc): a door placed at its stored origin names the transform scan as its value source (#1498) - #1562
Merged
Conversation
… as its value source (#1498)
Merged
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 15, 2026
…e test declares (#1498) (#2027) ## Summary `docs/export-diagnostics.md`'s inventory of declared value-source gaps now matches the test that enforces them. The prose said "19 values", and the table listed 22 and left out `LevelBindSource` `partition_room_parameter_block`. `SOURCE_VALUES` in `tests/value_sources_offsets.rs` declares 23 `Gap` rows: 13 `LevelBindSource`, 3 `StoreyBindSource`, 2 `FamilyNameSource`, 1 `BodyHeightSource` and 4 schema-walker values. The prose now says 23 and names the test, and the table's binding row lists the room parameter block (13). Closes #1498. Its done-when ("each of these has a source that names the bytes it came from, or a stated reason, and a test fails on a written value with neither") is met on `main`: - #1512 (`99aa1f28`) and #1562 (`3f82d14c`) list a source for every `*Source` property value of walls, door placements, covers, orientation, flip, taper face angle and joined walls. `tests/value_sources_offsets.rs` fails on a written value with neither a row nor a declared gap. - The three items that have no source have a stated reason in this page: a door's or window's cut-loop size (lines 226 to 232), a beam's cross-section rotation (`m_rotation`, lines 235 to 239), and the numbers of the parts the test does not compare (line 298). ## Motivation A Tendrils triage of #1498 (batch b10, 2026-11-13) found the inventory disagreeing with the test, re-read here against `main`. That triage also proposed requiring `native_wall_joined` on the `BodyEndSource` row. This PR does not, because the source is listed "only where every one of them was read in the same pass" (this page's row for it), so requiring it would fail on a wall whose joined walls were not all read. The row stays `all: ["native_wall"]`. ## Changes - `docs/export-diagnostics.md`: the count and the binding row. ## Testing Docs only. The counts are read from `SOURCE_VALUES` (23 `Gap` entries). ## Audit-honesty checklist - [x] No changelog fragment: a correction of a count in the docs. - [x] No emojis, private paths or jargon. ## Legal and contribution hygiene - [x] Apache-2.0. ## Breaking changes None.
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
mainfails Corpus health. #1512 (value sources for every*Sourcevalue) and #1505 (a door set in no wall placed at its stored origin) landed in the same batch, each green on its own. Together, the offsets test findsPlacementOriginSource=stored_origin_no_openingwith neither a row inSOURCE_VALUESnor a declared gap: 1 door on RE1 Architecture, 74 on the BIM4LCA office as built and 76 at permit. That was seen on #1560's full run, a dependency bump that changes no code.The value has a source.
attach_opening_placement_originstakes the door's origin frompartition_instance_transforms::scan_instance_transforms, which notes each transform it reads as aninstance_transformvalue source. So:element_provenance::property_readersmapsPlacementOriginSource=stored_origin_no_openingto theinstance_transformreader, asPlacementAxesSourcemaps to its readers.tests/value_sources_offsets.rsgains the row: sourced, frominstance_transform.No export changes: value sources are diagnostics only. #1512's Measure run 42542513656 found every export byte for byte the same with them in place.
Testing
This PR's full CI runs the Corpus health job, the one that failed. The four tests that failed on #1560 should pass there:
family_extrusion_value_sources_name_the_forms_the_body_was_rebuilt_fromproject_corpus_value_sources_name_the_copy_the_reader_tooknordic_office_value_sources_name_the_copy_the_reader_tooknordic_office_permit_value_sources_exercise_the_current_copy_rule