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.