Files
storybook/examples/baker-family/behaviors/child_behaviors.sb
Sienna Meridian Satterwhite abd54e4c33 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

79 lines
1.4 KiB
Plaintext

//! Child behaviors — Emma's school week, science fair, and bakery life
// Child template behaviors
behavior PlayBehavior {
choose {
play_outside
play_with_toys
draw_pictures
}
}
behavior LearnBehavior {
then {
attend_school
do_homework
read_books
}
}
// School schedule behaviors
behavior SchoolDay {
then {
travel_to_school
attend_classes
eat_lunch
attend_afternoon_classes
travel_home
}
}
behavior DoHomework {
then {
organize_assignments
study
complete_homework
}
}
// After-school help at the bakery
behavior HelpInBakery {
then {
package_goods
wipe_counters
chat_with_customers
}
}
// Thursday: Emma prepares her science fair project on fermentation
behavior PrepareScienceFair {
then {
collect_fermentation_samples
examine_under_microscope
update_data_charts
rehearse_presentation
arrange_poster_board
}
}
// Friday: Emma presents at the science fair
behavior ScienceFairPresentation {
then {
setup_display
present_findings
answer_questions
receive_feedback
}
}
// Saturday: Emma helps her parents at the competition venue
behavior HelpAtCompetition {
then {
carry_supplies
setup_station
fetch_water
watch_competition
cheer_for_parents
}
}