Skip to content

feat(ifc): a tread landing and a spiral run name the type records they read, and CI reads the current copy rule (#1368) - #1481

Merged
DrunkOnJava merged 10 commits into
mainfrom
lane/1368-value-sources
Nov 6, 2026
Merged

DrunkOnJava merged 10 commits into
mainfrom
lane/1368-value-sources

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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 feat(ifc): the 2021 save of rac_advanced writes its 25 Areas from the plan topology alone, marked unchecked (#1434) (RE-333) #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 Provenance: value sources for the readers #1360 leaves NotYet (stair sketches, landings, area lines, sections, pipes, roofs, family extrusions, profiles) #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:

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.
  • Measured on real files: the runs above.

Audit-honesty checklist

  • 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.
  • Changelog fragment changelog.d/changed/1368-tread-landing-and-spiral-run-sources.md
  • No emojis, no private paths

Legal and contribution hygiene

  • 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.

…y read, and CI reads the current copy rule on the permit office (#1368)

A landing drawn as its runs' tread lists its landing type's record and the record of each distinct run type of its stair's runs; a spiral run lists its run type's record. The export is unchanged. Measure run 42111951132 (main at d2439b0, --element-provenance, 92 models) has the current copy rule on one model, the BIM4LCA office at building permit, and selected_frame_box on none, so the gate now fetches and reads that model.
…Measure run 42115109274 measured, and say which models the run did not fetch (#1368)
…ers, an I-section beam and an Area's Levels (#1368)

A wall drawn at its type's thickness lists the type's layers, a beam drawn as its type's I section lists the section entries, and an Area lists the block of every Level its base and height compare. The one value left without a source, a rectangular column's two sides, only gates its box quantities. The MCP description no longer says a body no reader notes yet.
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 22:26
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
…reeing, and the value-source test requires the new readers and compares two parts' numbers (#1368)

scan_partition_levels keeps each Level's newest partition and never compares older copies (RE-107), so the table says frame. COVERAGE gets a per-body list of required readers, CURRENT_PINS pins the counts, a Level's block is decoded again against the storeys the export writes and a wall type's layers against the layer sets. The fragment is scoped to the four values #1368 listed.
@DrunkOnJava
DrunkOnJava merged commit c5bae9e into main Nov 6, 2026
35 checks passed
@DrunkOnJava
DrunkOnJava deleted the lane/1368-value-sources branch November 6, 2026 00:24
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 6, 2026
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… waits for a runner to say so (#1457) (#1515)

## Summary

The viewer tests no longer end with a roll-up job, `legs passed`, that
took a runner of its own after the legs. The call's result already says
whether the legs passed, and the one case the job covered is now checked
statically.

## Motivation

Griffin asked for the bottlenecks to be fixed. Over the last 200 minutes
the account's 40 concurrent jobs were full about 70% of the time, and on
#1481's landing run `legs passed` and `CI passed` waited 4.6 and 3.2
minutes of its 28.6 for a runner each.

## Changes

- `.github/workflows/viewer-test.yml`: the `result` job (`legs passed`)
is removed, and the header says why it is not needed. Why it existed:
`CI passed` counts a skipped job as a pass and a call whose jobs were
all skipped is skipped; the legs (`test`) already run whenever the run
is not cancelled and fail their first step when `build` did not pass, so
every leg either runs its tests or fails the call, and the call's own
result, which `CI passed` and Deploy viewer read (`needs: viewer` in
`ci.yml`, `needs: [build, tests, measure]` in `deploy-viewer.yml`),
aggregates them. The only case `result` added was a `legs` list that
yields no leg, which skips `test`, and a call whose `test` is skipped
passes.
- `tools/ci/check-workflows.py` (the env config job, which runs on every
pull request) now checks that case before it can happen: the default
`legs` of `viewer-test.yml` (both triggers) and the `legs` of every job
that calls it are a JSON list written out (not a `${{ }}` expression),
non-empty, each leg with a name and either spec files or `measure:
true`. Five failure-first tests of the two pure helpers in
`tools/ci/test_check_workflows.py`, for the mistakes that would let the
call pass (a list that yields no leg, a computed list, a leg that runs
nothing, and a caller's list being read), 86 tests in all.
- `CI passed` stays: it is the required check, `full / CI passed`
(`.github/rulesets/main-protection.json`, `arm.sh`'s "no full / CI
passed on this head yet"). It already needs the reusable `viewer` job
directly, so nothing changes there. Nothing else reads the name `legs
passed`: not `arm.sh`, `watch.py`, the rulesets, Deploy viewer or its
`wait-for-check`, nor the release preflight (`git grep` and the scripts
under `.claude/`).

## Numbers

`legs passed`, queue wait (created to started) in the last 20 full
`ci-pr.yml` runs that ran it: median 26 s, p90 163 s, max 277 s; it ran
3 s. `CI passed` in the last 56 runs: median 26 s, p90 181 s, max 1,317
s. So the removed job saved a median of about 30 s and about 2.8 minutes
at the 90th percentile of a landing run's chain, not the 4.6 minutes of
#1481's run, which was above that percentile. A job that takes a runner
also counts against the 40 concurrent jobs while it runs, about 3 s. The
gain depends on the pool: a roll-up job is created when its legs finish,
and the median wait for it is already short (26 s), so with the pool
less loaded than in the last 200 minutes the gain tends toward that
median of about 30 s, and only a saturated pool gives the minutes.

## Left alone

`CI passed` still waits behind everything for a runner of its own; it
cannot be removed, since the ruleset requires its name. A caller that
computes `legs` is now refused by the check instead of guarded at run
time; none does.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes. N/A: CI-only change; no local
compute on this lane.
- [ ] Verified end to end on real Revit files. N/A: no Rust or reader
change.
- [ ] If this touches the IFC exporter. N/A.
- [ ] If this is a performance change. N/A (a CI change; the numbers
above are from the last runs on `main`'s workflow).

The workflow and `check-workflows.py` are those of `9018d984`; after it
the test file was cut to the five new tests and `main` merged in, and 86
tests pass on the head that lands:

- `actionlint` exits 0. `python3 tools/ci/check-workflows.py`: 0 errors,
0 warnings, and the new line `viewer test legs: 4 lists` (the two
defaults, Deploy viewer's two calls). `python3
tools/ci/test_check_workflows.py`: 86 tests.
- The full CI of this pull request, once it is ready, runs the viewer
tests (`.github/` changed, so `viewer-paths` runs them): the run has the
`build the WASM` job and the three `browser tests` legs, no `legs
passed`, and `full / CI passed` succeeds on the `viewer` job's result.
Not yet measured on this head.
- Not exercised: a failing leg through a call with no roll-up job (a leg
that fails fails the call, which Deploy viewer already relies on), and
Deploy viewer's run (it calls the same workflow; it runs on a push to
`main` that touches the viewer, and can be dispatched on this branch,
not done to spare the runners).

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR (the
workflow's header and `check-workflows.py`'s docstring)
- [ ] A user-visible change has its entry as a fragment under
`changelog.d/<section>/`. N/A: CI only, as agreed for #1457.
- [ ] If a limitation was resolved, the "Known limitations" section is
updated. N/A.
- [x] If a new limitation was introduced, it is documented in the PR
body (Left alone)
- [x] Commit messages describe WHAT changed and WHY
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [ ] Reverse-engineering finding. N/A.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content
- [x] Any new test fixtures use synthetic values

## Breaking changes

None.

## Screenshots or output samples

See Testing.

## Related issues

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

Labels

None yet

Projects

None yet

1 participant