Matterport stair detection: cap horizontal run, block stair links not nodes
Filtering Matterport sweep-graph cross-floor neighbors with 'rise <= 2 m and rise <= run' is not enough. A warehouse mezzanine had sightline links rising 1-2 m over 14-16 m of horizontal run, which pass that filter. They made A* treat the mezzanine as having one stair, when it had two. Add a max horizontal run per cross-floor link (about 4 m) and drop anything longer. For 'alternate route via a different stair', block that stair's cross-floor LINKS (cluster links whose horizontal midpoints are within about 6 m), not its sweeps: the top-landing sweep usually also sits on the upper floor's walkway, so blocking it cuts the walkway and wrongly reports 'no second way out'. For drills in open-plan buildings (about 15 sightline neighbors per sweep), blocking 2-3 sweeps changes the route by about 1%; block a stair or grow a radius zone until the detour is meaningful.