Skip to content

fix(ifc): a door placed at its stored origin names the transform scan as its value source (#1498) - #1562

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/placement-origin-source-row
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/placement-origin-source-row

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

main fails Corpus health. #1512 (value sources for every *Source value) 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 finds PlacementOriginSource=stored_origin_no_opening with neither a row in SOURCE_VALUES nor 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_origins takes the door's origin from partition_instance_transforms::scan_instance_transforms, which notes each transform it reads as an instance_transform value source. So:

  • element_provenance::property_readers maps PlacementOriginSource=stored_origin_no_opening to the instance_transform reader, as PlacementAxesSource maps to its readers.
  • tests/value_sources_offsets.rs gains the row: sourced, from instance_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_from
  • project_corpus_value_sources_name_the_copy_the_reader_took
  • nordic_office_value_sources_name_the_copy_the_reader_took
  • nordic_office_permit_value_sources_exercise_the_current_copy_rule

@DrunkOnJava
DrunkOnJava merged commit 3f82d14 into main Nov 9, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/placement-origin-source-row branch November 9, 2026 02:32
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant