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).
2026-02-23 21:51:01 +00:00
|
|
|
//! Core baking behaviors — Martha and Jane's craft
|
2026-02-13 21:52:03 +00:00
|
|
|
//!
|
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).
2026-02-23 21:51:01 +00:00
|
|
|
//! These behaviors are referenced by the Baker template and BakerSchedule.
|
|
|
|
|
//! See also: competition_behaviors.sb for competition-week-specific actions.
|
2026-02-13 21:52:03 +00:00
|
|
|
|
|
|
|
|
// Main baking work routine
|
|
|
|
|
behavior BakingWork {
|
|
|
|
|
then {
|
|
|
|
|
check_orders
|
|
|
|
|
prepare_ingredients
|
|
|
|
|
choose {
|
|
|
|
|
make_bread
|
|
|
|
|
make_pastries
|
|
|
|
|
make_cakes
|
|
|
|
|
}
|
|
|
|
|
bake
|
|
|
|
|
cool_products
|
|
|
|
|
package_goods
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Kitchen prep routine
|
|
|
|
|
behavior PrepKitchen {
|
|
|
|
|
then {
|
|
|
|
|
clean_surfaces
|
|
|
|
|
check_supplies
|
|
|
|
|
preheat_ovens
|
|
|
|
|
organize_workspace
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Market day selling behavior
|
|
|
|
|
behavior SellAtMarket {
|
|
|
|
|
repeat {
|
|
|
|
|
then {
|
|
|
|
|
greet_customer
|
|
|
|
|
show_products
|
2026-02-14 14:45:17 +00:00
|
|
|
if(self.customer_interested) {
|
|
|
|
|
make_sale
|
2026-02-13 21:52:03 +00:00
|
|
|
}
|
|
|
|
|
thank_customer
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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).
2026-02-23 21:51:01 +00:00
|
|
|
// Baker skill behaviors (from Baker template)
|
2026-02-13 21:52:03 +00:00
|
|
|
behavior BakingSkills {
|
|
|
|
|
then {
|
|
|
|
|
assess_dough
|
|
|
|
|
adjust_recipe
|
|
|
|
|
monitor_temperature
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
behavior CustomerService {
|
|
|
|
|
then {
|
|
|
|
|
greet_warmly
|
|
|
|
|
listen_to_needs
|
|
|
|
|
recommend_products
|
|
|
|
|
handle_payment
|
|
|
|
|
}
|
|
|
|
|
}
|