Skip to content

ci(measure): the quantity scorer checks a wall Length rvt-rs writes and Revit's export does not against the length of Revit's Axis (#2069) - #2071

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/2069-wall-length-axis
Nov 15, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/2069-wall-length-axis

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

tools/re/qtos_vs_ifc.py prints one more line: for the walls rvt-rs gives a Qto_WallBaseQuantities.Length and Revit's export gives none, how many agree with the length of the wall's own Axis in Revit's export to 1e-4 ft, how many differ, and how many have no straight Axis. tools/ci/scrub-holdout-results.sh keeps that line, as three counts, for the held-out models.

Motivation

v0.25.0 gives an ordinary wall a Length on Revit 2015 to 2023 saves, by the rule Revit 2024 and later already had (RE-252): where the wall's cut-back curve is as long as its curve. On the Autodesk samples that writes none. On one held-out Revit 2021 project it writes 8 of 390 walls', and that project's Revit export is IFC2X3 with no base quantities, so the scorer could only list the 8 beside a setting that was off (#2069). In Revit's export the Axis is the wall's curve cut back at its joins, so where the rule writes a Length the Axis must be as long: a check that needs no quantity in Revit's export.

Changes

  • tools/re/qtos_vs_ifc.py: the check and its line, walls rvt-rs gives a Length and Revit's export does not, against the length of Revit's Axis (within 1e-4 ft): equal N; differ N; no Axis N, with the docstring paragraph that says why. It reuses axis_lengths and the 1e-4 ft tolerance the scorer already uses for the two lengths of RE-252, and skips a key more than one object of Revit's export holds.
  • tools/ci/scrub-holdout-results.sh: the line is in the alphabet a held-out counts.txt keeps; the header comment names it.

Testing

  • bash -n on the scrub, py_compile on the scorer, tools/re/counted_apart.py --check (the line sets nothing aside, so no category is added); the new pattern keeps the line and drops the same line with anything appended.
  • Measure 43733752273 with this branch's scorer on v0.25.0, holdout=true, scorers=qtos_vs_ifc; rows registered on Ordinary walls' Length before Revit 2024: 8 walls of one held-out Revit 2021 project are written and nothing checks them; score them against Revit's Axis #2069 before the run was read. The held-out Revit 2021 project reads equal 8; differ 0; no Axis 0, and Core Interior, whose Revit export has no base quantities, equal 38; differ 0; no Axis 0. Core Interior's qtos_vs_ifc.txt differs from run 43721278321's by the new line only, and every other qtos_vs_ifc line of the held-out project's counts.txt is in that run's. (My registered row for Core Interior, equal 0, was wrong: I had not known its export has no base quantities. The BIM4LCA office was not in the run.)

Audit-honesty checklist

  • No changelog fragment: Measure tooling; the exports are unchanged.
  • Held-out output stays counts beside fixed words; no Tag or length leaves the runner.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source, no fixtures.

Breaking changes

None.

Related issues

Refs #2069. The issue stays open: what the counts show decides whether the rule stays on Revit 2015 to 2023.

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ

…nd Revit's export does not against the length of Revit's Axis (#2069)

v0.25.0 gives an ordinary wall a Length on Revit 2015 to 2023 saves too, by
the rule 2024 and later already had: where the wall's cut-back curve is as
long as its curve. On one held-out Revit 2021 project that is 8 walls, and
that project's Revit export is IFC2X3 with no base quantities, so the scorer
could only list them as quantities rvt-rs writes beside a setting that was off.

In Revit's export the wall's Axis is its curve cut back at its joins (RE-252),
so where the rule writes a Length the Axis must be as long. qtos_vs_ifc.py
prints one line for the walls rvt-rs gives a Length and Revit's export gives
none: how many agree with the Axis to 1e-4 ft, how many differ, and how many
have no straight Axis. The held-out scrub keeps the line as three counts.

Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
@DrunkOnJava
DrunkOnJava merged commit f3b3c1f into main Nov 15, 2026
72 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/2069-wall-length-axis branch November 15, 2026 16:27
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
… target stops every layer at the partner's near face, on a wall joined to no roof (#1814) (RE-488) (#2068)

## Summary

At a layered butt join, rvt-rs drew the end of a wall that stops to the
layer reaching furthest into its partner, as Revit cleans such joins
layer by layer. Where the end's `JoinEndGStep` names an omitted target
(`m_omittedTarget`), Revit's export instead ends the whole wall flat at
the partner's near face. Such an end now stops there with every layer,
on a wall whose record joins no roof or floor.

On the BIM4LCA concrete housing at permit, 8 ends that were 435 or 390
mm long are now Revit's, and nothing else in 120 exports moves. Report:
RE-488. Rows: #1814 ([comment
6897436699](#1814 (comment))),
registered before run 2.

## Motivation

#1814. Read from Revit's export of the concrete housing at permit:
- **Layered ends.** A layered wall's end is a set of steps, the nested
Ls of RE-71, and `wall_ends_list` compares the layer that runs furthest.
- **Flat ends.** At ends where the stopping wall's join step names an
omitted target, the end is flat at the partner's near face (probe
Measure 43724083677, `probe_re252_wall_ends` with `wall_ends_list`).

## Changes

- `src/research/native_walls.rs`: `NativeWall::omitted`, the wall that
`JoinEndGStep.m_omittedTarget` names at each curve end.
`NativeWall::roof_joined` says whether the record holds a
`JoinToRoofGStep`.
- `src/research/partition_schema_mvp/wall_joins.rs`: `wall_lines`
carries the omitted target by axis end (`WallLine::omitted`), only on a
wall that is not roof-joined.
- `src/research/element_record_wall_joins.rs`: at a perpendicular
layered butt join where the wall stops and one layer reach already lies
at the partner's near face, every layer now reaches the near face.
- Report RE-488, changelog fragment, the RE-488 row of
`docs/one-project-rules.md` (the BIM4LCA housing goes from 3 to 4) and
the #1814 row of `docs/contribution-map.md`.

## Testing

**Run 1**
([43724665649](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43724665649),
`2b10b372`, no roof-join condition) did not meet its first row:
- It fixed 10 ends but broke one exact end. Wall 1550779 is roof-joined,
and Revit runs its top 395 mm on, stepped.
- It did not reach the 11 timber T joints.

**Run 2**
([43734232355](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43734232355),
`653af5fb` against `156e2b25`, nordic, r2025, samples and holdout) meets
all five rows:
- **Exports.** 119 of 120 are byte-identical, and `diagnostics.json` is
identical on 102 of 102.
- **Ends.** On the concrete housing at permit exactly the 8 registered
ends become Revit's to 0.001 ft: walls with an end off go from 71 to 63.
1550779 stays Revit's.
- **Values.** No `different` or values-Revit-does-not-write count
changes.
- **Fits.** `frames_vs_ifc`'s rotation and `wall_heights_vs_ifc`'s
median wall-middle residual (0.0093 to 0.0131 ft) move with the frame
fit over every wall.
- **Gates.** `same-project gates` passes.

The commits after `653af5fb` are the report and docs (`e567395e`) and a
clean `--no-ff` merge of `main` (`5d7c2904`: the 0.25.0 release, #2070
docs and #2071 tools; no `src/` change), so the proof is run 2:
`--carry-proof 43734232355`.

## Audit-honesty checklist

- [x] RE-488, the changelog fragment, the one-project row and the #1814
row.
- [x] What the rule leaves out:
- 12 roof-joined ends that Revit draws flat, which the roof-join
condition gives up;
- the 9 concrete-office ends at the nearest reach with no omitted
target;
  - wall 1567716;
  - the issue's own six ends.

## Legal and contribution hygiene

- [x] Apache-2.0. Read from public byte observations and Revit's own IFC
exports. No Autodesk SDK source or internals were used.

## Breaking changes

None to the stable API. `rvt::research::NativeWall` and `WallLine` gain
fields; that module sits behind `unstable-research`, which the semver
gate excludes.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…ort names, the first part of its saved mesh's first face (#1209) (RE-486) (#2063)

## Summary

A ceiling in pieces that holds no `Qto_CoveringBaseQuantities.GrossArea`
now takes the area of the piece Revit's export names. That piece is the
part of its saved mesh's first face (the first primitive, which is the
top face) that holds the face's first triangle. This extends RE-480's
one-piece rule (#2056) to ceilings whose face is in several pieces.
RE-465 leaves those out where a ceiling's two lowest sketch lines lie on
two different pieces. On the four BIM4LCA office files, 16 ceilings gain
a value, 5 of them cut, and all 16 equal Revit's. Report: RE-486. Rows:
#1209 ([comment
6894478486](#1209 (comment))),
registered before the run.

## Motivation

#1209. revit-ifc 24.2's `BodyExporter.ExportBody` (CLEANROOM.md source
5, `Exporter/BodyExporter.cs` at `e5caa9b81d`; cited, not copied) sets
the body's `ScaledArea` from each extrusion as it creates it.
`GrossAreaCalculator` reads that value, so a ceiling in pieces gets the
area of the piece created last.

- **Revit's export.** Of the 78 ceilings in pieces on the four BIM4LCA
office files (73 uncut, 5 cut), every one has the `GrossArea` of the
piece whose `IfcExtrudedAreaSolid` has the highest STEP id. That is also
the last item listed. The largest piece is right on only 45. Source:
`tools/re/ceiling_piece_order_vs_ifc.py`, Measure 43713821158. A layered
ceiling lists one item per piece per layer, and the order of the pieces
can differ between layers.
- **The saved mesh.** It stores the slab as one face per primitive, with
the pieces as connected parts of each face. The first face's first part
is Revit's piece on 78 of 78, the 5 cut ones included. Source:
`probe_1209_ceiling_mesh_order`, Measure 43714434788.

## Changes

- `src/ifc/saved_meshes.rs`:
- `first_piece_face_area`. It applies when the first primitive is one
horizontal face in more than one part, and a face facing the other way
holds a part of the same area to 0.1%. It is tried where
`one_piece_face_area` gives none, and only when the mesh decodes with no
diagnostic (`partial_refusal`).
- `coverings_without_area` selects ceilings by ElementId. rvt-rs writes
a ceiling sketched in pieces as one covering per piece, all with the
ceiling's ElementId (#331). So a ceiling is listed only where none of
its coverings holds `GrossArea`, and the area goes on its own covering,
the first one written. The first version of this PR took a ceiling only
where its ElementId named exactly one covering, so it wrote nothing
(Measure 43715338673; the cause is in RE-486, section 3).
- `horizontal_triangles` takes the per-triangle normal test out of
`one_piece_face_area`, unchanged. `part_roots` takes the union-find out
of `pieces`, unchanged.
-
`reports/element-framing/RE-486-ceiling-pieces-first-face-gross-area.md`,
`changelog.d/fixed/1209-ceiling-pieces-gross-area.md`, and the RE-486
row in `docs/one-project-rules.md`. The #1209 row in
`docs/contribution-map.md` and the W7 line in
`docs/release-1.0-criteria.md` now include RE-486.
- `docs/one-project-rules.md`'s counts table had drifted from its rows,
and now matches them. The office said 47 for 48 rows (49 with RE-486),
BIM-Speed Vitoria said 5 for 4, and RE-477's Vitoria spent Revit 2018
project had no line.

## Testing

**Full run.** Measure
[43733137320](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43733137320)
ran `b000d8ab` against its merge base `156e2b25`, with nordic, r2025,
samples and holdout, on 120 exports. All five rows on #1209 are met:
- **The office.** `Qto_CoveringBaseQuantities.GrossArea` equal goes from
86, 71, 84 and 70 to 90, 75, 88 and 74, with 0 different and 0 missing.
Each file's totals move by these 4 alone. The MCP answers find one more
equal quantity on each file.
- **Everything else.** 115 of 120 exports are byte-identical: the
housing, the Revit 2025 models, Core Interior, RE1, every held-out
export and every sample save but one.
- **Snowdon.** One ceiling of Autodesk's 2024 Snowdon Towers
Architectural sample gains a `GrossArea`, and no Revit export in CI
checks it. Revit's own local export of that file has no base quantities.
Against its body (both exports kept by Measure 43735582243), our area
equals the profile of the piece Revit's export creates last, to 8e-9
relative. That piece is also the largest of the three, so this ceiling
cannot tell the two rules apart.
- **Diagnostics.** They move in `exported.total_entities` alone: +4 on
each office file and +1 on Snowdon.
- **Gates.** `same-project gates` passes.

The filtered run 43721768570 gave the same office counts. After
`b000d8ab` the branch holds the report and fragment (`b755d546`) and a
clean `--no-ff` merge of `main` (`2a2fb064`: the 0.25.0 release, #2070
and #2071; no `src/` change), so the proof is `--carry-proof
43733137320`.

## Audit-honesty checklist

- [x] RE-486, the W7 line, the #1209 row, the one-project row and the
changelog fragment. The rule rests on one building, four saves by Revit
2024, and is listed on `docs/one-project-rules.md`.
- [x] Sections 4 and 5 of RE-486 are completed from the unfiltered
Measure.

## Legal and contribution hygiene

- [x] Apache-2.0. revit-ifc was read and cited only (CLEANROOM.md source
5). No Autodesk SDK source or internals were used.

## Breaking changes

None.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…was checked against, the roadmap and status entries, and the milestone moved to 0.26.0 (#2073)

## Summary

v0.25.0 is published on every channel and checked from what was
published. This names it the latest release in the install guide,
status, roadmap, Python page, supported profile and the 1.0 criteria,
gives the install guide the evidence of this check, moves the
contribution map to the 0.26.0 milestone, and corrects RE-364: the 8
Length values it called a curtain wall's are an ordinary wall's, and a
check against Revit's own `Axis` now covers them (#2069).

## Motivation

`RELEASE.md` ends a release with the post-publish verification written
into `docs/install.md` and the docs naming the new version. Checking the
release also showed that RE-364 section 11 was wrong about the held-out
Revit 2021 project's 8 gained `Length` values (curtain walls in the
text, ordinary walls in the export), which #2069 followed up and #2071
made checkable.

## Changes

- `docs/install.md`: the status table and the evidence list name 0.25.0.
The evidence is from the published artifacts:
- **crates.io** records publish run 43732258483 and the tagged commit
`e3a94048` as the source of `rvt` and `rvt-rs-mcp` 0.25.0.
  - **docs.rs** had built `rvt` 0.25.0.
- **The macOS arm64 archive** matched `SHA256SUMS`, its attestation
names the release workflow at the tag, and it converted Core Interior,
Einhoven and RE1 Architecture into the same IFC as Measure's export of
the tag (run 43732268400) with byte-identical diagnostics.
- **The PyPI wheel** gave the same IFC and the same diagnostics as JSON.
- **The container image** verified its attestation, ran on `linux/amd64`
and `linux/arm64`, and converted RE1 Architecture into the archive's IFC
(4,784 lines each).
- **The release page** holds 15 files, with `SHA256SUMS`, GitHub's
digests and PyPI's sha256 agreeing, and attestations verified on all 13.
  - **The deployed viewer** reports `rvt-rs 0.25.0`.
- **The publish workflow's** wheel, `cargo install` and viewer smokes
passed (63 tests passed, 8 skipped).
- `docs/status.md`, `ROADMAP.md`, `docs/python.md`,
`docs/supported-profile.md`, `docs/release-1.0-criteria.md`: 0.25.0 as
the latest release, the 0.25.0 entry with what it does not measure, the
W1 row, and the milestone references moved to 0.26.0.
- `docs/contribution-map.md`: regenerated for the milestone roll (0.25.0
closed, 0.26.0 holding 49 open issues, 1.0.0 17, 1.x 13), with #2044,
#2046 and #2053 given a milestone and labels. The hand-written suffix of
#1814's row (RE-488) is kept.
- `reports/element-framing/RE-364-2015-2023-wall-lines-and-joins.md`:
section 11's two sentences point to a new section 12, which says the 8
walls are ordinary walls (the scorer lists them as
`Qto_WallBaseQuantities.Length`, the writer's curtain-wall set is
`Qto_CurtainWallQuantities`, and the project's Revit export holds
`IfcWall` 9, `IfcWallStandardCase` 381 and no `IfcCurtainWall`) and
records #2071's check: the rule writes a `Length` only where the wall's
cut-back curve is as long as its curve, so Revit's own `Axis` must be as
long. On the held-out project that reads equal 8, differ 0, no Axis 0
(Measure 43733752273, counts only), and on Core Interior, whose slim
export carries no base quantities either, 38 of 38. The rule stays on
Revit 2015 to 2023.

## Testing

- [x] `python3 tools/ci/api-doc-ids.py`: every cited RE finding has a
report (460), and no planning label is left.
- [x] Every figure in the install evidence is from
`.claude/scripts/verify-release/verify.sh 0.25.0` against Measure's
export of the tag, `gh release view`, `gh attestation verify
--source-ref refs/tags/v0.25.0` on the 13 files, PyPI's JSON and the
publish run's job logs.
- [x] The RE-364 section 12 counts are from Measure 43733752273 and the
registered rows on #2069; Core Interior's slim export has no base
quantities, which the first row on #2069 did not expect and the issue
says so.

## Audit-honesty checklist

- [x] The 0.25.0 entries repeat the changelog's "not measured" clauses
(one reporter's model, one building, one held-out project).
- [x] Held-out numbers are counts and a tolerance, with no `Tag`, length
or position.
- [x] No changelog fragment: documentation only, no behaviour change.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source, no fixtures.

## Breaking changes

None.

## Related issues

Closes #2069: its check is on `main` (#2071), its counts are in RE-364
section 12 and the rule stays on Revit 2015 to 2023.

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
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