2026-02-14 15:49:17 +00:00
|
|
|
//! Henry - Loyal customer and retired teacher
|
|
|
|
|
//!
|
|
|
|
|
//! Demonstrates:
|
|
|
|
|
//! - Non-family character in the community
|
|
|
|
|
//! - Minimal template usage (Person, no work schedule)
|
|
|
|
|
//! - Community connection through the bakery
|
|
|
|
|
|
|
|
|
|
use schema::templates::Person;
|
|
|
|
|
|
|
|
|
|
character Henry from Person {
|
|
|
|
|
// Personal details
|
|
|
|
|
age: 68
|
|
|
|
|
|
|
|
|
|
// General traits
|
|
|
|
|
energy: 0.5
|
|
|
|
|
mood: 0.75
|
|
|
|
|
|
|
|
|
|
---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
|
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
|
|
|
first opened its doors — every morning at seven o'clock, a sourdough
|
|
|
|
|
loaf and a chat. The bakery is his anchor to the community.
|
2026-02-14 15:49:17 +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
|
|
|
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.
|
2026-02-14 15:49:17 +00:00
|
|
|
---
|
|
|
|
|
}
|