audit_find_unlocked_component_primitives
Detect placed components whose footprint primitives are unlocked to prevent silent pad misalignment and fabrication defects before Gerber export.
Instructions
Find placed components whose internal primitives are NOT locked. Unlocked primitives are a silent fab-bug class -- a stray click + drag in the PCB editor moves a single pad off-center within the footprint without any warning. The gerbers look fine, just slightly off, and the part doesn't solder properly because the pad no longer aligns with the device's lead.
Library footprints ship with PrimitiveLock=True by default; components show up unlocked when someone clicked Component Properties and toggled the flag off (sometimes deliberately to nudge silkscreen, more often accidentally).
Returns:
Dict with {checked, violations, items[]} where each item
carries {designator} for an unlocked component. Pair
with obj_batch_modify to re-lock at scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||