Verify review quotes against datasheet PDF text and extract ESD Vrwm/polarity.

ERROR/WARNING without a real citation are demoted to Unverified so invented topologies like a unidirectional TPD2E007 clamp cannot ship as ERROR.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 15:43:14 +02:00
co-authored by Cursor
parent 4c54d064d3
commit 53db287ab4
10 changed files with 431 additions and 15 deletions
+5 -2
View File
@@ -101,8 +101,11 @@ PINTABLE_TOOL = {
"type": "array",
"description": (
"Rows from the Absolute Maximum Ratings table: supplies, "
"pin voltages, current, temperature. Omit recommended-"
"operating values. Empty array if the table is unreadable."
"pin voltages, current, temperature. For ESD/TVS ICs also "
"include Electrical Characteristics Vrwm (signed min/max) "
"and a polarity/topology row (bidirectional vs "
"unidirectional / back-to-back). Skip IEC/HBM kV rows. "
"Empty array if the table is unreadable."
),
"items": {
"type": "object",
+8
View File
@@ -40,6 +40,7 @@ from backend.pinscopex.validate import (
build_component_context,
_parse_review,
)
from backend.pinscopex.quote_verify import verify_finding_citations
from backend.pinscopex.utils import safe_mpn
from backend.pinscopex.pin_mux_check import check_pin_mux_feasibility
from backend.pinscopex.led_current_check import check_led_current
@@ -422,6 +423,13 @@ async def review_ic_async(
mpn_by_designator=mpn_by_designator,
connected=connected_designators,
)
verify_finding_citations(
result.findings,
default_pdf=Path(pdf_path),
default_mpn=mpn,
pdf_dir=excerpt_state.pdf_dir,
mpn_by_designator=mpn_by_designator,
)
turn_record["tool_calls"].append({
"name": "submit_review",
"input": tc.input,