Repository navigation
research: third IFC witness (IFClite) and the full-project export edge - #205
Conversation
Adds a third independent reading witness to the RVT -> IFC edge so the Core Interior verdict spans three implementation lineages (OctetProof 1.0.0 section 9.3), and promotes the full-project export from a bare registry artifact to a manifested, gated edge. The witness is IFClite: crates.io `ifc-lite-core` 7.1.1 (published 2026-08-27) from LTplus-AG/ifc-lite, MPL-2.0 in both the crate metadata and the repository LICENSE, verified 2026-08-30 against crates.io and the GitHub API. The registry previously recorded MIT against a bare `ifc-lite` slug and spec section 19 note 4 marked the license unverifiable; both are corrected, and the note records the resolution. Independence is real: the crate carries its own byte-level STEP scanner and nom tokenizer and links no IfcOpenShell code — it only validates its geometry kernel against IfcOpenShell, which is a comparison, not a lineage. tools/ci/witness-ifc-lite mirrors witness-ifcopenshell.py exactly: verify the input hash against the manifest, count every `source_ifc_type` by exact STEP keyword, keep its own drift check, and emit a section 6.2 observation hashed over the canonical payload. Its payload on the element fixture hashes byte-identically to IfcOpenShell's. The crate is its own workspace root so the MPL dependency never enters an Apache-2.0 artifact; it needs Rust 1.87 rather than the workspace MSRV 1.85 because ifc-lite-core calls usize::is_multiple_of, which is harmless precisely because it is out-of-workspace. A new test fails the build if the Cargo pin, the binary's WITNESS_VERSION and the registry version drift apart (section 9.6). The full export IFC Exports/2024_Core_Interior_slim.ifc (bfdf36ff..., 19879 entities, Autodesk Revit 24.0.20.20 via ODA SDAI 23.12) now has a count manifest, committed observations and a PASS verdict. All three readers agree exactly on all thirteen types: 360 IFCWALL, 132 IFCDOOR, 256 IFCCOLUMN, 116 IFCSPACE, 80 IFCSLAB, 15 IFCBUILDINGSTOREY, 10 IFCMATERIAL, 6 IFCWINDOW, 1 IFCUNITASSIGNMENT, 0 elsewhere. rvt-rs recovers 0/0/0/18/64/12, so nine categories are known_gap or decoder_baseline against #30, #31, #32, #33, #34, #35 and the new #204 for columns, which had no tracking issue. The claimed surface is four fields wide; the excluded list is the deliverable. No capability status changed; docs/support-matrix.json untouched.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_2a4e22fd-ca4b-4ec3-b7a6-d629ed280ce8) |
|
Local full-suite note, so it is on the record rather than in a scratchpad.
Filed as #206. The reason it was invisible: no CI job runs Everything this PR does own is green, including |
#205) Adds a **third independent reading witness** to the RVT → IFC edge so the Core Interior verdict spans three implementation lineages (OctetProof 1.0.0 §9.3), and promotes the **full-project export** from a bare registry artifact to a manifested, gated edge. ## The witness: IFClite (`ifc-lite-core`) Picked by evidence, not by the registry's stale note. What was verified on 2026-08-30: | | | |---|---| | Crate | `ifc-lite-core` **7.1.1**, published 2026-08-27 (crates.io API) | | Upstream | `https://github.com/LTplus-AG/ifc-lite` (the crate's own `repository` field) | | License | **MPL-2.0** — in the crate metadata *and* the GitHub API's license object for that repo | | Language | Rust, `edition = "2021"`, pure-Rust deps (nom, memchr, smallvec, lexical-core, …) | | Independence | own byte-level STEP scanner (`src/parser/scanner.rs`) + own nom tokenizer; links no IfcOpenShell code. The project *verifies its geometry kernel against* IfcOpenShell — a comparison, not a lineage, the same distinction that makes FreeCAD-BIM one witness with IfcOpenShell | | Runtime | cold `cargo build --release` of the whole dep tree: **8 s** locally; the gate itself runs in milliseconds | The registry previously carried this witness as `license: MIT` against a bare `ifc-lite` slug, and OctetProof 1.0.0 §19 note 4 marked the license unverifiable and the witness gate-ineligible. Both are corrected here: the registry names the exact upstream and the exact pinned version, and §19 note 4 records the resolution (`zahmadsaleem/ifc-lite-headless`, the other candidate, is a different project and is not what is adopted). Rejected alternatives: **web-ifc** (MPL-2.0, real, but C++/WASM driven from Node — a heavier CI surface for the same answer, and it would have added a Node toolchain to a Rust+Python job); **STEPcode** (syntax-level only, NOASSERTION on GitHub); **Ifc++** (MIT but a C++ build from source, minutes not seconds); **`ifc_rs`** (MIT, but last published 2024-12 at `0.1.0-alpha.9`). `ifc-lite` as a bare crate name **does not exist on crates.io** — only `ifc-lite-core` does, which is why the old entry could not be verified. ### How it is wired `tools/ci/witness-ifc-lite` is a ~250-line binary that mirrors `tools/ci/witness-ifcopenshell.py` exactly: verify the input against `source.reference_ifc_sha256`, count every manifest `source_ifc_type` by exact STEP keyword (no subtypes — the same semantics as `by_type(include_subtypes=False)`), keep its own manifest-drift check (`exit 1`), and write a §6.2 observation with `input_role: "bridge"` hashed over the canonical payload. It is **its own workspace root**, not a member of the `rvt` workspace, so the MPL dependency is never linked into an Apache-2.0 artifact — the registry's own rule for third-party witnesses. Consequences that are deliberate, not oversights: - `cargo build` / `cargo clippy --all-targets` at the repo root never see it. It is fmt- and clippy-clean on its own (`-D warnings`). - It needs **Rust 1.87**, not the workspace MSRV 1.85: `ifc-lite-core` calls `usize::is_multiple_of`. That is why `rust-version` in its manifest is 1.87 with a comment. The `1.85` MSRV matrix job builds the workspace only, and the `ifcopenshell-validate` job that runs the witness uses `stable`, so nothing regresses. Verified with `cargo +1.85.0 check` on the workspace. - §9.6 version pinning is enforced mechanically: `tests/witness_registry.rs::ifc_lite_gate_is_wired_and_version_pinned` fails the build unless the `ifc-lite-core = "=X.Y.Z"` Cargo pin, the `WITNESS_VERSION` constant the binary stamps into every observation, and the registry entry's `version` all agree — and unless CI actually runs the gate into the verdict's observation directory. A committed `Cargo.lock` plus `--locked` pins the transitive deps too. **Strongest single piece of evidence:** IFClite's canonical observation payload on the element fixture hashes to `8cf4046509bb788406e93261f0dcb10708fbf33ae195d12f8ddc99b41a93398f` — *byte-identical* to IfcOpenShell's. Two unrelated readers, different languages, different licenses, same twelve counts, same canonicalization. ## Verdict: three lineages ``` magnetar-2024-core-interior: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs surface: 8 fields, excluded: 4, diffs: 0 replay ifc-lite: match replay ifcopenshell: match replay rvt-rs: match ``` ```json "independence": { "commercial_dropped": [], "lineages": ["ifc-lite", "ifcopenshell", "rvt-rs"], "roles": ["bridge", "source"], "satisfied": true, "strong_copyleft": [] } ``` Surface: `IFCWALL`, `IFCROOF`, `IFCDOOR`, `IFCWINDOW`, `IFCCOLUMN`, `IFCBEAM`, `IFCFLOWTERMINAL`, `IFCUNITASSIGNMENT`. Excluded first-class: `IFCSHADINGDEVICE` (#31), `IFCSPACE` (#33), `IFCMATERIAL` (#34), `IFCPROPERTYSET` (#35). ## Second edge: the full-project export `IFC Exports/2024_Core_Interior_slim.ifc` (`bfdf36ff…`, 1665968 bytes, IFC4, `Autodesk Revit 24.0.20.20 (ENU)` via `ODA SDAI 23.12`, ViewDefinition ReferenceView_V1.2, 19879 entities) was an artifact with no manifest. It now has `tests/fixtures/project-counts/2024-core-interior-slim.json`, committed observations, and a `PASS` verdict. Because it lives beside the `Revit/` tree in the dataset, `reference_ifc_file` is `../IFC Exports/2024_Core_Interior_slim.ifc`, resolved relative to `RVT_PROJECT_CORPUS_DIR`. `fetch-corpus` checks out the whole LFS repo, so every job that already sets that variable has the file — no CI fetch change was needed. **Measured** (IfcOpenShell 0.8.5 `by_type(include_subtypes=False)`, independently reproduced by IFClite 7.1.1 and by the STEP-constructor substring count `tests/project_count_fixtures.rs` uses — all three agree exactly on all thirteen types): | category | IFC type | export | rvt-rs | status | |---|---|---:|---:|---| | levels | `IFCBUILDINGSTOREY` | 15 | 12 | `decoder_baseline` #33 | | walls | `IFCWALL` | 360 | 0 | `known_gap` #30 | | floors | `IFCSLAB` | 80 | 64 | `known_gap` #31 | | roofs | `IFCROOF` | 0 | 0 | **known** | | doors | `IFCDOOR` | 132 | 0 | `known_gap` #32 | | windows | `IFCWINDOW` | 6 | 0 | `known_gap` #32 | | rooms/spaces | `IFCSPACE` | 116 | 18 | `known_gap` #33 | | columns | `IFCCOLUMN` | 256 | 0 | `known_gap` **#204 (filed)** | | beams | `IFCBEAM` | 0 | 0 | **known** | | mep | `IFCFLOWTERMINAL` | 0 | 0 | **known** | | materials | `IFCMATERIAL` | 10 | 102 | `known_gap` #34 | | units | `IFCUNITASSIGNMENT` | 1 | 1 | **known** | | property sets | `IFCPROPERTYSET` | 0 | 64 | `known_gap` #35 | ``` magnetar-2024-core-interior-slim: PASS — witnesses ifc-lite, ifcopenshell, rvt-rs surface: 4 fields, excluded: 9, diffs: 0 replay ifc-lite: match replay ifcopenshell: match replay rvt-rs: match ``` The four-field surface is the honest one. Nothing is marked `known` that is not measured *and* agreed; every gap carries a tracking issue. The excluded list is the deliverable — it is the measured distance between this decoder and Revit's own exporter on a real project, recorded rather than rounded off. The registry edge moves `recorded-ungated` → `recorded`. **Columns had no tracking issue** — every other category maps onto an M4 umbrella issue, so #204 was filed rather than reusing an unrelated one or leaving the number blank. ## Gate - `cargo fmt --all -- --check`, `cargo clippy --all-targets -- -D warnings` — clean (workspace and the witness crate separately) - `cargo test --test witness_registry --test witness_verdict` — 6 passed - `cargo test --release --test project_count_fixtures` with the corpus — 2 passed, both manifests exercised - `cargo test --release` full suite with `RVT_PROJECT_CORPUS_DIR` set — green - `python3 -m py_compile` on the three `tools/ci/*.py` - All six observations and both verdicts validate against `docs/schemas/witness-observation.schema.json` / `witness-verdict.schema.json` - `docs/support-matrix.json` untouched; no capability status changed ## Follow-ups worth an issue - `#83` records IFCSLAB recall as 61/80; the decoder now emits 64, so that issue's number is three stale. - `#84` records IFCSPACE recall as 50/116 from a different export path; the manifest measures 18/116 through `rvt-ifc`. The two paths should be reconciled or the difference explained. - The full export carries 20 `IFCSHADINGDEVICE` that no decoder path claims and that the manifest deliberately does not score — the element fixture maps *floors* onto that type, the full export maps floors onto `IFCSLAB`. Worth deciding what shading devices actually are before claiming either. - `rooms_spaces` and `property_sets` reuse `typed_door_window_discrimination_and_host_binding` / `real_file_element_geometry` as their `unsupported_feature` because no better-fitting diagnostic exists. The diagnostics vocabulary could use a term for name-recovered-vs-real-element gaps. - IFClite's determinism is attested from one OS and one architecture; §9.5 wants two of each. https://claude.ai/code/session_01BaHKf1Rw5aJBGK5y3xmx7C <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Changes are mostly CI gates, research artifacts, and an isolated witness crate; decoder behavior and support-matrix capability claims are unchanged. > > **Overview** > Adds **IFClite** as a third independent IFC reading witness and extends OctetProof CI so Core Interior agreements require **three implementation lineages** (`rvt-rs`, IfcOpenShell, IFClite) instead of two. > > The new `tools/ci/witness-ifc-lite` binary mirrors the Python bridge witness: it verifies the reference IFC hash, counts manifest `source_ifc_type` values with its own STEP scanner (`ifc-lite-core` **=7.1.1**, MPL-2.0), and emits §6.2 observations. It runs as a **separate workspace** with `cargo run --locked` so MPL code never links into the Apache-2.0 tree; `tests/witness_registry.rs` enforces pin/registry/`WITNESS_VERSION` alignment. > > **Second gated RVT → IFC edge:** `2024_Core_Interior_slim.ifc` gets `tests/fixtures/project-counts/2024-core-interior-slim.json`, committed observations under `research/witness/magnetar-2024-core-interior-slim/`, and a `PASS` verdict with a **narrow four-field claimed surface** (nine categories excluded as `known_gap` / `decoder_baseline`). The registry promotes `core-interior-slim` from `recorded-ungated` to `recorded` and corrects **ifc-lite** to adopted **MPL-2.0** / `LTplus-AG/ifc-lite`. > > CI in `ifcopenshell-validate` adds the IFClite cross-witness step, updates the element-fixture verdict to three witnesses, runs a full parallel slim verdict pipeline, and publishes both `/tmp/witness/` and `/tmp/witness-slim/` artifacts. Docs (`verification-protocol`, `status`, `octetproof-spec` §19) reflect two recorded edges and the resolved ifc-lite license. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f7d10b641e60e0d701d2305feb30e9ffc179d7f3. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
Adds a third independent reading witness to the RVT → IFC edge so the Core Interior verdict spans three implementation lineages (OctetProof 1.0.0 §9.3), and promotes the full-project export from a bare registry artifact to a manifested, gated edge.
The witness: IFClite (
ifc-lite-core)Picked by evidence, not by the registry's stale note. What was verified on 2026-08-30:
ifc-lite-core7.1.1, published 2026-08-27 (crates.io API)https://github.com/LTplus-AG/ifc-lite(the crate's ownrepositoryfield)edition = "2021", pure-Rust deps (nom, memchr, smallvec, lexical-core, …)src/parser/scanner.rs) + own nom tokenizer; links no IfcOpenShell code. The project verifies its geometry kernel against IfcOpenShell — a comparison, not a lineage, the same distinction that makes FreeCAD-BIM one witness with IfcOpenShellcargo build --releaseof the whole dep tree: 8 s locally; the gate itself runs in millisecondsThe registry previously carried this witness as
license: MITagainst a bareifc-liteslug, and OctetProof 1.0.0 §19 note 4 marked the license unverifiable and the witness gate-ineligible. Both are corrected here: the registry names the exact upstream and the exact pinned version, and §19 note 4 records the resolution (zahmadsaleem/ifc-lite-headless, the other candidate, is a different project and is not what is adopted).Rejected alternatives: web-ifc (MPL-2.0, real, but C++/WASM driven from Node — a heavier CI surface for the same answer, and it would have added a Node toolchain to a Rust+Python job); STEPcode (syntax-level only, NOASSERTION on GitHub); Ifc++ (MIT but a C++ build from source, minutes not seconds);
ifc_rs(MIT, but last published 2024-12 at0.1.0-alpha.9).ifc-liteas a bare crate name does not exist on crates.io — onlyifc-lite-coredoes, which is why the old entry could not be verified.How it is wired
tools/ci/witness-ifc-liteis a ~250-line binary that mirrorstools/ci/witness-ifcopenshell.pyexactly: verify the input againstsource.reference_ifc_sha256, count every manifestsource_ifc_typeby exact STEP keyword (no subtypes — the same semantics asby_type(include_subtypes=False)), keep its own manifest-drift check (exit 1), and write a §6.2 observation withinput_role: "bridge"hashed over the canonical payload.It is its own workspace root, not a member of the
rvtworkspace, so the MPL dependency is never linked into an Apache-2.0 artifact — the registry's own rule for third-party witnesses. Consequences that are deliberate, not oversights:cargo build/cargo clippy --all-targetsat the repo root never see it. It is fmt- and clippy-clean on its own (-D warnings).ifc-lite-corecallsusize::is_multiple_of. That is whyrust-versionin its manifest is 1.87 with a comment. The1.85MSRV matrix job builds the workspace only, and theifcopenshell-validatejob that runs the witness usesstable, so nothing regresses. Verified withcargo +1.85.0 checkon the workspace.tests/witness_registry.rs::ifc_lite_gate_is_wired_and_version_pinnedfails the build unless theifc-lite-core = "=X.Y.Z"Cargo pin, theWITNESS_VERSIONconstant the binary stamps into every observation, and the registry entry'sversionall agree — and unless CI actually runs the gate into the verdict's observation directory. A committedCargo.lockplus--lockedpins the transitive deps too.Strongest single piece of evidence: IFClite's canonical observation payload on the element fixture hashes to
8cf4046509bb788406e93261f0dcb10708fbf33ae195d12f8ddc99b41a93398f— byte-identical to IfcOpenShell's. Two unrelated readers, different languages, different licenses, same twelve counts, same canonicalization.Verdict: three lineages
Surface:
IFCWALL,IFCROOF,IFCDOOR,IFCWINDOW,IFCCOLUMN,IFCBEAM,IFCFLOWTERMINAL,IFCUNITASSIGNMENT. Excluded first-class:IFCSHADINGDEVICE(#31),IFCSPACE(#33),IFCMATERIAL(#34),IFCPROPERTYSET(#35).Second edge: the full-project export
IFC Exports/2024_Core_Interior_slim.ifc(bfdf36ff…, 1665968 bytes, IFC4,Autodesk Revit 24.0.20.20 (ENU)viaODA SDAI 23.12, ViewDefinition ReferenceView_V1.2, 19879 entities) was an artifact with no manifest. It now hastests/fixtures/project-counts/2024-core-interior-slim.json, committed observations, and aPASSverdict.Because it lives beside the
Revit/tree in the dataset,reference_ifc_fileis../IFC Exports/2024_Core_Interior_slim.ifc, resolved relative toRVT_PROJECT_CORPUS_DIR.fetch-corpuschecks out the whole LFS repo, so every job that already sets that variable has the file — no CI fetch change was needed.Measured (IfcOpenShell 0.8.5
by_type(include_subtypes=False), independently reproduced by IFClite 7.1.1 and by the STEP-constructor substring counttests/project_count_fixtures.rsuses — all three agree exactly on all thirteen types):IFCBUILDINGSTOREYdecoder_baseline#33IFCWALLknown_gap#30IFCSLABknown_gap#31IFCROOFIFCDOORknown_gap#32IFCWINDOWknown_gap#32IFCSPACEknown_gap#33IFCCOLUMNknown_gap#204 (filed)IFCBEAMIFCFLOWTERMINALIFCMATERIALknown_gap#34IFCUNITASSIGNMENTIFCPROPERTYSETknown_gap#35The four-field surface is the honest one. Nothing is marked
knownthat is not measured and agreed; every gap carries a tracking issue. The excluded list is the deliverable — it is the measured distance between this decoder and Revit's own exporter on a real project, recorded rather than rounded off. The registry edge movesrecorded-ungated→recorded.Columns had no tracking issue — every other category maps onto an M4 umbrella issue, so #204 was filed rather than reusing an unrelated one or leaving the number blank.
Gate
cargo fmt --all -- --check,cargo clippy --all-targets -- -D warnings— clean (workspace and the witness crate separately)cargo test --test witness_registry --test witness_verdict— 6 passedcargo test --release --test project_count_fixtureswith the corpus — 2 passed, both manifests exercisedcargo test --releasefull suite withRVT_PROJECT_CORPUS_DIRset — greenpython3 -m py_compileon the threetools/ci/*.pydocs/schemas/witness-observation.schema.json/witness-verdict.schema.jsondocs/support-matrix.jsonuntouched; no capability status changedFollow-ups worth an issue
#83records IFCSLAB recall as 61/80; the decoder now emits 64, so that issue's number is three stale.#84records IFCSPACE recall as 50/116 from a different export path; the manifest measures 18/116 throughrvt-ifc. The two paths should be reconciled or the difference explained.IFCSHADINGDEVICEthat no decoder path claims and that the manifest deliberately does not score — the element fixture maps floors onto that type, the full export maps floors ontoIFCSLAB. Worth deciding what shading devices actually are before claiming either.rooms_spacesandproperty_setsreusetyped_door_window_discrimination_and_host_binding/real_file_element_geometryas theirunsupported_featurebecause no better-fitting diagnostic exists. The diagnostics vocabulary could use a term for name-recovered-vs-real-element gaps.https://claude.ai/code/session_01BaHKf1Rw5aJBGK5y3xmx7C
Note
Low Risk
Changes are mostly CI gates, research artifacts, and an isolated witness crate; decoder behavior and support-matrix capability claims are unchanged.
Overview
Adds IFClite as a third independent IFC reading witness and extends OctetProof CI so Core Interior agreements require three implementation lineages (
rvt-rs, IfcOpenShell, IFClite) instead of two.The new
tools/ci/witness-ifc-litebinary mirrors the Python bridge witness: it verifies the reference IFC hash, counts manifestsource_ifc_typevalues with its own STEP scanner (ifc-lite-core=7.1.1, MPL-2.0), and emits §6.2 observations. It runs as a separate workspace withcargo run --lockedso MPL code never links into the Apache-2.0 tree;tests/witness_registry.rsenforces pin/registry/WITNESS_VERSIONalignment.Second gated RVT → IFC edge:
2024_Core_Interior_slim.ifcgetstests/fixtures/project-counts/2024-core-interior-slim.json, committed observations underresearch/witness/magnetar-2024-core-interior-slim/, and aPASSverdict with a narrow four-field claimed surface (nine categories excluded asknown_gap/decoder_baseline). The registry promotescore-interior-slimfromrecorded-ungatedtorecordedand corrects ifc-lite to adopted MPL-2.0 /LTplus-AG/ifc-lite.CI in
ifcopenshell-validateadds the IFClite cross-witness step, updates the element-fixture verdict to three witnesses, runs a full parallel slim verdict pipeline, and publishes both/tmp/witness/and/tmp/witness-slim/artifacts. Docs (verification-protocol,status,octetproof-spec§19) reflect two recorded edges and the resolved ifc-lite license.Reviewed by Cursor Bugbot for commit 05605c2. Configure here.