python-chess always sets the en-passant target after a 2-square pawn move; chess.js omits it when no capture is legally possible. That disagreement skipped evals for plies after every double pawn push (1.e4, 1...c5, 3.d4, ...). Use position + side-to-move + castling as the lookup key on both producer and consumer; halfmove/fullmove counters and en-passant target are dropped from the key.