Skip to content
hw.dev
hw.dev/signal/kicad-router-sidecar-cache-445-violations-2026
SignalKiCad AI Router

A Cached Board Check Hid 307 New Violations

A board file is not enough to cache a safety check when the rules that judge it live in neighboring files.

Thesis connection

Board automation gets trustworthy when every input to the check is tracked and a rule change forces a fresh result.

#pcb#eda#testing#verification
Read Original

KiCad AI Router cached design rule checking (DRC), the pass that tests a printed circuit board (PCB) against electrical and manufacturing rules, using the board file as its main identity. That missed two neighboring files: the KiCad project file that carries net classes and the custom-rule file. In the reported case, changing a clearance from 0.25 to 3.0 millimeters left the board bytes untouched, so the router returned an old result with 138 violations while a fresh check found 445.

The fix hashes both rule files into the cache key. A regression test changes each file independently and confirms that the router runs DRC again. This sounds like cache maintenance, but it closes a dangerous gap for automated board editing: an agent could change the policy that judges a board, then present yesterday's passing evidence as if it applied to today's rules.

Teams caching KiCad checks should inventory every file the command reads, not just the file being edited. Change one project rule in a test fixture and verify that the next run cannot reuse the previous result.