VB-1123: Page: plan mode: the household’s season planned on the map, in place of the Plan tab
Status: blocked
Waits for: VB-1765
Priority: 2
Size: L
Design ref: docs/mocks/plan-mode-l.html with its screenshots docs/mocks/img/plan-mode-l.png and plan-mode-l-2.png (the latest; and -a to -k); design.md section 7 (The plan panel; a design pass comes first); principles “The future is someone’s estimate”, “Like is shown alike” and “Every act is a pawn’s”
Goal: A head plans its household’s season where the land is: who does what and when, what does not fit and why, and what the plan is expected to bring against what the household needs.
Acceptance criteria:
Kim’s decisions are marked with their day (17 or 18 Nov 2026). Where a point is the mocks’ and not Kim’s, it says “proposed”.
The frame
A moment (17 Nov). On the played head’s planning day and at each season’s first review the game reminds the head that the plan is due; an option turns the reminders on or off (the bell), and with them on the game pauses and offers the mode. The head may open it at any other time. Leaving it goes on with the plan as it stands. A pawn that is not a head opens it read-only.
It replaces the Plan tab (18 Nov): src/page/plan.js and the tab go when the mode is built; nothing is changed in the tab meanwhile.
One plan is shown, the head’s (18 Nov). No switch to the custom’s plan. Two buttons, apart: undo (the last change back) and reset (the custom’s plan). Reset, the reminder and going on are icons with a tooltip.
A key (18 Nov): a button unfolds a legend of the marks, and every icon says what it is when pointed at. Proposed: the legend is open the first time the mode is.
Toggles move nothing (18 Nov): a mark shown or hidden, the legend, a breakdown, a menu or a card change no other part’s place or size. Marks have fixed slots; what unfolds lies over the map.
The strip: a member’s season
A row a member: the name, a slot for a person’s problem, the season’s days on the one meter (the daily chores, what the plan asks, what is free; red and over when it asks more than there is), and under the name the daily chores.
One bar of the season a member (18 Nov): the planned actions lie on it one after the other, each with its icon and name. The grey foot is the share of each day the chores take. A window’s end is a pin with the action’s icon. A bar’s uncertain end is striped (the head’s estimate), and the next action is drawn at the end of that uncertainty; but it is started when the last is done, and the plan then shifts to show what happened (18 Nov). Where more would fit, the bar says so: the free stretch and the days of work it holds.
Work in three lengths (18 Nov, yes to the proposal). What recurs daily is a chore: a pill under the member’s name with its days in a season, handed to another by dragging it. What takes half a day or more is a bar. What is shorter and does not recur is gathered into one block of small work, which opens into its parts and is laid out on the day’s strip (VB-477). The cut at half a day is the drawing’s; what mechanism stands behind it is left for future work (18 Nov).
The seasons ahead (18 Nov): after the twelve days, a cell a later season with what is known of it if this plan holds (the routines the calendar and the fields give, what this season carries over) and the days that asks against the days the member has. The next season may be planned as this one is; those after show the known load only (proposed; see Planning ahead, below).
Only known events (18 Nov): a member who comes or leaves is shown from or to the day that is known (hired at the round and coming on a day; a marriage accepted and its day), and not before it is known. Who left is the past, and is in the last plan’s outcome.
Skill on the bar (18 Nov): a work bar carries the member’s skill at the job on a fixed scale of four, novice to master, not a comparison within the household; pointed at, the level, the number and what the job grows it to.
A person’s card (18 Nov): a click on a member opens a quick card: skills on the one meter with the same scale and what this season adds, aptitudes, health, mood, the season’s days.
Acting
Actions are chosen at a tile (18 Nov). A click on a tile opens a menu there: the actions that tile takes, each shown in the members’ hands (skill, the days of work, a made good’s grade), one that cannot be done with its reason, and the tile’s details as a pseudo-action (“About this tile”: soil, the estimated yield with its range, the walk, the seed). What has no field is on the tile it happens at: the house (brewing, crafts, a feast, asking for a hand), the river (fishing), the bank (clay).
Replace (18 Nov): with an action’s bar selected, the action chosen next takes its place. The menu says what it replaces.
Delete (18 Nov): a selected bar is removed by Backspace, by Delete, or by a delete button on the bar.
A new action goes to the bar selected, else to the first free stretch of the member chosen in the menu (proposed, in place of the day’s pointer of mocks E to J).
A missing need warns and can be met (18 Nov): an action whose needs are not met (pottery with no clay) can still be placed; it carries the red mark, in the menu with what is missing, then on its bar and its tile. The menu offers the action that meets the need (“Dig clay first”), which is placed before it and linked to it: the second waits for what the first brings. Nothing teleports: the first’s days include the carrying.
Planting is a field at a time (18 Nov): “Plant” replaces “Hoe and sow”; each field is planted on its own, with the crop the head chooses for it (two fields of one crop and two of another), in an order the head sets.
Every change is a verb any head has (17 Nov; principle “Every act is a pawn’s”): the mode gives the player no choice the automatic head lacks. The verbs the mode needs and the game lacks are added for every head, or the choice is left out and said so: an action given to a member (assign or so; 18 Nov: yes); an action removed, replaced or moved in the order; a chore handed over; an action placed that waits for a need, and the link. setTarget goes (below). The room for the player is in judgement: the automatic head plans by custom and its own reckoning and gets by; a player who reads the mode does better (17 Nov).
The map
The farm’s land is one territory (18 Nov): one outline round each group of its joined tiles, with no tile’s border inside; its land keeps its brightness and all other land is dimmed.
A tile at rest carries one mark or none (18 Nov). A meadow, or a tile an action is planned on: one disc, its picture the next step, its colour the member who has it, a yellow ring for a change of the head’s. A field: its crop (a picture and a colour a crop), its place in the order of planting, and a ring for how far the crop has grown; the details in the tile’s menu. A tile that cannot take what is in hand: a cross, and why when pointed at. A tile chosen for a new field is outlined as planned, not yet the farm’s. No tint at rest.
An overlay for the action in hand (18 Nov): while “Break a field” is chosen, the open tiles in reach show their fertility, stronger for richer soil, with a small key on the map. Other actions that choose a tile get theirs the same way.
A problem is marked where it is (18 Nov): a red exclamation mark on the tile it concerns, on its bar, or by the person’s name when it is a person’s (ill, or asked for more days than there are). A click opens that tile’s or person’s menu, which begins with the problem, why, and what could be done, each with what it would give (the last proposed). There is no box of problems.
The outcome
What is shown is the threshold of survival (18 Nov: “and has always been”): what the household needs to get through the year, by the head’s estimate. Nothing is stepped: the stepping of targets leaves the game, here and everywhere. A head still holds a level it fills a store to: the player reckons it in their head; a head not played reckons it as a margin it prefers over what survival needs, moved by its traits and skill, 1.5 times the baseline to start with (18 Nov). The margin is a named tunable (principle “Parameters, not patches”), and the mode shows the threshold, not the margin.
Food is one need of several sources (18 Nov): one bar, a colour a source (grain, peas, dried fish, milk and butter, and what else is eaten); the i opens the breakdown, a row a source with its icon. Hay and firewood are needs of their own.
A need’s bar: solid for what is in store, striped for what this plan is expected to add, the mark of the need, and a pointer where a poor year would leave it (18 Nov). The i shows the numbers.
A change shows on the outcome (18 Nov): an action added, removed or moved updates the estimates at once, and the need it touches shows the change (what was lost or gained against the bar before, the row marked) until the next change.
The surplus and what it is for (18 Nov): what the plan leaves above the food’s need, in a likely year and a poor one, and its uses, which are actions at the house: a feast and crafts. What else there is to do with it is looked up, not listed here: the game info panel (VB-1124; Kim’s answer of 18 Nov) holds every action, where it applies, what it needs and what it gives, and the surplus line and the menus link to it.
The loop is closed (17 Nov): for the plan the last review made, what the head estimated beside what came of it. What has happened is shown as it was, with no estimate’s mark.
Every estimate is the head’s (principle “The future is someone’s estimate”): it has a range where the head’s judgement gives one, a head of poorer judgement sees a poorer estimate, and the mark of an estimate (the wits icon in the mocks) is explained in the legend.
How it is judged
Usability comes first (17 Nov): a player who has not read the design finds, in the mode, what will not fit this season, why, and what to change. The plan names how this is checked (a playthrough as a new holder, written up, before and after). No one but the mocks’ author has yet tried them.
As little text as will do (17 Nov; principle “Like is shown alike”): a routine, a good, a member, a skill, a crop, a window and a state are shown by the icon and the one meter the page has, reused. New glyphs only for new concepts, added to the one set (drawn so far: go on, undo, reset, the key, a problem, skill’s four bars, a jar, a pod; a glyph a crop is still owed, since barley and rye share one).
One presentation (principle “Like is shown alike”): a member, an action, a need and a field look the same here, on the farm’s card and on the day’s strip; the season’s bar and the day’s are one object at two lengths.
Cost (rules 7 and 9): the estimates are worked out on demand while the mode is open, never in a step; the plan names their cost (households, times the season’s actions, times one estimate, times the seasons looked ahead) and measures it on founders and on a late save.
A design pass first: design.md section 7 (the plan panel, the targets and their steppers) is rewritten for what is decided here, and the open tasks that build on the tab or on stepped targets are confirmed, rewritten or closed (the notes below list those found on 18 Nov).
The mode’s functional test in the page’s tests; a screenshot in the PR.
Walks through the interface
Each walk is a requirement told as what a player does and sees. The household is the mocks’: Norrgården, year 3, spring; Torsten 32, the head, and Märta 29; four fields, six meadows; Karin, 14, hired at the moving round, comes on the first day of summer. After each step: the mock and frame that draws it. They were checked on 18 Nov by a script that opens each mock and looks for the step’s part (46 parts found; the two not found are meant: a hidden mark’s slot, and the overlay off at rest). “Not drawn” means no mock shows it; “drawn, not working” means the picture is there and the click does nothing. The walks marked (Kim’s) are the cases Kim gave.
W1. Pottery for Märta in place of her raking (Kim’s).
The player clicks “Rake meadows” on Märta’s bar. It takes the dark frame, a delete button appears at its corner, and the six meadows it covers are ringed on the map. (L, frame 1)
The player clicks the house. Its menu opens and its first line says the action chosen will take the place of “Rake meadows”, Märta’s. (L, frame 1)
The menu lists what is done at the house. “Pottery” shows Märta’s hands and Torsten’s: her skill, the days of work, the grade likeliest. It carries the red mark: no clay in store; it can be planned and waits for clay. (L, frame 1)
The warning offers “Dig clay first, Märta, 1 day”. The player takes it. (L, frame 1: drawn, not working)
On Märta’s bar the raking is gone; “Dig clay” and “Pottery” stand in its place with the yellow frame of a change, linked: the pottery waits for the clay. The bank where the clay is dug has a disc in her colour. The pottery’s warning is gone, since the plan now meets its need. Her days read “full”. (L, frame 2)
The estimates have moved: with no one raking, the hay’s bar has lost a part, drawn where it stood; its poor year’s pointer has moved back; the row is marked as changed. The meadows’ discs are grey and carry a problem’s mark: no one rakes them. (L, frame 2)
Undo puts the raking back. (drawn as a button; the result not drawn)
Had the player only wanted pottery, the free stretch on Märta’s bar (“1½ d free”, L frame 1) is where it would go with nothing selected.
W2. An action is deleted (Kim’s). The player selects a bar and presses Delete or Backspace, or clicks its delete button. The bar is removed, the actions after it close up, the member’s free days grow, and each need the action fed shows what was lost (as step 6 of W1). (The button and the keys’ names: L, frame 1. The estimate moving: K and L, frame 2. A bare deletion’s result: not drawn.)
W3. An ill worker (Kim’s). A member falls ill, or is asked for more days than the season has. The red mark stands by the member’s name, in a slot that is there whether a mark is shown or not; a click opens the member’s card, which begins with the problem. (The mark by Torsten’s name, six days over: I to L. Its slot kept when hidden: I and J with ?plain=1, measured. An illness, and the card beginning with it: not drawn.)
W4. Two fields of one crop and two of another (Kim’s). Each field is planted on its own. On the map a field shows its crop, its place in the order of planting and, as a ring, how far the crop has come; on the bar the same number and crop. The player clicks a field to change its crop or its place in the order, and reads there what it was sown with before and what each crop would give. (Crop, order and ring, on the map and the bar: I to L, with two fields of barley, one of peas and one of rye standing from autumn; the game has no wheat. A field’s own menu, and so the choosing of a crop: not drawn.)
W5. Someone is known to come, or to leave (Kim’s: “if Astrid has accepted marriage and will leave at a date”). Karin was hired at the round and comes on the first day of summer: she has a row, empty until that day, and a place for the chores she can take from then. A member who has accepted a marriage has her bar end at the day she leaves, and the seasons after are without her. Nothing is shown of what is not yet settled. (Karin’s row and day: G to L. A member leaving at a known day: not drawn.)
W6. A fifth field that does not fit.
The player chooses “Break a field”. The open tiles in reach show their fertility, stronger for richer soil. (H to J)
The player clicks a rich tile by the river. Its menu shows the action in Torsten’s hands and Märta’s, and “About this tile”: the soil, the yield Torsten expects with its range, the walk, the seed it takes. (H to J)
Placed on Torsten’s bar, two of its nine days fit this spring. The tile is outlined as planned, not yet the farm’s, and carries the red mark; Torsten’s name carries one too, six days over. (I to L)
A click on the tile’s mark opens the menu, which begins with the problem and what could be done. (H to J)
The summer’s cell on Torsten’s row is already red: mowing, the rye and the field’s seven days ask fourteen days of his ten. “Let it wait” is not offered as a way out; Karin’s nine free days in summer are. (J)
W7. Reading what the plan brings. The player looks at “To get through the year”. Food is one bar: the colours are its sources, the solid part is in store, the striped part is what this plan is expected to add, the mark is the need, the pointer is the poor year. Food is safe; hay clears its mark in a likely year and not in a poor one, and reads “tight”. The i opens food’s breakdown, a row a source. Under the needs: the surplus above the food’s need, likely and in a poor year, and what it is for at the house, a feast and crafts. (I and J)
W8. Who should do it. The player clicks Märta’s name. Her card opens: skilled at brewing and raking, able at planting and manure, a novice at breaking land and fishing; her aptitudes; her days this spring. On the strip each work bar ends in the same four bars. (J, ?pawn=1; the card’s opening works)
W9. A chore handed over. Märta’s chores are three pills under her name, seven days of her twelve. The player drags “Milk” to Karin’s name; from summer it is Karin’s, Märta’s grey foot is thinner and her free days more. (The pills and Karin’s place: J to L. The drag and its result: not drawn.)
W10. Small work. On Märta’s bar a lighter block, “Small work, 3”. A click opens it: mending the hay rakes, whetting the scythes, churning the butter, each with its share of a day. They are laid out one by one on the day’s strip. (L, frame 2; the day’s strip: docs/mocks/day-strip.html, drawn before these decisions)
W11. The frame. Undo is by the date and reset apart from it; the question mark unfolds the legend over the map; the bell is the reminder’s switch; the tick goes on with the plan. Nothing moves when any of these is used. (H to L; the legend: ?legend=1)
Planning ahead
Kim, 18 Nov: how feasible is planning ahead, assuming the last season’s plan held? The calendar’s part is cheap and sure: each crop’s windows and each field’s stage give the routines of the seasons ahead; sim/outlook already projects the supplies four seasons on, and the plan’s ahead (VB-254) looks a season on for wood and hay. Not there: a season’s order and hands made before its first review. To build: the review’s order-making callable for a season not begun, on a projected state, on demand while the mode is open. The limit: ranges compound, so the second season ahead is wide; births, deaths, leavings not yet known and the weather are not in it. Not measured.
Kim’s answers, 18 Nov
The five questions this task raised, with their answers (in full in QUESTION_ARCHIVE.md); each is written into the criteria above.
Does a head still hold a level it fills a store to, with the stepping gone? “Yes, the player does it in their head, an npc does too calculated from a margin preference over survivability (influenced by traits and skills), 1.5 times the baseline is a good starting point.”
Where is the next action drawn? “The task is drawn at the end of uncertainty, but is started when the previous task is done, shifting the plan to reflect reality.”
Is giving an action to a member a verb for every head? “Yes, assign or so.”
What mechanism cuts a bar from small work? “That is left for future work.”
What is the surplus for, beside a feast and crafts? “We need a game info panel, collecting e.g. what actions are in the game and where they apply, preconditions, what they produce etc.” It is VB-1124.
Notes:
The latest screenshots are docs/mocks/img/plan-mode-l.png (frame 1: the raking selected, the house’s menu with pottery and its missing clay) and docs/mocks/img/plan-mode-l-2.png (frame 2: the clay dug first and linked, the hay’s estimate moved, the small work opened); with plan-mode-j.png, plan-mode-j-pawn.png and plan-mode-j-legend.png for the fertility overlay, a tile’s problem menu, a person’s card and the legend, which L does not draw.
The mocks, all throwaway with invented numbers, in docs/mocks/ with a screenshot each in docs/mocks/img/: plan-mode.html (17 Nov, the first), day-strip.html, then plan-mode-a.html to -l.html. A to C: three forms (a screen of its own, the farm’s card grown, a layer over the map). D: C with B’s table in the strip. E: time in slots, actions in a tile’s menu. F: member tracks with action rows, quiet tiles. G: one bar a member, the land outlined, a reset. H: needs, striped uncertainty, dimmed land, problems on tiles, the legend. I: food as one need, planting a field at a time. J: the seasons ahead, the poor year, chores, the surplus, skill, a person’s card. K: replacing and deleting. L: a linked action for a missing need, and small work. L is the latest, with J for the card (?pawn=1), the overlay and a tile’s problem menu. The task was VB-1026 on its branch until main gave that number to another task (bond badges); the mocks’ head comments were renumbered, the commits’ messages were not.
History: the task was written on 17 Nov after a playthrough of founders, seed 7, medium, as Torsten Jönsson of Norrgården, to year 3 spring. Findings behind it: the automatic head did everything well and none of three changes made in the Plan tab changed an outcome that could be seen; what mattered came from outside the tab (the maid given a plot and gone, a cow lost, a frost); the tab shows targets and an order but never that two people had four fields to sow in ten days. The dated notes of each mock, with what each was good and bad at and the two reviews of 18 Nov, are in the task’s first file, backlog/VB-1026.md at commit 7aaa478 and after on the branch claude/plan-mode-vb1026 (git show 9f2caf7:backlog/VB-1026.md).
Flag: the automatic head’s level (subsistence and a little more, with the surplus left for a player who plays well; Kim, 17 Nov) is a balance aim this task does not build and no task holds. At founders seed 7 the head went from 260 to 757 grain in two years with two hands and no hunger. For a tuning run of Kim’s (docs/tuning.md) or a task of its own; proposed as a principle candidate: “the automatic head gets by; the surplus is the player’s to find”.
Found in the second review (18 Nov) and not yet answered by a mock: a window nearly missed is not told from one kept with days to spare; the remedies of a problem do not say what each would give; whether the player’s plan beats the custom’s cannot be seen until the next season; the last plan’s outcome does not say why an estimate was wrong; asking for a hand shows no cost; the surplus line says food is “for crafts”, when what a craft spends is days and materials.
Close calls, for Kim: the wits icon marks an estimate, which gives one icon two meanings (the trait, and “this is reckoned”); the four colours of the food’s sources are new, and gold and red already mean “short” and “bad” on the one meter; on the mocks’ household every planned action reads “skilled”, so the fixed scale tells nothing apart on the strip and earns its place in the card and the menu.
Open tasks amended on 18 Nov to agree with this one. How they were found: every open task’s file (272) was searched for the Plan tab, the plan panel, page/plan, setTarget, steppers, a head’s or a store’s target, the timetable, allot, skills, feasts, crafts, clay, hoeing and sowing, rotations, hired hands and the supply component, and every open task’s name was read; the files were not each read whole. Each has a dated note saying what changes for it; three were also reworded and one parked.
Built on the Plan tab: VB-355 (its criterion moved from the tab to the field’s tile), VB-108 and VB-781 (reworded to plan mode), VB-1118 (note), VB-893 (taken over: now blocked, waiting for this task).
Built on a head’s target, which is now only the head’s own reckoning (Kim’s first answer): VB-699, VB-866, VB-644, VB-700, VB-701, VB-736, VB-737, VB-739, VB-741, VB-743, VB-769, VB-770, VB-1116; and, agreeing with food as one need, VB-767 and VB-768.
The estimate, the day and the hands: VB-475, VB-476, VB-477, VB-470, VB-694, VB-319.
Skills and workmanship: VB-360, VB-761, VB-763.
Needs, the surplus and the feast: VB-669, VB-459, VB-996, VB-460.
Crafts and chores: VB-366, VB-368, VB-121, VB-362, VB-679.
Crops: VB-351, VB-1115.
The frame and the code: VB-1101, VB-665, VB-670, VB-431, VB-228.
Not amended, and why: the other tasks that say “target” mean a measure’s target (cost, growth, a band), which this task does not touch.
25 Nov 2026 (arch plans, VB-1742): blocked on VB-1777 (the chains as goals, the last of the player’s plan written through the verb plan) and VB-1765 (the strip on the page): design.md, The plan panel, 25 Nov (Kim): the panel becomes the strip at its four zooms, so plan mode’s bar of a member’s season is the strip’s season zoom, coloured by whose the hours are, and its actions are steps of the household’s plan record. Built now, it would be built twice. Kim’s decisions of 17 and 18 Nov stand; where the strip’s rows differ from mocks A to L, the strip governs (Like is shown alike). Left outside the arch, so its wrap-up does not wait for it.