Stockfish's king is lured far into enemy terrain and even though Naum with White does not have a Queen anymore, going this far behind enemy lines without assistance is not without its dangers. But Stockfish does not compute any King Safety when the opponent does not have a Queen... It does not see it.
[d]2rr4/p5pp/1p3p2/3np3/P1pPk3/1nP1P1PP/RB3PK1/4R1N1 w - -
Naum plays 29. f3+! and gets a winning advantage while Stockfish evaluates at 0.00
[Event "0000-7160E6B413, Blitz:4'+2"]
[Site "0000"]
[Date "2010.02.03"]
[Round "32"]
[White "Naum 4.1"]
[Black "Stockfish 1.6.3 JA 64bit"]
[ECO "E59"]
[Result "1-0"]
1. d4 {B 0} Nf6 {B 0} 2. c4 {B 0} e6 {B 0} 3. Nc3 {B 0} Bb4
{B 0} 4. e3 {B 0} O-O {B 0} 5. Bd3 {B 0} d5 {B 0} 6. Nf3 {B
0} c5 {B 0} 7. O-O {B 0} dxc4 {B 0} 8. Bxc4 {B 0} Nc6 {B 0}
9. a3 {B 0} Bxc3 {B 0} 10. bxc3 {B 0} Qc7 {B 0 Both last
book move} 11. a4 {0.39/16 29} Rd8 {0.16/17 8 (b6)} 12. Qc2
{0.44/17 8 (Bb5)} b6 {0.08/18 10} 13. Bd3 {0.27/16 11} Bb7
{0.12/17 8} 14. Ba3 {0.11/16 9 (Bb2)} Na5 {0.00/17 8 (e5)}
15. Ne5 {0.00/16 8} c4 {0.00/18 13} 16. Be2 {0. 08/18 4}
Be4 {0.00/18 10} 17. Qb2 {0.10/18 4} Nd5 {0.00/19 8}
18. Bf3 {0.11/19 11} Bxf3 {0.00/19 6} 19. Nxf3 {-0.03/20
27} Nb3 {-0.08/20 11} 20. Ra2 {-0.06/ 19 16} f6 {-0.16/19 7
(a6)} 21. Qc2 {0.12/19 14 (Re1)} Qf7 {-0.08/18 8} 22. g3
{0.14/18 4 (e4)} Qg6 {0.00/18 7 (Qh5)} 23. Kg2 {0.14/17 7
(Qxg6)} Kf7 {-0.08/ 17 8} 24. Qxg6+ {0.13/18 6 (h3)} Kxg6
{0.00/18 6 (hxg6)} 25. Bb2 {0.20/19 6 (Rc2)} Kf5 {-0.20/17
8 (Ne7)} 26. Re1 {0.12/16 4 (h3)} Ke4 {0.00/19 7 (Kg4)}
27. h3 {0.12/16 6 (Ba1)} Rac8 {0.00/17 13} 28. Ng1 {0.22/17
4} e5 {0.00/18 5 (Ne7)} 29. f3+ {1.34/14 3} Kd3 {0.00/14 0}
30. Ne2 {1.26/16 5} exd4 {0.00/19 6} 31. Kf2 {1.34/17 6
(exd4)} dxe3+ {1.17/17 7} 32. Kg2 {1.38/17 3} Rc6 {1.45/19
13 (Nxc3)} 33. Ba1 {1.59/17 6} Nxc3 {1.57/18 6} 34. Bxc3
{1.79/17 3} Rcc8 {2. 06/19 8} 35. a5 {1.80/17 7 (Rd1+)} b5
{0.96/19 8} 36. a6 {2.81/16 4 (Rd1+)} h5 {2.42/16 7 (Nd2)}
37. Rd1+ {4.01/13 3 (Ba5)} Nd2 {2.66/6 0} 38. Bxd2 {4.77/16
2 } Kxe2 {4.20/17 6} 39. Re1+ {4.79/17 2} Kd3 {3.35/6 0}
40. Ba5 {4.95/18 2} c3 {4.68/17 4} 41. Bxd8 {5.26/14 15
(Rd1+)} c2 {4.96/18 7} 42. Raa1 {5.26/15 3 (Ra3+)} b4
{3.55/17 8 (Kc3)} 43. Be7 {5.30/17 3} Rc4 {4.36/18 7}
44. f4 {5.31/ 16 16 (Kf1)} Re4 {2.70/16 6 (e2)} 45. Bc5
{6.08/15 9} b3 {4.48/18 11 (e2)} 46. Ba3 {6.18/18 5} g5
{5.89/18 3 (h4)} 47. Kf3 {6.94/14 4 (Bc1)} Re8 {6.86/16 4
(e2)} 48. Bc1 {7.00/15 2} h4 {8.80/18 9 (e2)} 49. gxh4
{7.43/15 11 (Ra3)} gxf4 1-0
It is not hard to change King Safety so that even situations with less mating potential are considered, but the difficulty lies in the re-tuning.
It was already hard to change any of the parameters without upsetting the equilibrium, but in situations with less material not all the default values will apply. Stockfish will give too much value to the attack or too little for instance, depending on King Safety changes, in this position.
This is a reasonable try for a new version of King Safety in Rainbow Serpent but it has flaws in other positions and the "other" positions are always much more numerous

2rr4/p5pp/1p3p2/3np3/P1pPk3/1nP1P1PP/RB3PK1/4R1N1 w - -
Engine: Rainbow Serpent 1.6.3s(dc) Build 90 (Athlon 2009 MHz, 128 MB)
by Tord Romstad, Marco Costalba, Joona Kiiski Modifications: Dann Corbit
1.00 0:00 +0.80 29.Nf3 (208) 1
2.00 0:00 +0.92 29.Nf3 h6 (338) 2
2.00 0:00 +1.29 29.f3+ Kd3 30.Ne2 Nxe3+ 31.Kf2 (739) 5
3.00 0:00 +1.29 29.f3+ Kd3 30.Ne2 Nxe3+ 31.Kf2 (988) 7
4.00 0:00 +0.92 29.f3+ Kd3 30.Ne2 Nxe3+ 31.Kf2 Nd5 (2.227) 17
4.00 0:00 +1.09 29.g4 Nc7 30.Nf3 Kd5 (3.429) 27
5.00 0:00 +1.41 29.g4 Nc7 30.Nf3 Nd5 31.dxe5 fxe5 (5.138) 41
6.00 0:00 +1.33 29.g4 Nc7 30.Nf3 Kd5 31.dxe5 fxe5
32.Rd1+ Ke6 (10.819) 76
7.00 0:00 +1.21 29.g4 Nc7 30.Ne2 Kd5 31.Ba3 exd4
32.exd4 Ne6 (28.586) 152
7.00 0:00 +1.81++ 29.f3+ Kd3 30.Ne2 Nxe3+ 31.Kf2 g5
32.dxe5 fxe5 33.Ba3 (36.524) 179
8.00 0:00 +0.76 29.f3+ Kd3 30.Ne2 exd4 31.exd4 Re8
32.Kf2 Nxc3 33.Bxc3 Rxe2+ 34.Raxe2 Kxc3
35.Re7 Nxd4 36.Rxa7 Nc2 37.Re2 (117.556) 313
8.00 0:00 +1.05 29.g4 Nc7 30.Nf3 Kd5 31.dxe5 fxe5
32.Ba3 Nc5 33.Rd2+ Ke6 34.Bxc5 Rxd2
35.Nxd2 bxc5 36.Nxc4 (134.803) 331
8.00 0:00 +1.29 29.Nf3 h6 30.g4 g6 31.Rd1 exd4
32.exd4 Kf4 (163.475) 348
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