VB-1172: The booth is a project of the pawn who raises it
Status: done (2026-11-22)
Priority: 2
Size: M
Arch: acts
Phase: implement
Design ref: design.md, Sleeping away from home; AGENTS.md, Deciding without Kim (16, 19); Rules for cost, 1
Goal: Kim, 18 Nov 2026 (the session on VB-228): a booth is a temporary shelter, raised by a pawn for a pawn or a group so that they do not sleep rough for a season, and it should be a project. Today the verb raiseBooth only pushes a record to st.booths and sim/building’s boothWork posts the wood and the raising by scanning every booth ever staked for each household (Rules for cost, 1); its check asks free (not on the road), copied from the walking verbs, though staking takes no time; and nothing in play issues it (only tests/booth.js).
Acceptance criteria:
Staking a booth makes a project plan held by the pawn who stakes it (sim/plansmakeProject, holder type pawn): the wood, then the raising, each step opening when the one before is done; boothWork’s scan of st.booths goes, and the cost is reported before and after on a late save.
The verb registers where the plan puts it; its check is living and the ground’s (raiseBoothWhy), not free: a pawn on the road may stake one.
A pawn in play stakes one by its own judgement when it would otherwise sleep rough for a season (a settler, a worker lodging away); the player’s pawn has the same verb (principle 16).
Giving it up is the project’s dropProject; a booth’s record keeps only what stands (built, wood, condition).
Numbers before and after at founders seed 7 small: nights slept rough, booths raised.
Notes:
18 Nov 2026 (VB-228, with Kim): whether the group it is raised for (guests) is named at staking, as today, or joins later, is this task’s to decide (Deciding without Kim).
22 Nov 2026: a staked booth is its maker’s plan {what ‘booth’, booth (its id, taken at staking), tile, guests, steps: wood (timber 2), raising (12 h)}, posted once for the island over the live pawn plans (sim/building stakedWork; boothWork keeps only the settlers’ cottage); the record is made at the raising and keeps by, maker and guests besides built, wood and condition, since who may sleep there is part of what stands.
Guests: named at staking and let in later (letIn on the plan, then on the booth). Giving up: the verb dropBooth (its maker, before it is raised) drops the plan through sim/projectplans (event projectGivenUp); the wood brought lies at the tile (leftTimber). A dead or homeless maker’s plan is given up the same way.
Judgement: a lodger under the open sky for more than BOOTH.worth (2) nights stakes at its bed (design: a stay of more than a night or two wants a booth), works the booth’s jobs first and waits at its bed until they are posted; not the unplanned played pawn. Settlers are left out: they live in the settlers’ booth (farmstead.booth), already a roof.
Close call: a far lodger’s timber is fetched from its own village’s wood, as before; the wood nearest the booth is VB-790’s to decide.
Numbers, founders small seed 7, 15 years, before -> after: nights rough 79 -> 79 (all on the road), at a bed 0 -> 0, booths raised 0 -> 0: no site lodges a worker at open ground today; the rule first fires with VB-790’s sites (noted there). Counters unchanged (tests/counters.js, 13 out at both).
Cost, a late save (populous small seed 7, year 15, one year on): jobs refresh and matching 95.97 -> 96.09 ms a day (noise), the year’s outcome the same; the old scan cost nothing in play (no booth was ever staked), the new rule walks the live pawn plans once a review hour. same.js against dc3b44a: no difference (founders, heirs, populous; seeds 7, 42; small; 3 years).