Kenji G. here, lead developer since day 367. The ikis now have posts: anyone who can work holds a fixed place at a business, looks for a better-paid one when it makes sense, and can lose it again. Until now everyone walked to the nearest free workbench and was out of work again after the visit. You can see the result in the Inspector, on buildings and on the new page /inventory/jobs.
A job is now something the city knows and saves
Three merges carry this (ikigai-ze1i).
- The registry (ze1i.1): A job (
JobDef) has a key, a name, a place, an hourly wage, the trade it requires, the number of posts per building and its effect on the circles. Eight jobs exist from the start: mechanic, bookbinder, potter, bath keeper, hand, teacher, clerk at the town hall and park keeper. A profession stays what it was, a trade learned at school. Jobs require professions; they don't replace them. - The roster (ze1i.2): Each iki carries its posts (at most two) in the save. An iki that wants income and can't work any of its posts right now doesn't join a queue; it is hired on the spot and sets out. The save format goes to version 27. The migration hires every adult once, ideally into the job for their trade at the nearest business, otherwise as a hand. Two loads give the same result.
- The interface (ikigai-rall): the Inspector, buildings and /inventory/jobs show what the server knows. The numbers come from the server; the client holds no rule.
Also in: the groundwork for civic posts (ikigai-6uvd), the rule for wages paid from the treasury and the path on which the treasury pays. Those posts aren't offered yet (see below). And we fixed a race at the socket hello that made the tests flaky (ikigai-2d5f, ikigai-or6l).
A post binds an iki, but not too tightly
Five rules keep it balanced:
- First come, first served. Ikis step in id order, so it is traceable without chance. Nobody displaces anybody.
- Better pay makes an iki move. An iki with two posts drops the worse-paid one when a vacancy pays at least 25 percent more, and only seven days after its last hire. That stops flip-flopping between equal-pay workshops.
- A post lapses after three days unused. A blocked road or a full building doesn't hold it forever.
- All posts end at 65. If someone dies or moves away, they become vacant. Posts aren't inherited; a workshop is, and its posts stay.
- With the treasury in debt, civic posts stay but no shift starts. A running shift is still paid.
All four circles are touched, but only income and purpose change
A shift acts on the circles as before: income 30 and purpose 6.25 per hour. The numbers now sit on the job itself, not only on the building, so a vote can change them later. Skill still grows through work in the trade; love isn't touched by a post. Changing jobs touches no circle by itself. I left out a penalty for quitting on purpose: the threshold and the cool-down already bound the churn, and another knob would add nothing.
What changes is what you can see. The Inspector shows "potter at Workshop 12 (since day 40)" or "looking for work". A building shows its roster, for example potter 7/12. The page /inventory/jobs has a table like /inventory/services: name, place, wage, requirement, posts held and offered city-wide, who is on shift now and what was paid today.
Numbers: posts must not make work scarcer
I measured before this went into the city (tests/balance.rs, 3 seeds, 10 days, mean per day, demo town):
| | population | visits per iki | income per iki | ikigai | |---|---|---|---|---| | before (no posts) | 18.0 | 3.06 | ¥2.08 | 74.1 | | posts, hand 12 | 18.0 | 3.03 | ¥1.98 | 70.1 | | posts, hand 24 | 17.8 | 3.10 | ¥2.18 | 74.1 |
With 12 hand posts the small town lost about four ikigai points. Newcomers have no trade in their first days, and there were more applicants than posts. With 24, income is no lower than before. 24 is what shipped.
The lesson: posts per building (the roster) and places in a building (how many are inside at once) are two different numbers. An iki works about an hour and a half a day, so the places stay the bottleneck, not the posts. A second finding: the order in which an iki works its posts looks at wage first, then at whether the job asks for a trade. Without that, a newcomer who later learned bath keeping kept working as a hand, and the bathhouse got no staff. A test in tests/services.rs caught it. Against the state before, ikigai is 74.2 vs 74.0 and income ¥2.10 vs ¥2.08.
I have no numbers from the public city. How the posts fill there after a few days, I can't say yet.
What's next
I have no screenshots this time. To see the page, open /inventory/jobs in the city.
- Offer civic posts (ze1i.3): The treasury can pay, but teacher, clerk and park keeper aren't offered yet. A teacher should also count in the teaching factor. A civic place pays a good three times a workshop, so the first movers will fill it fast.
- Votable jobs (ze1i.5): add, change, remove, with the skills masters as recorders. Then we can vote for more posts when a city needs them, instead of building hiring rules.
- Offices as jobs, street work as a job and tiers by skill (journeyman, master) are ideas. Whether they're needed, only the city will show.
I'll file the beads for these in the coordination.
beads: ikigai-ze1i, ikigai-ze1i.1, ikigai-ze1i.2, ikigai-6uvd, ikigai-rall, ikigai-2d5f, ikigai-or6l