Skip to content

ci: the semantic check dumps and lists the BIM4LCA timber office, so a complete Measure run is no longer NOT MEASURED (#1675) - #1677

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/semantic-diff-timber-office-dumps
Nov 11, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/semantic-diff-timber-office-dumps

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measure now writes the MCP dump for the BIM4LCA timber office (nordic-office-timber-*), and the semantic check lists both timber models among the open models it compares, so a complete run's check is judged on all 36 instead of reading NOT MEASURED. No export changes.

Motivation

Closes #1675. Every complete Measure run since the timber office joined the fetcher (2026-11-10) ended its semantic check as NOT MEASURED, for example check run 130231595702 on 5030181 (#1665): "nordic-office-timber-as-built: no dump on the base or head side; nordic-office-timber-permit: no dump on the base or head side". The two folders match OPEN_MODELS (nordic-office-*) but held no dump, and neither model was in OPEN_MODEL_NAMES, so coverage_gaps counted them as gaps. A NOT MEASURED never supersedes a fail, so a pull request holding an older fail could not be armed.

Changes

  • tools/ci/measure-reference-models.sh: the MCP dump case covers nordic-office-timber-*.
  • tools/re/semantic_diff.py: OPEN_MODEL_NAMES lists nordic-office-timber-as-built and nordic-office-timber-permit; its comment says a model joining the fetcher is added to the list and to the dump case together.
  • tools/ci/test_jev_check.py: the existing coverage test derives its expected count from the model list instead of the literal 4.
  • docs/maintaining.md: the guide counts 36 open models, names the BIM4LCA office in concrete and timber, and says a model that joins the fetcher needs its dump case as well as its list entry.

Testing

No unit tests added; the existing test_jev_check and test_semantic_diff suites still pass locally, which is a guard and not evidence. End to end: Measure run 42935884112, complete (nordic, r2025, samples, no models filter) with this branch's tooling, base main 56821a1, head 8251fc4, judged against the rows registered in the comment on #1675:

  • A1 held: the semantic check on the head reads pass: no semantic difference in 36 models, not NOT MEASURED.
  • A2 held: the semantic-diff manifest has requested_all true, 36 models compared, and skipped and uncovered empty (both timber offices hold a dump on both sides).
  • A3 held: 0 findings in 98,720 elements, as a change that touches no export must read.
  • The same-project gates pass on this head (measure-reference-models.sh is a gate path).

semantic-check.yml runs from main with main's tooling, so that verdict was computed against the old list; no model was skipped, so it could not be a gap. The later commit 332e2dc is documentation only (the guide's count and the dump-case note).

  • tools/check-local.sh passes: not run locally (no local builds here); CI runs it
  • Verified end to end on real Revit files: Measure run 42935884112 (BIM4LCA office, CC BY-SA 4.0, fetched by Measure)
  • If this touches the IFC exporter: N/A, no exporter change
  • If this is a performance change: N/A

Audit-honesty checklist

  • README / docs reflect the current state after this PR: no user-facing claim changes
  • A user-visible change has its changelog fragment: N/A, CI tooling only
  • No emojis, private paths or personal addresses in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content
  • No new test fixtures

Breaking changes

None.

Screenshots or output samples

The manifest and verdict of run 42935884112 are posted on #1675.

…a complete Measure run is no longer NOT MEASURED (#1675)

The two timber office files joined the fetcher without a MCP dump or an entry in OPEN_MODEL_NAMES, so their folders matched OPEN_MODELS, held no dump and put every complete run's semantic check under NOT MEASURED. The check's test now derives its expected count from the model list.
…at joins the fetcher needs its dump case as well as its list entry (#1675)

The guide still said 34, and nothing told a contributor that a fetcher's new model without a dump reads as a gap.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 01:34
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…ad for several symbols no longer repeats the writer's fallback (#1667) (#1668)

## Summary

Every type object now has a GlobalId of its own. In the type-object loop
of `src/ifc/step_writer.rs`, a type object that finds no Revit GlobalId
left to take gets the writer's fallback `gid(&["type", entity_name,
tag])` only when no earlier object used it, and otherwise the same
fallback with its index; the fallback is entered in `used_gids`, which
it was not. The BIM4LCA office at permit (timber), where one mullion
type was written as 7 `IfcMemberType` objects with one GlobalId
(IfcOpenShell flags the 6 repeats), now writes 7 different ones, and its
property sets and relationships, which derive theirs from the type's,
follow.

## Motivation

Closes #1667. The timber permit office is the one Measure model whose
export fails IfcOpenShell's validation: `validate: findings 24`, all
`IfcRoot.UR1` ("The attribute GlobalId should be unique"): 6
`IfcMemberType` + 12 `IfcPropertySet` + 6 `IfcRelDefinesByType` repeats
of the type `Rectangular Mullion:150 x 50 mm alumiini maalattu` (Tag
1907093). A repeated GlobalId is invalid IFC4, and importers that key
objects by GlobalId merge or drop the later ones. The same 24 findings
are in every Measure run read since #1650 on both sides, so they are on
`main`.

## Changes

- `src/ifc/step_writer.rs`: the type-object loop takes Revit's GlobalId
when it is unused, else the writer's fallback when it is unused, else
the fallback with the type object's index.
- `changelog.d/fixed/1667-unique-type-global-ids.md`.

## Testing

No unit tests added. Measured end to end on Measure's models (every
scorer, `samples=true`): run 42934767155, this head (main merged in, so
the only difference between the two sides is this change) against main.
The rows were registered on #1667 before the first run and are judged as
registered:

1. `nordic-office-timber-permit`: `validate` reads 0 findings (24 on
main), and the six `IfcMemberType` of Tag 1907093 have six different
GlobalIds.
2. Every other export is byte-identical (`ifc.sha256` of the other
models does not move), since no other model has a repeated type
GlobalId.
3. The timber permit office keeps every object it wrote: entity counts
by class unchanged, only GlobalIds differ.

Result of run 42934767155 (100 models with results on each side), judged
as registered:

1. Holds. `nordic-office-timber-permit`: `validate` reads `findings 0`
(24 on main) and `ports_vs_ifc.txt` "0 findings, 0 about the port
entities". The run keeps no IFC, so "six different GlobalIds" is read as
the validator's `IfcRoot.UR1` finding no GlobalId repeated anywhere in
the file.
2. Holds. One export moved, `nordic-office-timber-permit`; the other 99
are byte-identical (`ifc.sha256`), and no scorer line of any other model
changed.
3. Holds on its substance, with one scorer line I did not foresee. Total
entities are 76,041 on both sides, `by_ifc_type` and the whole
diagnostics are identical, and `global_ids_vs_ifc` (10,511 equal, 9 not
in Revit's export) and `class_sets_vs_ifc` are identical.
`type_objects_vs_ifc.txt` reads "type objects in ours: 1391" on main and
1397 here: it counts distinct GlobalIds, so the +6 is the repeats
becoming six further distinct ids, not new objects. That also corrects
the issue's count: 7 `IfcMemberType` shared the GlobalId, and
IfcOpenShell flags the 6 repeats. "The type objects' count the same" is
true of the objects, not of that line.

The first unfiltered run, 42928822492, compared this change, which then
lacked #1647, against newer main, so its other differences were #1647's;
this re-run, after merging main, is the one judged. The same-project
gates passed on this head (check run of 2026-11-11T01:07:24Z, "pass: 15
samples held to their earlier saves"); the semantic check read NOT
MEASURED on it (#1675: the timber office had no dump, fixed by #1677).

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: the runs above (BIM4LCA
office, Revit 2024, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: the witness verdicts replay or
the changed observations are refreshed: Core Interior's GlobalIds are
not changed (row 2), so no observation moves
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
capability claim changes
- [x] A user-visible change has its changelog fragment under
`changelog.d/fixed/`
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. A type object that already had a unique GlobalId keeps it; only
the repeats change.
@DrunkOnJava
DrunkOnJava merged commit b4c7b47 into main Nov 11, 2026
74 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/semantic-diff-timber-office-dumps branch November 11, 2026 01:47
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…fails a pull request where the fetcher's list, its dump case and the open-model list disagree (#1678) (#1680)

## Summary

The six BIM4LCA housing files join the semantic check: each gets an MCP
dump and is listed as an open model, so a change confined to them, such
as #1665's slab and roof quantities, is no longer invisible to it. A CI
step, `tools/ci/check_semantic_models.py`, fails a pull request where
the fetcher's `MODELS_LIST`, its dump case and `OPEN_MODEL_NAMES`
disagree; run on main as it was before #1677 it reports exactly the two
timber models of #1675. No export changes.

## Motivation

Closes #1678; follows #1675 (#1677). The housing comes from the same VTT
archive as the office (CC BY-SA 4.0), so the licence that lets the
office's dumps go to Jev covers it. A model that joined the fetcher
without its dump case or its list entry made every complete run's check
read NOT MEASURED once; the guard makes that a failure in the pull
request that adds the model.

## Changes

- `tools/ci/measure-reference-models.sh`: the dump case covers
`nordic-housing-*`.
- `tools/re/semantic_diff.py`: `OPEN_MODELS` and `OPEN_MODEL_NAMES` list
the housing and its six models.
- `tools/ci/check_semantic_models.py` (new), run by the PII guard job of
`ci.yml`: five ways the three lists can disagree, and `--refusals`,
which shows it failing on six mutated copies of the two files.
- `docs/maintaining.md`: the guide counts 42 open models and names the
check.

## Testing

No unit tests added; the existing `test_jev_check` and
`test_semantic_diff` suites still pass locally, which is a guard and not
evidence. The new check is a contract check on the real files and is
shown failing on mutated copies and on the real defect (main before
#1677: the two timber offices). End to end: Measure run 42940165321
(this branch's tooling; head 6e58c27 against base 74a5034, complete),
judged against the rows registered on #1678 and reported there:

- H1: 42 models compared, `skipped` and `uncovered` empty, each housing
model holding a dump on both sides.
- H2: the largest housing dump opened is 1.91 MiB against the 400 MiB
cap.
- H3: housing shards 3.0 to 5.9 minutes (3.1 to 4.8 before).
- H4: `jev_check.py --dry-run` builds 13 chunks and 138,753 characters,
3 chunks and 39,622 characters more than without the housing, inside
`MAX_CHUNKS` (150).
- H5: the housing findings are #1647's `SavedMeshRefusal` additions and
counters, and nothing else; no element added or removed.

A side effect of that run, stated there: the Semantic check job refused
to send the housing diff (main's list lacks the housing until this
lands) and failed on a main commit, by design. This pull request's own
gate run is dispatched from main's tooling, so no housing dump is
written and the check scores it against the list of 36.

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: Measure run 42940165321
(BIM4LCA housing and office, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: N/A, no exporter change
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
user-facing claim changes
- [x] A user-visible change has its changelog fragment: N/A, CI tooling
only
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Work in the ci area. type:ci Continuous integration or automation work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Semantic check: every complete Measure run reads NOT MEASURED since the timber office joined, because Measure writes no MCP dump for it

1 participant