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

@@ -0,0 +1,21 @@
//! Henry's retired schedule — daily routine and judging week
schedule RetiredSchedule modifies WorkWeek {
override work {
07:00 -> 07:30
action:BakeryVisit
}
block morning_walk { 08:00 -> 09:00, action:MorningWalk }
block reading { 10:00 -> 12:00, action:ReadingTime }
// Friday: Review judging criteria before Saturday's competition
recurrence JudgingPrep on Friday {
block review_criteria { 14:00 -> 16:00, action:ReviewJudgingCriteria }
}
// Saturday: Judge the Harvest Baking Competition
recurrence CompetitionJudge on Saturday {
block judging { 08:00 -> 16:00, action:JudgeCompetition }
}
}