feat(examples): rewrite baker-family as coherent Competition Week narrative

Rewrote the baker-family example around a unified story: the annual Harvest
Baking Competition is Saturday. Martha's sourdough starter Old Maggie is
sluggish from a cold snap, Jane is secretly entering the FreeStyle category,
Emma's science fair project is "The Chemistry of Fermentation", Henry is
judging for the first time and worried about impartiality, and Roland is
defending last year's title.

The week's schedules (Mon guild meeting → Tue test bakes → Wed sourcing →
Thu dough prep → Fri science fair → Sat competition → Sun recovery) are
now fully populated with narrative-specific actions.

Files split for composability:
- behaviors/baker_behaviors.sb → 5 focused files by character/domain
- schema/types.sb → 4 files (core, baking, world, social)
- schedules/work_schedules.sb → 4 files (one per schedule)
- relationships/baker_family_relationships.sb → family + bakery

Strong typing: replaced all enumerable string fields with concepts
(BakerSpecialty, Occupation, LocationType, InstitutionType, ParentingStyle,
Intensity, BakeryDomain, BakingDiscipline, ManagementDomain,
CompetitiveAdvantage).

Remove new-syntax-demo.sb (superseded by baker-family example).
This commit is contained in:
2026-02-23 21:51:01 +00:00
parent 1fa90aff0e
commit abd54e4c33
29 changed files with 820 additions and 587 deletions

View File

@@ -20,17 +20,24 @@ character Emma from Child {
mood: 0.85
---backstory
Emma is the bright, energetic daughter of Martha and Jane. She loves
helping in the bakery on weekends, though she's not allowed to work
the ovens yet. She's fascinated by the chemistry of baking and often
asks her mothers endless questions about why dough rises, how yeast
works, and what makes bread crusty.
Emma is the bright, energetic daughter of Martha and Jane. She is
fascinated by the chemistry of baking — why dough rises, how yeast
works, what makes bread crusty — and has turned that curiosity into
her school science fair project: "The Chemistry of Fermentation."
At school, she excels in science and math, and dreams of one day
creating her own innovative recipes. She learns the science of bread
from Martha and the art of decoration from Jane. For now, she's
content to help package goods and chat with the regular customers
who've watched her grow up.
She borrowed a microscope from the school lab and has been studying
Old Maggie under magnification, sketching the yeast colonies and
tracking how temperature affects their activity. Her poster board
is covered in hand-drawn diagrams of lactobacillus and graphs of
rise times at different temperatures. The science fair is Friday
evening, and she has been rehearsing her presentation to anyone
who will listen — Henry, the regular customers, even Roland once
when he stopped by to buy flour.
On weekends she helps in the bakery, packaging goods and chatting
with customers. She is not allowed to work the ovens yet, but she
knows the recipes by heart. She is quietly proud that her science
project connects her two worlds: school and the bakery.
---
}

View File

@@ -18,12 +18,21 @@ character Henry from Person {
---backstory
Henry taught history at the local school for over forty years before
retiring. He has been a daily customer at the bakery since Martha
first opened its doors. Every morning at precisely seven o'clock,
he arrives for a sourdough loaf and a chat.
first opened its doors — every morning at seven o'clock, a sourdough
loaf and a chat. The bakery is his anchor to the community.
He watched Emma grow up and occasionally helps her with her homework
when he stops by. The bakery is his anchor to the community now that
he no longer teaches. Martha always sets aside his favorite loaf,
and Jane saves him a croissant on Saturdays.
This year, the Bakers Guild invited him to sit on the judging panel
for the Harvest Baking Competition. It is the first time he has been
a judge rather than a spectator, and he is quietly terrified. He
knows the competition's two-hundred-year history better than anyone
— he wrote a monograph on it during his teaching days — but judging
Martha's bread fairly when she saves him his favorite loaf every
morning feels like a conflict of interest.
He has been re-reading the guild's judging criteria and practicing
his palate with different breads from the market. He does not want
to let anyone down — not Martha, not Roland, not the guild. Emma
asked him to come to her science fair on Friday, and he would not
miss it for the world.
---
}

View File

@@ -12,7 +12,7 @@ character Jane from Baker {
age: 36
// Baker-specific traits
specialty: "pastries"
specialty: Pastries
baking_skill: 0.85
customer_relations: 0.80
skill_tier: Journeyman
@@ -23,17 +23,28 @@ character Jane from Baker {
// Work ethic
work_ethic: 0.90
occupation: "pastry chef"
occupation: PastryChef
---backstory
Jane trained at a culinary school in the capital before returning
to her hometown and meeting Martha. Her specialty is delicate
pastries and elaborate wedding cakes. While Martha handles the
bread and business, Jane focuses on the artistic creations that
draw customers from neighboring towns.
to her hometown and meeting Martha. Her croissants are legendary —
people drive from three towns over for the Saturday batch. While
Martha handles bread and business, Jane creates the artistic
pastries that fill the display cases.
She is more of a night owl by nature, but has adapted to the baker's
early schedule over the years. Her croissants are legendary.
This year, for the first time, Jane is entering the Harvest Baking
Competition herself, in the FreeStyle category. She has been
secretly practicing an ambitious croquembouche after Emma's
bedtime: a tower of cream puffs held together with spun caramel,
decorated with candied violets from their garden. Martha does not
know the full scope of what Jane is planning — Jane wants to
surprise her.
She is nervous. She has always been the support crew on competition
day, packing Martha's tools and keeping the workspace organized.
Stepping out from behind the scenes feels like a risk, but Emma
keeps telling her she should, and Martha has been encouraging her
for years.
---
}

View File

@@ -12,7 +12,7 @@ character Martha from Baker {
age: 34
// Baker-specific traits
specialty: "sourdough"
specialty: Sourdough
baking_skill: 0.9
customer_relations: 0.95
skill_tier: Master
@@ -23,17 +23,27 @@ character Martha from Baker {
// Work ethic (from Worker template)
work_ethic: 0.95
occupation: "master baker"
occupation: MasterBaker
---backstory
Martha learned to bake from her grandmother and has perfected
the art of sourdough over fifteen years. She wakes at 4 AM every
day to prepare the morning bread, and her bakery is known throughout
the region for its exceptional quality.
Martha learned to bake from her grandmother, who passed down Old
Maggie — a sourdough starter that has been alive for thirty years.
Old Maggie is the soul of Martha's bread, and Martha tends to her
like a third child: daily feedings, temperature checks, and quiet
conversations when the bakery is empty.
She manages the business side as well, keeping meticulous records
and maintaining warm relationships with all her customers. The bakery
is not just a shop - it's the heart of the community.
She has won the Harvest Baking Competition three out of the last
five years, always in the Signature category with her sourdough.
Last year, Roland took the title with a dark rye that the judges
called "revelatory," and Martha has been determined to reclaim it
ever since. The rivalry deepened when Roland hired away her former
apprentice, Thomas, last spring — a betrayal she has not forgotten.
This week, Old Maggie is sluggish from a cold snap that dropped
the bakery's overnight temperature. Martha has been wrapping the
starter in blankets and moving her near the oven, but the rise is
still not where it needs to be for Saturday's competition. She is
quietly worried but will not show it.
---
}

View File

@@ -12,7 +12,7 @@ character Roland from Baker {
age: 42
// Baker-specific traits
specialty: "rye bread"
specialty: RyeBread
baking_skill: 0.75
customer_relations: 0.60
skill_tier: Journeyman
@@ -23,18 +23,25 @@ character Roland from Baker {
// Work ethic
work_ethic: 0.80
occupation: "baker"
occupation: Baker
---backstory
Roland runs a bakery in the neighboring town. He learned baking from
his father and considers himself the rightful best baker in the region.
His rye bread is excellent, but he lacks Martha's warmth with customers
and Jane's artistic flair.
Last year, he won the Harvest Baking Competition with a dark rye that
the judges called "revelatory" — the first time in three years that
Martha did not take the title. He intends to defend his championship.
He sees Martha's bakery as his chief competition and often tries to
undercut her prices at the market. Despite the rivalry, there is a
grudging respect between them. Roland once admitted, after too much
ale at the harvest festival, that Martha's sourdough was better than
his own.
He has been experimenting with a new fermented rye technique, using a
wild starter he cultivated from grain husks foraged in the hills. The
results are promising but inconsistent, and he has been running test
bakes every other evening. He hired Thomas, Martha's former apprentice,
last spring — a move that was practical (he needed the help) but that
Martha took as a personal betrayal.
Roland respects Martha's skill more than he would ever admit. After
too much ale at last year's harvest festival, he told Henry that
Martha's sourdough was better than his own. He regretted saying it
immediately, and has been trying to prove himself wrong ever since.
---
}