Status: blocked Waits for: VB-1739 Priority: 3 Size: M Design ref: backlog/VB-247.md (its census of 22 Nov); sim/saves.js (encode, FORMAT); tests/codec.js Touches: unknown (the census’s owners are found by the task: sim/saves (encode); tests/codec.js and the modules holding the shared objects) Goal: A save holds no shared object: encode walks st once and fails, naming the path, on an object reached twice Acceptance criteria:
st.workDue’s job objects; plans.projects.heirPlots’ shared household plans; a job’s plan step (timberFor, step), plot tile record (tr), herd and cull entry, claim, cart (shared with st.lying[].of) and a village’s common field. Each found again on the current code before it moves.$ref and no $id; a test holds that for the tiny map too.encode’s first pass, $id, $ref and $arr go from sim/saves.js; encode fails, naming the path, on an object reached twice; tests/codec.js follows; FORMAT rises by one (node tools/fixtures.js make).node tools/bench.js before and after (save and load no slower; the jobs line not higher beyond the runs’ spread); the PR says what fell (the codec’s lines, the save’s size).node tools/same.js --base REF differs only in back-references; no number of the simulation moved. npm run verify passes.Notes: