Status: done (2026-11-11) Priority: 2 Size: S Arch: year Phase: implement Design ref: Work: opportunities, plans and tasks (design.md, section 7); docs/review-work.md, section 2 (Attention) Goal: A pawn holds one task. The design lets it hold one partial and one background task besides (minding the herd while doing something that can be put down). Build the shape; herding (VB-136) is its first use. Acceptance criteria:
full (the default, every kind today), partial (left and returned to within the hour) or background (done at the side, at a rate the kind states). A pawn may hold one background task and one partial task at once, and never a background task beside a full one that takes it out of reach (the kind states its reach in steps).tests/golden.json is unchanged.@state line and invariants (at most one of each per pawn; a held task names a living pawn). npm test, node tests/golden.js.
Cost: none until a kind uses it; one more field per pawn.
Notes:QUESTION_ARCHIVE.md, “VB-164: the household’s year”): written. Edits src/sim/jobs.js and its neighbours, so the slice’s tasks run one at a time, and not beside VB-227, VB-241 or VB-247.attention (full by default), and for background a reach (steps) and a rate (share of the pawn’s hours); documented in src/sim/kinds.js. No game kind declares one.agent.side: absent, or {partial, background} (jobs or null); absent when empty, so the golden state is unchanged (made lazy for that, instead of a field on every pawn). Held tasks list the pawn in j.claims.src/sim/agents.js: sideWhy, offerWhy, hold, unhold, dropSides, reachAfter, stepSide. The work verb holds a non-full job as a side task (checked: slot free; background within reach of the pawn and of its full task’s site) and a full one as before, dropping a background task the new site takes out of reach (the urgency switch). bid offers a pawn that holds a background task only partial tasks within reach; lookUp never switches to a side task. A step drops a background task when the pawn leaves reach or the job leaves the board, and works it at rate; death and freeHands let go. Dropping removes the pawn from j.claims, so the task is open for others with its progress.tests/attention.js (in npm test): a test-only kind of each attention. Invariants in tests/lib/invariants.js.node tests/golden.js matches; counters unchanged expected (no kind uses it).