The Hardware Trust Model · Golden Architecture
The Trust Machine
AI reads, code checks
We use AI strictly as an optical sensor, not as an oracle. Extracted pinouts, footprint dimensions and electrical ratings are checked against mathematical invariants before they enter a canonical contract or an EDA library, and what fails is flagged or held back.
Geometry Invariant
IPC-7351 Solder Fillets
Toe, heel & side equations
Package Resolution
Ordering Suffix Parser
Terminal count checked against the package
Toolchain Gate
KiCad CLI Preflight
Headless file-load checks
Hallucination Policy
Ambiguity Gets Flagged
Flagged for review on ambiguity
The 5 Checked Stages
From a component PDF to reviewable CAD in five checked stages
The model proposes candidate facts; deterministic TypeScript code checks them and decides what is delivered and what is flagged for review.
Spatial Sensor Ingestion
AI Sensor
Google's Gemini reads the PDF pages and reports the tables and values it finds, with their pages. The PDF's own text layer and the document map help pick which pages to read.
Target Package Resolution
Part Suffix Invariant
Family datasheets often cover several packages in one table; ST's STM32H743 datasheet covers eight. The engine decodes the ordering suffix (e.g. STM32H743ZIT6 → LQFP144) to set the terminal count a candidate pin table must match: 144 here. A table with a different count is rejected.
Semantic Pin Isolation
Class Invariant
Physical pin classes (POWER, GROUND, BIDIRECTIONAL, RESET, CLOCK, ANALOG, NC) are kept apart from multiplexed software peripheral modes (SPI, UART, ADC, FMC).
IPC-7351 Geometric Solvers
Mathematical Brain
When the datasheet prints no land pattern, the stated lead widths, foot lengths and spans, with their tolerances, go through simplified IPC-7351B fillet equations. The result is labeled calculated and flagged for review.
EDA CLI Preflight Gate
File-Load Check
Generated .kicad_mod and .kicad_sym files are loaded and re-saved by local KiCad CLI tools (sym upgrade / fp upgrade) to confirm they parse cleanly in current KiCad format. Our own deterministic engine then checks pad gaps, courtyard closure, and copper overlap before delivery.
The Invariants
The rules the Trust Machine checks results against
In software, a bug causes a crash. In hardware, an inverted pin or a wrong footprint pitch can destroy a part. These are the rules the code applies.
IPC-7351 Solder Fillet Arithmetic
Zmax = spanMin + 2*JT + rss(Cspan, F, P)Computes the outer land extent (Zmax), the inner land extent (Gmin) and the land width (Xmax) from the toe, heel and side fillet goals (JT, JH, JS), the stated tolerances, and fabrication (F) and placement (P) tolerances. Component dimension tolerances must close geometrically before CAD export.
- Toe fillet JT sets the solder margin beyond the lead tip
- Heel fillet JH sets the joint at the heel, toward the body
- Side fillet JS widens the land beyond the lead; at fine pitch the width is clamped to keep a 0.1 mm copper gap, and the clamp is reported
Physical Class vs. Peripheral Mux Separation
PIN_CLASS in [POWER, GROUND, BIDIRECTIONAL, INPUT, OUTPUT, ANALOG, CLOCK, RESET, CONFIG, NC, RESERVED, UNKNOWN]The physical pin class is its own field. Multiplexed peripheral capabilities go into separate structured_functions and interface_groups arrays. A special pin such as BOOT0 with a high-voltage VPP function is tagged for its bootstrap and programming role and is not listed as a normal power domain.
- Physical pin class is a separate field from the alternate functions
- Multiplexed AF modes (e.g. USART_TX, SPI_MOSI) map to structured interface tags
- Bootstrap and programming pins carry critical tags, not a power-domain entry
Package Courtyard & Keep-Out Clearance
Courtyard = outer land extent + 2 × courtyard excessThe courtyard is drawn around the outer land extent plus the density level's courtyard excess, so neighboring parts keep their placement clearance.
- Courtyard excess by IPC-7351 density level: 0.5, 0.25 or 0.1 mm
- The outer land extent already includes the stated tolerances
- Pin 1 orientation follows the drawing; on a no-lead package whose drawing does not show it, the bundle says it was assumed
Absolute Maximum & Thermal Envelopes
TJ = TA + (PD × θJA) ≤ TJ_MAXOperating limits, absolute maximum ratings and thermal values are extracted as machine-readable constraints, with their page where the extraction recorded one. The Workbench's thermal rule applies this junction-temperature formula to a design you build.
- Absolute maximum ratings kept apart from recommended operating conditions
- Junction temperature limit (TJ_MAX) and θJA kept with their pages where recorded
- In the Unified Component Model, conflicting values are kept side by side and marked, not resolved silently
Runtime Decision Taxonomy
Three verdicts, decided by a fail-closed gate
Every KiCad run ends in exactly one bundle_status. The readiness gate can only refuse: a passing kicad-cli load or a high score never upgrades a failed check.
| bundle_status | Verdict | What must be true | What you receive |
|---|---|---|---|
| completed | READY | The fail-closed readiness gate passed: pads reconcile with the resolved package, symbol, footprint and package agree on the terminal count, and the dimensions belong to the selected variant. | Both files delivered as ready, with the verdict and its evidence pages. |
| needs_review | NEEDS REVIEW | A file was produced but a check did not pass, kicad-cli could not load it, or it came from the KiCad library or IPC-7351B math instead of this datasheet. | Delivered with the exact reasons and marked for engineer review before fabrication. |
| cannot_extract | CANNOT EXTRACT | No usable symbol or footprint: the package could not be resolved, or its dimensions were missing or contradictory. | Nothing is passed off as a footprint; the run states what was missing and where it looked. |
# Illustrative run for an LQFP-144 part. The commands are the exact ones the
# validator runs; the verdict fields are the pipeline's real final_readiness keys.
$ kicad-cli sym upgrade STM32H743ZIT6.kicad_sym --output STM32H743ZIT6.validated.kicad_sym --force
$ kicad-cli fp upgrade DatasheetVend.pretty --output DatasheetVend.validated.pretty --force
-> file-load check: both files parse and re-save in the current KiCad format
(a format check - kicad-cli runs no DRC or ERC here)
# DatasheetVend's own deterministic checks (not kicad-cli):
final_readiness:
syntax_valid true
native_kicad_valid true (the kicad-cli load above)
placement_structurally_valid true (pads reconcile with the resolved package's pad map)
terminal_census_consistent true (symbol, footprint and package agree: 144 terminals)
package_identity_consistent true (dimensions belong to LQFP144, the resolved variant)
dimension_evidence_coherent true
physical_truth_approved true (false if ANY check above fails)
bundle_status: completed # anything short of this ships as needs_reviewAudit Contract Delivery
Each extraction ships with its audit record
A run delivers audit JSON beside its results: the ordering-suffix resolution, source pages and warnings, and, for a KiCad run, the readiness verdict with its reasons and the kicad-cli load check.
Lineage: Source PDF pages attached to pins and limits, wherever the extraction recorded them.
Classified Severity Warnings: Explicit flags for strapping pins, conditional footnotes, and bootstrap voltages.
Machine-Ingestible: JSON that scripts, CI netlist audits and AI agents can read.
{
"schema_version": "kicad_bundle_v1",
"bundle_status": "needs_review",
"review_required": true,
"generation_meta": {
"target_package": {
"target_part": "RP2040",
"package_variant": "QFN56",
"expected_pin_count": 56,
"source": "part_number_suffix",
"confidence_score": 0.97
}
},
"final_readiness": {
"syntax_valid": true,
"native_kicad_valid": true,
"terminal_census_consistent": true,
"package_identity_consistent": true,
"blocking_reasons": [],
"review_reasons": [
{ "code": "CLOSURE_REVIEW_REQUIRED",
"detail": "The footprint closure gate requires review before production use." }
]
}
}Audit a component PDF with the Trust Machine
Create an account for five free passes, up to two modules each, on a PDF up to 25 MB. Check any value against the page it names.