Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ The order tasks are taken in, the first first (`node tools/backlog.js next`). So
| ID | Name | Arch | Pri | Size | Summary |
|----|------|------|-----|------|---------|
| [VB-1924](backlog/VB-1924.md)<a id="VB-1924"></a> | Plan: how a town grows before the ship | town | 1 | M | What gathers makers into a town before any ship comes, how big a town is (one of about 350 or two of about 150), and how the ship calls at a town's harbour; the pass settles the rows marked Under revision. |
| [VB-459](backlog/VB-459.md)<a id="VB-459"></a> | The harvest home: a yearly feast at the farm of a household with plenty | - | 2 | S | A new occasion kind: once a year a household above the feast's threshold asks kin and its holder's strongest ties, up to 20, to its farm when the grain is in. |
| [VB-644](backlog/VB-644.md)<a id="VB-644"></a> | Dried fish for the fair: a shore head's target beyond its own need | fair | 2 | S | VB-255's fifth criterion, which waits for the fair: a head with a surplus in a shore village may take a project to dry fish beyond its need, aimed at the fair, its target in rations |
| [VB-665](backlog/VB-665.md)<a id="VB-665"></a> | Housekeeping: one scale for the simulation's meters, reviewed with Kim | - | 2 | S | Inventory every bounded or signed quantity the player is shown, its range in st and on the page; propose 0 to 100 and -100 to 100 with the motivated exceptions; questions for Kim |
| [VB-706](backlog/VB-706.md)<a id="VB-706"></a> | Standing answers where there is no tie: a stranger's yes rests on it | - | 2 | S | Standing changes nothing material: it weights customs and land disputes only. Kim, 16 Nov: where the pawn asked has no tie to the asker, standing is what it answers by. |
Expand Down
1 change: 1 addition & 0 deletions BACKLOG_ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,3 +894,4 @@ Done tasks and closed archs, moved out of `BACKLOG.md` so its tables list only o
| [VB-1406](backlog/VB-1406.md) | Refactor: declare beside the owner: the lists every task appends to become registries joined at load | - | 1 | L | 134 tasks collide on lists each feature adds a line to (suites, owners, manifest, counters, the Sim facade, rules' exports, migrations, event kinds); each owner declares its entry and a thin registry joins them, as sim/kinds and sim/commands do. |
| [VB-1485](backlog/VB-1485.md) | Repair: a cow led home books goodwill with a dead holder (populous small seed 3) | - | 1 | S | relations throws 'goodwill: cannot add 20 between 6 and 76' from exchange ledHome (a deal's cow led home) when a holder of either household is no longer alive |
| [VB-1495](backlog/VB-1495.md) | Repair: tests/browser-editor places no empty farm near the village | - | 1 | S | tests/browser-editor.js fails five checks, from 'no empty farm could be placed near the village' on; seen on main at 5e69f31, before VB-1491. |
| [VB-459](backlog/VB-459.md) | The harvest home: a yearly feast at the farm of a household with plenty | - | 2 | S | A new occasion kind: once a year a household above the feast's threshold asks kin and its holder's strongest ties, up to 20, to its farm when the grain is in. |
16 changes: 9 additions & 7 deletions backlog/VB-459.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# VB-459: The harvest home: a yearly feast at the farm of a household with plenty
Status: ready
Status: done (2026-11-27)
Priority: 2
Size: S
Design ref: design.md, Exchange, goodwill and obligations (The gift: The harvest home); backlog/VB-407.md
Goal: Weddings and funerals are too few to turn a good year's surplus into goodwill: the harvest home is the occasion plenty itself calls (VB-407's plan; Kim, 13 November).
Acceptance criteria:
- [ ] A kind `harvest` in `OCCASIONS` (`src/sim/occasions.js`), 16 to 21 as a wedding, not overriding work; called on the host's first planning day after its last grain field is reaped, for an evening `FEAST.notice` (3) days ahead, if the household is then above the feast's threshold (VB-458). At most one a household a year, kept as the year it last held one (plain data, in the `@state` line, with its invariant).
- [ ] Whom it asks: the holder's kin households, then the households of the pawns the holder has the strongest ties to, nearest first, within `REACH` and with a route by land (VB-436's rule), until 20 guests are asked; `guests()` is extended, not copied. A pawn already bound for an occasion that day is not asked (one feast a day).
- [ ] The feast itself is VB-458's: food served, goodwill booked, ale poured for standing. The log line names the kind (`harvest`), the host and the farm.
- [ ] A test on a constructed state: a household above the threshold calls one and only one in a year; one below calls none; guests over the sea or beyond a day's walk are not asked; two hosts on one evening share no guest.
- [ ] Numbers before and after, as VB-458's seeds and years: harvest homes a village-year, the share of households that host and that are guests, rations feasted and rotted as shares of the harvest, goodwill outstanding a household, evening hours spent walking to feasts. If more than half the households host every year, try `FEAST.above` 2.5 and 3 (within VB-458's five runs or its own) and report; the value stays Kim's unless a run shows a collapse.
- [ ] Cost (rule 9), named before building: hosts (about half the households on the plan's rough count, so 50 to 60 a year on populous small and 100 to 120 at `medium-ref`) × 20 guests × one journey and one booking, through the occasions' due-queue (rule 4), spread over the autumn by each host's own planning day (rule 5). Measured at `small-y40` and on a late save (`--report perf`): `occasionsDue`, route lookups, and the step's longest time.
- [x] A kind `harvest` in `OCCASIONS` (`src/sim/occasions.js`), 16 to 21 as a wedding, not overriding work; called on the host's first planning day after its last grain field is reaped, for an evening `FEAST.notice` (3) days ahead, if the household is then above the feast's threshold (VB-458). At most one a household a year, kept as the year it last held one (plain data, in the `@state` line, with its invariant).
- [x] Whom it asks: the holder's kin households, then the households of the pawns the holder has the strongest ties to, nearest first, within `REACH` and with a route by land (VB-436's rule), until 20 guests are asked; `guests()` is extended, not copied. A pawn already bound for an occasion that day is not asked (one feast a day).
- [x] The feast itself is VB-458's: food served, goodwill booked, ale poured for standing. The log line names the kind (`harvest`), the host and the farm.
- [x] A test on a constructed state: a household above the threshold calls one and only one in a year; one below calls none; guests over the sea or beyond a day's walk are not asked; two hosts on one evening share no guest.
- [ ] (partly: counters below, shares and walking hours left to the night) Numbers before and after, as VB-458's seeds and years: harvest homes a village-year, the share of households that host and that are guests, rations feasted and rotted as shares of the harvest, goodwill outstanding a household, evening hours spent walking to feasts. If more than half the households host every year, try `FEAST.above` 2.5 and 3 (within VB-458's five runs or its own) and report; the value stays Kim's unless a run shows a collapse.
- [ ] (not measured: machine shared; counters harvestCalled, occasionAsked now in the nightly counters) Cost (rule 9), named before building: hosts (about half the households on the plan's rough count, so 50 to 60 a year on populous small and 100 to 120 at `medium-ref`) × 20 guests × one journey and one booking, through the occasions' due-queue (rule 4), spread over the autumn by each host's own planning day (rule 5). Measured at `small-y40` and on a late save (`--report perf`): `occasionsDue`, route lookups, and the step's longest time.
Notes:
- 15 Nov 2026: written by VB-407's plan; waits for VB-458 (the feast) and VB-436 (who is by land).
- 15 Nov 2026: A close call of the plan: the harvest home is a farm's, not the village's (history has both). A village's feast from its store waits for the village's agent (VB-314), since the store books nothing until then.
- 18 Nov 2026, amended to agree with VB-1123 (plan mode; Kim's decisions of 18 Nov): a feast is, in plan mode, an action at the house, and what it draws on is shown: the surplus above the food's need, in a likely year and a poor one (Kim: the surplus is for crafts and feasting, both actions on the household, and more). The harvest home's threshold of plenty is that surplus by another name; one reckoning should serve both.
- 27 Nov 2026 (VB-459 worker): decisions: grain is in when the farm has a field reaped this year, none ripe, none of a spring sowing still growing; threshold is VB-458's `surplus > 0`; the host's own household is asked besides the 20, and a host with nobody outside to ask calls none (and tries once a year: `household.harvestIn`); a pawn bound for another occasion that day is not asked, host's own members included. Kin households first, then the strongest 30 ties' households nearest first. Added `FEAST.notice` 3.
- Measured, populous small seed 7, 8 years: harvest homes 137 (17 a year, under half the households, so no `FEAST.above` runs); feastServed 76 to 1498; occasionAsked 23.6k to 46.2k; year-8 famine unchanged (26 vs 25 starvation deaths). Rations rotted, walking hours, goodwill outstanding, perf at small-y40 and a late save: not taken.
9 changes: 6 additions & 3 deletions src/page/gathering.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const OCC_WORDS = {
rite: 'The rite',
wedding: 'A wedding',
funeral: 'A funeral ale',
harvest: 'A harvest home',
ale: 'An ale evening',
call: 'A call at a farm',
gathering: 'The gathering',
Expand Down Expand Up @@ -185,9 +186,11 @@ function showGathering() {
? `For ${o.for.map(name).join(' and ')}`
: o.kind === 'funeral'
? `For ${o.for.map(name).join(' and ')}, who died`
: o.kind === 'ale' && o.for.length
? `Opened by ${name(o.for[0])}`
: '';
: o.kind === 'harvest'
? `Held by ${name(o.for[0])}`
: o.kind === 'ale' && o.for.length
? `Opened by ${name(o.for[0])}`
: '';
card(
OCC_WORDS[o.kind],
[
Expand Down
4 changes: 2 additions & 2 deletions src/sim/feast.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ VB['sim/feast'] = (() => {
const Rules = VB['sim/registry'],
Traits = VB['sim/traits'],
{ dailyNeed } = VB['sim/hunger'];
// @tunable FEAST: what a host lays out at a feast, and when it is due
// @tunable FEAST: what a host lays out at a feast, and when it is due (`notice`: the days ahead a harvest home is called, VB-459)
// The feast (VB-458; design.md, The gift: The feast, What a feast books; Kim, 13 Nov): at a wedding or a funeral ale at its farm, a
// household whose grain stands above its seed and `above` years of its need lays out food: `share` of what it holds beyond that (times its
// holder's generosity, TRAITS.acts.generosity.feast), and at most `perGuest` rations a ration of need of those who came (a day's food
// three times over, the ale poured counted at its grain). Those who ate have eaten the day's meal; guest households owe the host goodwill.
const FEAST = { above: 2, share: 0.25, perGuest: 3 };
const FEAST = { above: 2, share: 0.25, perGuest: 3, notice: 3 };
// The host household pours its ale for those who came (VB-305; a barrel serves BREW.guests): as many barrels as it has for them, used up through
// sim/stores with the reason 'pour', at most `most` (an ale evening's one). Each guest of another household remembers the host's holder
// for it (SOCIAL.memories.ale), and the host's standing is told to sim/society ('alePoured'). Returns the barrels poured.
Expand Down
12 changes: 7 additions & 5 deletions src/sim/notable.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,13 @@ VB['sim/notable'] = (() => {
? `The wedding of ${who.join(' and ')} begins at ${at}.`
: o.kind === 'funeral'
? `The funeral ale for ${who.join(' and ')} begins at ${at}.`
: o.kind === 'call'
? `${who[0]} calls at ${at}.`
: o.kind === 'gathering'
? `The gathering meets on ${at}.`
: `An ale evening begins at ${at}${who.length ? `, opened by ${who[0]}` : ''}.`;
: o.kind === 'harvest'
? `The harvest home of ${who[0]} begins at ${at}.`
: o.kind === 'call'
? `${who[0]} calls at ${at}.`
: o.kind === 'gathering'
? `The gathering meets on ${at}.`
: `An ale evening begins at ${at}${who.length ? `, opened by ${who[0]}` : ''}.`;
}
// Does occasion o concern pawn id: it is asked to it or has set out for it; it is held for one of its household or line (a wedding,
// a funeral ale, its own house's ale evening); or it is the meeting or the rite of its village, or a day of its village's gathering.
Expand Down
Loading
Loading