Skip to content

GEOM-04: continuous clearance refinement, declared hardware and UI - #63

Merged
Poyqraz merged 2 commits into
mainfrom
agent/geom04-integration
Sep 17, 2026
Merged

Poyqraz merged 2 commits into
mainfrom
agent/geom04-integration

Conversation

@Poyqraz

@Poyqraz Poyqraz commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

GEOM-03 leaves overlapping BVH boxes unresolved and models the hub only as an infinite cylinder. Hardware dimensions, containment and nearby surface distance need explicit bounded queries before the workspace can screen a folding path usefully.

Changes

  • Integrate PR GEOM-04A: bounded exact triangle distance and contact predicates #62's exact-rational triangle kernel into the BVH leaves and refine projected triangle distance to the fallback hub. Continuous separation subtracts both bodies' motion bounds; zero-clearance contact is reported separately, including rounded-pose uncertainty.
  • Add a strict source-bound hardware JSON contract for a finite cylindrical hub and validated closed convex polyhedra. Bind units, provenance, transforms, blade index, tolerance and source hashes. The finite hub must match the active radius and axis.
  • Bracket finite cylinders with certified inner/outer prisms. Include containment and coincident-solid interior witnesses; guard precision and deterministic work budgets. All unvisited work remains unknown.
  • Add source-bound synchronous hardware motion queries, tolerance-aware distance/margin bounds and report schema 2. Retain excluded blade regions, missing span, open-surface and physical-qualification limitations.
  • Extend the geometry workspace with persistent optional hardware upload/removal, feature/hardware budgets, method/contact/witness reporting and source JSON. No automatic reruns or invented hardware dimensions.
  • Update roadmap and document the schema, coordinate frames, numerical limits and synthetic example.

Validation

  • TDD RED/GREEN evidence for narrow phase, service budget/identity, hardware topology/containment/precision, motion integration and UI lifecycle.

  • Local full suite: 1459 passed, 9 skipped, 37 subtests passed. Subsequent binding regression plus all hardware-motion tests: 7 passed; final CI includes the added test.

  • Independent application/UI review: 61 focused tests passed, no blockers. Independent hardware review: 40 focused tests and 9 additional analytical scenarios passed, no blockers. Reviewer findings about rounded contacts, coincident solids and missing binding coverage were addressed.

  • Streamlit AppTest passes; actual server health and root HTML both returned HTTP 200. Documented JSON parses; local links, compile and whitespace checks pass.

  • Published tree equals local tested implementation tree: ea649f86a844e3f18d9d1d371f8c9f77d0d19c97.

  • Final Bugbot fix: normalize reverse solid-query witnesses to caller body order. Four directional regressions (observed RED/GREEN); 59 affected tests passed, separate reviewer PASS with 29 hardware tests. Final head: 95e049c70d2959baa2b5500b85e61bf2c44016bd.

Integration gates and limits

Final head 95e049c70d2959baa2b5500b85e61bf2c44016bd: Python 3.10/3.11 CI passed (run 35186732969); Python 3.11 reports 1464 passed, 9 skipped, 37 subtests passed. Cursor Bugbot reviewed this head and found no new issues; the previous witness-order finding is fixed and resolved. Independent review also passed. Gemini is not a gate.

Synchronous planar geometry screening only. physical_qualification=false, full_propeller_clearance=null; no automatic promotion of GEOM-01 candidates. General CAD solids, asynchronous motion and experimental qualification remain separate work. PR #3 and unrelated report edits are untouched.


Note

Medium Risk
Changes core geometry screening paths (clearance refinement, hub modeling, new JSON inputs) and report schema versioning; bounded work and identity checks limit blast radius but wrong hardware or budget exhaustion still affects screening conclusions.

Overview
Completes GEOM-04 by tightening GEOM-03 surface clearance with triangle-level refinement and optional, source-bound hub/attachment hardware in the same folding-path screening flow.

Narrow phase: BVH leaves now call exact triangle distance (and projected hub distance) under a separate feature-test budget, with motion-aware separation bounds, distinct contact semantics at zero clearance, and richer interval rows (method, contact, witness points).

Declared hardware: New strict JSON contract (hardware_contract) and convex/cylinder geometry (geometry/hardware) feed bounded surface–solid and solid–solid motion queries (hardware_clearance). A matching finite hub replaces only the infinite-cylinder hub job; extra bodies add hardware queries. Reports move to schema 2 with shared BVH/feature/hardware budgets and source-bound request identity.

UI: The geometry workspace gains persistent optional hardware upload/clear, size limits, feature/hardware budget selectors, expanded result tables/witness export, and docs/roadmap updates marking GEOM-04 implemented. Screening-only limits (physical_qualification=false) are unchanged.

Reviewed by Cursor Bugbot for commit 760db79. Configure here.

Copilot AI lite review requested due to automatic review settings September 17, 2026 00:01

Poyqraz commented Sep 17, 2026

Copy link
Copy Markdown
Owner Author

bugbot run verbose=true

@cursor

cursor Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bugbot request id: serverGenReqId_aec40eb2-0ed3-4753-995d-948e64f8d8d3

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor

cursor Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bugbot rules debug

No rules were used for this review.

https://cursor.com/docs/bugbot#team-rules

Bugbot request id: serverGenReqId_aec40eb2-0ed3-4753-995d-948e64f8d8d3

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread pyfoldable/geometry/hardware.py Resolved

Poyqraz commented Sep 17, 2026

Copy link
Copy Markdown
Owner Author

bugbot run verbose=true

@cursor

cursor Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bugbot request id: serverGenReqId_c4753165-4844-481c-b3c7-c742ba168750

@cursor

cursor Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bugbot rules debug

No rules were used for this review.

https://cursor.com/docs/bugbot#team-rules

Bugbot request id: serverGenReqId_c4753165-4844-481c-b3c7-c742ba168750

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 95e049c. Configure here.

@Poyqraz
Poyqraz merged commit ca81d2d into main Sep 17, 2026
3 checks passed
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.

2 participants