Initial commit: Conflict Checker

Cross-discipline design-contradiction checker for construction drawing
sets. Standalone tool broken out from Iron_Bid; a pipeline stage may
later fold back into Iron_Bid.

Pipeline: PDF->images -> per-sheet assertion extraction -> deterministic
clustering by location -> per-cluster reasoning -> report.
Includes CLI (cli/run_check.py) and web UI (backend/main.py).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
woogiandClaude Opus 4.8 committed 2026-07-03 00:22:02 +00:00
commit 1d248a8808
262 files changed
+8209

No files matched your search

@@ -0,0 +1 @@
{"issues": [{"issue_id": "CON-001", "source_stage": "code", "category": "building_code", "severity": "critical", "confidence": "high", "location": "Codes Enforced / General Notes, throughout set", "disciplines": ["General", "Architectural", "Electrical", "Plumbing"], "sheets": ["G11.04", "G21.01", "A23.01", "E01.01", "E01.02", "P03.01"], "description": "The drawing set references multiple conflicting and incorrect building code editions. Various sheets reference the 2018 IBC, 2021 IBC, 2014 NEC, and 2023 NEC. However, a jurisdictional review indicates the project's adopted codes are the 2015 IBC and 2015 IFC. Designing to incorrect codes will lead to permit rejection and require significant redesign. This was noted in code, conflict, and constructability reviews.", "evidence": [{"discipline": "General", "sheet": "G21.01", "source_text": "2018 INTERNATIONAL BUILDING CODE (IBC) CH. 2-10 WITH HARRIS COUNTY AMENDMENTS", "asserted_value": "2018 IBC"}, {"discipline": "Architectural", "sheet": "A23.01", "source_text": "INTERIOR FINISHES TO COMPLY WITH IBC CLASS C OR HIGHER SECTION 803.9 AND TABLE 803.9 OF 2021 IBC.", "asserted_value": "2021 IBC"}, {"discipline": "General", "sheet": "G21.01", "source_text": "2023 STATE OF TEXAS ADOPTED 2014 NFPA 70 NATIONAL ELECTRICAL CODE (NEC)", "asserted_value": "2014 NEC"}, {"discipline": "Electrical", "sheet": "E01.01", "source_text": "CONTRACTOR SHALL CONFORM TO ALL LOCAL, STATE, AND APPLICABLE CODES, 2023 NEC, 2021 IBC, 2021 IECC, NFPA, ETC., AND ALL OTHER LOCAL CODES AND AMENDMENTS...", "asserted_value": "2023 NEC, 2021 IBC"}, {"discipline": "General", "sheet": "G11.04", "source_text": "AREA LIMITATION: UNLIMITED (TABLES 504.3, 504.4, 506.2 IBC 2021)", "asserted_value": "Reference to 2021 IBC"}, {"discipline": "Electrical", "sheet": "E01.02", "source_text": "1. PROVIDE LOW-VOLTAGE DRY-TYPE TRANSFORMERS THAT MEET THE MINIMUM EFFICIENCY REQUIREMENTS OF 2021 IECC TABLE C405.8.", "asserted_value": "2021 IECC"}, {"discipline": "Plumbing", "sheet": "P03.01", "source_text": "PER 2021 IBC, CHAPTER 19, SECTION 1907: POLYETHYLENE VAPOR RETARDER MINIMUM 6-MIL SHALL BE REQUIRED.", "asserted_value": "Vapor retarder detail cites 2021 IBC."}], "recommended_resolution": "Confirm the correct, single adopted code edition for each discipline (IBC, NEC, IECC, etc.) with the Authority Having Jurisdiction. Update all references throughout the entire drawing set to be consistent and accurate. Ensure the design complies with the correct adopted codes.", "code_reference": null}, {"issue_id": "CON-002", "source_stage": "constructability", "category": "other", "severity": "critical", "confidence": "high", "location": "General Notes and Project Description", "disciplines": ["General"], "sheets": ["G11.04", "G21.01"], "description": "The project scope is defined inconsistently as both a 'FIRST GENERATION RETAIL SPACE' build-out (implying an empty shell) and a 'TENANT INTERIOR REMODEL' (implying existing construction to be demolished). This major ambiguity prevents bidders from accurately determining the scope of demolition work. This was noted in conflict and constructability reviews.", "evidence": [{"discipline": "General", "sheet": "G11.04", "source_text": "PROJECT IS A TENANT INTERIOR LEASE SPACE BUILD OUT FOR A FIRST GENERATION RETAIL SPACE.", "asserted_value": "First Generation Build-out"}, {"discipline": "General", "sheet": "G21.01", "source_text": "PROJECT IS A TENANT INTERIOR REMODEL OF 3,323 SF", "asserted_value": "Remodel"}], "recommended_resolution": "Clarify if the project is a first-generation build-out or a remodel and ensure all drawing sheets consistently reflect the correct scope of work, particularly regarding demolition.", "code_reference": null}, {"issue_id": "CON-003", "source_stage": "qaqc", "category": "missing_sheet", "severity": "critical", "confidence": "high", "location": "Architectural Series (A2x.xx)", "disciplines": ["Architectural"], "sheets": [], "description": "The primary architectural floor plan, likely numbered A21.01, is missing from the set. This plan is fundamental for showing new partition layouts, overall dimensions, room tags, and wall type references. Without it, the basis for all other plans is absent, making it impossible to bid or build the project accurately.", "evidence": [{"discipline": "System", "sheet": "sheet_index", "source_text": "Logical gap in architectural plan numbering (likely A21.01) before A22.01. Page 14 extraction failed in this location. A floor plan is fundamental to a drawing set.", "asserted_value": "Missing A21.01"}], "recommended_resolution": "Include the missing architectural floor plan sheet (A21.01) in the drawing set.", "code_reference": null}, {"issue_id": "CON-004", "source_stage": "qaqc", "category": "missing_sheet", "severity": "critical", "confidence": "high", "location": "Mechanical Series (M02.xx)", "disciplines": ["Mechanical"], "sheets": [], "description": "The primary mechanical floor plan, likely numbered M02.01, is miLine truncated