Status: done (2026-11-23)
Priority: 2
Size: M
Arch: mill
Phase: implement
Design ref: Goods, production and animals (The metals and the stones: Workmanship; The mill and the loom: Skills); docs/plans/VB-702.md, section 13; AGENTS.md, Deciding without Kim (17)
Goal: A made good has a grade of workmanship (shoddy, sound, good, fine, masterwork), drawn at its making by odds that shift with the maker’s skill, which scales how long it lasts, how well it works and its worth (Kim, 16 Nov; principle 17): the one task that owns grades, which every graded good reads.
Acceptance criteria:
WORKMANSHIP (sim/rules.js), all Proposed: the five grades (shoddy, sound, good, fine, masterwork); life 0.7, 1, 1.1, 1.25, 1.5; work 0.85, 1, 1.05, 1.12, 1.25; odds at three levels of skill, in hundredths: novice 60, 35, 5, 0, 0; practised 15, 45, 33, 6, 1; master 2, 23, 50, 20, 5; hands 0.2. Custom’s worth by grade, Culture.norm('workmanship', grade): 0.6, 1, 1.25, 2, 4, one table for every culture until norms learn.sim/skills (VB-360): the grade of a piece made by a pawn at a craft, one draw from a new stream making (SYSTEMS, src/sim/rng.js); the odds are read in a straight line between the three levels at the pawn’s level(st, p, craft), moved by the hands trait as hands times (trait less a half) of skill once slice 7’s traits exist. One draw a piece (each pot of a firing). Tests: fix forces each grade; over many draws a practised maker’s mean life and working are 1 within 0.02, and the shares at 0, 0.5 and 1 are the table’s.sim/stores, or VB-416’s module): a good declares that it is graded and which of its kinds’ properties life scales (years, a share broken a year, hours of wear) and which work scales (the effect its use reads, measured from having none); compiled at load into one frozen row a good, kind and grade, so a reader allocates nothing. The grade is not part of a good’s id; the worth rule takes the grade in its context and multiplies custom’s worth of the good and kind by custom’s multiplier for the grade.{[kind]: [n, n, n, n, n]}; a durable’s record is {kind, grade, made}. put names the grade; a take names a cell (kind and grade), or “least” (any cell, least customary worth first, in an order compiled for each good when custom’s table is set, never sorted at the take), or “best” (for the household’s own use: best by what the use reads, then by worth). The ledger and the yearly totals book the good only, never its kind or grade (their key is year, reason and good: fold in sim/stores). @state, invariants (five whole counts, none negative; a grade 0 to 4), tools/stocks.js, saves (an old save’s pieces are sound).household.quern gains its grade: grinding speed by work, its 20 years by life; hewn with the skill stonework), and, if built, pots (VB-366: the share broken a year divided by life), cloth and dress (VB-362, VB-363: a length’s grade drawn at the weaving, pawn.dress carries it, DRESS.years times life). Goods built later declare themselves (the plan’s 13.3 lists them). Not graded, by the plan’s D20 to D22: materials, food and ale, the thing of worth, and what is built.expectedWorth(st, p, craft), the mean of the odds’ row at a pawn’s skill in closed form, is offered to VB-698 and VB-699 as the head’s estimate (principle 14) of what its own hand’s piece will be worth.node tests/counters.js unchanged but for intended lines; save size at the end of the runs, before and after; the bytes of a household’s ledger and totals unchanged.tuning row if the odds or multipliers should move); households with no working quern, the share of grain eaten as flour, hungry household-days, before and after. Up to five short runs for the tunables, each written down.npm run verify passes its hard checks.
Notes:farmstead.grade is the house’s.Noted by VB-702, 16 November 2026.
sim/workmanship, not sim/rules and sim/skills: both are at the width
limit (42 exports, and 15), and the grades are one concern (close call). Custom’s multipliers are norm('workmanship', g) of sim/norms.hands × (trait − 0.5)): the traits exist, so it applies now.kindRow(good, kind).grades[g]), no new export of sim/goods; the quern’s grit is scaled by work.{kind, grade, made}; the start’s and an old save’s are sound). Pots, cloth and dress are not built.least and best, and the head’s rules on them (own use, owed, gift). No stored graded good exists yet, so none would be read.jobs.allot gives a making of a graded good (a kind with a craft that gives one) only to the most skilled hand at its craft.docs/tuning.md row. No tunable run needed.