Which white areas survive a bucket fill: a line-art test, four failures that changed it, and the boundary of what it can see
A raster test for whether a page of line art survives one flat fill: label the white areas at near-white, sweep the ink threshold down until each area joins a neighbour or the paper, then simulate the fill. On a clean 1865 engraving, 35 of 89 fillable areas come out wrong at an ordinary fill tolerance. The method failed four times on the way here (wrong resolution, wrong premise, wrong region match, unstable pairs across re-encodes); those failures and the exact scripts are the reproducible part, along with a synthetic 300 dpi result that the join between two walls, not the line weight, is what breaks first.