VB-1926: The head’s call is urgent or not: bring the load in, or drop everything
Status: done (2026-11-27)
Priority: 2
Size: M
Arch: plans
Phase: implement
Design ref: design.md, Plans at four scales (The head calls; The cut and the call; A load in hand); Principles for decisions; docs/plans/four-scales/README.md
Touches: sim/day (call); sim/jobs (allot, slotIn); sim/reasons; page/play; tests/call.js
Goal: A head’s call to a member is non-urgent by default (the member brings its load in, arrives within about an hour) or urgent (drops the load, comes now), and the panel names which and its cost before the call.
Acceptance criteria:
A call carries urgent (default false). A non-urgent call to a member with a load in hand lets it finish its leg and bring the load to its body’s store, and the member plans to be at the called task within about a game hour of the call (a target the plan aims at; nothing lapses if it is later); an urgent call sets the load down as a pile at once (the stray pile’s rules) and sends the member now.
The deadline call (a meal due today) is non-urgent unless its head or the rule marks it urgent; a head’s call beyond the member’s levy is still a demand (design.md, The levy and own hours) whichever kind it is.
The play panel and the call’s cost line name the kind and its cost before the call (the wait, or the load left and the walk home), as an icon and label with the sentence one tap in (design.md, section 15, Icon and label first).
Tests on a constructed state: a member carrying a load is called non-urgent and the load reaches the store before it arrives; called urgent, the pile lies where it stood and it arrives sooner; tests/call.js and tests/reasons.js pass.
Touches (as built): sim/agents (work, onward, release, answer); sim/day (call, the verb call); sim/timetable (callCost); sim/reasons (reasonOf); sim/roles (MATCH.day.within); page/day (callHTML, callKinds, dayEntry, dayClick).
Notes:
The kind rides on the work command (args.call, args.urgent), so sim/agents alone writes the new agent.calledTo {key, by}; the load in hand goes on by the rule, and once it is down the hand lets its task go and takes the called one (answer), within the working day only.
Urgent is the old path: release sets the load down as a titled pile; a called task of the load’s own kind picks that pile up again first (the stray pile’s rule), which is the design’s.
The deadline call is never urgent (no rule marks it; the played head marks it by the verb). A loaded hand used to be skipped by it until the next allotment; it is now called after its load.
Past the levy the verb is a demand either kind: the demand’s yes re-issues the verb with its args, urgent included.
The play panel names the kind by the pawn’s reason line (“brings its load in first, then plow, by about 10:30”); the Plan tab gives each entry a Call… with both kinds as icon, label and hours, the sentence in a fold.
Review (revise): F1 mended (a call home clears a call waiting for the load); F3, F5 mended; F2, F4, F6 (VB-1958), F7 declined.