Status: ready Priority: 3 Size: S Design ref: none (code structure). backlog/VB-1473.md; docs/cost.md (Rules for cost, 4) Goal: VB-1473 kept each queue’s order, so sim/due has two inserts (by due then id; by due, after those due at the same time) and st.offers, st.occasions, st.obligationsDue and st.asking still remove by scanning (indexOf, findIndex). With breaking changes allowed (Kim, 21 Nov 2026), every queue is ordered by due then a unique id, sim/due loses append and after, and every removal is a search by key. Acceptance criteria:
st.workDue, st.legDue, st.plans.due, st.asking and st.askingBy, st.visits, st.offers, st.occasions, st.obligationsDue) is ordered by due, then an id no two entries share (a visit’s and an asking’s: its pawn); sim/due exports no append or after; no indexOf or findIndex removes from a due-queue (an occasion whose due moves is removed before it moves).tools/same.js against the starting commit, and each difference traced to such a tie or reported; numbers before and after at founders and populous, seed 7, small, 5 years (marriages, offers answered, occasions held).tests/due.js extended; npm run verify passes; baselines do not rise.
Notes / questions: