Status: ready Priority: 3 Size: M Design ref: backlog/VB-247.md (its notes of 22 and 25 Nov); AGENTS.md, Conventions (ids are array indexes; st is plain data) Touches: sim/jobs (post); sim/agents; tools/writes.js; tests/codec.js Goal: A job names the records it works on by id, and a pawn its job by key, so a save holds none of these as shared objects Acceptance criteria:
farm, field, meadow and plot as ids (field and meadow as the id within their farm, beside the farm’s id) and stretch as its fence’s place ({village | farm, index}); a helper in sim/agents, where jobs are owned, gives the record (farmOf(st, j), fieldOf(st, j), …), and every reader goes through it.agent.job and agent.side.* name the job by its key, not the object; a pawn holding a job after dropJob (hay, 3 pawn-hours a year at populous seed 7) keeps its behaviour: the dropped job is kept where it is read, or the change is named with its numbers.tools/writes.js: the ALIAS entries for job.field, job.meadow, job.farm, job.plot and job.stretch go or follow the helpers; no new unresolved write (VB-243).FORMAT rises by one.node tools/same.js --base REF differs only in these back-references (ids for objects): no number of the simulation moved (living, households, grain; populous and founders, small, seeds 3, 7, 11, 42, 15 years).npm run format and npm run verify pass.Notes: