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).
71 lines
2.0 KiB
Plaintext
71 lines
2.0 KiB
Plaintext
//! Bakery relationships — business, customers, and rivalry
|
|
|
|
// Martha and Jane - business partnership
|
|
relationship BusinessPartnership {
|
|
Martha as co_owner {
|
|
domain: BusinessAndBread
|
|
manages: OperationsAndSuppliers
|
|
}
|
|
|
|
Jane as co_owner {
|
|
domain: PastriesAndPresentation
|
|
manages: MenuDesignAndDisplays
|
|
}
|
|
|
|
partnership_strength: 0.95
|
|
}
|
|
|
|
// Henry as loyal customer — complicated this year by his judging role
|
|
relationship CustomerRelationship {
|
|
Martha as baker {
|
|
service_priority: High
|
|
reserved_item: "sourdough loaf"
|
|
}
|
|
|
|
Henry as customer {
|
|
loyalty: 0.95
|
|
daily_visit: true
|
|
favorite_item: "sourdough"
|
|
}
|
|
|
|
years_as_customer: 8
|
|
awkwardness: 0.6
|
|
|
|
---description
|
|
Henry has been Martha's most loyal customer for eight years, but his
|
|
new role as competition judge has introduced an uncomfortable tension.
|
|
Martha still sets aside his morning loaf, and Henry still arrives at
|
|
seven sharp, but they both avoid talking about Saturday. Henry worries
|
|
about impartiality. Martha worries he will overcompensate by scoring
|
|
her lower than she deserves.
|
|
---
|
|
}
|
|
|
|
// Roland and Martha - baking competition rivalry
|
|
relationship Competition {
|
|
Martha as competitor {
|
|
market_share: 0.65
|
|
advantage: CustomerLoyalty
|
|
competition_wins: 3
|
|
}
|
|
|
|
Roland as competitor {
|
|
market_share: 0.35
|
|
advantage: LowerPrices
|
|
competition_wins: 1
|
|
}
|
|
|
|
intensity: 0.80
|
|
mutual_respect: 0.40
|
|
|
|
---description
|
|
The rivalry between Martha and Roland has sharpened since last year's
|
|
competition, when Roland's dark rye unseated Martha's three-year
|
|
winning streak. The tension deepened when Roland hired Thomas,
|
|
Martha's former apprentice, creating a rift that guild meetings
|
|
have not fully healed. Roland respects Martha's skill but will
|
|
never say so sober. Martha considers his methods sound but his
|
|
ethics questionable.
|
|
---
|
|
}
|