Repository navigation
Lane Six: wall/floor geometry recovery (curves, loops, hosts, elevations) - #129
Conversation
Curate Apache-2.0 synthetic fixtures under corpus/tier1/ with license and known-count sidecars for levels/walls/floors/doors/windows, extend project_count_fixtures for fixture_metric inventories, and wire corpus-tier1 (always-on) plus corpus-tier2 (external magnetar) CI jobs. Co-authored-by: DrunkOnJava <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
…e link Add a version-gated (Revit 2023/2024) filtered-tag scanner that emits neutral PartitionRecordCandidate records, expresses the existing ArcWall path, and joins recovered ElementIds to Global/ElemTable offsets (M3-03 / M3-04). Includes JSON probe example and tier1/corpus tests. Co-authored-by: DrunkOnJava <[email protected]>
Satisfy clippy::collapsible_if under -D warnings. Co-authored-by: DrunkOnJava <[email protected]>
Harden Level/Wall/Floor/Door/Window/Room/Material wrong-schema rejection and empty-input behavior; add ArcWall typed partition decoder with class/tag rejection; expose decoder_for_class/decode_typed; add tier1 corpus tests that exercise fixture payloads without inventing geometry. Co-authored-by: DrunkOnJava <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
Add fail-closed recovery APIs for wall location curves (schema endpoints + ArcWall partition), floor boundary loops, door/window host relationships, and level elevations. Extend Wall typed view with location curve fields. Tier1 tests assert honest empty/partial recovery on scaffold fixtures. Co-authored-by: DrunkOnJava <[email protected]>
Primitives live in src/geometry/mod.rs; recovery in recovery.rs. Co-authored-by: DrunkOnJava <[email protected]>
Also fix match exhaustiveness and type annotation for clippy/rustc. Co-authored-by: DrunkOnJava <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
Bugbot Autofix prepared fixes for both issues found in the latest run.
- ✅ Fixed: Scanner loop reads past buffer
- Changed the inclusive scan upper bound from
buf.len() - 3tobuf.len() - 4so filter_pad reads atoffset + 3never index past the buffer end.
- Changed the inclusive scan upper bound from
- ✅ Fixed: Typed wall skips degeneracy gate
- Added the same plan-view zero-length rejection used by
endpoints_from_fieldsbefore the typed-wall path returnsRecovered, so collapsed endpoints fall through instead of emitting a degenerate line.
- Added the same plan-view zero-length rejection used by
Or push these changes by commenting:
@cursor push 1b5ca803d4
Preview (1b5ca803d4)
diff --git a/src/geometry/recovery.rs b/src/geometry/recovery.rs
--- a/src/geometry/recovery.rs
+++ b/src/geometry/recovery.rs
@@ -171,11 +171,14 @@
decoded: &DecodedElement,
) -> RecoveryOutcome<WallLocationCurve> {
if let (Some(start), Some(end)) = (wall.location_start, wall.location_end) {
- return RecoveryOutcome::Recovered(WallLocationCurve {
- curve: Curve::Line { start, end },
- source: WallLocationSource::SchemaEndpoints,
- location_curve_id: wall.location_curve_id,
- });
+ // Degenerate zero-length lines are not a recovered location curve.
+ if (end.x - start.x).abs() >= f64::EPSILON || (end.y - start.y).abs() >= f64::EPSILON {
+ return RecoveryOutcome::Recovered(WallLocationCurve {
+ curve: Curve::Line { start, end },
+ source: WallLocationSource::SchemaEndpoints,
+ location_curve_id: wall.location_curve_id,
+ });
+ }
}
let mut outcome = recover_wall_location_curve(decoded);
if let RecoveryOutcome::Recovered(ref mut loc) = outcome {
diff --git a/src/partition_scanner.rs b/src/partition_scanner.rs
--- a/src/partition_scanner.rs
+++ b/src/partition_scanner.rs
@@ -231,7 +231,7 @@
}
let mut out = Vec::new();
- let last = buf.len().saturating_sub(3);
+ let last = buf.len().saturating_sub(4);
for offset in 0..=last {
let tag = u16::from_le_bytes([buf[offset], buf[offset + 1]]);
if !tags.contains(&tag) {You can send follow-ups to the cloud agent here.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4dcb7c0. Configure here.
| continue; | ||
| } | ||
| // RE-14.2 record-prefix filter: bytes at +2/+3 must be zero. | ||
| if buf[offset + 2] != 0 || buf[offset + 3] != 0 { |
There was a problem hiding this comment.
Scanner loop reads past buffer
High Severity
scan_partition_buffer sets last to buf.len() - 3 and iterates inclusively, so the final offset can index buf[offset + 3] one past the end. When those last two bytes match an allowed class tag, the filter-pad read panics instead of finishing the scan.
Reviewed by Cursor Bugbot for commit 4dcb7c0. Configure here.
| curve: Curve::Line { start, end }, | ||
| source: WallLocationSource::SchemaEndpoints, | ||
| location_curve_id: wall.location_curve_id, | ||
| }); |
There was a problem hiding this comment.
Typed wall skips degeneracy gate
Medium Severity
recover_wall_location_curve_from_wall returns Recovered as soon as both typed endpoints exist. It never applies the zero-length rejection used by endpoints_from_fields, so a collapsed start/end pair is emitted as a location curve.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4dcb7c0. Configure here.
Co-authored-by: DrunkOnJava <[email protected]>
## Summary Implements Lane Seven (IFC quality) on top of Lane Six geometry recovery: `scaffold` / `typed-no-geometry` / `geometry` / `strict` now shape *emission* as well as post-export validation gates, HostObjAttr proxies stay out of production export, and diagnostics sidecars remain schema-shaped. Depends on Lane Six (`geometry/wall-floor`, PR #129) which includes typed decoders (#127). Aligns with Lane Nine (#128) forward-compatible mode names that fail closed for stronger modes. ## Motivation Quality modes previously acted mainly as validation gates on a single default export. Lane 7 makes mode content real where data allows: typed-only inventory without geometry claims, geometry attachment via Lane Six recovery when present, and strict fail-closed behavior without misleading proxies. Refs M5-01 / M5-02 / M5-04 (TODO.md). Downstream: Lane 8 viewer confidence UI. ## Changes - `src/ifc/export_content.rs` — content policy per quality mode; HostObjAttr/HostObject/Element/Symbol filter; Level → storey via elevation recovery; Wall curve / Floor boundary / Door·Window host attachment; geometry strip helper - `RvtDocExporter::export_with_diagnostics_mode_and_limits` — mode-aware emission - `rvt-ifc --mode` + Python `write_ifc(mode=...)` pass mode into export content - Default/scaffold never emits `HostObjAttr-*` proxies (diagnostic exporter unchanged) - Diagnostics sidecar unchanged schema (`docs/schemas/export-diagnostics.schema.json`); docs note content policy - `tests/ifc_export_modes.rs` — always-on tier1 coverage for all four modes + CLI ### Mode semantics | Mode | Emission | Gate | |------|----------|------| | `scaffold` | Framework + production elements; geometry when recovered; no HostObjAttr proxies | Always accepts valid envelope | | `typed-no-geometry` | Mapped/typed only; geometry fields stripped | Requires typed elements | | `geometry` | Mapped/typed; Lane Six curves/loops/hosts/elevations when present | Requires typed + geometry | | `strict` | Same as geometry | Typed + geometry + metadata/units/storeys + no warnings/unsupported | On synthetic / tier1 fixtures only `scaffold` succeeds — honest scaffold-only, no invented geometry. ## Testing - [x] `cargo test --release --lib ifc::export_content` — 6 passed - [x] `cargo test --release --lib ifc::` — 325 passed - [x] `cargo test --release --test ifc_export_modes` — 8 passed - [x] `cargo test --release --test ifc_synthetic_* --test rvt_ifc_diagnostics_cli --test walker_to_ifc_integration` — passed (corpus tests skip without samples) - [x] `cargo fmt --check` - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo clippy -p rvt-py --all-targets -- -D warnings` - [x] Smoke: `gen-fixture` + `rvt-ifc --mode scaffold|typed-no-geometry|geometry|strict` — HostObjAttr absent; stronger modes fail closed with diagnostics ## Audit-honesty checklist - [x] Tier1/synthetic remain scaffold-only; no invented wall/floor geometry - [x] HostObjAttr proxies absent from default/scaffold; diagnostic path retained - [x] Mode docs do not claim geometry/strict success on scaffold fixtures - [x] No Autodesk samples committed - [x] Commit messages describe what/why ## Legal and contribution hygiene - [x] Apache-2.0 licensable - [x] No Autodesk proprietary / decompiled content - [x] Fixtures remain synthetic (`gen-fixture` / corpus/tier1) ## Breaking changes None for callers of `RvtDocExporter::export` (still scaffold content). New `export_with_*_mode_*` APIs are additive. CLI/Python `--mode` / `mode=` now also shapes content (typed-no-geometry strips geometry). ## Related issues Refs #37 (M5-01), #38-class HostObjAttr (M5-02), #40 (M5-04). Depends on #129 (Lane Six). Aligns with #128 (Lane Nine mode names). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > IFC export behavior changes for non-scaffold modes and production element filtering; broader surface area (partition scanner version gates, committed binaries) but synthetic corpus and fail-closed validation limit blast radius. > > **Overview** > Adds a **two-tier test corpus** (in-repo Apache-2.0 synthetic `corpus/tier1/` plus optional CI-cloned magnetar tier 2), CI jobs `corpus-tier1` / `corpus-tier2`, SHA256 license checks, and known-count manifests—while allowing committed `.rvt` files under `corpus/` via `.gitignore` exceptions. > > Introduces **partition scanning** (`partition_scanner`), a typed **ArcWall** partition decoder, ElemTable linkage helpers, and a `partition_scanner_json` example for JSON diagnostics. > > Adds **Lane Six geometry recovery** (`geometry/recovery`) with fail-closed wall curves, floor boundaries, opening hosts, and level elevations; extends typed **Wall** / **Level** projection for `gen-fixture` fields (`m_height`, location endpoints) and centralizes MVP typed decode via `decode_typed` / `decoder_for_class`. > > Implements **Lane Seven IFC content policy** in `export_content`: `--mode` / Python `mode=` now drives emission (not just validation)—`typed-no-geometry` strips geometry, `geometry`/`strict` attach recovery when present, production export drops **HostObjAttr** proxies, and Levels become storeys from recovered elevations. `RvtDocExporter::export_with_diagnostics_mode_and_limits` wires CLI/Python through to export. > > New integration tests cover tier1 corpus health, geometry honesty on synthetics, and all four IFC export modes (including CLI strict fail-closed on tier1). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6eac930. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
Bumps the nightly cargo-fuzz job from 180 s (3 min) to 300 s (5 min) per target, matching the SEC-24 minimum in the security task board. Total budget: 9 targets × 300 s = 45 minutes per run, still well under the public-repo unlimited-minutes ceiling. The existing artifact-upload-on-failure flow already captures crash corpora as GitHub Actions artifacts (30-day retention), so "commit crash corpora" happens automatically when a crash is discovered — maintainers download the artifact, unzip into fuzz/corpus/, and commit. Closes SEC-24 (#129).
…ons) (#129) ## Summary Implements Lane Six (geometry recovery) on top of Lane Five typed decoders: fail-closed APIs for wall location curves, floor boundary loops, door/window host relationships, and level elevations. Depends on Lane Five (`elements/typed-decoders`, PR #127) — this branch includes that work (plus Lane Four scanner / Lane Three corpus). ## Motivation Lane 7 (IFC export modes) needs structured geometry inputs from typed Wall/Floor/Door/Window/Level views. Synthetic tier1 fixtures remain scaffold-oriented; recovery must be honest (`None` + diagnostics) rather than inventing coordinates. Refs #30 (M4-02), #31 (M4-03), #32 (M4-04), #33 (M4-05). ## Changes - `src/geometry/` — split primitives into `mod.rs`; add `recovery.rs` Lane Six surface - `RecoveryOutcome<T>` / `GeometryDiagnostic` — recovered vs absent with stable codes - Wall location curves: schema start/end floats, unresolved curve-handle diagnostic, ArcWall partition centerline - Floor boundary loops: sketch/boundary vector → plan polyline (area/degenerate gates) - Door/Window hosts: typed `host_id` (reject missing / `0`) - Level elevations: typed `elevation_feet` / gen-fixture `m_height` - `Wall` typed view: `location_curve_id`, `location_start`, `location_end` - `tests/geometry_recovery.rs` — tier1 honesty (no invented curves/loops/hosts; Level elevations recover) ### Recovery honesty | Path | Synthetic tier1 | When data is present | |------|-----------------|----------------------| | Wall location curve | `Absent` (`wall_location_curve_missing`) | Schema endpoints or ArcWall start/end | | Floor boundary | `Absent` (`floor_boundary_missing`) | Sketch/boundary float vectors (≥3 verts, non-zero area) | | Door/Window host | `Absent` (no host_id on scaffold) | Non-zero `host_id` | | Level elevation | **Recovered** from `m_height` | `m_elevation` / `m_height` | Bare `location_curve` ElementId without endpoints → `wall_location_curve_unresolved_handle` (fail closed). ## Testing - [x] `cargo test --release --lib geometry::` — 24 passed - [x] `cargo test --release --lib elements::wall::tests::wall_projects_location` — passed - [x] `cargo test --release --test geometry_recovery` — 1 passed (all tier1 fixtures) - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo fmt --check` - [x] New / changed code has unit tests - [ ] `cargo test --all` (full suite; filtered modules above green) - [ ] N/A: IFC exporter byte-identical (no IFC emit changes in this PR) ## Audit-honesty checklist - [x] PR body documents synthetic vs recoverable paths; no invented geometry - [x] Limitations documented in-module (`recovery.rs` honesty contract) - [x] Commit messages describe what/why - [x] No emojis; no private paths - [x] No Autodesk samples committed - [ ] README/status.md not updated in this PR (API is additive; Lane 7 will wire IFC) ## Legal and contribution hygiene - [x] Apache-2.0 licensable - [x] No Autodesk proprietary / decompiled content - [x] Fixtures remain synthetic (`gen-fixture` / corpus/tier1) ## Breaking changes None for callers of existing primitives. `src/geometry.rs` → `src/geometry/` module directory (same `rvt::geometry` path). ## Related issues Refs #30 #31 #32 #33 (M4 geometry). Depends on #127 (Lane Five). Downstream: Lane 7 IFC export modes. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Broad additive changes to parsing, geometry, and CI corpus paths; tier-two depends on external clones but tier-one is always-on and could break PRs if fixture bytes drift. > > **Overview** > Adds **Lane Six** geometry recovery in `geometry/recovery.rs`: fail-closed `RecoveryOutcome` APIs for wall location curves (schema endpoints, unresolved curve handles, ArcWall partition centerlines), floor boundary loops from sketch vectors, door/window hosts, and level elevations. **`Wall`** gains optional location-curve fields; **`Level`** accepts gen-fixture **`m_height`** as elevation. > > Ships **Lane Five** plumbing: `decoder_for_class` / `decode_typed`, **`MVP_TYPED_CLASSES`**, partition-byte **`ArcWall`** decoder (separate from the schema registry), and a **`partition_scanner_json`** example. > > Introduces **`partition_scanner`** (Revit 2023–2024 only): filtered-tag partition candidates, confidence scoring, ArcWall alignment, and ElemTable linkage helpers; **`elem_table::link_partition_element_ids`** wraps the join. > > Adds **redistributable tier-one corpus** under `corpus/tier1/` (synthetic `.rvt`, license/fixture sidecars, `generate.sh`), **`.gitignore`** exceptions, **`corpus-tier1` / `corpus-tier2`** CI jobs (magnetar LFS for tier 2), tier-one count manifests with **`fixture_metric`**, and integration tests (`corpus_tier1_health`, `corpus_tier2_health`, `typed_decoders`, `geometry_recovery`, `partition_scanner`). Dev-deps **`sha2`** / **`hex`** verify license SHA256 on committed fixtures. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c5bfa9fdc81d74797aa762016dcd26d7024dda49. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
## Summary Implements Lane Seven (IFC quality) on top of Lane Six geometry recovery: `scaffold` / `typed-no-geometry` / `geometry` / `strict` now shape *emission* as well as post-export validation gates, HostObjAttr proxies stay out of production export, and diagnostics sidecars remain schema-shaped. Depends on Lane Six (`geometry/wall-floor`, PR #129) which includes typed decoders (#127). Aligns with Lane Nine (#128) forward-compatible mode names that fail closed for stronger modes. ## Motivation Quality modes previously acted mainly as validation gates on a single default export. Lane 7 makes mode content real where data allows: typed-only inventory without geometry claims, geometry attachment via Lane Six recovery when present, and strict fail-closed behavior without misleading proxies. Refs M5-01 / M5-02 / M5-04 (TODO.md). Downstream: Lane 8 viewer confidence UI. ## Changes - `src/ifc/export_content.rs` — content policy per quality mode; HostObjAttr/HostObject/Element/Symbol filter; Level → storey via elevation recovery; Wall curve / Floor boundary / Door·Window host attachment; geometry strip helper - `RvtDocExporter::export_with_diagnostics_mode_and_limits` — mode-aware emission - `rvt-ifc --mode` + Python `write_ifc(mode=...)` pass mode into export content - Default/scaffold never emits `HostObjAttr-*` proxies (diagnostic exporter unchanged) - Diagnostics sidecar unchanged schema (`docs/schemas/export-diagnostics.schema.json`); docs note content policy - `tests/ifc_export_modes.rs` — always-on tier1 coverage for all four modes + CLI ### Mode semantics | Mode | Emission | Gate | |------|----------|------| | `scaffold` | Framework + production elements; geometry when recovered; no HostObjAttr proxies | Always accepts valid envelope | | `typed-no-geometry` | Mapped/typed only; geometry fields stripped | Requires typed elements | | `geometry` | Mapped/typed; Lane Six curves/loops/hosts/elevations when present | Requires typed + geometry | | `strict` | Same as geometry | Typed + geometry + metadata/units/storeys + no warnings/unsupported | On synthetic / tier1 fixtures only `scaffold` succeeds — honest scaffold-only, no invented geometry. ## Testing - [x] `cargo test --release --lib ifc::export_content` — 6 passed - [x] `cargo test --release --lib ifc::` — 325 passed - [x] `cargo test --release --test ifc_export_modes` — 8 passed - [x] `cargo test --release --test ifc_synthetic_* --test rvt_ifc_diagnostics_cli --test walker_to_ifc_integration` — passed (corpus tests skip without samples) - [x] `cargo fmt --check` - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo clippy -p rvt-py --all-targets -- -D warnings` - [x] Smoke: `gen-fixture` + `rvt-ifc --mode scaffold|typed-no-geometry|geometry|strict` — HostObjAttr absent; stronger modes fail closed with diagnostics ## Audit-honesty checklist - [x] Tier1/synthetic remain scaffold-only; no invented wall/floor geometry - [x] HostObjAttr proxies absent from default/scaffold; diagnostic path retained - [x] Mode docs do not claim geometry/strict success on scaffold fixtures - [x] No Autodesk samples committed - [x] Commit messages describe what/why ## Legal and contribution hygiene - [x] Apache-2.0 licensable - [x] No Autodesk proprietary / decompiled content - [x] Fixtures remain synthetic (`gen-fixture` / corpus/tier1) ## Breaking changes None for callers of `RvtDocExporter::export` (still scaffold content). New `export_with_*_mode_*` APIs are additive. CLI/Python `--mode` / `mode=` now also shapes content (typed-no-geometry strips geometry). ## Related issues Refs #37 (M5-01), #38-class HostObjAttr (M5-02), #40 (M5-04). Depends on #129 (Lane Six). Aligns with #128 (Lane Nine mode names). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > IFC export behavior changes for non-scaffold modes and production element filtering; broader surface area (partition scanner version gates, committed binaries) but synthetic corpus and fail-closed validation limit blast radius. > > **Overview** > Adds a **two-tier test corpus** (in-repo Apache-2.0 synthetic `corpus/tier1/` plus optional CI-cloned magnetar tier 2), CI jobs `corpus-tier1` / `corpus-tier2`, SHA256 license checks, and known-count manifests—while allowing committed `.rvt` files under `corpus/` via `.gitignore` exceptions. > > Introduces **partition scanning** (`partition_scanner`), a typed **ArcWall** partition decoder, ElemTable linkage helpers, and a `partition_scanner_json` example for JSON diagnostics. > > Adds **Lane Six geometry recovery** (`geometry/recovery`) with fail-closed wall curves, floor boundaries, opening hosts, and level elevations; extends typed **Wall** / **Level** projection for `gen-fixture` fields (`m_height`, location endpoints) and centralizes MVP typed decode via `decode_typed` / `decoder_for_class`. > > Implements **Lane Seven IFC content policy** in `export_content`: `--mode` / Python `mode=` now drives emission (not just validation)—`typed-no-geometry` strips geometry, `geometry`/`strict` attach recovery when present, production export drops **HostObjAttr** proxies, and Levels become storeys from recovered elevations. `RvtDocExporter::export_with_diagnostics_mode_and_limits` wires CLI/Python through to export. > > New integration tests cover tier1 corpus health, geometry honesty on synthetics, and all four IFC export modes (including CLI strict fail-closed on tier1). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f1974e6705096145c37d515b16c39137ac1f4c25. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>



Summary
Implements Lane Six (geometry recovery) on top of Lane Five typed decoders: fail-closed APIs for wall location curves, floor boundary loops, door/window host relationships, and level elevations.
Depends on Lane Five (
elements/typed-decoders, PR #127) — this branch includes that work (plus Lane Four scanner / Lane Three corpus).Motivation
Lane 7 (IFC export modes) needs structured geometry inputs from typed Wall/Floor/Door/Window/Level views. Synthetic tier1 fixtures remain scaffold-oriented; recovery must be honest (
None+ diagnostics) rather than inventing coordinates.Refs #30 (M4-02), #31 (M4-03), #32 (M4-04), #33 (M4-05).
Changes
src/geometry/— split primitives intomod.rs; addrecovery.rsLane Six surfaceRecoveryOutcome<T>/GeometryDiagnostic— recovered vs absent with stable codeshost_id(reject missing /0)elevation_feet/ gen-fixturem_heightWalltyped view:location_curve_id,location_start,location_endtests/geometry_recovery.rs— tier1 honesty (no invented curves/loops/hosts; Level elevations recover)Recovery honesty
Absent(wall_location_curve_missing)Absent(floor_boundary_missing)Absent(no host_id on scaffold)host_idm_heightm_elevation/m_heightBare
location_curveElementId without endpoints →wall_location_curve_unresolved_handle(fail closed).Testing
cargo test --release --lib geometry::— 24 passedcargo test --release --lib elements::wall::tests::wall_projects_location— passedcargo test --release --test geometry_recovery— 1 passed (all tier1 fixtures)cargo clippy --all-targets --all-features -- -D warningscargo fmt --checkcargo test --all(full suite; filtered modules above green)Audit-honesty checklist
recovery.rshonesty contract)Legal and contribution hygiene
gen-fixture/ corpus/tier1)Breaking changes
None for callers of existing primitives.
src/geometry.rs→src/geometry/module directory (samervt::geometrypath).Related issues
Refs #30 #31 #32 #33 (M4 geometry). Depends on #127 (Lane Five). Downstream: Lane 7 IFC export modes.
Note
Medium Risk
Broad additive changes to parsing, geometry, and CI corpus paths; tier-two depends on external clones but tier-one is always-on and could break PRs if fixture bytes drift.
Overview
Adds Lane Six geometry recovery in
geometry/recovery.rs: fail-closedRecoveryOutcomeAPIs for wall location curves (schema endpoints, unresolved curve handles, ArcWall partition centerlines), floor boundary loops from sketch vectors, door/window hosts, and level elevations.Wallgains optional location-curve fields;Levelaccepts gen-fixturem_heightas elevation.Ships Lane Five plumbing:
decoder_for_class/decode_typed,MVP_TYPED_CLASSES, partition-byteArcWalldecoder (separate from the schema registry), and apartition_scanner_jsonexample.Introduces
partition_scanner(Revit 2023–2024 only): filtered-tag partition candidates, confidence scoring, ArcWall alignment, and ElemTable linkage helpers;elem_table::link_partition_element_idswraps the join.Adds redistributable tier-one corpus under
corpus/tier1/(synthetic.rvt, license/fixture sidecars,generate.sh),.gitignoreexceptions,corpus-tier1/corpus-tier2CI jobs (magnetar LFS for tier 2), tier-one count manifests withfixture_metric, and integration tests (corpus_tier1_health,corpus_tier2_health,typed_decoders,geometry_recovery,partition_scanner). Dev-depssha2/hexverify license SHA256 on committed fixtures.Reviewed by Cursor Bugbot for commit 4dcb7c0. Configure here.