Skip to content

red: B46 native phases on Revit 2025 (scratch, do not merge) - #675

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b46-native-phases
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b46-native-phases

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Red run for B46's test; the implementation lands in a rebuilt PR.


Note

Low Risk
Test and CI manifest changes only; no runtime or extraction logic is modified in this diff.

Overview
Adds a real-file integration test (native_phases) for B46 (#328): on Revit 2025 RE1 models it runs native_document::extract, collects ProjectPhase element ids, and for FamilyInstance elements that appear in Revit’s IFC export (by Tag) asserts m_createdPhaseId references one of those phases and m_demolishedPhaseId is -1 (nothing demolished in these fixtures).

The test uses RVT_PROJECT_CORPUS_DIR (RE1-*.rvt + matching RE1-*.ifc), skips missing pairs, and fails if no model was checked when corpus files exist. tools/ci/test-targets.txt registers real native_phases so CI/local gates run it with the other corpus tests.

Per the PR note, this is intended as a red run ahead of the extraction implementation in a follow-up PR.

Reviewed by Cursor Bugbot for commit 499e888. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red draft for B46; its run (37228615540) is recorded in the rebuilt PR's test commit.

@DrunkOnJava DrunkOnJava closed this Oct 4, 2026
DrunkOnJava added a commit that referenced this pull request Oct 4, 2026
…328) (#676)

native_document::extract admitted only 2023, 2024 and 2027 (framing
unvalidated elsewhere). With the gate opened on re/b46-native-2025,
every framing, record-count and body-size check holds on all nine 2025
files (RE1 x4, Autodesk's five samples) and all five 2026 samples
(Measure runs 37226017160, 37227895778), and each element body carries
m_createdPhaseId and m_demolishedPhaseId. The gate now admits 2023 to
2027.

Red on draft #675 (run 37228615540); the output is in the test commit.

B38 follows from it: RE1 Plumbing's tank 442378, which Revit's export
leaves out, was created in New Construction (3), is demolished in no
phase and is in the main model, so phase is not why it is left out.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes which Revit file versions are accepted on the native
framing/extraction path; incorrect assumptions could affect record
parsing for 2025/2026 files, though the change is paired with corpus
validation.
> 
> **Overview**
> **Extends the native record extraction path to Revit 2025 and 2026**
by widening the version guard in `native_document::extract_records` from
an explicit `2023 | 2024 | 2027` list to **`2023..=2027`**, with a
matching doc note in `native_index` for the five-field ElemTable
contract.
> 
> Adds a **corpus-backed integration test** (`tests/native_phases.rs`)
that runs `native_document::extract` on RE1 2025 models when
`RVT_PROJECT_CORPUS_DIR` is set, and asserts exported `FamilyInstance`
elements expose **`m_createdPhaseId`** / **`m_demolishedPhaseId`** in
projected metadata (created phase must exist in the file’s
`ProjectPhase` set; demolished must be `-1`). Registers
**`native_phases`** in `tools/ci/test-targets.txt` so CI runs it with
other real-file targets.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
91fefee. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@DrunkOnJava
DrunkOnJava deleted the red/b46-native-phases branch October 18, 2026 09:37
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