fix: close audited CAD delivery gate gaps
This commit is contained in:
@@ -508,7 +508,7 @@ def evaluate_gates(
|
||||
]
|
||||
glazing_evidence = locked_glazing_meters >= GATE_GLAZING_MIN_METERS or bool(glazing_named_blocks)
|
||||
if not glazing_evidence:
|
||||
status, detail = "SKIP", "No curtain-wall/glazing evidence in blocks or block names."
|
||||
status, detail = "NOT_APPLICABLE", "No curtain-wall/glazing evidence in blocks or block names."
|
||||
elif spec_glazing_segments > 0:
|
||||
status = "PASS"
|
||||
detail = (
|
||||
@@ -532,7 +532,7 @@ def evaluate_gates(
|
||||
gates.append(
|
||||
{
|
||||
"name": "no_annotation_layers_classified",
|
||||
"status": "FAIL" if annotation_classified else "PASS",
|
||||
"status": "WARN" if annotation_classified else "PASS",
|
||||
"detail": (
|
||||
f"Annotation/identification layers classified as geometry: {', '.join(annotation_classified[:5])}. "
|
||||
"These are tags, not elements; exclude them."
|
||||
@@ -595,7 +595,11 @@ def frame_ledger_gate(config: dict[str, Any], frames: list[dict[str, Any]] | Non
|
||||
`"discarded_frames": [{"name": ..., "reason": ...}]`.
|
||||
"""
|
||||
if not frames:
|
||||
return {"name": "frame_ledger", "status": "SKIP", "detail": "No --frames given; frame ledger not checked."}
|
||||
return {
|
||||
"name": "frame_ledger",
|
||||
"status": "NOT_APPLICABLE",
|
||||
"detail": "No --frames given; frame ledger is not armed for this project.",
|
||||
}
|
||||
discarded = {str(d.get("name", "")) for d in config.get("discarded_frames", [])}
|
||||
cfg_by_file: dict[str, list[dict[str, Any]]] = {}
|
||||
for drawing in config.get("drawings", []) or []:
|
||||
@@ -645,8 +649,8 @@ def declared_area_gate(spec: dict[str, Any], config: dict[str, Any]) -> dict[str
|
||||
if not declared:
|
||||
return {
|
||||
"name": "area_declared",
|
||||
"status": "SKIP",
|
||||
"detail": "No declared_areas_m2 in config; area cross-check not requested.",
|
||||
"status": "NOT_APPLICABLE",
|
||||
"detail": "No declared_areas_m2 in config; area cross-check is not armed.",
|
||||
}
|
||||
tol = float(config.get("declared_area_tolerance", 0.15))
|
||||
problems = []
|
||||
@@ -723,7 +727,7 @@ def vertical_storey_continuity_gate(spec: dict[str, Any]) -> dict[str, Any]:
|
||||
parts.append("unexplained elevation gaps " + ", ".join(z_gaps))
|
||||
return {
|
||||
"name": "vertical_storey_continuity",
|
||||
"status": "FAIL",
|
||||
"status": "WARN",
|
||||
"detail": (
|
||||
"; ".join(parts)
|
||||
+ ". Instantiate source-supported repeated typical floors; do not deliver separated floor islands."
|
||||
@@ -746,8 +750,8 @@ def storey_count_gate(spec: dict[str, Any], config: dict[str, Any]) -> dict[str,
|
||||
if expected is None:
|
||||
return {
|
||||
"name": "storey_count",
|
||||
"status": "SKIP",
|
||||
"detail": "No expected_storeys_above_ground in config; count cross-check not requested.",
|
||||
"status": "NOT_APPLICABLE",
|
||||
"detail": "No expected_storeys_above_ground in config; count cross-check is not armed.",
|
||||
}
|
||||
import re as _re
|
||||
|
||||
|
||||
Reference in New Issue
Block a user