feat: refocus on drawings — code/ADA gated off, drawing-integrity wave, Brain-directed clarification
- ENABLE_CODE_REVIEW flag (default off): skips code/ADA/jurisdiction review path in both pipelines; nothing deleted, one env flag to restore. - Per-sheet Drawing Integrity QA wave (agent + classic, default on): dangling refs, on-sheet contradictions, dimension sanity, missing sheet essentials, tag hygiene. New DrawingIntegrityAgent + classic stage. - Broadened conflict critic: intra-sheet + same-discipline contradictions, not just cross-discipline. - Wave 6.5 Brain-directed clarification (bounded hub-and-spoke): Brain names uncertain findings, verify_evidence requests route through the wave-5b verifier; refuted findings suppressed. One planning call + capped verifies, single iteration. Shared _build_verify_scopes across 5b and 6.5. - Config knobs, .env.example, frontend copy, tests (182 passing).
This commit is contained in:
+10
-10
@@ -410,24 +410,24 @@ Normalized assertions: {normalized_assertions}"""
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
CONFLICT_SYSTEM_PROMPT = """You are a Senior Architect and construction-drawing coordination reviewer doing a back-check of a drawing set BEFORE it is issued for bid, permit, or construction.
|
||||
You are given clustered facts that multiple disciplines have asserted about the same location or element.
|
||||
Decide whether these disciplines GENUINELY CONTRADICT each other - the kind of issue a human coordinator would issue as a QAQC comment or RFI before the set goes out.
|
||||
You are given clustered facts asserted about the same location or element. Those facts may come from MULTIPLE disciplines, from a SINGLE discipline across several sheets, or from ONE sheet (plan vs schedule vs detail vs keynote on that sheet).
|
||||
Decide whether these facts GENUINELY CONTRADICT each other - the kind of issue a human coordinator would issue as a QAQC comment or RFI before the set goes out. A contradiction between two facts is a conflict whether or not the two facts come from different disciplines.
|
||||
You are NOT performing code review in this stage. You are NOT checking ADA in this stage. You are NOT estimating cost or scope. You are NOT rewriting the drawings.
|
||||
What IS a conflict:
|
||||
- Two disciplines state different values for the same physical quantity at the same place.
|
||||
- An element is shown in different locations by different disciplines.
|
||||
- A schedule disagrees with what is drawn on the plan.
|
||||
- Two facts state different values for the same physical quantity at the same place (across disciplines, across sheets of one discipline, or on the same sheet).
|
||||
- An element is shown in different locations by different facts.
|
||||
- A schedule disagrees with what is drawn on the plan (even on the same sheet).
|
||||
- A detail disagrees with the plan.
|
||||
- A keynote disagrees with a schedule, plan, or detail.
|
||||
- A keynote or general note disagrees with a schedule, plan, detail, or legend - including a keynote/legend mismatch on a single sheet.
|
||||
- A callout, detail reference, section marker, or tag references something that does not exist (a dangling reference).
|
||||
- The same room, door, equipment, wall, or utility is labeled or dimensioned inconsistently across sheets or within one sheet.
|
||||
- An element required by one discipline has no counterpart where another discipline should show it.
|
||||
- A duct, pipe, conduit, or piece of equipment conflicts with structure, ceiling height, rated wall, or required clearance.
|
||||
- Equipment shown by one discipline lacks required power, plumbing, ventilation, access, or support in another discipline.
|
||||
- Demolition drawings remove something that new work drawings keep without explanation.
|
||||
- A callout, keynote, or tag references something that does not exist.
|
||||
- The same room, door, equipment, wall, or utility is labeled inconsistently across sheets.
|
||||
What is NOT a conflict:
|
||||
- Two disciplines describing different, compatible aspects of the same place.
|
||||
- A value shown on one discipline and simply not repeated on another, unless that discipline is expected to show it.
|
||||
- Two facts describing different, compatible aspects of the same place.
|
||||
- A value shown once and simply not repeated elsewhere, unless another sheet or discipline is expected to show it.
|
||||
- Rounding or representation differences that resolve to the same real value.
|
||||
- A possible code issue.
|
||||
- A design preference.
|
||||
|
||||
Reference in New Issue
Block a user