village-builder

Slices: what each brings, and their order

Split from docs/roadmap.md on 16 November 2026. The timeline of what was built when, and the estimate of when the rest is done, is docs/roadmap.html, made from the backlog by tools/roadmap.js. The late game’s budget, the ten rules for cost and cheap measurement are docs/cost.md. Sections 1 to 4 keep the roadmap’s numbers (a reference to “roadmap 3.4” is section 3.4 here); the roadmap’s section 5 is docs/cost.md section 1, its section 6 is docs/cost.md section 2, and its sections 7 and 8 are 5 and 6 here.

Testing policy updated by VB-408 (12 November 2026): Testing supersedes the golden-file, suite membership and CI requirements below. There are no permanent behavior baselines to update. Refactors preserve behavior through focused contracts and tools/same.js against their starting commit. Late fixtures and long measurements run in the extended/nightly tier, not routine PR verification.

Written on 3 November 2026, when Kim made docs/architecture/target-v2.md the project’s architecture reference. Kim asked four things: which vertical slices to build, in what order, how to keep the game fast (above all late in a run), and how to make measuring that cheap. Kim also noted that target-v2 is mostly a framework, and that the concrete systems built on it still need designing. Read at fc5c2fc. The numbers in docs/cost.md section 1 were measured that day in this repository’s container (4 cores, Node), with tools/sim.js and a 40-year save. They are one run each, so treat them as accurate to about 10%.

Kim decided on 3 November, marked Decided: the slices and their order, about 1,000 living pawns on a medium map as the late game’s reference, design.md v0.4 as a skeleton the slices fill in, the budget, the work counters, and the ten rules (now in AGENTS.md). The rest is Proposed. The slices are archs of BACKLOG.md (keys in section 5). No code changes.

1. In short

2. What a slice is

The idea is the walking skeleton (Cockburn, Crystal Clear, 2004) or the tracer bullet (Hunt and Thomas, The Pragmatic Programmer, 1999): a thin piece that runs end to end, then grows. Both citations are from memory. Here it means:

  1. A slice ends in something the player can do or see, and a probe that measures it. Plumbing alone is not a slice. Slice 0 is the exception: it is the measuring rod.
  2. Framework arrives with its first consumer. A target-v2 module is built only as far as the slice needs. Stores gains typed goods when the fair needs a cow and a sack; land gains use beside own when the first tenancy needs it. This is the rule of AGENTS.md on special cases, applied to the architecture: an abstraction earns its place.
  3. Behaviour-preserving first. A slice starts with refactors that move today’s behaviour behind the target’s interfaces, with the golden file unchanged. Behaviour then changes in tasks that re-record it.
  4. A slice is an arch, with the three phases of BACKLOG.md:
    • plan: a design pass on the concrete system, its numbers, what the player sees and its cost; it writes the design.md sections and the tasks;
    • implement;
    • wrap-up: probes and bands, and the cost against the budget.
  5. A slice names its cost before it is built: entities, times cadence, times work per call; and the line it adds to the budget table (docs/cost.md, section 1.2). Its wrap-up measures that line.

3. The slices

# Slice The player can Framework it brings (target-v2 section)
0 The yardstick (the team can measure every later slice at its own cost) Work counters, fixtures, bands (6.2), the rules registry with death.hazard (4.1), indexes of the living
1 Kin help, booked See who owes whom goodwill, and why help was given or refused Stores with goods (4.3), goodwill and allowance (4.4), Exchange’s gift (4.5), explain
2 A life Inhabit a pawn, queue what it does, argue at the meeting, answer an offer of marriage, read its line’s history, skip to the next event, go on as kin after its death; save in the page Opportunities for a pawn (4.5), the player’s doors (4.7) but Decisions.answer, the actor view
3 The household’s year As holder, set the season’s plan and place the next field; as a member, follow it or not Opportunities, plans, tasks, eligibility, planning days, the meeting’s routines, attention (4.5)
4 The autumn fair Barter at the fair, borrow, lend Typed goods and custody (4.3), venues, occasions, reach on foot (4.2), swap and loan, norms (5.1–5.3), Obligations (4.4)
5 Debt and land Press a debt, sit at the hearing, farm as a tenant Land rights (4.3), Enforcement and Decisions (4.5), class with hysteresis (4.6), the bodies decision
6 The mill and the loom Build a mill with the village, learn a craft, spin and weave Facilities and construction (4.3), recipes with subtypes, skills, the textile chain (5.6), occupation
7 Talk travels Hear what people say; carry a reputation; lie, and be found out Traits (4.4), encounters at venues, stories (4.4, 10.2)
8 The ship Sell butter for silver, take passage, meet a priest The outside world, silver, institutions and rank (4.4, 4.5); disease (10.3)
9 The town Deal on the green at a rite or a meeting, walk to a maker’s door, live partly by a craft and let fields go, ask for a plot where the custom is (16 Nov: the town itself waits, 3.9) A place’s label as a derived view (4.6), crowding in death.hazard, the strata and the sink reported (6.1, 6.3)
10 Roads, boats and ice Cross the frozen sound to the winter fair; build a road or a bridge Modes, vehicles and climate (4.2), built ways and passage (4.3)

Each slice below lists what it brings and what it takes over from today’s backlog. It also says what must be designed concretely first: that design pass is its plan task.

3.0 The yardstick

3.1 Kin help, booked

The walking skeleton. It is the smallest slice that touches five layers, and today’s behaviour barely changes.

8 November update (Kim, VB-182’s plan; QUESTION_ARCHIVE.md, “VB-182”).

3.2 A life

The vision’s core (Kim, 3 November). Every later slice should be tried through the player’s pawn, and the four doors of target-v2 4.7 shape the interfaces built after it. That is cheap now and dear later.

8 November update (Kim, VB-079’s plan; QUESTION_ARCHIVE.md, “VB-079”).

9 November update (Kim, the gameplay review). The review found slice 2 thin as planned: the queue offers the chores the pawn would do anyway, real choices come about once a year, and the largest of a life, marriage, was not the player’s. Kim’s decisions:

3.3 The household’s year

The riskiest change, because it rewires the core loop. It goes before the fair because every later slice stands on it: the fair is an occasion (a plan), labour owed is the creditor’s opportunity, and a mill is a project plan.

9 November update (Kim, the gameplay review). A player who is head of a household directs it directly: it places the next field, meadow or building to be made and sets the season’s work, in place of the holder’s rule and under the rules that bind any holder (design.md, The player and what they see, As head of the household). The design pass (VB-164) adds: which of a holder’s choices the player may make, and what the household does where the player makes none.

3.4 The autumn fair

The cities review’s phase 1, and the loans of its phase 2.

Revised 10 November (Kim, on docs/review-markets.md; design.md, sections 8, 9 and 11): the slice is built on a yearly gathering of near and like-minded villages at a host village’s centre, where customs are held together, marriages between villages are made and border disputes resolved; the fair is held at it, as barter. It also brings two goods of place (dried fish, tar) made as side crafts, so that villages differ, and ale. The gathering is after the harvest. Grain loans, and Obligations as a module, move to slice 5 (3.5). The list below stands where it does not contradict this. The plan (VB-183) closed on 10 November; its tasks are VB-294 to VB-306, and the gathering is on winter days 1 to 3.

3.5 Debt and land

The alderman’s road (target-v2 7.1), and the first test of whether bodies need a membership graph.

Design pass (written 11 November, VB-184; design.md, sections 5 (Households and other bodies), 6 (Land and rights), 9 (Loans, obligations and cases) and 10 (slice 5’s practices); all Proposed). Written while Kim was away: where this section, target-v2 or an archived answer pointed the way, the orchestrator decided in Kim’s place, and those answers stand (Kim, 12 November; QUESTION_ARCHIVE.md, “VB-184: debt and land”, questions 1 to 6 and 8 to 10). In short:

3.6 The mill and the loom

3.7 Talk travels

3.8 The ship

3.9 The town

Rewritten 16 November (the plan of VB-189, docs/plans/VB-189.md, on Kim’s answers of that day; design.md, Settlements, Towns and regions). The list this section held (settlement tier and regions by Harris potential, burgage plots, households that buy their food, urban hazard, the pull at the moving round) no longer stands: a market place and a town are labels no rule reads, nobody calls a market, and two mocks find that makers spread and do not gather, so no town is expected before the ship. Kim accepted that. The slice is now what the island has before the ship: village craftsmen who still farm, and a yearly market at each gathering’s host.

3.10 Roads, boats and ice

4. The order, and why

0, then 1 and 2 side by side, then 3, 4, 5, 6, 7, 8, 9 and 10 in turn. Slice 7 can move, and its experiment runs from slice 0 on.

  1. Slice 0 first. It is cheap, everything later is measured by it, and the measurements change designs. The cache of slice 3’s opportunities and the disease model of slice 8 are both shaped by cost.
  2. Slices 1 and 2 in parallel. They touch different files: food and relations against commands, agents and the page. Between them they test the pieces every later slice uses: the registry, stores, goodwill and exchange; opportunities and the player.
  3. Slice 3 before the fair: see 3.3. A fair built on posted jobs would be built twice.
  4. Fair, then debt and land, then the mill: the cities review’s order. Rights matter once there is debt (the first tenancy), and a mill on village land needs a develop grant.
  5. Slice 7 is the movable one. It depends only on venues. If the budget binds sooner, VB-127 moves up into slice 0’s neighbourhood.
  6. The ship before the town: imports feed the first specialists, silver arrives with ships, and disease comes first by sea. Roads come last, since the winter fair (trace 7.3) needs everything else. Changed, 16 November (Kim): the ship is taken last of all, after the town and the roads. The town’s plan (3.9) then found what this point had guessed: without the ship’s imports and demand no town forms. So slice 9 builds the craftsmen and the markets the island has before the ship, slice 10 widens their reach, and the town proper arrives with slice 8, unless the third mock (VB-776) or slice 5’s elite gathers makers sooner.

Alternatives weighed.

Beside the slices: small tasks that touch nothing above may run at any time: VB-159, VB-160 (since 10 November a survey of what raised yields), VB-084 (speeds), VB-091 (VB-165 was closed on 10 November). They run as long as they do not edit the files of the slice in progress. Five archs also run beside the slices, each opened by Kim: between (11 November), far (15 November), physical (14 November), acts (16 November) and, since 25 November, plans (plans at four scales and the levy: docs/plans/four-scales/README.md, its path in section 3.10; tasks VB-1743 to VB-1780; step 9 of the path, aims and personal goods, is the arch’s own since 25 November, docs/plans/four-scales/aims.md; its tasks set aside in docs/ideas/aims/).

Size and pace. The plan of 3 November guessed 60 to 70 tasks at one a night. The real numbers, and the estimate of when the rest is done, are in docs/roadmap.html (tools/roadmap.js).

5. design.md v0.4, and the backlog

design.md. v0.3 says each version is its own document, left unchanged once a newer one exists.

Proposed sections of v0.4, ordered as the player meets the world:

  1. Vision and scope
  2. World, climate and travel
  3. Time
  4. People: persons, traits, skills, health
  5. Households and other bodies
  6. Land and rights
  7. Work: opportunities, plans, tasks
  8. Goods, production and facilities
  9. Exchange, goodwill and obligations
  10. Customs and culture
  11. Settlements, towns and regions
  12. Institutions and the world beyond
  13. Balance loops and targets
  14. The player and what they see
  15. Open questions
  16. Change log

The backlog (done 3 November). Each slice is an arch: yardstick, kin-help, life, year, fair, debt, mill, talk, ship, town, roads. Its plan task is VB-181, VB-182, VB-079, VB-164, VB-183 to VB-186, VB-188 to VB-190 in turn; the gossip experiment is VB-187 and the skeleton of design.md v0.4 is VB-191. The tasks of the earlier archs moved to the slices as section 3 lists. Those of slices 3 to 10 are blocked until their slice’s plan confirms, rewrites or closes them, so Kim need not answer their old questions now. Two earlier archs stay open beside the slices:

VB-127 (ties from talk) stays ready ahead of its slice, since the budget already binds (docs/cost.md, section 1.1).

6. Questions for Kim

Raised in QUESTIONS.md, Priority 1, with these proposals.

  1. The slices and their order (sections 3 and 4). P: as proposed, with slices 1 and 2 in parallel. Decided (Kim, 3 Nov): P.
  2. The late game’s size. design.md says “up to about 1,000 pawns simulated in full” (Decided). Populous medium starts at 807 and grows about 2% a year (small grew 1.8% a year over 40 years), so it passes 1,000 by about year 12 unless a loop holds it. Is 1,000 living the target for medium, or a band for the late game, with large maps allowed more? P: about 1,000 living on medium is the budget’s reference; large may reach 2,000 at half the speed. Decided (Kim, 3 Nov): P.
  3. The budget (docs/cost.md, section 1.2). P: as proposed: 160 ms a game day at the late reference, steps under 50 ms, cost per living pawn flat in history, save under 0.5 s. Decided (Kim, 3 Nov): P.
  4. design.md v0.4 (section 5). P: keep v0.3 as docs/design-v0.3.md; a skeleton pass now; each slice’s plan writes its own sections. Decided (Kim, 3 Nov): P.
  5. Counters in VB.count (docs/cost.md, section 2). P: yes, with one lint allowance; counters never feed the simulation. Decided (Kim, 3 Nov): P.
  6. The ten rules (docs/cost.md, section 1.3) into AGENTS.md’s working rules. P: yes, once Kim agrees with them. Decided (Kim, 3 Nov): P.

All six were answered on 3 November (QUESTION_ARCHIVE.md).