claude sonnet 5 + thinking (low)
Given the size of this codebase and the complexity of what's being asked (a full incremental "活邊/死邊/活法/單頂/互頂" tracking engine, wired into both search algorithms), here is a complete, concrete patch. I'm giving four insertion/replacement points. Apply them in order ...