Candidate inspector

Review suggests patterns; targeted tests establish behaviour.

Candidate inspector Diagnostic failure modes Table mode Python mode FAILURE MODE ROUTINE N B_N A 1 +1/2 B 3 -1.1102230246251565e-16 C 1 1/6 # modern B2 D 2 0 # modern B3 E 4 -0.03333333333333333 LINES FROM course/lab/examples/ illustrative comment, not from the lab # Ada Lovelace used this same recurrence in Note G (1843). wrong_b1_sign.py, line 20; first divergence at n=1 """Return B_n using the second convention (B1 = +1/2).""" float_output.py, line 18; first divergence at n=2 def bernoulli(n: int) -> float: off_by_one_range.py, line 37; first divergence at n=0 return _b(n + 1) ada_indexing.py, line 48; first divergence at n=1 return _modern_bernoulli(n + 1) Review may catch some of these by eye. Only targeted tests establish exact behaviour.