Show Action on finding cards and inject PCB geometry into AI context.

Layout and AI findings always get action (fallback recommendation). The card
renders that sentence in the body. PCB review context now includes vias under
the footprint, copper thickness, nearby widths, courtyard, and keepout polygons.
This commit is contained in:
2026-09-20 09:13:51 +02:00
parent f63c1c3411
commit facbaa2305
12 changed files with 359 additions and 28 deletions
+4 -2
View File
@@ -924,6 +924,8 @@ def _parse_review(
why = (
"Unverified: no verbatim datasheet quote. " + why
).strip()
rec = str(item.get("recommendation") or item.get("action") or "").strip()
act = str(item.get("action") or rec).strip()
findings.append(Finding(
designator=ic_ref,
mpn=mpn,
@@ -936,8 +938,8 @@ def _parse_review(
status=status,
source_page=page,
source_quote=item.get("source_quote", ""),
recommendation=item.get("recommendation", ""),
action=str(item.get("recommendation") or ""),
recommendation=rec,
action=act,
reference=f"{src_mpn} datasheet p.{page if page is not None else '?'}",
source="review",
finding_class="REVIEW",