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
5 changes: 2 additions & 3 deletions BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The order tasks are taken in, the first first (`node tools/backlog.js next`). So
| [VB-1709](backlog/VB-1709.md)<a id="VB-1709"></a> | Fix: a herd standing away for a household with a farm is never led home (populous small seed 11) | - | 2 | M | VB-1682 found herd 155 standing at farm 0 for household 19 from year 12 on, its drove job never done |
| [VB-1738](backlog/VB-1738.md)<a id="VB-1738"></a> | Tuning and design review of Stories | talk | 2 | L | With Kim: why old stories sharpen to ±1 and never fade (VB-1681's measure), the Stories model and numbers reviewed, the fix chosen, built and measured |
| [VB-1764](backlog/VB-1764.md)<a id="VB-1764"></a> | One view of every plan: Sim.strip at four zooms, in place of the timetable and the agenda | plans | 2 | M | sim/timetable and sim/agenda made one view: a body's hours at a zoom (today, the days ahead, the season, the year), past days exact by part, what is to come as the levy in force and what is committed, each estimate a range by the looking pawn's estimate. |
| [VB-1770](backlog/VB-1770.md)<a id="VB-1770"></a> | A holder proposes a routine or a change of the custom of lots to the meeting | plans | 2 | S | The verb propose: any holder of the village puts a routine, or the custom of lots, on its meeting's agenda; the decision stays the meeting's by its procedure, and no controller has a ballot. |
| [VB-1771](backlog/VB-1771.md)<a id="VB-1771"></a> | Duties of the days ahead: one member sees to a type of recurring work without a window | plans | 2 | M | A duty, given by the head at its review, puts its holder first for one type of recurring work without a window (the wood, the water, the beasts, the cooking) in each day's allotment and nothing more; work with a window is never a duty. In place of VB-1553's removed mechanism. |
| [VB-1808](backlog/VB-1808.md)<a id="VB-1808"></a> | A firewood goal keeps the timber a building counts on | - | 2 | S | VB-1775 review F3: one firewood task cuts all the timber home up to the season's goal, the timber a barn or cottage step counts on with it |
| [VB-1815](backlog/VB-1815.md)<a id="VB-1815"></a> | A household's last load of sheaves cut on the road is posted again before the frost | - | 2 | S | the haul re-posted after its last carrier is cut |
| [VB-1836](backlog/VB-1836.md)<a id="VB-1836"></a> | The owner cache left on another farmstead's tiles in the played populous seed 7 run | - | 2 | S | checkState fails at year 2 of populous small seed 7 with household 0's head played: farmsteads[61] owner cache 63, expected 62 (pre-existing at 79c22dd7) |
Expand Down Expand Up @@ -257,9 +257,8 @@ By arch, in the order of the Archs table, then priority and ID. Each waits for t
| [VB-828](backlog/VB-828.md)<a id="VB-828"></a> | Wrap-up: the round as offers, measured | acts | 3 | M | [VB-694](#VB-694), [VB-695](#VB-695), [VB-696](#VB-696), [VB-825](#VB-825), [VB-827](#VB-827) | long runs and the nightly band for marriages, service, land and settling by offers; the cost early and on a late save; `roundPairs` retired; who never got a yes |
| [VB-1556](backlog/VB-1556.md)<a id="VB-1556"></a> | A member's voice: a duty asked of the head | plans | 2 | S | [VB-1771](#VB-1771) | A member asks its head for a type of work as its duty, an offer answered by the head; the played member's lever on the day |
| [VB-1765](backlog/VB-1765.md)<a id="VB-1765"></a> | The page: the strip coloured by whose the hours are, and sovereignty on the pawn's card | plans | 2 | M | [VB-1764](#VB-1764) | One presentation for every plan of every body: the day strip, the agenda and the Plan tab's views drawn from Sim.strip at four zooms, each hour in the colour of whose it is (a breach hatched), the levy's line across each day to come, and the pawn's sovereignty on its card. |
| [VB-1771](backlog/VB-1771.md)<a id="VB-1771"></a> | Duties of the days ahead: one member sees to a type of recurring work without a window | plans | 2 | M | [VB-1770](#VB-1770) | A duty, given by the head at its review, puts its holder first for one type of recurring work without a window (the wood, the water, the beasts, the cooking) in each day's allotment and nothing more; work with a window is never a duty. In place of VB-1553's removed mechanism. |
| [VB-1772](backlog/VB-1772.md)<a id="VB-1772"></a> | Dated steps: work from a day and by a day, taken up on its day, with further hands when its window will be missed | plans | 2 | M | [VB-1771](#VB-1771) | A step of the days ahead with from and by (reap the rye from day 5, by day 9) is taken up by the day's allotment on its day; one its hands cannot finish by its window's end is given further hands at the head's review; leave and an outer levy's named day are dated steps. |
| [VB-1773](backlog/VB-1773.md)<a id="VB-1773"></a> | Wrap-up: plans at four scales: the gate on long runs, the predictions measured, the tuning named | plans | 2 | M | [VB-1764](#VB-1764), [VB-1765](#VB-1765), [VB-1770](#VB-1770), [VB-1771](#VB-1771), [VB-1772](#VB-1772), [VB-1780](#VB-1780), [VB-1556](#VB-1556) | The arch checked as a whole: the gate over 10 and 30 years, the predictions Q1 to Q13 against what was built, cost on a late save against today's line plus 7 ms, bands added, and the parameters a tuning run of Kim's would move (LEVY first). |
| [VB-1773](backlog/VB-1773.md)<a id="VB-1773"></a> | Wrap-up: plans at four scales: the gate on long runs, the predictions measured, the tuning named | plans | 2 | M | [VB-1764](#VB-1764), [VB-1765](#VB-1765), [VB-1771](#VB-1771), [VB-1772](#VB-1772), [VB-1780](#VB-1780), [VB-1556](#VB-1556) | The arch checked as a whole: the gate over 10 and 30 years, the predictions Q1 to Q13 against what was built, cost on a late save against today's line plus 7 ms, bands added, and the parameters a tuning run of Kim's would move (LEVY first). |
| [VB-1780](backlog/VB-1780.md)<a id="VB-1780"></a> | The page: outer levies, the alderman's year, and the doors of the ladder, the meeting and the duties on the strip | plans | 2 | M | [VB-1772](#VB-1772) | Steps 7 and 8 build verbs the player cannot yet reach: the strip shows outer levies in their windows with their terms, the alderman's year (levied, named, worked, lapsed, breached), and the doors for name, substitute, commute, breach, release and transfer, propose, a duty's assign and a dated step. |
| [VB-1803](backlog/VB-1803.md)<a id="VB-1803"></a> | A lodger's harvest days: a member taken in owes an adult-day in summer and one in autumn | plans | 3 | S | [VB-1772](#VB-1772) | the lodger's two adult-days, waiting for a lodger to exist |
| [VB-1123](backlog/VB-1123.md)<a id="VB-1123"></a> | Page: plan mode: the household's season planned on the map, in place of the Plan tab | - | 2 | L | [VB-1765](#VB-1765) | Plan mode replaces the Plan tab: a bar of the season a member with the actions on it, actions chosen from a tile's menu, problems marked where they are, and the outcome read on the needs (survival's thresholds, by the head's estimate); no target is stepped. Requirements, walks and Kim's decisions of 17 and 18 Nov; mocks A to L. |
Expand Down
1 change: 1 addition & 0 deletions BACKLOG_ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,3 +901,4 @@ Done tasks and closed archs, moved out of `BACKLOG.md` so its tables list only o
| [VB-083](backlog/VB-083.md) | Seasons on the map | roads | 3 | M | Seasonal tints and winter snow on the painted map. |
| [VB-034](backlog/VB-034.md) | Splitting land between heirs | debt | 3 | M | Under "land split between heirs" the fields are divided, so the custom stops behaving like a buy-out. |
| [VB-1964](backlog/VB-1964.md) | The ice key: two swatches, words one tap in | roads | 1 | S | The ice key beside the calendar is two swatches; their words show one tap in (Kim's icons-first rule). |
| [VB-1770](backlog/VB-1770.md) | A holder proposes a routine or a change of the custom of lots to the meeting | plans | 2 | S | The verb propose: any holder of the village puts a routine, or the custom of lots, on its meeting's agenda; the decision stays the meeting's by its procedure, and no controller has a ballot. |
14 changes: 8 additions & 6 deletions backlog/VB-1770.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VB-1770: A holder proposes a routine or a change of the custom of lots to the meeting
Status: ready
Status: done (2026-11-28)
Priority: 2
Size: S
Arch: plans
Expand All @@ -8,12 +8,14 @@ Design ref: design.md section 15, The meeting decides, a holder proposes; sectio
Touches: sim/meetings; sim/routines (chooseRoutines, rankRoutines); sim/customs; tests/routines.js
Goal: A pawn acts on its village's work through the meeting, as every holder may, and the played holder has no more
Acceptance criteria:
- [ ] The verb `propose` (a holder of the village; the check: a holder, the meeting not yet held this year, one proposal a holder a year) puts a routine or the lots practice on its village's next meeting's agenda; the meeting weighs it by its procedure (sim/decisions) beside the routines it ranks today; the record tells the proposal and its fate.
- [ ] A holder's default author proposes by its own judgement (a routine it needs and lacks hands for; lots that weigh on its household) at its year's review, a decision point.
- [ ] A test: a proposed routine is chosen when the meeting would weigh it highest and refused otherwise, for a played and an unplayed holder alike.
- [ ] The gate (`docs/plans/four-scales/README.md`, 3.10), by one command: `npm run verify` green (a test that asserted the old behaviour updated on purpose, never skipped or quarantined, and named in the PR), and `node tools/gate.js --base <the last recorded result>` passing (VB-1774): no settlement extinct by hunger or collapsed (VB-1774's bound), no more tasks held over 48 hours than the base, the stocks' `unexplained` no larger.
- [ ] Reported in the PR from the same output, not gated: hungry household-days and deaths by hunger in the six runs, before and after, and the work counters (`node tests/counters.js`, `--update` with the entries listed); the result kept (`--out`) as the next task's base.
- [x] The verb `propose` (a holder of the village; the check: a holder, the meeting not yet held this year, one proposal a holder a year) puts a routine or the lots practice on its village's next meeting's agenda; the meeting weighs it by its procedure (sim/decisions) beside the routines it ranks today; the record tells the proposal and its fate.
- [x] A holder's default author proposes by its own judgement (a routine it needs and lacks hands for; lots that weigh on its household) at its year's review, a decision point.
- [x] A test: a proposed routine is chosen when the meeting would weigh it highest and refused otherwise, for a played and an unplayed holder alike.
- [x] The gate (`docs/plans/four-scales/README.md`, 3.10), by one command: `npm run verify` green (a test that asserted the old behaviour updated on purpose, never skipped or quarantined, and named in the PR), and `node tools/gate.js --base <the last recorded result>` passing (VB-1774): no settlement extinct by hunger or collapsed (VB-1774's bound), no more tasks held over 48 hours than the base, the stocks' `unexplained` no larger.
- [x] Reported in the PR from the same output, not gated: hungry household-days and deaths by hunger in the six runs, before and after, and the work counters (`node tests/counters.js`, `--update` with the entries listed); the result kept (`--out`) as the next task's base.
Notes:
- 27 Nov 2026, VB-1766: no criterion moved; "lots that weigh on its household" reads its lots under the custom against those under another (design.md, Outer levies, Lots).
- 25 Nov 2026: Path step 7. The head's match for a member is the verb `match` (VB-1744): `propose` is the meeting's.
- 25 Nov 2026, after the review of the arch's tasks: rewritten to its findings (the review's IDs and outcomes are in the arch's summary).
- 28 Nov 2026, VB-1770: `propose` is in sim/meetings (agenda `plan.proposed`, one a holder a year, refused once the year's meeting is held). A routine goes to a vote kind `routine` (taken up where the village has the work, refused where it has none; holders' words add 1 each to its rank); lots go to a vote kind `lots` of the households, each for the rule giving its own lot (of a reference levy of 2 days a household) least, margin the practice's malleability. The village's custom is `plan.lotsRule`, read by `Customs.lotsRule` (levies' layLots), else its culture's practice. The default author proposes at the meeting's step, as the agenda closes (a routine not yet chosen where the farm has over 2 fields an adult, else lots lighter by a day).
- Every available routine is already chosen today (4 routines, cap 4), so a routine proposal changes only the order; it matters once more routines exist. Counters: tests/counters.js has 1 out (route counters, not this task's); baseline not updated. Gate holds against docs/gate/base.json (hungry-days: populous 262>183, 219>119, 304>228; founders 42 0>6; no hunger deaths); result kept at the scratchpad, for the orchestrator.
3 changes: 1 addition & 2 deletions backlog/VB-1771.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# VB-1771: Duties of the days ahead: one member sees to a type of recurring work without a window
Status: blocked
Waits for: VB-1770
Status: ready
Priority: 2
Size: M
Arch: plans
Expand Down
2 changes: 1 addition & 1 deletion backlog/VB-1773.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VB-1773: Wrap-up: plans at four scales: the gate on long runs, the predictions measured, the tuning named
Status: blocked
Waits for: VB-1764, VB-1765, VB-1770, VB-1771, VB-1772, VB-1780, VB-1556
Waits for: VB-1764, VB-1765, VB-1771, VB-1772, VB-1780, VB-1556
Priority: 2
Size: M
Arch: plans
Expand Down
1 change: 1 addition & 0 deletions backlog/VB-1807.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Acceptance criteria:
- [ ] From VB-1768: section 9, Outer levies: Lots: A routine whose tasks are not yet posted at the season's first review is sized and laid at the first later review of the season that finds them, its window from that day to the season's end
- [ ] From VB-083: Climate and travel beyond walking: The map's look by band: autumn colours from 8 game days before the band's normal frost until snow lies; fresh green from the thaw to 10 game days after normal open water; ice that does not bear (frost to lakeBears, soundShut to soundBears, thaw to open) drawn slate, ice that bears near white, with a key.
- [ ] From VB-034: Inheritance, Handover and shares (Splitting land): An heir given split fields who dies before its house is built: its title ends and the fields go back to the farm they came from. Only grown siblings in the farm's village with no farm or plot of their own want land; a child takes its share in goods.
- [ ] From VB-1770: section 9, Outer levies: Lots: a village meeting may change its own custom of lots (plan.lotsRule) by a vote of its households, each for the rule giving it the lightest lot of a reference levy, margin 0.4

A line a finding, added by `node tools/backlog.js collect design` (tools/lib/collect.js): findings of a kind are collected, not given a task each.

Expand Down
8 changes: 8 additions & 0 deletions src/sim/customs.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ VB['sim/customs'] = (() => {
// The culture's practice of key k: its own, or the one every culture starts with (a save made before VB-257).
const practiceOf = (c, k) => (c && c.practices && c.practices[k] !== undefined ? c.practices[k] : PRACTICES[k].base);

// A village's custom of lots (VB-1770): the option its meeting chose (plan.lotsRule), else its culture's practice.
function lotsRule(st, vid) {
const plan = st.plans && st.plans.villages.get(vid),
s = st.cenv && st.cenv.settlements[vid];
return plan && plan.lotsRule ? plan.lotsRule : practiceOf(s && st.cenv.cultures[s.culture], 'lots');
}

// ---- the door: the option of a custom in force ----
// `at` is a settlement id (a village id). With no culture seeded, no such settlement, or a practice array
// shorter than the catalogue (a save made before the custom was added), the option is the one of the archetype every
Expand Down Expand Up @@ -396,6 +403,7 @@ VB['sim/customs'] = (() => {
ARCHETYPES,
PRACTICES,
practiceOf,
lotsRule,
fromArchetype,
inForce,
inForceAt,
Expand Down
6 changes: 4 additions & 2 deletions src/sim/levies.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ VB['sim/levies'] = (() => {
const { cal, DAY, WORK, AGES, TICKS } = VB['sim/rules'],
{ CHILD, MATCH } = VB['sim/roles'];
const { age, spouseOf, villageOf } = VB['sim/records'];
const { levyNorm, practiceOf } = VB['sim/customs'];
const Customs = VB['sim/customs'],
{ levyNorm } = Customs;
const Routines = VB['sim/routines'],
Steps = VB['sim/steps'];
const { planOf } = VB['sim/plans'];
Expand Down Expand Up @@ -1509,7 +1510,7 @@ VB['sim/levies'] = (() => {
at = Math.floor(window[0] / SEASON_DAYS),
had = hadIn(plan, at),
s = st.cenv && st.cenv.settlements[v.id],
rule = practiceOf(s && st.cenv.cultures[s.culture], 'lots'),
rule = Customs.lotsRule(st, v.id), // the village's custom: its meeting's choice, else its culture's (VB-1770)
[lots, rest] = split(st, v.id, D, rule, (id) => OUTER.lotMax - (had[id] || 0)),
step = Routines.stepOf(plan, k),
why = step ? { step: step.id, of: `village:${v.id}` } : null;
Expand Down Expand Up @@ -1618,6 +1619,7 @@ VB['sim/levies'] = (() => {
leviesOf,
lotsOf,
split,
split,
costOf,
keepDay,
unnamed,
Expand Down
Loading
Loading