village-builder

VB-1169: Cost: the asking walks the whole queue for each match asked: an index of the unmarried by village

Status: done (2026-11-19) Priority: 2 Size: S Arch: yardstick Phase: implement Design ref: AGENTS.md, Rules for cost (1, 2); backlog/VB-693.md Goal: A match asked reads the unmarried of the villages within reach, not the island’s queue. Acceptance criteria:

Notes: st.askingBy (cache, sim/wishes) files {t,pawn} by village; entry.v is its filing. askMatch reads villages nearest-first and stops at ASK.pool weighed; farSingles is a generator, village by village. Same weighed order except ties of equal h between different villages (by village id now, not queue); same.js founders+populous small 12y: only the new fields differ. A refiled pawn goes behind equals of the same t (invariant ignores that order). medium-ref counters owed to the night.