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:
2026-07-03 00:22:02 +00:00
co-authored by Claude Opus 4.8
commit 1d248a8808
262 changed files with 8209 additions and 0 deletions
@@ -0,0 +1 @@
{"issues": [{"issue_id": "8f8b3c9b-6d6a-4d2c-8064-a212356c9a9d", "source_stage": "code", "category": "building_code", "severity": "critical", "confidence": "high", "location": "General - Code Data Sheets", "disciplines": ["Architectural", "General"], "sheets": ["G11.04", "G21.01"], "description": "The drawing set lists multiple conflicting versions of the applicable building, fire, and electrical codes. Sheet G21.01 specifies the 2021 IFC, while the project profile specifies the 2018 IFC. Sheet G11.04 references the 2021 IBC. Sheet G21.01 lists a nonsensical reference for the NEC (\"2023 STATE OF TEXAS ADOPTED 2014 NFPA 70 NATIONAL ELECTRICAL CODE (NEC)\"), which conflicts with the 2020 NEC in the project profile. It is impossible to perform a code compliance review or construct the project without a clearly defined and consistently applied set of codes.", "evidence": [{"discipline": "General", "sheet": "G11.04", "source_text": "AREA LIMITATION: UNLIMITED (TABLES 504.3, 504.4, 506.2 IBC 2021)", "asserted_value": "IBC 2021"}, {"discipline": "General", "sheet": "G21.01", "source_text": "2018 INTERNATIONAL BUILDING CODE (IBC) CH. 2-10 WITH HARRIS COUNTY AMENDMENTS", "asserted_value": "2018 INTERNATIONAL BUILDING CODE"}, {"discipline": "General", "sheet": "G21.01", "source_text": "2021 INTERNATIONAL FIRE CODE (IFC) WITH HARRIS COUNTY AMENDMENTS", "asserted_value": "2021 INTERNATIONAL FIRE CODE"}, {"discipline": "General", "sheet": "G21.01", "source_text": "2023 STATE OF TEXAS ADOPTED 2014 NFPA 70 NATIONAL ELECTRICAL CODE (NEC)", "asserted_value": "2023 ... 2014 NEC"}], "recommended_resolution": "Revise the drawings to consistently state the single set of applicable code editions for all disciplines, as adopted by the Authority Having Jurisdiction. All code analysis and design should be updated to reflect the correct codes.", "code_reference": null}, {"issue_id": "4a7e9f2d-1ea2-4a0b-9c76-5544d6da61ff", "source_stage": "code", "category": "building_code", "severity": "critical", "confidence": "high", "location": "General - Project Information", "disciplines": ["Architectural", "General"], "sheets": ["G11.01", "G21.01"], "description": "The project jurisdiction is ambiguous. The project profile lists the jurisdiction as the \"City of Katy,\" but the project address on sheet G11.01 is in \"Cypress, TX,\" and the Authority Having Jurisdiction (AHJ) is listed as \"Harris County\" on sheet G21.01. These are different jurisdictions with potentially different code adoptions and local amendments. This must be clarified before a review can proceed.", "evidence": [{"discipline": "General", "sheet": "G11.01", "source_text": "7022 ELYSON EXCHANGE WAY CYPRESS, TX 77433", "asserted_value": "CYPRESS, TX"}, {"discipline": "General", "sheet": "G21.01", "source_text": "AUTHORITY HAVING JURISDICTION: HARRIS COUNTY", "asserted_value": "HARRIS COUNTY"}], "recommended_resolution": "Confirm the correct project address and governing Authority Having Jurisdiction (AHJ). Revise all project documentation, including the code information on the drawings, to reflect the requirements of the correct AHJ.", "code_reference": null}]}